/* ==========================================================================
   Hughes Dental Arts Implant Center — Core stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens (:root)
   2.  Reset & base elements
   3.  Layout — container / row / col
   4.  Flex + spacing utilities
   5.  Typography helpers
   6.  Icon system (SVG masks)
   7.  Buttons
   8.  Cards & shared patterns
   9.  Header / navigation
   10. Components
   11. Footer
   12. Swiper overrides
   13. Motion
   14. Responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Brand colours --- */
  --color-navy: #0f2038;
  --color-navy-mid: #16304f;
  --color-navy-soft: #1d3a5c;
  --color-gold: #c9a24b;
  --color-gold-light: #dcc07f;
  /* Text-safe gold. Carries eyebrows, inline links and labels, so it is tuned
     to clear WCAG AA (4.5:1) on the lightest through darkest page backgrounds:
     white 4.96:1 · paper 4.67:1 · cream 4.52:1. Use --color-gold for non-text
     accents (rules, borders, icon fills) where contrast rules do not apply. */
  --color-gold-dark: #896c26;

  /* --- Neutrals --- */
  --color-ink: #20293a;
  /* Secondary body text. Tuned to clear AA on every light surface it sits on:
     white 4.99:1 · paper 4.71:1 · cream 4.55:1. */
  --color-muted: #677080;
  --color-cream: #f7f4ee;
  --color-paper: #faf8f4;
  --color-line: #e7e2d8;
  --color-line-dark: rgba(201, 162, 75, .22);
  --color-white: #fff;
  --color-body: var(--color-ink);

  /* --- On-dark text --- */
  --color-on-dark: #d5deea;
  --color-on-dark-soft: #aebbcd;
  --color-on-dark-faint: #7c8aa0;

  /* --- State --- */
  --color-success: #2f7d5c;
  --color-error: #b4453c;

  /* --- Typography --- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-eyebrow: 12px;
  --fs-small: 13px;
  --fs-body-sm: 14.5px;
  --fs-body: 16px;
  --fs-body-lg: 17.5px;
  --fs-h4: clamp(18px, 1.6vw, 20px);
  --fs-h3: clamp(21px, 2.2vw, 26px);
  --fs-h2: clamp(30px, 4.4vw, 48px);
  --fs-h1: clamp(38px, 6vw, 80px);

  --lh-tight: 1.12;
  --lh-heading: 1.2;
  --lh-body: 1.75;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --ls-eyebrow: .32em;
  --ls-button: .08em;
  --ls-wide: .14em;

  /* --- Spacing scale --- */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 88px;

  /* Vertical rhythm for sections — steps down per breakpoint (see §4). */
  --section-space: 100px;

  /* --- Layout --- */
  --container-max: 1260px;
  --container-pad: 30px;
  --gutter: 30px;
  --header-height: 90px;
  --topbar-height: 44px;

  /* --- Radius --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* --- Shadows --- */
  --shadow-xs: 0 2px 6px rgba(15, 32, 56, .06);
  --shadow-sm: 0 10px 24px -16px rgba(15, 32, 56, .35);
  --shadow-md: 0 24px 50px -30px rgba(15, 32, 56, .40);
  --shadow-lg: 0 40px 80px -50px rgba(15, 32, 56, .70);
  --shadow-header: 0 8px 30px -22px rgba(15, 32, 56, .55);

  /* --- Motion --- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition-fast: .2s var(--ease);
  --transition: .3s var(--ease);
  --transition-slow: .6s var(--ease);

  /* --- Elevation --- */
  --z-dropdown: 70;
  --z-header: 80;
  --z-drawer: 90;
  --z-overlay: 95;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Keep in-page anchors clear of the sticky header. */
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Images always scale fluidly — no fixed heights, no aspect-ratio. */
img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
iframe { display: block; border: 0; }
svg { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--color-navy);
  letter-spacing: .005em;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0; }
/*p + p { margin-top: var(--space-sm); }*/

::selection { background: var(--color-gold); color: var(--color-navy); }

:focus-visible {
  outline: 2px solid var(--color-gold-dark);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Screen-reader-only text, and a skip link that appears on focus. */
.visually-hidden {
  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;
  top: -100px; left: var(--space-sm);
  z-index: var(--z-overlay);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-sm); }

/* ==========================================================================
   3. LAYOUT — container / row / col
   ========================================================================== */

/* The single site-wide container: horizontal padding only. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--narrow { max-width: 900px; }
.container--wide { max-width: 1480px; }

/* Flexbox grid — no CSS Grid anywhere in this stylesheet. */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--gutter) / -2);
  margin-right: calc(var(--gutter) / -2);
}

.col,
[class*="col-"] {
  padding-left: calc(var(--gutter) / 2);
  padding-right: calc(var(--gutter) / 2);
  min-width: 0;
}

/* Auto column: shares the row equally with its siblings. */
.col { flex: 1 1 0%; }
.col-auto { flex: 0 0 auto; width: auto; }

