/* Lumina Dental Medika: values follow the "Lumina Dental Medika" design system (tokens.json). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --teal: #0b4f4f;
  --teal-dark: #073838;
  --ink: #2e2829;
  --ink-muted: #5e5759;
  --krem: #f5f5ee;
  --surface: #ffffff;
  --dinding: #dce4e6;
  --kayu: #b08a62;
  --line: #eceae2;
  --line-strong: #d6d3c8;
  --status-open: #1e8a4c;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--krem); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Header */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-name span { font-size: 12px; color: var(--ink-muted); }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding: 6px 0; }
.nav a:hover { color: var(--teal); }
@media (min-width: 900px) { .nav { order: 0; width: auto; overflow: visible; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-secondary:hover { background: var(--surface); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.header .btn { display: none; }
@media (min-width: 700px) { .header .btn { display: inline-flex; } }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 24px 0 64px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 0.95fr; gap: 56px; padding: 40px 0 80px; } }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-muted); }
.status.is-open .status-dot { background: var(--status-open); }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.h1-brand { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.lead { max-width: 40ch; font-size: 19px; color: var(--ink-muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-muted); }
.meta a { color: var(--ink-muted); }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dinding); aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 4 / 3; } }
.chip { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: var(--krem); font-size: 13px; font-weight: 600; }

/* Fact strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 20px 0; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.fact strong { font-weight: 600; }
.fact span:last-child { font-size: 14px; color: var(--ink-muted); }

/* Sections */
.section { display: flex; flex-direction: column; gap: 28px; padding-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.section h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
.note { max-width: 48ch; font-size: 15px; color: var(--ink-muted); }

/* Prices */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border-radius: var(--radius-md); }
.price-card { display: flex; flex-direction: column; padding: 22px 24px; }
.price-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-row span { flex: 1 1 9em; min-width: 0; }
.price-row b { flex: 0 0 auto; margin-left: auto; font-weight: 700; text-align: right; white-space: nowrap; }
.price-card .ask { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 700; }
.price-card .links { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 700; }
.price-row b small { font-weight: 600; font-size: 13px; color: var(--ink-muted); }
.price-row span small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 24px; border-radius: var(--radius-md); background: var(--dinding); }
.band strong { display: block; font-size: 18px; font-weight: 800; }
.band span { font-size: 15px; color: #3f3a3b; }
.band a { font-weight: 700; }

/* Before / after */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.ba-card { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ba-pair figure { position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--dinding); }
.tag { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); }
.tag-after { background: var(--teal); }
.ba-card h3 { font-size: 16px; font-weight: 700; padding: 0 6px 4px; }

/* Gallery + doctors */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.photo-grid figure { display: flex; flex-direction: column; gap: 10px; }
.photo-grid img, .avatar { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--dinding); }
.photo-grid figcaption { font-size: 14px; font-weight: 600; }
.doctor { display: flex; flex-direction: column; gap: 4px; }
.doctor .avatar { margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: clamp(32px, 6vw, 44px); font-weight: 800; color: var(--teal); letter-spacing: -0.03em; }
.doctor strong { font-weight: 700; }
.doctor span { font-size: 14px; color: var(--ink-muted); }
.doctor .doctor-note { color: var(--teal); font-weight: 600; }

