/* ==========================================================
   PulihKu — Fisioterapi Home Visit Surabaya
   Palet: teal dalam + sage + krem hangat, satu aksen terracotta untuk CTA
   ========================================================== */

:root {
  /* warna */
  --ink: #10231f;
  --ink-soft: #3b544b;
  --muted: #4a6b5c;
  --teal-900: #0e3b34;
  --teal-800: #12463d;
  --teal-700: #14544a;
  --sage-500: #7f9c86;
  --sage-200: #cbdccd;
  --sage-100: #e4ede4;
  --cream: #f7f4ee;
  --cream-2: #efeae1;
  --white: #ffffff;
  --accent: #c2551f;
  --accent-dark: #a8431a;
  --accent-soft: #f6e5d9;
  --line: #dcd6c9;
  --line-dark: rgba(203, 220, 205, 0.24);

  /* tipografi */
  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 2vw, 2.6rem);
  --text-hero: clamp(2.35rem, 1.6rem + 4.6vw, 4.3rem);

  /* ruang */
  --sp-1: 0.375rem;
  --sp-2: 0.75rem;
  --sp-3: 1.125rem;
  --sp-4: 1.75rem;
  --sp-5: 2.5rem;
  --sp-6: 3.5rem;
  --sp-7: 5rem;
  --sp-8: 7rem;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 31, 0.06), 0 8px 24px -14px rgba(16, 35, 31, 0.24);
  --shadow-md: 0 2px 6px rgba(16, 35, 31, 0.07), 0 24px 50px -26px rgba(16, 35, 31, 0.35);
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --header-h: 68px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 var(--sp-2); }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-900); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 12px 0; font-size: var(--text-sm);
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.section { padding: var(--sp-7) 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--teal-900); color: var(--sage-100); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-2);
}
.section-dark .eyebrow { color: var(--sage-200); }

.sec-head { max-width: 720px; margin-bottom: var(--sp-5); }
.sec-head h2 { font-size: var(--text-2xl); }
.sec-sub { color: var(--muted); font-size: var(--text-lg); margin-top: var(--sp-2); }
.section-dark .sec-sub { color: var(--sage-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 244, 238, 0.96); }
.header-inner { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; color: var(--teal-700); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-label { font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.header-nav { display: none; gap: var(--sp-3); font-size: var(--text-sm); font-weight: 500; }
.header-nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.header-nav a:hover { color: var(--teal-900); border-bottom-color: var(--accent); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.25rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-sm { min-height: 44px; padding: 0.55rem 1rem; font-size: var(--text-xs); }
.btn-lg { min-height: 56px; padding: 0.95rem 1.6rem; font-size: var(--text-base); }

.btn-accent { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--teal-900); border-color: var(--sage-500); }
.btn-ghost:hover { background: var(--sage-100); border-color: var(--teal-700); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--line-dark); width: 100%; }
.btn-outline:hover { background: rgba(203, 220, 205, 0.14); border-color: var(--sage-200); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: var(--sp-6) 0 var(--sp-7); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 48% at 88% 8%, rgba(127, 156, 134, 0.22), transparent 70%),
    radial-gradient(46% 42% at 4% 92%, rgba(194, 85, 31, 0.09), transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: var(--sp-6); }
.hero-copy h1 { font-size: var(--text-hero); margin-bottom: var(--sp-3); }
.hero-copy h1 em {
  font-style: normal; color: var(--teal-700);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-size: 100% 0.16em; background-position: 0 88%; background-repeat: no-repeat;
}
.lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-4); }
.hero-cta .btn { flex: 1 1 auto; }

.cred-strip {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding-top: var(--sp-3); border-top: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-soft); font-weight: 500;
}
.cred-strip li { display: flex; align-items: flex-start; gap: 0.55rem; }
.tick { width: 18px; height: 18px; flex: 0 0 auto; color: var(--teal-700); margin-top: 2px; }

