/* =========================================================
   Dental Cottage Vista Bangi — design system
   Brand: dusty rose + warm cream + deep plum, with a sage accent.
   Motif: cottage (arched windows, rooflines, soft rounded shapes).
   ========================================================= */
:root {
  --cream: #fffaf7;
  --blush: #f9eef0;
  --rose-100: #f3dfe3;
  --rose-200: #ebcbd1;
  --rose-300: #d5a7b1;       /* brand colour (from logo) */
  --rose-500: #bc7a89;
  --rose-600: #a04d62;       /* buttons, links (AA on white) */
  --rose-700: #843b4f;
  --plum: #3a2230;           /* ink */
  --plum-soft: #6e5560;      /* muted text */
  --sage: #4a6a59;
  --sage-100: #e6eee9;
  --line: #ecd9dd;
  --white: #fff;

  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(58, 34, 48, .06);
  --shadow: 0 14px 40px -12px rgba(58, 34, 48, .18);
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--plum);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--rose-600); text-underline-offset: 3px; }
a:hover { color: var(--rose-700); }
:focus-visible { outline: 3px solid var(--rose-600); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--plum); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
/* Draft markers (hidden in `node src/build.js --final`) */
.isi { display: inline-block; margin: 6px 6px 0 0; padding: 2px 9px; border: 1px dashed #c99a06; border-radius: 6px; background: #fdf1c0; color: #5e4400; font: 600 .74rem/1.45 var(--font-body); letter-spacing: 0; text-transform: none; text-align: left; vertical-align: middle; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(160, 77, 98, .6); }
.btn-primary:hover { background: var(--rose-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--rose-300); }
.btn-ghost:hover { background: var(--rose-100); color: var(--plum); }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17633d; color: #fff; }
.btn-light { background: #fff; color: var(--rose-700); }
.btn-light:hover { background: var(--rose-100); color: var(--rose-700); }
.btn-sm { padding: .6em 1.15em; font-size: .94rem; }

/* ---------- Header ---------- */
.topbar { background: var(--plum); color: #f7e8ec; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: #f7e8ec; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .t-left, .topbar .t-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 247, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); }
.brand-mark { width: 50px; height: 50px; flex: none; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; letter-spacing: .01em; }
.brand-text span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-600); font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--plum); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .55em .85em; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--rose-100); color: var(--rose-700); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--blush); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font-weight: 700; font-size: .8rem; padding: .35em .8em; border-radius: 999px; color: var(--plum-soft); }
.lang a[aria-current="true"] { background: var(--plum); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--plum); cursor: pointer; border-radius: 10px; }
.menu-btn .icon { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-blush { background: var(--blush); }
.section-plum { background: var(--plum); color: #f7e8ec; }
.section-plum h2, .section-plum h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-600); margin-bottom: 1rem; }
.eyebrow .icon { width: 1.3em; height: 1.3em; }
.section-plum .eyebrow { color: var(--rose-300); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--plum-soft); font-size: 1.1rem; }
.section-plum .section-head p { color: #e3c9d0; }
.roof { display: block; width: 100%; height: 38px; color: var(--cream); margin-top: -1px; }
.roof-blush { color: var(--blush); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px); background:
  radial-gradient(900px 500px at 88% 8%, var(--rose-100), transparent 62%),
  radial-gradient(600px 400px at -5% 100%, var(--sage-100), transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--rose-600); }
.hero .lead { font-size: 1.2rem; color: var(--plum-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.8rem; color: var(--plum-soft); font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero-meta .icon { color: var(--sage); }
.hero-visual { position: relative; }
.arch { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--rose-100); box-shadow: var(--shadow); aspect-ratio: 4 / 5; position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 62%; height: 62%; border: 2px dashed var(--rose-300); border-radius: 999px 999px 0 0; z-index: 0; opacity: .7; }
.hero-visual .arch { z-index: 1; }
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.3; }
.float-card strong { display: block; font-size: 1rem; }
.float-card .stars .icon { width: 1.15em; height: 1.15em; }
.float-card strong + small { margin-top: 2px; display: block; }
.float-card small { color: var(--plum-soft); }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--rose-100); color: var(--rose-700); display: grid; place-items: center; flex: none; }
.float-a { left: -18px; bottom: 54px; }
.float-b { right: -10px; top: 38px; }