.col-1  { flex: 0 0 auto; width: 8.3333%; }
.col-2  { flex: 0 0 auto; width: 16.6666%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.3333%; }
.col-5  { flex: 0 0 auto; width: 41.6666%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.3333%; }
.col-8  { flex: 0 0 auto; width: 66.6666%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.3333%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Row gutter modifiers */
.row--tight { --gutter: 20px; }
.row--loose { --gutter: 48px; }
.row--flush { --gutter: 0px; }

/* Vertical gap between wrapped columns */
.row--gap-sm > [class*="col"] { margin-bottom: var(--space-md); }
.row--gap-md > [class*="col"] { margin-bottom: var(--gutter); }
.row--gap-lg > [class*="col"] { margin-bottom: var(--space-xl); }
.row--gap-sm, .row--gap-md, .row--gap-lg { margin-bottom: calc(var(--gutter) * 1); }

/* ==========================================================================
   4. FLEX & SPACING UTILITIES
   ========================================================================== */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow { flex-grow: 1; }
.flex-none { flex: none; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }
.align-baseline { align-items: baseline; }

.self-center { align-self: center; }
.self-start { align-self: flex-start; }

.gap-2xs { gap: var(--space-2xs); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --- Section rhythm ------------------------------------------------------
   Desktop 100px · Laptop 80px · Tablet 60px · Mobile 40px.
   Driven by --section-space so every section stays in step (see §14).       */
.section-space { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-space-top { padding-top: var(--section-space); }
.section-space-bottom { padding-bottom: var(--section-space); }

/* Half-step variants for tighter stacks */
.section-space-sm { padding-top: calc(var(--section-space) * .6); padding-bottom: calc(var(--section-space) * .6); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ==========================================================================
   5. TYPOGRAPHY HELPERS
   ========================================================================== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.eyebrow--light { color: var(--color-gold-light); }

/* Italic gold accent used inside headings */
h1 em, h2 em, h3 em { font-style: italic; color: var(--color-gold-dark); font-weight: var(--fw-medium); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--color-gold-light); }

.lead {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  color: var(--color-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--color-muted); }
.text-gold { color: var(--color-gold-dark); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }

.fw-light { font-weight: var(--fw-light); }
.fw-medium { font-weight: var(--fw-medium); }

.rule {
  display: inline-block;
  width: 46px; height: 2px;
  background: var(--color-gold);
  vertical-align: middle;
}

/* Centred section intro: eyebrow + heading + lead */
.section-head {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.section-head h2 { margin: var(--space-xs) 0 var(--space-sm); }
.section-head p { color: var(--color-muted); font-weight: var(--fw-light); font-size: var(--fs-body-lg); }
.section-head--left { margin-left: 0; text-align: left; }

/* Sections rendered on the navy background */
.on-dark { background: var(--color-navy); color: var(--color-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-white); }
.on-dark p { color: var(--color-on-dark); }
.on-dark a:hover { color: var(--color-gold-light); }

.bg-paper { background: var(--color-paper); }
.bg-cream { background: var(--color-cream); }
.bg-white { background: var(--color-white); }

/* Long-form editorial copy (about, service and legal pages) */
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: var(--space-xl); }
.prose h3 { font-size: clamp(20px, 2.4vw, 26px); margin-top: var(--space-lg); }
.prose p { color: var(--color-muted); font-weight: var(--fw-light); }
.prose strong { color: var(--color-navy); font-weight: var(--fw-medium); }
.prose a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-navy); }
.prose > :first-child { margin-top: 0; }

/* ==========================================================================
   6. ICON SYSTEM
   --------------------------------------------------------------------------
   Icons live as standalone SVG files in assets/images/icons/ and are painted
   through CSS masks, so a single file recolours from `currentColor`.
   ========================================================================== */
.icon {
  display: inline-block;
  flex: none;
  width: var(--icon-size, 24px);
  height: var(--icon-size, 24px);
  background-color: currentColor;
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

.icon--xs { --icon-size: 14px; }
.icon--sm { --icon-size: 18px; }
.icon--md { --icon-size: 24px; }
.icon--lg { --icon-size: 30px; }
.icon--xl { --icon-size: 38px; }

.icon-align       { --icon: url("../images/icons/align.svg"); }
.icon-arrow-left  { --icon: url("../images/icons/arrow-left.svg"); }
.icon-arrow-right { --icon: url("../images/icons/arrow-right.svg"); }
.icon-award       { --icon: url("../images/icons/award.svg"); }
.icon-calendar    { --icon: url("../images/icons/calendar.svg"); }
.icon-check       { --icon: url("../images/icons/check.svg"); }
.icon-check-circle{ --icon: url("../images/icons/check-circle.svg"); }
.icon-chevron-down{ --icon: url("../images/icons/chevron-down.svg"); }
.icon-chevron-right{ --icon: url("../images/icons/chevron-right.svg"); }
.icon-clipboard   { --icon: url("../images/icons/clipboard.svg"); }
.icon-clock       { --icon: url("../images/icons/clock.svg"); }
.icon-close       { --icon: url("../images/icons/close.svg"); }
.icon-coffee      { --icon: url("../images/icons/coffee.svg"); }
.icon-credit-card { --icon: url("../images/icons/credit-card.svg"); }
.icon-document    { --icon: url("../images/icons/document.svg"); }
.icon-external    { --icon: url("../images/icons/external.svg"); }
.icon-facebook    { --icon: url("../images/icons/facebook.svg"); }
.icon-google      { --icon: url("../images/icons/google.svg"); }
.icon-gum         { --icon: url("../images/icons/gum.svg"); }
.icon-home        { --icon: url("../images/icons/home.svg"); }
.icon-implant     { --icon: url("../images/icons/implant.svg"); }
.icon-laser       { --icon: url("../images/icons/laser.svg"); }
.icon-mail        { --icon: url("../images/icons/mail.svg"); }
.icon-map-pin     { --icon: url("../images/icons/map-pin.svg"); }
.icon-menu        { --icon: url("../images/icons/menu.svg"); }
.icon-minus       { --icon: url("../images/icons/minus.svg"); }
.icon-phone       { --icon: url("../images/icons/phone.svg"); }
.icon-play-circle { --icon: url("../images/icons/play-circle.svg"); }
.icon-plus        { --icon: url("../images/icons/plus.svg"); }
.icon-pulse       { --icon: url("../images/icons/pulse.svg"); }
.icon-quote       { --icon: url("../images/icons/quote.svg"); }
.icon-restore     { --icon: url("../images/icons/restore.svg"); }
.icon-scalpel     { --icon: url("../images/icons/scalpel.svg"); }
.icon-scan        { --icon: url("../images/icons/scan.svg"); }
.icon-shield      { --icon: url("../images/icons/shield.svg"); }
.icon-shield-check{ --icon: url("../images/icons/shield-check.svg"); }
.icon-smile       { --icon: url("../images/icons/smile.svg"); }
.icon-sparkle     { --icon: url("../images/icons/sparkle.svg"); }
.icon-star        { --icon: url("../images/icons/star.svg"); }
.icon-tooth       { --icon: url("../images/icons/tooth.svg"); }
.icon-tv          { --icon: url("../images/icons/tv.svg"); }
.icon-users       { --icon: url("../images/icons/users.svg"); }
.icon-xray        { --icon: url("../images/icons/xray.svg"); }
.icon-youtube     { --icon: url("../images/icons/youtube.svg"); }

/* Circular icon chip used by service cards and amenity lists */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 54px; height: 54px;
  border-radius: var(--radius-circle);
  background: var(--color-cream);
  color: var(--color-gold-dark);
  transition: background var(--transition), color var(--transition);
}
.icon-chip--outline { background: var(--color-white); border: 1px solid var(--color-gold); }
.icon-chip--sm { width: 44px; height: 44px; }

/* Star rating row */
.stars { display: inline-flex; gap: 3px; color: var(--color-gold); }
.stars .icon { --icon-size: 15px; }
.stars--lg .icon { --icon-size: 20px; }

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-button);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { --icon-size: 16px; }

