/* ==========================================================
   Family Dental — main stylesheet (mobile-first)
   ----------------------------------------------------------
   EDIT BRAND COLOURS & FONTS HERE ↓
   ========================================================== */
:root {
  --navy: #3D2B4F;        /* headings, header, footer */
  --navy-2: #4A3460;
  --teal: #7A4F92;        /* buttons, links, accents (AA on white) */
  --teal-dark: #5E3A73;
  --teal-soft: #F3ECF7;   /* tinted sections */
  --mint: #D3B6E0;        /* small highlights on dark */
  --warm: #f6b26b;        /* tiny accent only */
  --ink: #1d2b33;         /* body text */
  --muted: #55666f;
  --line: #E8DEEE;
  --bg: #ffffff;
  --bg-soft: #FAF7FC;
  --danger: #b42318;
  --success: #067647;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(61, 43, 79, .06), 0 8px 24px rgba(61, 43, 79, .07);
  --shadow-lg: 0 2px 4px rgba(61, 43, 79, .06), 0 18px 40px rgba(61, 43, 79, .12);
  --gutter: 16px;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 72px; /* room for mobile action bar */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; margin-bottom: 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p:last-child { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

/* ---------- Demo banner ---------- */
.demo-banner { background: #fff4d6; color: #5c4400; text-align: center; font-size: .85rem; padding: .5rem var(--gutter); border-bottom: 1px solid #f0dca0; }

/* ---------- Header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); min-height: 44px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; }
.logo-icon { width: 24px; height: 24px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-text span { color: var(--teal); margin-left: .15em; }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: var(--teal); }
.logo-light .logo-text span { color: var(--mint); }

.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu (default). Without JS the menu is simply shown. */
.site-nav { width: 100%; }
.js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .5rem var(--gutter) 1.25rem; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.js .site-nav.is-open { display: block; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: flex; align-items: center; min-height: 48px; padding: .25rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav li a[aria-current="page"] { color: var(--teal); }
.nav-cta { margin-top: 1rem; width: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; text-align: center; }
.btn-lg { min-height: 54px; padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(122, 79, 146, .25); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-outline:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-ghost { color: var(--navy); background: var(--teal-soft); }
.btn-ghost:hover { background: #E6D6EE; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); color: var(--navy); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-whatsapp { background: #157347; color: #fff; margin-top: .75rem; }
.btn-whatsapp:hover { background: #105c38; color: #fff; }
.btn-sub { display: block; font-size: .75rem; font-weight: 600; opacity: .75; }
.phone-list .btn { flex-direction: column; gap: 0; border-radius: var(--radius-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-row-center { justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff 85%); padding-block: 2.5rem 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .btn-row .btn { width: 100%; }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; font-size: .88rem; color: var(--navy); font-weight: 600; }
.hero-facts .icon { color: var(--teal); }
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(61, 43, 79, .10)); }

.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: 2.25rem 2.5rem; }
.page-hero h1 { font-size: clamp(1.85rem, 1.35rem + 2.4vw, 2.85rem); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding-top: .75rem; padding-bottom: 0; margin-block: 0; font-size: .85rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .25rem; color: #B6A6C2; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid, .post-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card p { color: var(--muted); margin-bottom: .5rem; }
.card h3, .card .h3 { margin-bottom: .4rem; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem; }
.card-icon .icon { width: 28px; height: 28px; }
.card-icon-lg { width: 64px; height: 64px; }
.card-icon-lg .icon { width: 34px; height: 34px; }
.card-more { font-weight: 700; color: var(--teal); font-size: .95rem; }
a.stretched { color: inherit; text-decoration: none; }
a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card:hover, .post-card:hover, .service-card:focus-within, .post-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D9C4E4; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.founder { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow); }
.founder img { border-radius: 50%; width: 112px; height: 112px; object-fit: cover; margin: 0 auto .75rem; }
.founder figcaption strong { display: block; color: var(--navy); line-height: 1.3; }
.founder figcaption span { font-size: .85rem; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto .75rem; border-radius: 50%; background: linear-gradient(135deg, var(--teal-soft), #E3D3EC); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-lg { width: 128px; height: 128px; font-size: 2.25rem; margin: 0; }
.rounded { border-radius: var(--radius); }
.media-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4F92' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: .75rem; }

/* ---------- Info cards / hours ---------- */
.info-grid { display: grid; gap: 1rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.info-grid .info-card { margin-bottom: 0; }
.info-card h2, .info-card .h3 { display: flex; align-items: center; gap: .5rem; }
.info-card h2 .icon { color: var(--teal); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--navy); }
.hours dd { margin: 0; text-align: right; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: 1.25rem; background: var(--navy); color: #E3D8EB; border-radius: calc(var(--radius) + 6px); padding: 2rem 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(211, 182, 224, .14); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .btn-row { margin-top: 0; position: relative; z-index: 1; }
.cta-band .btn { width: 100%; }

/* ---------- Content pages ---------- */
.prose h2 { margin-top: 1.75em; }
.prose > :first-child, .prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .35em; }
.content-grid { display: grid; gap: 2rem; }
.sidebar .info-card { box-shadow: none; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.notice { background: #fff8e6; border: 1px solid #f0dca0; color: #5c4400; border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .92rem; }
.placeholder { display: inline-block; background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 8px, #fdf0cc 8px, #fdf0cc 16px); border: 1px dashed #d9b85c; color: #5c4400; border-radius: 8px; padding: .35rem .6rem; font-size: .85rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 1.25rem; }
.team-card { display: grid; gap: 1.25rem; justify-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.4rem; box-shadow: var(--shadow); }
.team-card img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; }
.team-role { color: var(--teal); font-weight: 700; margin-bottom: .5rem; }
.team-body p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-thumb { display: grid; place-items: center; height: 140px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--teal-soft), #EADFF0); color: var(--teal); margin-bottom: 1rem; }
.post-thumb .icon { width: 56px; height: 56px; opacity: .8; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.post-card .card-more { margin-top: auto; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .2rem .6rem; }
.badge-demo { background: #fff4d6; color: #6b4f00; border: 1px solid #f0dca0; }
.post-header h1 { font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem); }
.post-cta { margin-top: 2rem; background: var(--bg-soft); }
.refs { font-size: .92rem; }

/* ---------- Contact & form ---------- */
.contact-grid { display: grid; gap: 1.5rem; }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.map-preview { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.map-preview img { width: 100%; }
.map-preview-label { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; background: #fff; color: var(--navy); font-weight: 700; border-radius: 999px; box-shadow: var(--shadow); font-size: .92rem; padding: .4rem .8rem; }
.map-preview:hover .map-preview-label { color: var(--teal); }

.form-wrap { scroll-margin-top: calc(var(--header-h) + 16px); }
.enquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; box-shadow: var(--shadow); }
.demo-tag { display: inline-block; background: #fff4d6; color: #6b4f00; border: 1px solid #f0dca0; border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; font-weight: 700; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.field input[type="text"], .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #D6C8DE; border-radius: var(--radius-sm); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D2B4F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(122, 79, 146, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: .35rem 0 0; }
.hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: .15rem 0 0; accent-color: var(--teal); }
.field-check label { font-weight: 400; color: var(--ink); font-size: .95rem; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert p:last-child { margin-bottom: 0; }
.alert h2 { margin-bottom: .35em; }
.alert-demo { background: #fff8e6; border-color: #e7c766; color: #4d3900; }
.alert-demo h2 { color: #4d3900; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: var(--success); }
.alert-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert-error h2 { color: var(--danger); }

/* ---------- 404 ---------- */
.error-code { font-family: var(--font-head); font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; color: var(--teal-soft); -webkit-text-stroke: 2px var(--teal); margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #D9CCE3; padding-top: 3rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 320px; }
.footer-title { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-list a, .footer-link { display: inline-flex; align-items: center; min-height: 44px; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: .35rem 0; margin: 0; font-size: .92rem; }
.site-footer .muted { color: #B9A6C7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem 1.5rem; font-size: .88rem; display: grid; gap: .5rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.footer-note { color: #B9A6C7; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(61, 43, 79, .08); }
.mobile-bar-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--navy); background: var(--teal-soft); }
.mobile-bar-primary { background: var(--teal); color: #fff; }
.mobile-bar-primary:hover { color: #fff; }

/* ---------- Reveal animation (only if motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================
   ≥ 480px — larger phones
   ========================================================== */
@media (min-width: 480px) {
  :root { --gutter: 20px; }
  .hero .btn-row .btn, .cta-band .btn { width: auto; }
  .founders { gap: 1.25rem; }
}

/* ==========================================================
   ≥ 640px — small tablets
   ========================================================== */
@media (min-width: 640px) {
  .card-grid, .post-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-note { grid-column: 1 / -1; }
  .cta-band { padding: 2.5rem; }
}

/* ==========================================================
   ≥ 900px — tablets landscape / laptops
   ========================================================== */
@media (min-width: 900px) {
  :root { --gutter: 28px; --header-h: 76px; }
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }

  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { position: static; display: flex !important; align-items: center; gap: 1rem; width: auto; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav li a { border: 0; padding: .5rem .8rem; border-radius: 999px; min-height: 44px; font-size: .97rem; }
  .site-nav li a:hover { background: var(--teal-soft); color: var(--navy); }
  .site-nav li a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
  .nav-cta { margin: 0; width: auto; min-height: 46px; padding-inline: 1.1rem; }

  .hero { padding-block: 4rem 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }
  .enquiry-form { padding: 2rem; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 3rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .team-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; }
  .page-hero { padding-block: 3.5rem; }
}

/* ==========================================================
   ≥ 1200px — large screens
   ========================================================== */
@media (min-width: 1200px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Print: hide navigation chrome */
@media print {
  .site-header, .mobile-bar, .demo-banner, .site-footer, .btn { display: none !important; }
  body { padding: 0; }
}

/* Footer hours: keep times on one line */
.hours-list li { flex-wrap: wrap; }
.hours-list li span:last-child { white-space: nowrap; }
.hours dd { white-space: nowrap; }

/* WhatsApp form note */
.wa-tag { display: inline-flex; align-items: center; gap: .4rem; background: #e7f6ee; color: #0f5132; border: 1px solid #b7e2c8; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 700; }

/* AI / real photos (any size — cropped neatly) */
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--teal-soft); }
.photo-hero { aspect-ratio: 6 / 5; max-width: 560px; margin-inline: auto; }
.photo-clinic { aspect-ratio: 6 / 5; }
.photo-wide { aspect-ratio: 16 / 10; margin-bottom: 1.75rem; box-shadow: var(--shadow); }
.card-photo { width: calc(100% + 2.8rem); max-width: none; margin: -1.4rem -1.4rem 1.1rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--teal-soft); }

/* Mobile bar: three buttons fit on small phones */
.mobile-bar-btn { min-width: 0; padding-inline: .5rem; font-size: .95rem; white-space: nowrap; }
@media (max-width: 380px) { .mobile-bar { gap: .35rem; } .mobile-bar-btn { font-size: .85rem; gap: .25rem; } .mobile-bar-btn .icon { width: 1.05em; height: 1.05em; } }

/* Clinic logo */
.logo-img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.logo-light .logo-img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
