/* =====================================================================
   Hanna Massage — Men's Vitality Home Service
   Stylesheet utama (publik + komponen bersama)
   ===================================================================== */

/* ---------- Font lokal ---------- */
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("../vendor/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/marcellus-latin-400-normal.woff2") format("woff2"); }

/* ---------- Token warna: tema terang ---------- */
:root {
  --bg: #f7f3ec;
  --bg-alt: #efe7da;
  --surface: #ffffff;
  --surface-2: #faf7f1;
  --text: #1e2522;
  --heading: #14201c;
  --muted: #69716d;
  --primary: #1f4a40;
  --primary-rgb: 31, 74, 64;
  --primary-contrast: #ffffff;
  --accent: #b88a4a;
  --accent-soft: #e9d8bb;
  --accent-rgb: 184, 138, 74;
  --border: rgba(20, 32, 28, .1);
  --shadow: 0 18px 45px -18px rgba(20, 32, 28, .25);
  --shadow-sm: 0 6px 18px -8px rgba(20, 32, 28, .18);
  --dark-band: #13201c;
  --dark-band-text: #e8e2d6;
  --input-bg: #ffffff;
  --success: #2e7d5b; --warning: #b7791f; --danger: #c0392b; --info: #2f6f9f;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 84px;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.65, .05, .36, 1);
  color-scheme: light;
}