.btn--gold { background: var(--color-gold); color: var(--color-navy); }
.btn--gold:hover { background: var(--color-gold-light); color: var(--color-navy); box-shadow: var(--shadow-sm); }

.btn--navy { background: var(--color-navy); color: var(--color-white); }
.btn--navy:hover { background: var(--color-navy-mid); color: var(--color-white); box-shadow: var(--shadow-sm); }

.btn--outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn--outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn--outline-gold { background: transparent; color: var(--color-gold-light); border-color: rgba(201, 162, 75, .55); }
.btn--outline-gold:hover { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); }

.btn--white { background: var(--color-white); color: var(--color-navy); }
.btn--white:hover { background: var(--color-cream); }

.btn--sm { padding: 12px 22px; font-size: 12px; }
.btn--lg { padding: 20px 40px; }
.btn--block { display: flex; width: 100%; }

/* Text link with a trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.link-arrow .icon { --icon-size: 16px; transition: transform var(--transition-fast); }
.link-arrow:hover { color: var(--color-navy); }
.link-arrow:hover .icon { transform: translateX(4px); }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.btn-group--center { justify-content: center; }

/* ==========================================================================
   8. CARDS & SHARED PATTERNS
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card__media { position: relative; overflow: hidden; }
.card__media img { transition: transform var(--transition-slow); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 30px 32px 34px; }
.card__title { margin-bottom: var(--space-3xs); }
.card__text { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }

/* Small uppercase tag pinned over media */
.tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  line-height: 1;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  background: var(--color-navy);
  color: var(--color-white);
}
.tag--gold { background: var(--color-gold); color: var(--color-navy); }

/* Check list used for credentials and offer inclusions */
.check-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.check-list li { display: flex; align-items: flex-start; gap: 11px; line-height: 1.5; color: var(--color-muted);font-weight: var(--fw-light);}
.check-list .icon { --icon-size: 18px; margin-top: 3px; color: var(--color-gold); }
.check-list b { font-weight: var(--fw-medium); color: var(--color-navy); }
.check-list small { display: block; font-size: 12px; font-style: italic; font-weight: var(--fw-light); color: var(--color-muted); }
.on-dark .check-list b { color: var(--color-white); }

/* Numbered list — legal clauses, ordered steps in body copy */
.numbered-list { counter-reset: numbered; display: flex; flex-direction: column; gap: var(--space-md); }
.numbered-list li {
  position: relative;
  counter-increment: numbered;
  padding-left: 46px;
  /*font-size: var(--fs-body-sm);*/
  font-weight: var(--fw-light);
  line-height: 1.75;
  color: var(--color-muted);
}
.numbered-list li::before {
  content: counter(numbered);
  position: absolute;
  left: 0; top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-circle);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--color-gold-dark);
}

/* Decorative gold corner brackets around a photo */
.framed { position: relative; }
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  width: 58%; height: 58%;
  pointer-events: none;
}
.framed::before { top: -16px; left: -16px; border-top: 1px solid var(--color-gold); border-left: 1px solid var(--color-gold); }
.framed::after { bottom: -16px; right: -16px; border-bottom: 1px solid var(--color-gold); border-right: 1px solid var(--color-gold); }
.framed img { position: relative; z-index: 1; border-radius: var(--radius-sm); }
.framed--top-only::after { display: none; }

/* ==========================================================================
   9. HEADER / NAVIGATION
   ========================================================================== */
.topbar {
  background: var(--color-navy);
  color: var(--color-on-dark-soft);
  font-size: 12.5px;
  letter-spacing: .03em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--topbar-height); flex-wrap: wrap; }
.topbar a { color: var(--color-white); font-weight: var(--fw-medium); }
.topbar a:hover { color: var(--color-gold-light); }
.topbar__list { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.topbar__item .icon { --icon-size: 14px; color: var(--color-gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-stuck { box-shadow: var(--shadow-header); background: rgba(255, 255, 255, .99); }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--header-height); }

/* The logo is the site's own horizontal lockup — the wordmark and "Implant
   Center" line are part of the artwork, so no text sits alongside it. Height is
   fixed and width follows the 320:57 ratio. */
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { width: auto; height: 46px; }

/* --- Desktop nav --- */
.nav__list { display: flex; align-items: center; gap: var(--space-md); }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  color: var(--color-navy);
  white-space: nowrap;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}
