/* =========================================================================
   Klinik Dental Senyum Sehat — tema LOW_MEMORY_DEV
   Palet: teal #078A91, teal gelap #056B74, navy #173149,
          abu pucat #F3F8FA, aksen emas #D8A64A
   ========================================================================= */
:root {
  --teal: #078A91;
  --teal-dark: #056B74;
  --navy: #173149;
  --pale: #F3F8FA;
  --gold: #D8A64A;
  --muted: #6b7c8a;
  --line: #e2ecf0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 49, 73, .08);
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .fw-800 { font-weight: 800; letter-spacing: -.02em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* --- Tombol --------------------------------------------------------------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-teal { background: var(--teal); border: 1.5px solid var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-teal { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold); border: 1.5px solid var(--gold); color: #3a2a08; }
.btn-gold:hover { background: #c8943a; color: #3a2a08; }

/* --- Topbar & Navbar ------------------------------------------------------ */
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 0; font-size: .86rem; }
.topbar .brand-line { display: flex; align-items: center; gap: .6rem; }
.topbar .brand-line img { height: 40px; }
.topbar .info { display: flex; gap: 1.4rem; color: var(--muted); }
.topbar .info .item { display: flex; align-items: center; gap: .4rem; }
.topbar .info svg { width: 16px; height: 16px; color: var(--teal); }

.navbar-senyum { background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.navbar-senyum .nav-link { color: var(--navy); font-weight: 600; padding: .5rem .9rem !important; }
.navbar-senyum .nav-link.active { color: var(--teal); position: relative; }
.navbar-senyum .nav-link.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem;
  height: 3px; border-radius: 3px; background: var(--teal);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #eaf7f8 0%, #d6eef0 45%, #f3f8fa 100%);
  padding: 3.2rem 0 5rem;
}
.hero .eyebrow { color: var(--teal-dark); font-weight: 700; letter-spacing: .18em; font-size: .78rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; color: var(--navy); }
.hero h1 .accent { color: var(--teal); }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.hero-illus { max-width: 100%; height: auto; border-radius: 20px; }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); font-weight: 600; font-size: .9rem; }
.trust-badge svg { width: 20px; height: 20px; color: var(--teal); }

/* --- Seksi umum ----------------------------------------------------------- */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.4rem; }
.section-title h2 { color: var(--navy); margin: 0; display: inline-flex; align-items: center; gap: .8rem; }
.section-title h2::before,
.section-title h2::after { content: ""; width: 42px; height: 3px; background: var(--gold); border-radius: 3px; }
.section-title p { color: var(--muted); margin-top: .6rem; }

/* --- Kartu layanan -------------------------------------------------------- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem; height: 100%; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img, .service-card .ico { width: 64px; height: 64px; margin-bottom: .7rem; }
.service-card .name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.service-card .sub { color: var(--muted); font-size: .8rem; }

/* --- Galeri before/after -------------------------------------------------- */
.gallery-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.gallery-card img { width: 100%; height: auto; display: block; }
.gallery-card .body { padding: .9rem 1rem; }
.gallery-card .title { font-weight: 700; font-size: .96rem; }
.gallery-card .desc { color: var(--muted); font-size: .84rem; }
.pill-demo { font-size: .68rem; font-weight: 700; background: var(--gold); color: #3a2a08; border-radius: 999px; padding: .15rem .55rem; }

.promo-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 100%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; padding: 1.6rem;
}
.promo-card .badge-promo { background: var(--gold); color: #3a2a08; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; }
.promo-card h3 { color: #fff; margin: .7rem 0 .2rem; }

/* --- Strip fitur ---------------------------------------------------------- */
.feature-strip { background: var(--pale); padding: 3rem 0; border-radius: 24px 24px 0 0; }
.feature-item { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; }
.feature-item svg { width: 26px; height: 26px; color: var(--teal); flex: 0 0 auto; margin-top: .15rem; }
.feature-item .t { font-weight: 700; font-size: .95rem; }
.feature-item .d { color: var(--muted); font-size: .82rem; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--navy); color: #c9d6df; padding: 3rem 0 1.5rem; }
.footer a { color: #c9d6df; }
.footer a:hover { color: #fff; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .82rem; color: #8fa3b3; }

/* --- Util ---------------------------------------------------------------- */
.text-muted-2 { color: var(--muted); }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice-empty { background: #fff7e6; border: 1px dashed var(--gold); border-radius: 12px; padding: .8rem 1rem; color: #7a5a12; font-size: .88rem; }
.badge-soft { background: var(--pale); color: var(--teal-dark); border-radius: 999px; padding: .2rem .6rem; font-size: .74rem; font-weight: 700; }
.bg-teal { background-color: var(--teal) !important; }
.skeleton { background: linear-gradient(90deg, #eef4f6 25%, #e2ecef 37%, #eef4f6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Aksesibilitas fokus */
a:focus-visible, .btn:focus-visible, .nav-link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(7,138,145,.5); outline-offset: 2px;
}

/* Foto dokter (halaman Tim Dokter) */
.doctor-photo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto .75rem;
}

/* Kartu "Hasil Perawatan Pasien" — mengikuti desain referensi */
.hasil-card {
  background: #fff;
  border: 1px solid var(--line, #e3eaef);
  border-radius: 18px;
  padding: .9rem .9rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(15, 42, 66, .05);
}
.hasil-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; }
.hasil-head .ico {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 10px; background: #e6f4f2;
}
.hasil-head .ico img { width: 24px; height: 24px; }
.hasil-head h3 { font-size: 1rem; line-height: 1.25; font-weight: 700; margin: 0; color: var(--navy, #0b2d4a); }
.hasil-pair { border-radius: 12px; overflow: hidden; background: #f2f6f8; }
.hasil-pair img { width: 100%; height: auto; display: block; }
.hasil-note {
  margin: .7rem 0 0;
  font-size: .85rem; line-height: 1.45; color: var(--muted, #5b6b7c);
  display: flex; gap: .45rem; align-items: flex-start;
}
.hasil-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--teal, #0f766e); }
.hasil-badge {
  display: inline-block; align-self: flex-start; margin: .55rem 0 0; padding: .12rem .5rem;
  font-size: .66rem; letter-spacing: .08em; font-weight: 700;
  color: #0f766e; background: #e6f4f2; border-radius: 999px;
}

/* Hero memakai gutter g-5 (48px) — samakan padding container agar tidak overflow 12px */
.hero .container { padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) {
  .hero .container { padding-left: 20px; padding-right: 20px; }
}

/* Deskripsi footer: dua baris rapi & seimbang */
.footer-desc { line-height: 1.55; font-size: .9rem; }
@media (min-width: 992px) { .footer-desc { white-space: nowrap; font-size: .78rem; } }

/* Tombol WhatsApp melayang (kanan bawah) */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1080;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 26px rgba(0,0,0,.3); }
.wa-float:active { transform: scale(.97); }
@media (max-width: 575.98px) { .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* Tombol kirim booking via WhatsApp */
.btn-wa {
  background: #25D366; border-color: #25D366; color: #08301a; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-wa:hover, .btn-wa:focus { background: #1fbe5a; border-color: #1fbe5a; color: #04220f; }
