/* The Dental Home: deep pine + terracotta on warm cream.
   Bricolage Grotesque + Figtree. Friendly, family, "home" rather than clinical. */
:root {
  --pine: #143f37;
  --pine-2: #1d5548;
  --terra: #d9623b;
  --terra-2: #bf5130;
  --peach: #fbe3d6;
  --sage: #e4eee8;
  --cream: #fbf6ee;
  --sand: #f3eadc;
  --text: #1e2a26;
  --muted: #5b6662;
  --line: #e6dccb;
  --white: #ffffff;
  --radius: 22px;
  --max: 1120px;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; color: var(--pine); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 9vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 6vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h1 .hl, h2 .hl { color: var(--terra); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 60px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--terra-2); margin-bottom: .8em; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--terra); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.urdu { font-family: "Noto Nastaliq Urdu", serif; direction: rtl; line-height: 2.1; font-size: 1.25rem; color: var(--terra-2); margin: 0 0 .6em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 24px; border-radius: 14px; border: 2px solid var(--pine); background: var(--pine); color: var(--white); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; }
.btn:hover { background: var(--pine-2); }
.btn:active { transform: translateY(1px); }
.btn.terra { background: var(--terra); border-color: var(--terra); box-shadow: 0 6px 0 var(--terra-2); }
.btn.terra:hover { background: var(--terra-2); }
.btn.terra:active { box-shadow: 0 3px 0 var(--terra-2); transform: translateY(3px); }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: var(--sage); }
.btn.light { background: var(--white); border-color: var(--white); color: var(--pine); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }
.more { font-weight: 700; color: var(--terra-2); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Header */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(251,246,238,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.brand small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.nav-toggle { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--sage); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--pine); border-radius: 2px; content: ""; transition: transform .2s; }
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
nav.main { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; flex-direction: column; }
nav.main.open { display: flex; }
nav.main a { padding: 13px 4px; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
nav.main a[aria-current] { color: var(--terra-2); }
nav.main .btn { margin-top: 14px; border-bottom: 2px solid var(--terra); color: var(--white); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  nav.main { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; background: none; }
  nav.main a { border: 0; padding: 8px 12px; border-radius: 10px; }
  nav.main a:hover { background: var(--sand); }
  nav.main .btn { margin: 0 0 0 10px; padding: 10px 18px; box-shadow: 0 4px 0 var(--terra-2); }
  nav.main .btn:hover { background: var(--terra-2); }
}

/* Hero */
.hero { padding: 32px 0 56px; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero p.lead { margin-bottom: 1.4em; }
.arch { position: relative; }
.arch img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); }
.arch::before { content: ""; position: absolute; inset: auto -10px -10px auto; width: 62%; height: 58%; background: var(--peach); border-radius: var(--radius); z-index: -1; }
.badge { position: absolute; left: -6px; bottom: 22px; background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(20,63,55,.16); display: flex; align-items: center; gap: 10px; max-width: 82%; }
.badge .stars { color: #f2a93b; letter-spacing: 1px; font-size: 1.05rem; }
.badge b { display: block; font-family: var(--display); color: var(--pine); line-height: 1.15; }
.badge small { color: var(--muted); font-size: .8rem; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.quick div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: .9rem; color: var(--muted); }
.quick b { display: block; color: var(--pine); font-family: var(--display); font-size: 1.05rem; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .arch img { aspect-ratio: 4 / 4.6; }
}

/* Sections */
.alt { background: var(--sand); }
.pine { background: var(--pine); color: #d9e6e1; }
.pine h2, .pine h3 { color: var(--white); }
.pine .kicker { color: #f4b79d; }
.pine .kicker::before { background: #f4b79d; }
.section-head { margin-bottom: 28px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.split > img, .rounded { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }

/* Treatments as numbered rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: t; }
.rows > li { counter-increment: t; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-content: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows > li::before { content: counter(t, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 9; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--terra); padding-top: 2px; }
.rows > li > * { grid-column: 2; justify-self: start; }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--muted); }
.rows ul { margin: 6px 0 2px; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.rows ul li { padding: 2px 0; }
.rows ul li::marker { color: var(--terra); }
.rows .more { font-size: .95rem; margin-top: 4px; }
@media (min-width: 860px) { .rows.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* Doctors */
.doc { display: flex; flex-direction: column; gap: 14px; }
.doc .avatar { width: 76px; height: 76px; border-radius: 24px; background: var(--peach); color: var(--terra-2); display: grid; place-items: center; font: 800 1.45rem var(--display); flex: none; }
img.avatar { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; background: var(--peach); border: 3px solid var(--peach); }
.doc .role { color: var(--terra-2); font-weight: 700; font-size: .92rem; margin: -6px 0 8px; }
.doc .rating { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.doc .rating .stars { color: #f2a93b; }
.doc .rating b { color: var(--pine); }
.tag { display: inline-block; background: var(--sage); color: var(--pine-2); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; margin: 0 6px 6px 0; }
@media (min-width: 560px) { .doc { flex-direction: row; } }

/* Who we see (family) */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.family div { background: var(--white); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.family .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--peach); display: grid; place-items: center; margin-bottom: 10px; }
.family svg { width: 22px; height: 22px; stroke: var(--terra-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.family b { display: block; font-family: var(--display); color: var(--pine); font-size: 1.05rem; }
.family span { font-size: .9rem; color: var(--muted); }
@media (min-width: 860px) { .family { grid-template-columns: repeat(4, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--terra); color: var(--white); display: grid; place-items: center; font: 800 1rem var(--display); }
.steps b { display: block; color: var(--white); font-family: var(--display); font-size: 1.08rem; }
.alt .steps li, .steps.light li { background: var(--white); border-color: var(--line); }
.alt .steps b, .steps.light b { color: var(--pine); }

/* Reviews band */
.reviews { display: grid; gap: 18px; align-items: center; background: var(--peach); border-radius: var(--radius); padding: 28px 22px; }
.reviews .big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem); color: var(--terra-2); line-height: 1; }
.reviews .stars { color: #f2a93b; font-size: 1.4rem; letter-spacing: 2px; }
@media (min-width: 860px) { .reviews { grid-template-columns: auto 1fr auto; padding: 34px 40px; gap: 34px; } }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding: 9px 0 9px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 7px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143f37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Timings */
.hours { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.hours td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { background: var(--sage); }
.hours tr.today td:first-child::after { content: " · today"; color: var(--terra-2); font-weight: 700; font-size: .85rem; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Page hero */
.page-hero { padding: 40px 0 34px; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: .25em; }
.page-hero p { color: var(--muted); max-width: 36em; margin: 0; font-size: 1.08rem; }
.crumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding: 6px 2px 0; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 16 / 9; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.strip img { flex: 0 0 72%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; scroll-snap-align: start; }
@media (min-width: 860px) { .strip { overflow: visible; } .strip img { flex: 1 1 0; min-width: 0; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; }
dialog.lightbox::backdrop { background: rgba(10,30,26,.88); }
dialog.lightbox img { max-height: 80vh; border-radius: 14px; }
dialog.lightbox p { color: var(--white); text-align: center; margin: 10px 0 0; }
dialog.lightbox button { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

/* Forms */
.booking-layout { display: grid; gap: 22px; }
@media (min-width: 960px) { .booking-layout { grid-template-columns: 1.35fr .9fr; align-items: start; } }
.form-card { background: var(--white); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,63,55,.07); }
@media (min-width: 560px) { .form-card { padding: 30px; } }
.form-card h2 { font-size: 1.6rem; }
form.booking { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-weight: 700; font-size: .95rem; color: var(--pine); }
.field small, .form-note { color: var(--muted); font-size: .85rem; }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--text); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 50px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-2); box-shadow: 0 0 0 4px rgba(29,85,72,.14); background: var(--white); }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; font-size: .95rem; }
.chips input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--white); }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(29,85,72,.25); }
.two { display: grid; gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
form.booking .btn { width: 100%; }

/* CTA + footer */
.cta { background: var(--terra); color: var(--white); border-radius: var(--radius); padding: 30px 22px; display: grid; gap: 18px; }
.cta h2 { color: var(--white); margin-bottom: .2em; }
.cta p { margin: 0; color: #ffe9df; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 40px 44px; } }
footer.site { background: var(--pine); color: #b9cdc6; padding: 48px 0 100px; font-size: .95rem; }
footer.site h3 { color: var(--white); font-size: 1.05rem; }
footer.site a { color: var(--white); }
footer.site .grid { gap: 26px; }
@media (min-width: 760px) { footer.site .grid { grid-template-columns: 1.3fr 1fr 1fr; } }
footer.site .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* Placeholder review mode: add ?ph to the URL */
.ph-on [data-ph] { outline: 2px dashed #e0399b; outline-offset: 3px; }