.nav__link:hover { color: var(--color-gold-dark); }
.nav__link:hover::after,
.nav__item.is-active > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__item.is-active > .nav__link { color: var(--color-gold-dark); }

.nav__toggle { display: none; }
.nav__caret { --icon-size: 12px; opacity: .65; transition: transform var(--transition-fast); }
.nav__item--has-children:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%; left: 50%;
  z-index: var(--z-dropdown);
  min-width: 250px;
  padding: 10px 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px -24px rgba(15, 32, 56, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}
/* Invisible bridge so the pointer can travel into the panel */
.nav__dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__item--has-children { position: relative; }
.nav__item--has-children:hover > .nav__dropdown,
.nav__item--has-children:focus-within > .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown a { display: block; padding: 9px 22px; font-size: var(--fs-small); color: var(--color-ink); white-space: nowrap; }
.nav__dropdown a:hover { background: var(--color-paper); color: var(--color-gold-dark); }

.site-header__cta { flex: none; }

/* --- Mobile menu button --- */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}
.menu-toggle .icon { --icon-size: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* --- Mobile drawer --- */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  z-index: var(--z-drawer);
  width: min(400px, 88vw);
  height: 100dvh;
  padding: var(--space-md) 0 var(--space-xl);
  background: var(--color-white);
  box-shadow: -20px 0 60px -30px rgba(15, 32, 56, .6);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: 0 var(--container-pad) var(--space-md); border-bottom: 1px solid var(--color-line); }
.mobile-nav__close { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--color-line); border-radius: var(--radius-sm); color: var(--color-navy); }
.mobile-nav__close .icon { --icon-size: 20px; }
.mobile-nav__list { padding: var(--space-2xs) 0; }
.mobile-nav__item { border-bottom: 1px solid var(--color-line); }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 15px var(--container-pad);
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  text-align: left;
}
.mobile-nav__link:hover, .mobile-nav__item.is-active > .mobile-nav__link { color: var(--color-gold-dark); }
.mobile-nav__caret { --icon-size: 16px; color: var(--color-gold-dark); transition: transform var(--transition-fast); }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__caret { transform: rotate(180deg); }
/* Height animated from JS so the accordion can transition */
.mobile-nav__sub { max-height: 0; overflow: hidden; background: var(--color-paper); transition: max-height var(--transition); }
.mobile-nav__sub a { display: block; padding: 11px var(--container-pad) 11px calc(var(--container-pad) + 16px); font-size: 14px; color: var(--color-muted); }
.mobile-nav__sub a:hover { color: var(--color-gold-dark); }
.mobile-nav__foot { padding: var(--space-lg) var(--container-pad) 0; display: flex; flex-direction: column; gap: var(--space-xs); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(15, 32, 56, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   10. COMPONENTS
   ========================================================================== */

/* --- 10.1 Hero (background image OR background video) --------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
  color: var(--color-white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; background-position: center 40%; background-size: cover; background-repeat: no-repeat; }
/* <video> is not an <img>, so cover-fitting here breaks no rule about images. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15, 32, 56, .94) 30%, rgba(15, 32, 56, .7) 62%, rgba(15, 32, 56, .42));
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 720px; padding: var(--space-3xl) 0; }
.hero h1 { color: var(--color-white); margin: 22px 0 8px; font-weight: var(--fw-semibold); }
.hero h1 em { color: var(--color-gold-light); }
.hero__sub { max-width: 52ch; margin: 20px 0; font-size: clamp(16px, 1.7vw, 19px); font-weight: var(--fw-light); color: var(--color-on-dark); }
.hero__badge {
  display: flex; align-items: center; gap: var(--space-sm);
  max-width: 60ch;
  margin: 26px 0 34px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, .07);
  border-left: 2px solid var(--color-gold);
}
.hero__badge .icon { --icon-size: 30px; color: var(--color-gold-light); }
.hero__badge p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); line-height: 1.6; color: #e7ecf3; }
.hero__badge b { font-weight: var(--fw-medium); color: var(--color-white); }
.hero--short { min-height: 0; }

/* --- 10.2 Page hero (inner pages) ---------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: var(--color-navy); color: var(--color-white); }
.page-hero__media { position: absolute; inset: 0; background-position: center 35%; background-size: cover; opacity: .34; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 32, 56, .95) 35%, rgba(15, 32, 56, .68)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__inner { max-width: 760px; padding: 84px 0 76px; }
.page-hero h1 { color: var(--color-white); font-size: clamp(34px, 5vw, 60px); margin: var(--space-xs) 0 var(--space-sm); }
.page-hero p { font-size: var(--fs-body-lg); font-weight: var(--fw-light); color: var(--color-on-dark); max-width: 62ch; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); font-size: 12.5px; color: var(--color-on-dark-soft); margin-top: var(--space-md); }
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb .icon { --icon-size: 13px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--color-gold-light); }

/* --- 10.3 Stat band ------------------------------------------------------ */
.stat-band { position: relative; background: var(--color-navy); color: var(--color-white); padding: 58px 0; }
.stat-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
.stat { position: relative; text-align: center; }
.stat__value { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(38px, 4.8vw, 58px); line-height: 1; color: var(--color-gold-light); }
.stat__label { margin-top: var(--space-2xs); font-size: 12.5px; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--color-on-dark-soft); }
.stat-band .col + .col .stat::before { content: ""; position: absolute; left: calc(var(--gutter) / -2); top: 14%; height: 72%; width: 1px; background: rgba(201, 162, 75, .28); }

/* --- 10.4 Intro ---------------------------------------------------------- */
.intro { text-align: center; }
.intro h2 { max-width: 17ch; margin: var(--space-xs) auto var(--space-md); }
.intro p { max-width: 74ch; margin-inline: auto; font-size: var(--fs-body-lg); font-weight: var(--fw-light); color: var(--color-muted); }
.intro p + p { margin-top: var(--space-sm); }

/* --- 10.5 Doctor cards --------------------------------------------------- */
.doctor-card .card__body { padding: 30px 32px 34px; }
.doctor-card__role { font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .13em; text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: var(--space-sm); }
.doctor-card p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); margin-bottom: var(--space-sm); }
.doctor-card .check-list { margin-top: auto; }