.hero-media { position: relative; }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo-inset {
  margin: 0; position: absolute; right: 12px; bottom: -26px; width: 36%; max-width: 210px;
  border-radius: 18px; overflow: hidden; border: 5px solid var(--cream); box-shadow: var(--shadow-md);
}
.hero-photo-inset { z-index: 2; }
.hero-photo-inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-badge {
  margin-top: 2.4rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--teal-900); color: var(--sage-100);
  padding: 0.7rem 1rem; border-radius: 16px; box-shadow: var(--shadow-md);
  max-width: 15rem;
}
.hero-badge-num { font-family: var(--font-display); font-size: 1.7rem; white-space: nowrap; font-weight: 700; color: var(--white); line-height: 1; }
.hero-badge-txt { font-size: 0.75rem; line-height: 1.35; }

/* ---------- kartu segmen ---------- */
.cards-3 { display: grid; gap: var(--sp-4); }
.seg-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.seg-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.seg-body { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.seg-body h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.seg-note {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-500); margin: var(--sp-3) 0 0.35rem;
}
.seg-body p { color: var(--ink-soft); font-size: var(--text-sm); }
.ticks { display: flex; flex-direction: column; gap: 0.45rem; font-size: var(--text-sm); color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 1.35rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sage-500);
}
.seg-sessions {
  margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px dashed var(--line);
  font-size: var(--text-sm); color: var(--teal-700) !important;
}

/* ---------- perbandingan ---------- */
.compare-grid { display: grid; gap: var(--sp-5); align-items: start; }
.compare-copy h2 { font-size: var(--text-2xl); }
.compare-photo { margin: var(--sp-4) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.compare-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ct-head, .ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ct-head { background: var(--teal-900); }
.ct-head .ct-col { color: var(--white); font-weight: 700; font-size: var(--text-sm); padding: 0.85rem var(--sp-3); }
.ct-head .ct-col-muted { color: var(--sage-200); font-weight: 500; }
.ct-row { border-top: 1px solid var(--line); position: relative; }
.ct-label {
  grid-column: 1 / -1; margin: 0; padding: 0.7rem var(--sp-3) 0.1rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-500);
}
.ct-col { padding: 0.5rem var(--sp-3) 0.9rem; font-size: var(--text-sm); }
.ct-col-strong { color: var(--teal-900); font-weight: 500; background: rgba(228, 237, 228, 0.55); }
.ct-col-muted { color: var(--muted); }

/* ---------- langkah ---------- */
.steps { display: grid; gap: var(--sp-4); counter-reset: s; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3); position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateY(-3px); border-color: var(--sage-500); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sage-100); color: var(--teal-700);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}
.step h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }

.cara-photo { margin: var(--sp-5) 0 0; }
.cara-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cara-photo figcaption { margin-top: var(--sp-2); font-size: var(--text-sm); color: var(--muted); font-style: italic; }

/* ---------- harga ---------- */
.price-grid { display: grid; gap: var(--sp-3); }
.price-card {
  background: var(--teal-800); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--sage-200); }
.price-card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; color: var(--white); }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); margin: 0.5rem 0 0.1rem; line-height: 1.05; }
.price-unit { font-size: var(--text-xs); color: var(--sage-200); margin-bottom: var(--sp-3); }
.price-card .ticks { color: var(--sage-100); margin-bottom: var(--sp-4); }
.price-card .ticks li::before { background: var(--sage-500); }
.price-card .btn { margin-top: auto; }
.price-card-featured {
  background: linear-gradient(165deg, #175d51, #0f463d);
  border: 1.5px solid var(--sage-500);
  box-shadow: 0 26px 54px -28px rgba(0, 0, 0, 0.7);
}
.ribbon {
  position: absolute; top: -13px; left: var(--sp-3);
  background: var(--accent); color: var(--white);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 999px; margin: 0;
}
.price-notes {
  margin-top: var(--sp-4); padding: var(--sp-3);
  border: 1px dashed var(--line-dark); border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--sage-200);
}
.price-notes p:last-child { margin-bottom: 0; }
.price-notes strong { color: var(--white); }

/* ---------- wilayah ---------- */
.area-grid { display: grid; gap: var(--sp-3); }
.area-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.area-card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.35rem; color: var(--teal-900); }
.area-card p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: var(--sp-3) 0; font-family: var(--font-body); font-size: var(--text-lg);
  font-weight: 700; color: var(--teal-900); line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--accent-dark); }