/* Placeholder (when no photo yet) */
.ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--rose-700);
  background: repeating-linear-gradient(135deg, rgba(213,167,177,.16) 0 12px, rgba(213,167,177,.07) 12px 24px), linear-gradient(160deg, var(--rose-100), var(--blush)); }
.ph svg { width: 56px; height: 56px; margin: 0 auto 8px; opacity: .55; }
.ph span { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; opacity: .75; }

/* ---------- Quick info ---------- */
.quick { margin-top: -38px; position: relative; z-index: 3; padding: 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.quick-item { padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); }
.quick-item:last-child { border-right: 0; }
.quick-item .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--rose-100); color: var(--rose-700); display: grid; place-items: center; flex: none; }
.quick-item small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum-soft); font-weight: 700; }
.quick-item strong { display: block; font-size: 1rem; line-height: 1.35; }
.quick-item span { font-size: .9rem; color: var(--plum-soft); }

/* ---------- Treatment cards ---------- */
.group + .group { margin-top: 44px; }
.group-title { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-title small { font-family: var(--font-body); font-size: .9rem; color: var(--plum-soft); font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--plum); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rose-300); color: var(--plum); }
.card .ic { width: 48px; height: 48px; border-radius: 16px 16px 16px 4px; background: var(--rose-100); color: var(--rose-700); display: grid; place-items: center; margin-bottom: 4px; }
.card { padding: 12px 12px 20px; gap: 6px; }
.card-img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--rose-100); margin-bottom: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .ph { min-height: 0; padding: 8px; }
.card-img .ph svg { width: 40px; height: 40px; }
.card h3, .card p, .card .more { padding-inline: 8px; }
.card .ic .icon, .quick-item .ic .icon, .info-list .ic .icon, .contact-points .ic .icon, .float-card .ic .icon { width: 24px; height: 24px; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--plum-soft); font-size: .95rem; line-height: 1.5; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--rose-600); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .4em; }

/* ---------- Why / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: why; }
.why { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); position: relative; }
.why::before { counter-increment: why; content: "0" counter(why); font-family: var(--font-head); font-size: 2.4rem; color: var(--rose-300); display: block; line-height: 1; margin-bottom: 14px; }
.why h3 { font-size: 1.2rem; margin-bottom: .35em; }
.why p { margin: 0; color: var(--plum-soft); font-size: .96rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media .arch { aspect-ratio: 5 / 6; }
.split-media .arch.wide { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.checks { list-style: none; display: grid; gap: 10px; margin: 1.2rem 0 1.6rem; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--sage); margin-top: .25em; background: var(--sage-100); border-radius: 50%; padding: 3px; width: 1.5em; height: 1.5em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 130px; gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--rose-100); }
.gallery figure:nth-child(1) { grid-column: span 3; grid-row: span 4; border-radius: 999px 999px var(--radius) var(--radius); }
.gallery figure:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.gallery figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure { position: relative; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--plum); font-size: .82rem; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 8px rgba(58,34,48,.14); }
.gallery figure:nth-child(1) figcaption { left: 50%; transform: translateX(-50%); width: max-content; }

/* ---------- Dentist ---------- */
.dentist { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.dentist .arch { aspect-ratio: 4 / 5; }
.cred { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 999px; background: var(--rose-100); color: var(--rose-700); font-size: .86rem; font-weight: 600; }
.chip.sage { background: var(--sage-100); color: var(--sage); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: #d99a2b; }
.stars .icon { width: 1.05em; height: 1.05em; }
.review blockquote { margin: 0; font-size: 1rem; color: var(--plum); line-height: 1.6; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rose-200); color: var(--rose-700); display: grid; place-items: center; font-weight: 700; flex: none; }
.review footer small { display: block; color: var(--plum-soft); }
.rating-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 14px; font-weight: 700; box-shadow: var(--shadow-sm); }
.rating-pill .stars .icon { width: 1.1em; height: 1.1em; }

/* ---------- Panels ---------- */
.panel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; list-style: none; }
.panel-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; min-height: 120px; }
.panel-list img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.panel-list span { font-size: .8rem; font-weight: 600; color: var(--plum-soft); line-height: 1.3; }