/* --- 10.6 Credentials band ----------------------------------------------- */
.creds { padding: 56px 0; background: var(--color-white); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.creds__title { text-align: center; font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: .22em; text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: var(--space-lg); }
.creds__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px 46px; }
.creds__item { flex: 0 0 auto; width: 130px; opacity: .82; transition: opacity var(--transition); }
.creds__item:hover { opacity: 1; }

/* --- 10.7 Service cards -------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 38px 32px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .icon-chip { background: var(--color-navy); color: var(--color-gold-light); }
.service-card__title { font-size: 24px; margin: var(--space-md) 0 var(--space-2xs); }
.service-card p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }
.service-card .link-arrow { margin-top: var(--space-md); }
.service-card__link { position: absolute; inset: 0; z-index: 1; }

/* Compact list of child services */
.service-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); }
.service-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; padding: 6px 12px;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  color: var(--color-muted);
}
.service-links a:hover { border-color: var(--color-gold); color: var(--color-gold-dark); background: var(--color-paper); }

/* --- 10.8 Offer ---------------------------------------------------------- */
.offer-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-navy); box-shadow: var(--shadow-lg); }
.offer-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark)); }
.offer__left { display: flex; flex-direction: column; justify-content: center; text-align: center; height: 100%; padding: 52px 46px; background: linear-gradient(160deg, var(--color-navy-mid), var(--color-navy)); }
.offer__left h2 { color: var(--color-white); font-size: clamp(26px, 3vw, 34px); margin-bottom: var(--space-3xs); }
.offer__sub { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: #c6d2e2; margin-bottom: var(--space-md); }
.offer__price { display: flex; align-items: baseline; justify-content: center; gap: var(--space-sm); }
.offer__price-now { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(52px, 7vw, 76px); line-height: 1; color: var(--color-gold-light); }
.offer__price-was { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 30px; color: #8b97a9; text-decoration: line-through; }
.offer__value { font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase; color: var(--color-gold); margin: var(--space-3xs) 0 var(--space-lg); }
.offer__left .btn { align-self: center; }
.offer__fine { margin-top: var(--space-sm); font-size: 11.5px; font-weight: var(--fw-light); line-height: 1.6; color: #8b97a9; }
.offer__right { height: 100%; padding: 52px 46px; background: var(--color-white); }
.offer__right h3 { font-size: 21px; margin-bottom: var(--space-3xs); }
.offer__lead { font-size: 11.5px; font-weight: var(--fw-medium); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: var(--space-md); }

/* --- 10.9 Office / amenities --------------------------------------------- */
.amenity-list { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.amenity { display: flex; align-items: flex-start; gap: var(--space-sm); }
.amenity b { display: block; font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--color-navy); }
.amenity p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }

/* --- 10.10 Smile gallery ------------------------------------------------- */
.smile-card { margin: 0; }
.smile-card__pair { display: flex; gap: 2px; background: var(--color-line); }
.smile-card__slot { position: relative; flex: 1 1 50%; min-width: 0; overflow: hidden; }
.smile-card figcaption { padding: 16px 20px; font-family: var(--font-display); font-size: 19px; font-weight: var(--fw-semibold); color: var(--color-navy); text-align: center; }
.smile-note { margin-top: var(--space-md); text-align: center; font-size: 13.5px; font-style: italic; font-weight: var(--fw-light); color: var(--color-muted); }

/* --- 10.11 Testimonials -------------------------------------------------- */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 30px;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-sm);
}
.testimonial__quote { flex: 1 1 auto; margin: var(--space-sm) 0 var(--space-md); font-family: var(--font-display); font-size: 19px; font-style: italic; font-weight: var(--fw-light); line-height: 1.55; color: #dbe3ee; }
.testimonial cite { font-style: normal; font-size: var(--fs-small); font-weight: var(--fw-medium); letter-spacing: var(--ls-button); text-transform: uppercase; color: var(--color-gold-light); }
.testimonial--light { background: var(--color-white); border-color: var(--color-line); }
.testimonial--light .testimonial__quote { color: var(--color-ink); }
.testimonial--light cite { color: var(--color-gold-dark); }

/* --- 10.12 Video cards --------------------------------------------------- */
.video-card { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--color-navy); }
/* Responsive 16:9 embed via intrinsic-ratio padding (iframes, not images). */
.video-card__frame { position: relative; height: 0; padding-bottom: 56.25%; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-card__body { padding: 24px 26px 28px; }
.video-card__body h3 { color: var(--color-white); font-size: 22px; margin-bottom: var(--space-2xs); }
.video-card__body p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-on-dark); }

/* --- 10.13 FAQ ----------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: var(--space-xs); }
.faq__item { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.faq__item.is-open { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  width: 100%; padding: 22px 26px;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 21px); font-weight: var(--fw-semibold);
  color: var(--color-navy); text-align: left; line-height: 1.35;
}
.faq__question:hover { color: var(--color-gold-dark); }
.faq__icon { --icon-size: 20px; color: var(--color-gold-dark); transition: transform var(--transition); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq__answer-inner { padding: 0 26px 24px; font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }

/* --- 10.14 Blog ---------------------------------------------------------- */
.post-card__meta { display: flex; align-items: center; gap: var(--space-2xs); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: var(--space-2xs); }
.post-card__meta .icon { --icon-size: 14px; }
.post-card__title { font-size: 22px; line-height: 1.25; margin-bottom: var(--space-2xs); }
.post-card__title a:hover { color: var(--color-gold-dark); }
.post-card p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }
.post-card .link-arrow { margin-top: var(--space-md); }
.post-card__index {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: var(--space-md);
  border-radius: var(--radius-circle);
  background: var(--color-cream); color: var(--color-gold-dark);
  font-family: var(--font-display); font-size: 21px; font-weight: var(--fw-bold);
}