.chev { width: 22px; height: 22px; flex: 0 0 auto; color: var(--sage-500); transition: transform 0.35s var(--ease), color 0.2s var(--ease); }
.faq-q:hover .chev { color: var(--accent-dark); }
.faq-item.is-open .chev { transform: rotate(180deg); color: var(--accent-dark); }
.faq-a { height: 0; overflow: hidden; transition: height 0.38s var(--ease); }
.faq-a-inner { padding: 0 0 var(--sp-3); }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: var(--text-base); max-width: 62ch; }

/* ---------- CTA penutup ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--teal-900), #0a2d28 70%);
  color: var(--sage-100); padding: var(--sp-7) 0; text-align: center;
}
.cta-inner h2 { font-size: var(--text-2xl); color: var(--white); margin-bottom: var(--sp-2); }
.cta-inner p { color: var(--sage-200); font-size: var(--text-lg); }
.cta-inner .btn { margin-top: var(--sp-4); }
.cta-meta { font-size: var(--text-sm) !important; color: var(--sage-200); margin-top: var(--sp-3); }

/* ---------- footer ---------- */
.site-footer { background: #08201c; color: var(--sage-200); padding: var(--sp-6) 0 var(--sp-4); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--sp-5); }
.brand-footer { color: var(--white); margin-bottom: var(--sp-2); }
.brand-footer .brand-mark { color: var(--sage-200); }
.brand-footer .brand-label { color: var(--sage-500); white-space: normal; }
.brand-footer .brand-name { font-size: 1.15rem; line-height: 1.2; }
.footer-note { color: var(--sage-500); max-width: 38ch; }
.footer-col h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-2); }
.footer-col p { margin-bottom: 0.5rem; }
.footer-link {
  color: var(--sage-200); text-decoration: none; border-bottom: 1px solid transparent;
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-link:hover { color: var(--white); border-bottom-color: var(--accent); }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid rgba(203, 220, 205, 0.16); }
.disclaimer { color: var(--sage-200); max-width: 68ch; }
.copyright { color: var(--sage-500); font-size: var(--text-xs); margin: 0; }

/* ---------- floating WhatsApp ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.15rem;
  background: var(--accent); color: var(--white);
  font-weight: 700; font-size: var(--text-sm); text-decoration: none;
  border-radius: 999px; box-shadow: 0 14px 34px -10px rgba(16, 35, 31, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s var(--ease), background-color 0.2s var(--ease);
}
.fab.is-shown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab:hover { background: var(--accent-dark); transform: translateY(-2px) scale(1.02); }
.fab .ico { width: 24px; height: 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsif
   ========================================================== */
@media (min-width: 560px) {
  .cred-strip { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
  .cred-strip li { flex: 0 1 auto; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 0 0 auto; }
}

@media (min-width: 860px) {
  .header-nav { display: flex; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); }
  .section { padding: var(--sp-8) 0; }
  .ct-row { grid-template-columns: 150px 1fr 1fr; align-items: stretch; }
  .ct-head { grid-template-columns: 150px 1fr 1fr; }
  .ct-head::before { content: ""; }
  .ct-label { grid-column: 1; padding: 0.9rem var(--sp-3); align-self: center; }
  .ct-col { padding: 0.9rem var(--sp-3); }
}

@media (min-width: 1000px) {
  .hero { padding: var(--sp-6) 0 var(--sp-7); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--sp-6); }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-photo-inset { right: -34px; bottom: -34px; width: 42%; }
  .hero-badge { position: absolute; left: -34px; bottom: -26px; margin-top: 0; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- penyesuaian layar sangat kecil ---------- */
@media (max-width: 559px) {
  .hero-badge { max-width: 12.5rem; }
  .brand-label { font-size: 0.5rem; letter-spacing: 0.04em; white-space: nowrap; }
  .brand-name { font-size: 1.02rem; white-space: nowrap; }
  .brand-mark { width: 26px; height: 26px; }
  .brand { gap: 8px; }
  .header-cta-text { display: none; }
  .header-cta { padding: 0.55rem; min-width: 44px; }
  .brand-footer .brand-label { white-space: normal; }
  .brand-footer .brand-name { font-size: 1.1rem; }
  .site-footer { padding-bottom: 92px; }
  .btn-sm { padding: 0.55rem 0.85rem; }
  .fab { right: 12px; bottom: 12px; }
}