/* ---------- Case photos on treatment pages ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 1rem; }
.ba { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba img { width: 100%; height: auto; display: block; }
.ba figcaption { padding: 8px 14px; font-size: .84rem; font-weight: 600; color: var(--plum-soft); }

/* ---------- Patient photo gallery ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip a { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--rose-100); }
.strip a:nth-child(4n+1) { border-radius: 999px 999px var(--radius) var(--radius); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.strip a:hover img { transform: scale(1.04); }
.masonry { columns: 4 220px; column-gap: 14px; }
.g-item { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: var(--rose-100); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30, 16, 24, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.note { font-size: .92rem; color: var(--plum-soft); }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.info-list { list-style: none; display: grid; gap: 18px; margin: 1.2rem 0 1.6rem; }
.info-list li { display: flex; gap: 14px; }
.info-list .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--rose-100); color: var(--rose-700); display: grid; place-items: center; flex: none; }
.info-list strong { display: block; }
.info-list small { color: var(--plum-soft); display: block; font-size: .92rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--rose-100); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--rose-300); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--rose-600); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .ans { padding: 0 0 18px; color: var(--plum-soft); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Booking form ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.book h2 { color: #fff; }
.book p { color: #e8d0d6; }
.form-card { background: #fff; color: var(--plum); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.section-plum .form-card h3, .form-card h3 { color: var(--plum); margin-bottom: 1rem; }
.book .form-card p { color: var(--plum-soft); }
.topbar .t-left span { display: inline-flex; gap: .45em; align-items: center; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { font: inherit; padding: .8em 1em; border-radius: 14px; border: 1.5px solid var(--rose-200); background: var(--cream); color: var(--plum); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(160, 77, 98, .3); border-color: var(--rose-600); }
.form-card .btn { width: 100%; }
.form-card .fine { font-size: .82rem; color: var(--plum-soft); margin: 12px 0 0; }
.form-error { color: #b3261e; font-size: .85rem; display: none; }
.field.invalid input { border-color: #b3261e; }
.field.invalid .form-error { display: block; }
.contact-points { list-style: none; display: grid; gap: 14px; margin-top: 1.6rem; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; color: #fff; }
.contact-points .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: var(--rose-300); display: grid; place-items: center; flex: none; }
.contact-points a { color: #fff; }
.contact-points small { display: block; color: #d8bcc4; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--plum); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--plum); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--rose-100); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rose-600); }
.post-card h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.post-card p { margin: 0; color: var(--plum-soft); font-size: .95rem; }

/* ---------- Inner pages ---------- */
.page-hero { background: radial-gradient(700px 360px at 90% 0%, var(--rose-100), transparent 65%), var(--cream); padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; color: var(--plum-soft); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rose-300); }
.crumbs a { color: var(--plum-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rose-700); text-decoration: underline; }
.page-hero .lead { font-size: 1.18rem; color: var(--plum-soft); max-width: 46em; margin: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.page-hero .hero-cta { margin-top: 1.4rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: .45em; }
.prose li::marker { color: var(--rose-500); }
.prose p, .prose li { color: #4b3541; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 14px !important; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 74px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 14px 14px 14px 4px; background: var(--rose-100); color: var(--rose-700); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.25rem; }
.steps strong { display: block; margin-bottom: 2px; color: var(--plum); }
.callout { background: var(--sage-100); border-radius: var(--radius); padding: 20px 24px; margin: 1.6rem 0; color: #2f4a3c; }
.callout strong { color: #263f32; }
.callout p:last-child { margin: 0; }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card.cta { background: var(--plum); color: #f3dfe5; border: 0; }
.aside-card.cta h3 { color: #fff; }
.aside-card h3 { font-size: 1.15rem; }
.aside-card ul { list-style: none; display: grid; gap: 2px; }
.aside-card ul a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--plum); font-weight: 600; font-size: .95rem; }
.aside-card ul li:last-child a { border: 0; }
.aside-card ul a:hover { color: var(--rose-600); }
.aside-card .btn { width: 100%; margin-top: 8px; }
.meta { color: var(--plum-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.dentist-profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #e3c9d0; padding-top: 0; }
.site-footer .roof { color: var(--plum); margin-top: 0; background: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 56px 36px; }
.site-footer h4 { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-300); margin-bottom: 14px; }
.site-footer a { color: #f1dde3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: .96rem; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-text span { color: var(--rose-300); }
.site-footer p { font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.socials a:hover { background: var(--rose-600); border-color: var(--rose-600); text-decoration: none; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #c9a9b2; }
.legal .disc { max-width: 760px; }

/* ---------- Floating actions ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1f7a4d; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -6px rgba(31, 122, 77, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9em 1em; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .hero-grid, .split, .book, .loc-grid, .dentist, .page-hero-grid, .article-grid, .dentist-profile { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  /* mobile: eyebrow, title, image, then description + CTAs */
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-text > .eyebrow { order: 1; justify-self: start; }
  .hero-text > h1 { order: 2; }
  .hero-visual { order: 3; margin-block: 8px 28px; }
  .hero-text > .lead { order: 4; }
  .hero-text > .hero-cta { order: 5; }
  .hero-text > .hero-meta { order: 6; }
  /* mobile: breadcrumb, eyebrow, title, image, then lead + CTAs */
  .page-hero-grid { gap: 0; }
  .page-hero-text { display: contents; }
  .page-hero-text > h1 { order: 1; }
  .page-hero-grid > .arch { order: 2; width: 100%; max-width: 340px; margin: 8px auto 24px; }
  .page-hero-text > .lead, .page-hero-text > p, .page-hero-text > .hero-cta { order: 3; }
  .page-hero-text > .eyebrow { justify-self: start; }
  .quick { margin-top: -24px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .reviews, .posts, .values { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dentist .arch, .dentist-profile .arch { max-width: 340px; }
  .aside { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; padding-bottom: 84px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .topbar { display: none; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-mark, .brand img { height: 44px; width: 44px; }
  .float-a { left: 8px; bottom: 16px; }
  .float-b { right: 6px; top: 16px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .quick-item:last-child { border-bottom: 0; }
  .why-grid, .reviews, .posts, .values { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .masonry { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .panel-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 10px; right: 10px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 16px; }
  .card p { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; border-radius: var(--radius); }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: 999px 999px var(--radius) var(--radius); }
  .gallery figure:nth-child(6) { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 250, 247, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -10px rgba(58, 34, 48, .2); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 1rem; font-weight: 700; text-decoration: none; color: var(--plum); padding: 15px 10px; border-radius: 999px; }
  .mobile-bar a.main { background: var(--rose-600); color: #fff; }
  .mobile-bar a.wa { background: #1f7a4d; color: #fff; }
  .mobile-bar .icon { width: 20px; height: 20px; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .topbar, .mobile-bar, .wa-float, .site-footer .roof { display: none; } body { background: #fff; } }

/* Header menu has 7 items (Home added): tighten on laptops, use the menu button on small laptops/tablets */
@media (min-width: 1141px) { .nav a { padding: .5em .65em; font-size: .92rem; } .nav-row { gap: 12px; } }
@media (min-width: 1021px) and (max-width: 1140px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility .25s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9em 1em; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
}

/* Treatment pages: 4 review boxes in a 2x2 grid */
.reviews.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .reviews.two { grid-template-columns: 1fr; } }

/* Mobile safety: grid children may shrink below their content (long e-mail address etc.) instead of widening the page */
.loc-grid > *, .book > *, .split > *, .dentist > *, .page-hero-grid > *, .article-grid > *, .dentist-profile > *, .foot-grid > * { min-width: 0; }
.info-list a, .info-list strong, .site-footer a, .site-footer li { overflow-wrap: anywhere; }

/* Dentist profile (long version): photo stays in view while reading, closing line highlighted */
.dentist-profile .prose h3 { margin-top: 1.6em; }
.dentist-profile .deg { margin: 0 0 4px; color: var(--plum-soft); }
.dentist-profile .pull { margin: 1.8em 0; padding: 18px 22px; border-left: 4px solid var(--rose-400, var(--rose-300)); background: var(--rose-100); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.5; color: var(--plum); }
@media (min-width: 1021px) { .dentist-profile .arch { position: sticky; top: 110px; align-self: start; } }

/* Dentist profile: two photos with patients */
.profile-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6em 0; }
.profile-photos figure { margin: 0; }
.profile-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--rose-100); }
.profile-photos .cap { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--plum-soft); text-align: center; }

/* Booking form: required marker + error state on selects too */
.field label.req::after { content: " *"; color: #b3261e; }
.field.invalid select { border-color: #b3261e; }