/* --- 10.15 Steps --------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: var(--space-md); }
.step { display: flex; align-items: flex-start; gap: var(--space-md); }
.step__num {
  display: flex; align-items: center; justify-content: center;
  flex: none; width: 48px; height: 48px;
  border: 1px solid var(--color-gold); border-radius: var(--radius-circle);
  font-family: var(--font-display); font-size: 21px; font-weight: var(--fw-bold);
  color: var(--color-gold-dark);
}
.step h4 { font-size: 20px; margin-bottom: 2px; }
.step p { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }
.on-dark .step__num { color: var(--color-gold-light); }

/* --- 10.16 Newsletter ---------------------------------------------------- */
.newsletter { position: relative; overflow: hidden; background: var(--color-navy); color: var(--color-white); }
.newsletter::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
.newsletter h2 { color: var(--color-white); }
.newsletter p { color: var(--color-on-dark); font-weight: var(--fw-light); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.newsletter__form .form-field { flex: 1 1 240px; }
.newsletter__note { margin-top: var(--space-xs); font-size: 12px; color: var(--color-on-dark-faint); }

/* --- 10.17 Forms --------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-dark); }
.form-control {
  width: 100%;
  padding: 15px 18px;
  font-size: 15px;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control::placeholder { color: #9aa3b1; }
.form-control:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .16); }
textarea.form-control { min-height: 150px; resize: vertical; }
.on-dark .form-control, .newsletter .form-control { background: rgba(255, 255, 255, .07); border-color: rgba(201, 162, 75, .35); color: var(--color-white); }
.on-dark .form-control::placeholder, .newsletter .form-control::placeholder { color: var(--color-on-dark-faint); }
.form-note { font-size: 12.5px; font-weight: var(--fw-light); color: var(--color-muted); }
.form-alert { padding: 14px 18px; border-radius: var(--radius-xs); font-size: var(--fs-body-sm); margin-bottom: var(--space-md); }
.form-alert--ok { background: rgba(47, 125, 92, .1); border: 1px solid rgba(47, 125, 92, .35); color: var(--color-success); }
.form-alert--error { background: rgba(180, 69, 60, .08); border: 1px solid rgba(180, 69, 60, .3); color: var(--color-error); }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* --- 10.18 CTA ----------------------------------------------------------- */
.cta { text-align: center; background: var(--color-cream); }
.cta h2 { max-width: 19ch; margin: var(--space-xs) auto var(--space-sm); }
.cta p { max-width: 54ch; margin: 0 auto var(--space-lg); font-size: var(--fs-body-lg); font-weight: var(--fw-light); color: var(--color-muted); }

/* Full-bleed band with a photographic background */
.band { position: relative; overflow: hidden; color: var(--color-white); }
.band__media { position: absolute; inset: 0; background-position: center; background-size: cover; }
.band__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 32, 56, .96) 40%, rgba(15, 32, 56, .58)); }
.band .container { position: relative; z-index: 2; }
.band__inner { max-width: 640px; }
.band h2 { color: var(--color-white); }
.band p { color: #cfd8e5; font-weight: var(--fw-light); }

/* --- 10.19 Info tiles (contact) ------------------------------------------ */
.info-tile { display: flex; flex-direction: column; height: 100%; padding: 34px 30px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.info-tile h3 { font-size: 21px; margin: var(--space-md) 0 var(--space-2xs); }
.info-tile p, .info-tile a { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); }
.info-tile a:hover { color: var(--color-gold-dark); }

/* Themed through local variables so the value column never ends up navy-on-navy
   when the table is dropped into a dark surface (footer, navy sidebar card). */
.hours-table { --hours-value: var(--color-navy); --hours-border: var(--color-line); }
.hours-table td { padding: 6px 0; font-size: var(--fs-body-sm); font-weight: var(--fw-light); border-bottom: 1px solid var(--hours-border); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; color: var(--hours-value); font-weight: var(--fw-medium); }

.on-dark .hours-table,
.site-footer .hours-table,
.sidebar-card--navy .hours-table {
  --hours-value: var(--color-white);
  --hours-border: rgba(255, 255, 255, .12);
}

/* --- 10.20 Sidebar (service / article pages) ----------------------------- */
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); display: flex; flex-direction: column; gap: var(--space-md); }
.sidebar-card { padding: 28px 26px; background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.sidebar-card h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.sidebar-card--navy { background: var(--color-navy); border-color: var(--color-line-dark); }
.sidebar-card--navy h3, .sidebar-card--navy p { color: var(--color-white); }
.sidebar-card--navy p { font-weight: var(--fw-light); font-size: var(--fs-body-sm); }

.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xs);
  padding: 11px 0;
  font-size: var(--fs-body-sm);
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-line);
}
.sidebar-nav li:last-child a { border-bottom: 0; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current] { color: var(--color-gold-dark); }
.sidebar-nav a[aria-current] { font-weight: var(--fw-medium); }
.sidebar-nav .icon { --icon-size: 14px; opacity: .6; }

@media (max-width: 991px) {
  .sidebar { position: static; }
}

/* --- 10.21 Booking survey ------------------------------------------------ */
.survey { max-width: 980px; margin-inline: auto; }

/* Progress */
.survey__progress { margin-bottom: var(--space-xl); }
.survey__progress-track { height: 4px; background: var(--color-line); border-radius: var(--radius-pill); overflow: hidden; }
.survey__progress-bar { height: 100%; width: 0; background: var(--color-gold); border-radius: var(--radius-pill); transition: width var(--transition); }
.survey__progress-label { margin-top: var(--space-2xs); font-size: 12px; font-weight: var(--fw-medium); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--color-gold-dark); }