/* ---------- Tema gelap ---------- */
:root[data-theme="dark"] {
  --bg: #0d1210;
  --bg-alt: #121a17;
  --surface: #172019;
  --surface-2: #1b2622;
  --text: #dcd6cb;
  --heading: #f3eee5;
  --muted: #9aa39e;
  --primary: #d3a862;
  --primary-rgb: 211, 168, 98;
  --primary-contrast: #16110a;
  --accent: #d3a862;
  --accent-soft: #3a3020;
  --accent-rgb: 211, 168, 98;
  --border: rgba(255, 255, 255, .09);
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, .7);
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, .6);
  --dark-band: #0a0f0d;
  --input-bg: #111916;
  --success: #4cb286; --warning: #e0a44a; --danger: #e5675a; --info: #5da7dc;
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--bg); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 400; color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-band); color: var(--dark-band-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .flex-wrap { flex-wrap: wrap; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-100 { width: 100%; }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Judul seksi ---------- */
.section-title { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-title.left { margin-left: 0; text-align: left; }
.subtitle {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .82rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.subtitle::before, .subtitle::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section-title.left .subtitle::before { display: none; }
.lead { font-size: 1.1rem; color: var(--muted); }
.ornament { width: 80px; height: 14px; margin: 14px auto 0; color: var(--accent); }

/* =====================================================================
   TOMBOL — efek isi geser + ikon panah (referensi: tema spa)
   ===================================================================== */
.btn {
  --btn-bg: var(--primary); --btn-color: var(--primary-contrast); --btn-hover-bg: var(--accent); --btn-hover-color: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 1px solid var(--btn-bg); border-radius: 50px;
  background: var(--btn-bg); color: var(--btn-color);
  font: 500 .92rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .2s, box-shadow .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease);
}
.btn::after { /* kilau */
  content: ""; position: absolute; top: 0; left: -75%; z-index: 1; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 100%);
  transform: skewX(-25deg); pointer-events: none;
}
.btn:hover { color: var(--btn-hover-color); border-color: var(--btn-hover-bg); box-shadow: 0 12px 26px -12px rgba(var(--accent-rgb), .8); }
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover::after { animation: shine .85s; }
.btn:active { transform: translateY(1px); }
.btn .bi { font-size: 1.05em; transition: transform .4s var(--ease); }
.btn:hover .bi-arrow-right, .btn:hover .bi-arrow-up-right { transform: translateX(4px) rotate(-45deg); }
.btn-accent { --btn-bg: var(--accent); --btn-color: #fff; --btn-hover-bg: var(--primary); --btn-hover-color: var(--primary-contrast); }
.btn-outline { --btn-bg: transparent; --btn-color: var(--primary); --btn-hover-bg: var(--primary); --btn-hover-color: var(--primary-contrast); border-color: var(--primary); }
.btn-light { --btn-bg: #fff; --btn-color: #14201c; --btn-hover-bg: var(--accent); --btn-hover-color: #fff; border-color: #fff; }
.btn-ghost-light { --btn-bg: transparent; --btn-color: #fff; --btn-hover-bg: #fff; --btn-hover-color: #14201c; border-color: rgba(255,255,255,.6); }
.btn-danger { --btn-bg: var(--danger); --btn-color: #fff; --btn-hover-bg: #8e2419; }
.btn-success { --btn-bg: var(--success); --btn-color: #fff; --btn-hover-bg: #1e5a40; }
.btn-wa { --btn-bg: #25d366; --btn-color: #fff; --btn-hover-bg: #128c4a; border-color: #25d366; }
.btn-sm { padding: 10px 18px; font-size: .78rem; }
.btn-xs { padding: 7px 12px; font-size: .72rem; letter-spacing: .04em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
@keyframes shine { 100% { left: 125%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.link-arrow .bi { transition: transform .35s var(--ease); }
.link-arrow:hover .bi { transform: translateX(6px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.topbar { background: var(--dark-band); color: #cfc8ba; font-size: .87rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; }
.topbar a { color: #cfc8ba; } .topbar a:hover { color: var(--accent); }
.topbar-info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info .bi { color: var(--accent); }
.topbar-social { display: flex; gap: 14px; }
@media (max-width: 860px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background-color .35s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); }
.logo:hover { color: var(--heading); }
.logo-mark { width: 46px; height: 46px; flex: none; color: var(--accent); transition: transform .8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font: 400 1.55rem/1 var(--font-head); letter-spacing: .14em; }
.logo-text small { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; color: var(--heading);
  font-weight: 500; font-size: .95rem; letter-spacing: .02em;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  cursor: pointer; transition: all .3s; position: relative; font-size: 1.1rem;
}
.icon-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .65rem; display: grid; place-items: center; padding: 0 4px; }

/* Saklar tema terang/gelap */
.theme-switch {
  --w: 64px; position: relative; width: var(--w); height: 34px; border-radius: 30px; flex: none;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: space-between; padding: 0 9px; color: var(--muted);
}
.theme-switch .bi { font-size: .9rem; position: relative; z-index: 1; transition: color .3s; }
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .45s var(--ease);
}
:root[data-theme="dark"] .theme-switch .knob { transform: translateX(30px); }
.theme-switch .bi-sun { color: #fff; }
:root[data-theme="dark"] .theme-switch .bi-sun { color: var(--muted); }
:root[data-theme="dark"] .theme-switch .bi-moon-stars { color: #1a140b; }

.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .main-nav, .header-actions .btn-book { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* Menu mobile (offcanvas) */
.offcanvas {
  position: fixed; inset: 0 0 0 auto; z-index: 1000; width: min(360px, 88vw);
  background: var(--surface); padding: 26px; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease);
  box-shadow: var(--shadow);
}
.offcanvas.open { transform: none; }
.offcanvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.offcanvas nav a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--heading); font-size: 1.05rem; }
.offcanvas nav a.active, .offcanvas nav a:hover { color: var(--accent); padding-left: 6px; }
.offcanvas nav a { transition: padding .3s, color .3s; }
.offcanvas .btn { margin-top: 20px; width: 100%; }
.offcanvas-info { margin-top: 28px; font-size: .92rem; color: var(--muted); }
.offcanvas-info p { display: flex; gap: 10px; margin-bottom: 8px; }
.offcanvas-info .bi { color: var(--accent); }
.backdrop { position: fixed; inset: 0; z-index: 950; background: rgba(8, 12, 10, .55); opacity: 0; visibility: hidden; transition: .4s; }
.backdrop.show { opacity: 1; visibility: visible; }

/* =====================================================================
   HERO SLIDER
   ===================================================================== */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; overflow: hidden; background: #0c1411; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); transition: transform 7s linear; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,12,.88) 0%, rgba(8,14,12,.55) 55%, rgba(8,14,12,.2) 100%); }
.hero-content { position: relative; z-index: 2; color: #eee7da; max-width: 700px; padding: 60px 0; }
.hero-content h1 { color: #fff; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-content p { font-size: 1.15rem; color: #d7d0c3; max-width: 560px; }
.hero-content .subtitle { color: #e2bd80; }
.hero-content > * { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s var(--ease); }
.hero-slide.active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content > *:nth-child(2) { transition-delay: .2s; }
.hero-slide.active .hero-content > *:nth-child(3) { transition-delay: .4s; }
.hero-slide.active .hero-content > *:nth-child(4) { transition-delay: .6s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-dots { position: absolute; z-index: 5; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; transition: .3s; }
.hero-dots button.active { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.hero-arrows { position: absolute; z-index: 5; right: 30px; bottom: 30px; display: flex; gap: 10px; }
.hero-arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: .3s; }
.hero-arrows button:hover { background: var(--accent); border-color: var(--accent); }
.hero-badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .bi { color: var(--accent); font-size: 1.2rem; }
@media (max-width: 680px) { .hero-arrows { display: none; } .hero { min-height: 640px; } }

/* =====================================================================
   EFEK GAMBAR — zoom, kilau (shine), overlay
   ===================================================================== */
.img-hover { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-hover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.img-hover:hover img { transform: scale(1.1) rotate(1deg); }
.shine::before {
  content: ""; position: absolute; top: 0; left: -85%; z-index: 2; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 100%);
  transform: skewX(-25deg); pointer-events: none;
}
.shine:hover::before { animation: shine .95s; }

/* =====================================================================
   FITUR / KEUNGGULAN
   ===================================================================== */
.feature-card {
  position: relative; padding: 40px 30px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.feature-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0; z-index: -1;
  background: var(--primary); transition: height .55s var(--ease);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.feature-card:hover::before { height: 100%; }
.feature-card:hover h4, .feature-card:hover p { color: var(--primary-contrast); }
.feature-icon {
  width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 2rem;
  transition: transform .7s var(--ease), background .4s, color .4s;
}
.feature-card:hover .feature-icon { transform: rotateY(360deg); background: var(--accent); color: #fff; }
.feature-card p { color: var(--muted); margin: 0; transition: color .4s; }
.feature-card h4 { transition: color .4s; }

/* =====================================================================
   TENTANG
   ===================================================================== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-images { position: relative; padding: 0 60px 60px 0; }
.about-images .img-main { aspect-ratio: 4/5; }
.about-images .img-small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--bg); border-radius: var(--radius); }
.section-alt .about-images .img-small { border-color: var(--bg-alt); }
.exp-badge {
  position: absolute; top: 30px; right: 20px; z-index: 3; width: 130px; height: 130px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.exp-badge strong { font: 400 2.4rem/1 var(--font-head); }
.exp-badge span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
@keyframes float { 50% { transform: translateY(-12px); } }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .bi { color: var(--accent); margin-top: 3px; }
.signature { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) { .about-wrap { grid-template-columns: 1fr; gap: 50px; } }
@media (max-width: 520px) { .check-list { grid-template-columns: 1fr; } .about-images { padding: 0 30px 30px 0; } .exp-badge { width: 100px; height: 100px; } .exp-badge strong { font-size: 1.8rem; } }

/* =====================================================================
   KARTU LAYANAN
   ===================================================================== */
.service-card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s; height: 100%;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-card .img-hover { border-radius: 0; aspect-ratio: 4/3; }
.service-card .img-hover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,18,15,.75));
  opacity: .5; transition: opacity .5s;
}
.service-card:hover .img-hover::after { opacity: .9; }
.service-icon {
  position: absolute; z-index: 3; left: 26px; bottom: -32px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.6rem;
  border: 5px solid var(--surface); transition: transform .6s var(--ease), background .4s;
}
.service-card:hover .service-icon { transform: rotate(360deg); background: var(--primary); color: var(--primary-contrast); }
.service-media { position: relative; }
.service-body { padding: 48px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 a { color: var(--heading); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.service-card:hover .service-body h3 a { background-size: 100% 1px; color: var(--accent); }
.service-body p { color: var(--muted); flex: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--border); }
.price-from { font-size: .85rem; color: var(--muted); }
.price-from strong { display: block; font: 400 1.35rem/1.2 var(--font-head); color: var(--accent); }

/* =====================================================================
   KARTU TERAPIS
   ===================================================================== */
.therapist-card { position: relative; text-align: center; }
.therapist-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-alt); }
.therapist-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.therapist-card:hover .therapist-photo img { transform: scale(1.08); filter: brightness(.7); }
.therapist-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: 20px; display: flex; justify-content: center; gap: 10px;
  transform: translateY(100%); opacity: 0; transition: transform .55s var(--ease), opacity .4s;
}
.therapist-card:hover .therapist-overlay { transform: none; opacity: 1; }
.therapist-overlay a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #14201c; transition: .3s; }
.therapist-overlay a:hover { background: var(--accent); color: #fff; transform: translateY(-4px); }
.therapist-overlay a:nth-child(2) { transition-delay: .05s; }
.therapist-power-tag { position: absolute; z-index: 3; top: 16px; left: 16px; }
.therapist-info {
  position: relative; z-index: 4; margin: -40px 18px 0; padding: 20px 16px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), background .4s;
}
.therapist-card:hover .therapist-info { transform: translateY(-8px); }
.therapist-info h4 { margin-bottom: 4px; }
.therapist-info h4 a { color: var(--heading); }
.therapist-info h4 a:hover { color: var(--accent); }
.therapist-info .meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.power { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.power-kuat { background: #3b1f14; color: #ffcf9f; }
.power-sedang { background: #1d3b33; color: #bde9d9; }
.rating { color: #e0a84a; }

/* =====================================================================
   LANGKAH / CARA KERJA
   ===================================================================== */
.steps { counter-reset: step; }
.step-card { position: relative; text-align: center; padding: 10px 14px; }
.step-num {
  position: relative; width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--accent); font-size: 2.4rem; color: var(--accent);
  transition: .5s var(--ease);
}
.step-num::after {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 2px; right: 2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--primary-contrast); font: 500 .85rem/36px var(--font-body);
}
.step-card:hover .step-num { background: var(--accent); color: #fff; border-style: solid; transform: translateY(-6px); }
.step-card p { color: var(--muted); }
@media (min-width: 1025px) {
  .steps .step-card:not(:last-child)::after {
    content: ""; position: absolute; top: 60px; right: -30%; width: 45%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  }
}

/* =====================================================================
   COUNTER / STATISTIK
   ===================================================================== */
.counter-band { background: linear-gradient(135deg, var(--dark-band), #1f3a33); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.counter-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/360px; opacity: .08; }
.counter { text-align: center; position: relative; }
.counter .bi { font-size: 2.2rem; color: var(--accent); }
.counter strong { display: block; font: 400 clamp(2.2rem, 4vw, 3.2rem)/1.1 var(--font-head); margin: 10px 0 4px; }
.counter span { color: #cfc8ba; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

/* =====================================================================
   HARGA
   ===================================================================== */
.pricing-card {
  position: relative; padding: 40px 32px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--accent); }
.pricing-card.featured { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.pricing-card.featured h3, .pricing-card.featured .amount { color: var(--primary-contrast); }
.pricing-card.featured .price-list li { border-color: rgba(255,255,255,.15); }
:root[data-theme="dark"] .pricing-card.featured .price-list li { border-color: rgba(0,0,0,.15); }
.pricing-ribbon { position: absolute; top: 22px; right: -40px; transform: rotate(45deg); background: var(--accent); color: #fff; padding: 6px 48px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.pricing-card .amount { font: 400 2.6rem/1 var(--font-head); color: var(--accent); margin: 16px 0 4px; }
.pricing-card .amount small { font: 400 .95rem var(--font-body); opacity: .75; }
.price-list { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.price-list li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.price-table { width: 100%; }

/* =====================================================================
   TESTIMONI
   ===================================================================== */
.testi-slider { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform .8s var(--ease); }
.testi-item { flex: 0 0 50%; padding: 0 15px; }
@media (max-width: 860px) { .testi-item { flex-basis: 100%; } }
.testi-card { position: relative; background: var(--surface); padding: 40px 34px; border-radius: var(--radius); border: 1px solid var(--border); height: 100%; transition: .5s; }
.testi-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.testi-card .quote { position: absolute; right: 30px; top: 24px; font-size: 3.5rem; color: var(--accent); opacity: .25; line-height: 1; }
.testi-card p { font-size: 1.05rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 400 1.2rem var(--font-head); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 40px; height: 40px; font-size: .95rem; }
.testi-author h5 { margin: 0; font-size: 1.05rem; }
.testi-author small { color: var(--muted); }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; transition: .3s; }
.slider-nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =====================================================================
   GALERI
   ===================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery-grid .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item:nth-child(6) { grid-column: span 2; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item::before {
  content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(255,255,255,.7); border-radius: calc(var(--radius) - 4px);
  transform: scale(1.15); opacity: 0; transition: .6s var(--ease);
}
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(var(--accent-rgb), .45); opacity: 0; transition: .5s; }
.g-item .g-icon {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: #fff; color: #14201c; display: grid; place-items: center; font-size: 1.4rem; transform: scale(0) rotate(-180deg); transition: .6s var(--ease);
}
.g-item .g-caption { position: absolute; z-index: 3; left: 24px; bottom: 20px; color: #fff; opacity: 0; transform: translateY(12px); transition: .5s .1s; font-family: var(--font-head); font-size: 1.1rem; }
.g-item:hover img { transform: scale(1.12); }
.g-item:hover::before { transform: none; opacity: 1; }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-icon { transform: none; }
.g-item:hover .g-caption { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gallery-grid .g-item:nth-child(6) { grid-column: span 1; } }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5,8,7,.92); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; border-radius: var(--radius); animation: zoomIn .5s var(--ease); }
.lightbox button { position: absolute; top: 20px; right: 20px; }
@keyframes zoomIn { from { transform: scale(.8); opacity: 0; } }

/* =====================================================================
   CTA
   ===================================================================== */
.cta-band { position: relative; padding: 90px 0; background: var(--primary) url("../img/cta-bg.svg") center/cover; color: #fff; overflow: hidden; }
:root[data-theme="dark"] .cta-band { background-color: #1a2a25; }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 640px; }
.cta-band .subtitle { color: #f0d4a5; }

/* =====================================================================
   FAQ (accordion)
   ===================================================================== */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 14px; overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--accent); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 24px; background: none; border: 0; cursor: pointer; font: 500 1.05rem var(--font-body); color: var(--heading); }
.faq-q .bi { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .4s var(--ease), background .3s; }
.faq-item.open .faq-q .bi { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* =====================================================================
   PAGE BANNER (halaman dalam)
   ===================================================================== */
.page-banner { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 9vw, 110px); background: #0d1512 url("../img/banner.svg") center/cover; color: #fff; text-align: center; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,12,.55), rgba(8,14,12,.8)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: 14px; animation: fadeUp .9s var(--ease); }
.breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 24px; border-radius: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: .92rem; }
.breadcrumb a { color: #e8dfcf; } .breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }

/* =====================================================================
   FORM
   ===================================================================== */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field label, .label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 7px; color: var(--heading); }
.field .req { color: var(--danger); }
.input, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=time], .field input[type=number], .field input[type=search], .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--input-bg); color: var(--text); transition: border-color .25s, box-shadow .25s; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field .error-text { font-size: .83rem; color: var(--danger); margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.input-icon { position: relative; }
.input-icon .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; font-family: var(--font-head); font-size: 1.3rem; color: var(--heading); }
.form-section-title:first-child { margin-top: 0; }
.form-section-title .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 500 .95rem var(--font-body); flex: none; }

/* Pilihan kartu (radio) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { height: 100%; padding: 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface-2); transition: .3s; }
.choice:hover .choice-body { border-color: var(--accent); transform: translateY(-3px); }
.choice input:checked + .choice-body { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--accent); }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.choice.disabled .choice-body { transform: none !important; }
.choice-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; transform: scale(0); transition: transform .3s var(--ease); z-index: 2; }
.choice input:checked ~ .choice-check { transform: scale(1); }

.therapist-choice .choice-body { padding: 0; overflow: hidden; text-align: center; }
.therapist-choice .tc-photo { aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.therapist-choice .tc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.therapist-choice:hover .tc-photo img { transform: scale(1.08); }
.therapist-choice .tc-info { padding: 12px 10px 14px; }
.therapist-choice .tc-info strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.08rem; color: var(--heading); }
.therapist-choice .tc-info small { display: block; color: var(--muted); font-size: .78rem; }
.therapist-choice .power { margin-top: 6px; font-size: .7rem; padding: 3px 9px; }
.tc-area-warn { display: none; font-size: .72rem; color: var(--danger); margin-top: 4px; }
.choice.disabled .tc-area-warn { display: block; }

/* Kalender ketersediaan */
.avail-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .avail-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.avail-day { padding: 10px 4px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface-2); text-align: center; cursor: pointer; transition: .25s; line-height: 1.25; }
.avail-day strong { display: block; font: 400 1.4rem/1.2 var(--font-head); color: var(--heading); }
.avail-day small { display: block; font-size: .72rem; color: var(--muted); }
.avail-day .avail-count { margin-top: 4px; font-size: .7rem; font-weight: 500; }
.avail-day.open .avail-count { color: var(--success); }
.avail-day.full, .avail-day.off { opacity: .5; cursor: not-allowed; }
.avail-day.full .avail-count, .avail-day.off .avail-count { color: var(--danger); }
.avail-day.open:hover { border-color: var(--accent); transform: translateY(-2px); }
.avail-day.selected { border-color: var(--accent); background: var(--accent); }
.avail-day.selected * { color: #fff !important; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; cursor: pointer; font-weight: 500; transition: .2s; color: var(--text); }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty-note { padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); text-align: center; font-size: .92rem; }

/* Peta pemilih lokasi */
.map-picker { position: relative; }
.map-search { position: relative; margin-bottom: 10px; display: flex; gap: 8px; }
.map-search .input { flex: 1; padding-left: 42px !important; min-width: 0; }
.map-search > .bi { position: absolute; left: 15px; top: 17px; color: var(--muted); z-index: 2; }
.map-canvas { height: 360px; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; background: var(--bg-alt); z-index: 1; }
.map-canvas.tall { height: 520px; }
.map-results { position: absolute; z-index: 1200; left: 0; right: 0; top: 52px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; display: none; }
.map-results.show { display: block; }
.map-results button { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer; font-size: .9rem; color: var(--text); }
.map-results button:hover { background: rgba(var(--accent-rgb), .12); }
.map-coords { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.pac-container { z-index: 3000 !important; }

/* Estimasi biaya */
.estimate-box { position: sticky; top: calc(var(--header-h) + 20px); }
.estimate-card { background: var(--primary); color: var(--primary-contrast); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.estimate-card h3 { color: var(--primary-contrast); display: flex; align-items: center; gap: 10px; }
.estimate-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.2); font-size: .95rem; }
:root[data-theme="dark"] .estimate-row { border-color: rgba(0,0,0,.2); }
.estimate-row span:last-child { font-weight: 500; text-align: right; }
.estimate-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.estimate-total strong { font: 400 1.9rem/1 var(--font-head); }
.estimate-note { font-size: .82rem; opacity: .8; margin-top: 14px; }
.estimate-summary { margin-top: 18px; font-size: .88rem; opacity: .9; }
.estimate-summary div { display: flex; gap: 8px; margin-bottom: 4px; }

/* =====================================================================
   ALERT / BADGE / KARTU UMUM
   ===================================================================== */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-size: .95rem; animation: fadeUp .5s var(--ease); }
.alert .bi { font-size: 1.15rem; margin-top: 1px; }
.alert span { flex: 1; }
.alert-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert-success { background: rgba(46,125,91,.1); border-color: rgba(46,125,91,.35); color: var(--success); }
.alert-error { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.35); color: var(--danger); }
.alert-info { background: rgba(47,111,159,.08); border-color: rgba(47,111,159,.3); color: var(--info); }
.alert-warning { background: rgba(183,121,31,.1); border-color: rgba(183,121,31,.35); color: var(--warning); }
.flash-wrap { position: fixed; z-index: 3000; top: 96px; right: 20px; width: min(420px, calc(100vw - 40px)); }
.flash-wrap .alert { background: var(--surface); box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 30px; font-size: .76rem; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: var(--success); color: #fff; }
.badge-warning { background: var(--warning); color: #fff; }
.badge-danger { background: var(--danger); color: #fff; }
.badge-info { background: var(--info); color: #fff; }
.badge-primary { background: var(--accent); color: #fff; }
.badge-muted { background: var(--bg-alt); color: var(--muted); border-color: var(--border); }
.badge-outline-success { border-color: var(--success); color: var(--success); }
.badge-outline-warning { border-color: var(--warning); color: var(--warning); }
.badge-outline-danger { border-color: var(--danger); color: var(--danger); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-title h3, .card-title h4 { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--heading); word-break: break-word; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* =====================================================================
   KONTAK
   ===================================================================== */
.contact-info-card { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .4s; }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.contact-info-card .ci-icon { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.5rem; transition: .5s; }
.contact-info-card:hover .ci-icon { background: var(--accent); color: #fff; transform: rotateY(180deg); }
.contact-info-card h4 { margin-bottom: 4px; }
.contact-info-card p { margin: 0; color: var(--muted); }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip { padding: 9px 18px; border-radius: 30px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; gap: 8px; transition: .3s; }
.area-chip:hover { border-color: var(--accent); color: var(--accent); }
.area-chip .bi { color: var(--accent); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--dark-band); color: #b9b3a6; padding-top: 90px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/420px; opacity: .04; pointer-events: none; }
.site-footer .logo, .site-footer h4 { color: #fff; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { position: relative; padding-bottom: 14px; margin-bottom: 22px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9b3a6; display: inline-flex; align-items: center; gap: 8px; transition: .3s; }
.footer-links a:hover { color: var(--accent); transform: translateX(6px); }
.footer-contact p { display: flex; gap: 12px; margin-bottom: 12px; }
.footer-contact .bi { color: var(--accent); margin-top: 3px; }
.footer-contact a { color: #b9b3a6; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: #fff; transition: .35s; }
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-4px) rotate(360deg); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: #b9b3a6; }

/* Tombol ke atas & WA mengambang */
.to-top { position: fixed; right: 24px; bottom: 96px; z-index: 800; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .4s; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: var(--primary-contrast); }

/* =====================================================================
   WIDGET CHAT
   ===================================================================== */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 1100; width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(var(--accent-rgb), .8);
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.chat-launcher::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.2s infinite; }
.chat-launcher:hover { transform: scale(1.08) rotate(-8deg); }
.chat-launcher .dot { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); font-size: .7rem; display: none; place-items: center; padding: 0 5px; }
.chat-launcher .dot.show { display: grid; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 1100; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 130px));
  background: var(--surface); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transform-origin: bottom right; transition: .35s var(--ease);
}
.chat-panel.open { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 520px) { .chat-panel { right: 12px; bottom: 90px; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--primary); color: var(--primary-contrast); }
.chat-head .avatar { background: var(--accent); width: 44px; height: 44px; }
.chat-head strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.1rem; }
.chat-head small { opacity: .8; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.chat-head .icon-btn { margin-left: auto; width: 36px; height: 36px; background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 84%; display: flex; flex-direction: column; animation: fadeUp .35s var(--ease); }
.chat-msg .bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); white-space: pre-wrap; word-wrap: break-word; font-size: .93rem; line-height: 1.5; }
.chat-msg .meta { font-size: .7rem; color: var(--muted); margin: 3px 6px 0; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.mine .bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-bottom-right-radius: 4px; }
.chat-msg.other .bubble { border-bottom-left-radius: 4px; }
.chat-msg.from-system { align-self: center; max-width: 92%; }
.chat-msg.from-system .bubble { background: transparent; border-style: dashed; font-size: .8rem; color: var(--muted); text-align: center; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-quick button, .chat-quick a { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font-size: .8rem; cursor: pointer; transition: .25s; line-height: 1.3; text-align: left; }
.chat-quick button:hover, .chat-quick a:hover { background: var(--accent); color: #fff; }
.chat-quick[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 30px; border: 1px solid var(--border); background: var(--input-bg); }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 1.1rem; transition: .3s; }
.chat-form button:hover { background: var(--primary); color: var(--primary-contrast); transform: rotate(-20deg); }
.chat-foot { display: flex; justify-content: center; gap: 14px; padding: 0 12px 10px; background: var(--surface); font-size: .78rem; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-3px); } }
.chat-inline { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 460px; }
.chat-inline .chat-body { flex: 1; }

/* =====================================================================
   ANIMASI SCROLL (reveal)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.auth-side { position: relative; background: #13201c url("../img/about-1.svg") center/cover; color: #fff; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,12,.1), rgba(8,14,12,.85)); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; }
.auth-form { padding: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { min-height: 220px; padding: 30px; } }

.option-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 38px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .45s var(--ease); height: 100%; }
.option-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.option-card .feature-icon { margin-bottom: 6px; }
.option-card ul { text-align: left; color: var(--muted); font-size: .93rem; flex: 1; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(var(--accent-rgb), .05); }
.table .num { text-align: right; white-space: nowrap; }

/* Invoice */
.invoice { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 5vw, 50px); }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--accent); margin-bottom: 26px; }
.invoice-total { font: 400 2rem var(--font-head); color: var(--accent); }
@media print {
  .site-header, .topbar, .site-footer, .chat-launcher, .chat-panel, .to-top, .no-print, .page-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .invoice { border: 0; box-shadow: none; }
}

/* Tata letak konten + sidebar */
.layout-side { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.layout-side-rev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout-side, .layout-side-rev { grid-template-columns: minmax(0, 1fr); } .estimate-box { position: static; } }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .sticky-side { position: static; } }

/* Layar sangat kecil */
html { overflow-x: clip; }
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .site-header .container { gap: 10px; }
  .logo { gap: 8px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text strong { font-size: 1.25rem; letter-spacing: .1em; }
  .logo-text small { letter-spacing: .3em; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .btn { padding: 13px 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