/* Location */
.location { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; padding: 24px; margin-top: 88px; border-radius: var(--radius-lg); }
@media (min-width: 700px) { .location { padding: 36px; } }
.location-text { display: flex; flex-direction: column; gap: 18px; }
.location h2 { font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }
.hours { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours b { font-weight: 700; }
.shopfront { display: flex; flex-direction: column; gap: 10px; }
.shopfront img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--dinding); }
.shopfront figcaption { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.location--nomap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .location--nomap { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }
.map { min-height: 340px; border-radius: var(--radius-md); overflow: hidden; background: var(--dinding); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Footer */
.footer { margin-top: 88px; border-top: 1px solid var(--line-strong); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--ink-muted); }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 30px; height: auto; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col strong { color: var(--ink); }

/* Pinned WhatsApp bar (phones) */
.wa-bar { display: none; }
@media (max-width: 699px) {
  body { padding-bottom: 84px; }
  .wa-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; min-height: 56px; align-items: center; justify-content: center; border-radius: 16px; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 0 0 4px var(--krem); }
  .wa-bar:hover { color: #fff; background: var(--teal-dark); }
}

/* Opening-hours line (hero) */
.dayline { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.dayline-track { position: relative; height: 8px; border-radius: 999px; background: var(--line-strong); }
.dayline-open { position: absolute; top: 0; bottom: 0; left: calc(var(--o) * 100%); width: calc((var(--c) - var(--o)) * 100%); border-radius: 999px; background: var(--teal); }
.dayline.is-off .dayline-open { opacity: 0.35; }
.dayline-now { position: absolute; top: 50%; left: calc(var(--now, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--krem); opacity: 0; }
.dayline.is-ready .dayline-now { opacity: 1; }
.dayline-labels { position: relative; height: 18px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.dayline-labels span { position: absolute; top: 0; transform: translateX(-50%); }
.dayline-labels .dl-o { left: calc(var(--o) * 100%); color: var(--teal); }
.dayline-labels .dl-c { left: calc(var(--c) * 100%); color: var(--teal); }
.status-dot { position: relative; }

/* Motion: transform and opacity only, plays once, off for prefers-reduced-motion */
:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { display: inline-block; animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
  .hero .status, .hero .h1-brand { animation: fade-up 0.7s var(--ease) both; }
  .hero .lead { animation: fade-up 0.8s var(--ease) 0.55s both; }
  .hero .actions { animation: fade-up 0.8s var(--ease) 0.65s both; }
  .hero .dayline { animation: fade-up 0.8s var(--ease) 0.75s both; }
  .hero .meta { animation: fade-up 0.8s var(--ease) 0.85s both; }
  .hero-photo { animation: unveil 1.1s var(--ease) 0.15s both; }
  .hero-photo img { animation: settle 2.4s var(--ease) 0.15s both; }
  .hero-photo .chip { animation: fade-up 0.6s var(--ease) 1.1s both; }

  .dayline-open { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease) 0.9s; }
  .dayline.is-ready .dayline-open { transform: scaleX(1); }
  .dayline-now { left: 0; transition: left 1.4s var(--ease) 1.2s, opacity 0.3s ease 1.2s; }
  .dayline.is-ready .dayline-now { left: calc(var(--now, 0) * 100%); }

  .status.is-open .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status-open); animation: ping 2.4s var(--ease) infinite; }

  .motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .motion .reveal.is-in { opacity: 1; transform: none; }

  .btn { transition: transform 0.2s var(--ease), background-color 0.2s ease; }
  .btn:hover { transform: translateY(-2px); }
  }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Estimate card (treatments priced after an exam) */
.estimate { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 28px; border-radius: var(--radius-md); background: var(--teal); color: #fff; }
.estimate-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; min-width: 0; }
.estimate h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.estimate p { color: #d7e6e3; font-size: 15px; }
.estimate .estimate-list { color: #fff; font-weight: 600; font-size: 16px; }
.btn-light { background: var(--krem); color: var(--teal); }
.btn-light:hover { background: #fff; color: var(--teal-dark); }

/* Before/after gallery */
.ba-gallery { display: flex; flex-direction: column; gap: 18px; }
.chips { display: none; flex-wrap: wrap; gap: 8px; }
.has-js .chips { display: flex; }
.chip-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; }
.chip-btn span { color: var(--ink-muted); font-weight: 500; margin-left: 2px; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--krem); }
.chip-btn[aria-pressed="true"] span { color: #c9c4b8; }
.ba-track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 760px) { .ba-track { grid-auto-columns: calc((100% - 16px) / 2); } }
.ba-track > .ba-card { scroll-snap-align: start; }
.ba-track > .ba-card[hidden] { display: none; }
.ba-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ba-nav { display: none; align-items: center; gap: 12px; }
.has-js .ba-nav { display: flex; }
.ba-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.ba-btn:disabled { opacity: 0.35; cursor: default; }
.ba-count { min-width: 56px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-muted); }

/* Service pages (dist/<slug>/index.html) */
.estimate .estimate-more { color: #fff; font-weight: 700; font-size: 15px; }
.link-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--teal); border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; background: transparent; }
.link-chips a:hover { background: var(--surface); }
.link-chips .label { font-size: 14px; color: var(--ink-muted); margin-right: 2px; }
.footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
.footer-links a { color: var(--ink-muted); }
.nav a[aria-current="page"] { color: var(--teal); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.sub-hero { display: grid; gap: 32px; align-items: center; padding: 20px 0 0; }
@media (min-width: 900px) { .sub-hero.has-photo { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.sub-hero-text { display: flex; flex-direction: column; gap: 20px; }
.sub-hero h1 { font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.sub-hero .lead { max-width: 52ch; }
.sub-meta { font-size: 14px; color: var(--ink-muted); }
.sub-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--dinding); aspect-ratio: 4 / 3; }
.sub-photo img { width: 100%; height: 100%; object-fit: cover; }
.sub-sec { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; }
.sub-sec h2, .sub-block h2 { font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.sub-block h2 { font-size: 20px; }
.sub-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; padding-top: 56px; }
.sub-block { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-md); background: var(--surface); }
.sub-block ul, .sub-block ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.sub-block p { max-width: 62ch; }
.sub-price { max-width: 680px; }
.sub-price h2 { margin-bottom: 6px; }
.sub-price .est { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sub-price .note { padding-top: 12px; }
.faq details { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { max-width: 70ch; padding-top: 8px; color: var(--ink-muted); }
.sub-note { padding-top: 24px; }