/* One question block */
.survey__step { padding: 36px 0; border-top: 1px solid var(--color-line); }
.survey__step:first-child { border-top: 0; padding-top: 0; }
.survey__question { font-size: clamp(22px, 3vw, 30px); margin-bottom: var(--space-2xs); }
.survey__hint { font-size: var(--fs-body-sm); font-weight: var(--fw-light); color: var(--color-muted); margin-bottom: var(--space-md); }
.survey__step .survey__hint:last-of-type { margin-bottom: var(--space-md); }

/* Option tiles — the whole tile is the radio label */
.survey__options { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.survey__option { padding: 6px; }
.survey__options--2 .survey__option { width: 50%; }
.survey__options--4 .survey__option { width: 25%; }
.survey__options--5 .survey__option { width: 20%; }

.survey__option input { position: absolute; opacity: 0; width: 0; height: 0; }
.survey__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 68px;
  padding: 14px 12px;
  text-align: center;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast),
              color var(--transition-fast), box-shadow var(--transition-fast);
}
.survey__option span:hover { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.survey__option input:checked + span { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.survey__option input:focus-visible + span { outline: 2px solid var(--color-gold-dark); outline-offset: 2px; }

/* Validation */
.survey__error { display: none; margin-top: var(--space-2xs); font-size: 12.5px; color: var(--color-error); }
.survey__step.has-error .survey__error { display: block; }
.survey__step.has-error .survey__option span { border-color: rgba(180, 69, 60, .45); }

/* Consent checkboxes */
.survey__consent { display: flex; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.survey__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-gold-dark); cursor: pointer; }
.survey__consent label { font-size: 13px; font-weight: var(--fw-light); line-height: 1.6; color: var(--color-muted); cursor: pointer; }
.survey__legal { margin-top: var(--space-sm); font-size: 12.5px; color: var(--color-muted); }
.survey__legal a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.survey__submit { margin-top: var(--space-lg); text-align: center; }
.survey__submit .btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* Steps after the first stay hidden until the previous one is answered.
   Scoped to .js so the whole survey is visible and usable without JavaScript. */
.js .survey__step[data-locked] { display: none; }

/* --- 10.22 Survey thank-you ---------------------------------------------- */
.ty-panel { display: flex; flex-direction: column; height: 100%; padding: 34px 32px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.ty-panel .icon-chip { margin-bottom: var(--space-md); }
.ty-panel p { font-size: var(--fs-body); font-weight: var(--fw-light); color: var(--color-muted); }
.ty-panel strong { font-weight: var(--fw-medium); color: var(--color-navy); }
.ty-call { text-align: center; }
.ty-call span { display: block; font-size: 12px; font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--color-gold-light); }
.ty-call a { display: inline-block; margin-top: var(--space-2xs); font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px); font-weight: var(--fw-bold); color: var(--color-white); }
.ty-call a:hover { color: var(--color-gold-light); }

/* --- 10.23 Map ----------------------------------------------------------- */
.map-band { position: relative; line-height: 0; border-top: 1px solid var(--color-line-dark); }
.map-band iframe { width: 100%; height: 440px; filter: grayscale(.25); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { padding: 78px 0 30px; background: var(--color-navy); color: #b9c4d4; border-top: 1px solid var(--color-line-dark); }
.site-footer h3 { font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-medium); letter-spacing: .2em; text-transform: uppercase; color: var(--color-gold-light); margin-bottom: var(--space-md); }
.site-footer p, .site-footer a, .site-footer td { font-size: var(--fs-body-sm); font-weight: var(--fw-light); line-height: 1.9; color: #b9c4d4; }
.site-footer a:hover { color: var(--color-gold-light); }
.site-footer__top { padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__logo { width: 210px; padding: 18px 22px; background: var(--color-white); border-radius: var(--radius-md); }
.site-footer__links li + li { margin-top: 2px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: var(--space-2xs); }
.site-footer__contact .icon { --icon-size: 16px; margin-top: 6px; color: var(--color-gold); }
.socials { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(201, 162, 75, .4); border-radius: var(--radius-circle); color: var(--color-gold-light); transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.socials a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }
.socials .icon { --icon-size: 17px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-top: 26px; }
.site-footer__bottom p, .site-footer__bottom a { font-size: 12.5px; color: var(--color-on-dark-faint); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* Floating call button — mobile only */
.call-fab {
  display: none;
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: var(--z-header);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   12. SWIPER OVERRIDES
   ========================================================================== */
.swiper { width: 100%; overflow: hidden; }
/* Cards are equal height inside a slide */
.swiper-slide { height: auto; }
.swiper-slide > * { height: 100%; }

.swiper-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: var(--space-lg); }
.swiper-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--color-line); border-radius: var(--radius-circle);
  color: var(--color-navy);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.swiper-btn:hover { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.swiper-btn.swiper-button-disabled { opacity: .35; cursor: default; }
.swiper-btn .icon { --icon-size: 20px; }
.on-dark .swiper-btn { border-color: rgba(201, 162, 75, .4); color: var(--color-gold-light); }
.on-dark .swiper-btn:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); }

.swiper-pagination { position: static; display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-md); }
.swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: var(--color-line); opacity: 1; border-radius: var(--radius-pill); transition: width var(--transition-fast), background var(--transition-fast); }
.swiper-pagination-bullet-active { width: 26px; background: var(--color-gold); }
.on-dark .swiper-pagination-bullet { background: rgba(255, 255, 255, .25); }
.on-dark .swiper-pagination-bullet-active { background: var(--color-gold); }

/* ==========================================================================
   13. MOTION
   ========================================================================== */
/* Scoped to .js so content is never hidden when JavaScript is unavailable or
   fails to run — the reveal is progressive enhancement, not a requirement. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   14. RESPONSIVE
   --------------------------------------------------------------------------
   Section rhythm: desktop 100 · laptop 80 · tablet 60 · mobile 40.
   ========================================================================== */

/* --- Laptop (≤1399px) ---------------------------------------------------- */
@media (max-width: 1399px) {
  :root { --section-space: 80px; --gutter: 26px; }
  .nav__list { gap: var(--space-sm); }
  .offer__left, .offer__right { padding: 46px 38px; }
}

/* --- Small laptop / large tablet (≤1199px) ------------------------------- */
@media (max-width: 1199px) {
  :root { --header-height: 82px; }
  .nav__link { font-size: 12.5px; }
  .site-header__inner { gap: var(--space-sm); }
  .hero { min-height: 78vh; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
}

/* --- Tablet (≤991px) ----------------------------------------------------- */
@media (max-width: 991px) {
  :root { --section-space: 60px; --header-height: 76px; }

  /* Swap desktop nav for the drawer */
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .col-md-12 { flex: 0 0 auto; width: 100%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-4 { flex: 0 0 auto; width: 33.3333%; }

  .hero { min-height: 0; }
  .hero__inner { max-width: none; padding: 76px 0; }
  .hero__overlay { background: linear-gradient(120deg, rgba(15, 32, 56, .94) 40%, rgba(15, 32, 56, .78)); }
  .page-hero__inner { padding: 60px 0 56px; }

  .band__overlay { background: rgba(15, 32, 56, .92); }
  .band__inner { max-width: none; }

  .stat-band .col + .col .stat::before { display: none; }

  .offer__left, .offer__right { padding: 42px 30px; }
  .survey__options--5 .survey__option { width: 33.3333%; }
  .creds__item { width: 110px; }
  .framed::before, .framed::after { display: none; }
  .map-band iframe { height: 380px; }

  .site-footer { padding: 60px 0 26px; }
  .site-footer__bottom { justify-content: center; text-align: center; }
}

/* --- Mobile (≤767px) ----------------------------------------------------- */
@media (max-width: 767px) {
  :root { --section-space: 40px; --gutter: 20px; --container-pad: 30px; --header-height: 70px; }

  body { font-size: 15.5px; }

  .col-sm-12 { flex: 0 0 auto; width: 100%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }

  /* Everything stacks below the mobile breakpoint unless told otherwise. */
  .row > .col-3, .row > .col-4, .row > .col-5, .row > .col-6,
  .row > .col-7, .row > .col-8, .row > .col-9, .row > .col-10,
  .row > .col-md-4, .row > .col-md-6, .row > .col-lg-4, .row > .col-lg-6 { width: 100%; }
  .row > .col-sm-6 { width: 50%; }

  /* Wide/narrow gutters collapse to the base value so rows stay inside the
     container padding instead of bleeding to the screen edge. */
  .row--loose, .row--tight { --gutter: 20px; }

  .topbar { font-size: 11.5px; }
  .topbar__inner { justify-content: center; text-align: center; padding: 8px 0; gap: var(--space-2xs) var(--space-sm); }
  .topbar__list { justify-content: center; gap: var(--space-2xs) var(--space-sm); }
  .topbar__list > .topbar__item {
        margin: 0 !important;
    }

  /* 320:57 ratio -> 213px wide, which clears the menu button on a 375px screen */
  .brand__logo { height: 38px; }

  .hero__inner { padding: 56px 0 64px; }
  .hero__badge { padding: 14px 16px; gap: var(--space-xs); }
  .hero__badge .icon { --icon-size: 24px; }
  /* Roomier tap target. Full-width buttons kick in lower down, at ≤575.98px. */
  .btn { padding: 16px 24px; }

  .section-head { margin-bottom: var(--space-lg); }
  .card__body, .service-card, .testimonial, .info-tile { padding: 28px 24px; }
  .offer__left, .offer__right { padding: 36px 24px; }
  .faq__question { padding: 18px 20px; font-size: 17px; }
  .faq__answer-inner { padding: 0 20px 20px; }
  .creds__row { gap: 26px 30px; }
  .creds__item { width: 96px; }
  .map-band iframe { height: 320px; }

  /* Before/after pairs stack on the narrowest screens */
  .smile-card__pair { flex-direction: column; }

  /* Survey option tiles go two-up on mobile regardless of desktop columns */
  .survey__options--4 .survey__option,
  .survey__options--5 .survey__option { width: 50%; }
  .survey__step { padding: 28px 0; }

  .site-footer { padding: 48px 0 24px; }
  .site-footer__logo { width: 180px; }

  .call-fab { display: inline-flex; width: auto; }
  .site-footer { padding-bottom: 84px; }
}

/* --- Phone (≤575.98px) ---------------------------------------------------
   Every button on the site goes full width below this breakpoint — no
   exceptions. `.btn--auto` opts out of full width at larger sizes only, so it
   is overridden here too.
   ------------------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .btn,
  .btn--auto,
  .btn--sm,
  .btn--lg { width: 100%; }

  /* Stack grouped buttons so each one gets the full row */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }

  /* The newsletter row stacks so its input and button each get a full row. */
  .newsletter__form { flex-direction: column; align-items: stretch; }

  /* The floating call button becomes a full-width bar, inset from the edges
     so it still reads as a floating element rather than a footer band.
     display:flex (not inline-flex) so left+right actually stretch it. */
  .call-fab {
    display: flex;
    left: var(--container-pad);
    right: var(--container-pad);
    width: auto;
    transform: none;
  }
}

/* --- Very small (≤400px) ------------------------------------------------- */
@media (max-width: 400px) {
  :root { --container-pad: 20px; }
  .row > .col-sm-6 { width: 100%; }
}
