@charset "UTF-8";
/* ============================================================
   FIX MY TEETH
   The engraved certificate: guilloche, the hairline double rule,
   a gold seal. Every value derived from the clinic's own seal,
   creatives and interiors — not invented for it.

   01  Tokens
   02  Reset and base
   03  Browser surfaces
   04  Typography
   05  Layout primitives
   06  Devices — seal, guilloche, motto rule
   07  Buttons
   08  Header and navigation
   09  The sticky call bar
   10  Footer
   11  Utilities
   ============================================================ */

/* ============================================================
   01  TOKENS
   ============================================================ */

:root {
  /* Ground */
  --parchment: #fdfaf3;
  --cream: #f4eada;
  --sand: #e7d7bc;
  --tan: #d8c3a0;

  /* Mark */
  --gold: #c89116;
  --gold-deep: #8a6206;

  /* Ink */
  --umber: #6b4a2f;
  --espresso: #2e1f16;
  --ink: #1a120b;

  /* Semantic. Templates and components reference these, never the
     raw values above, so a ground can be re-pointed in one place. */
  --bg: var(--parchment);
  --panel: var(--cream);
  --panel-deep: var(--sand);
  --text: var(--espresso);
  --text-soft: var(--umber);
  --text-gold: var(--gold-deep);
  --rule: var(--tan);
  --rule-soft: #e6d8c0;
  --mark: var(--gold);

  /* On the Ink ground the roles swap. Secondary text becomes Sand at
     13.08:1 — never Umber, which collapses to 2.33:1 and fails. Gold
     becomes a legitimate text colour here at 6.62:1. */
  --on-ink-text: var(--parchment);
  --on-ink-soft: var(--sand);
  --on-ink-gold: var(--gold);
  --on-ink-rule: rgba(231, 215, 188, 0.16);

  --fail: #a32e22;
  --pass: #4a6b2f;

  /* Faces. The licensed brand faces lead the stack so that owning
     them later is a font file and nothing else. */
  --display: "IvyOra Display", "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Nocelia", "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* The optical-size pin. See §04. */
  --display-opsz: 16;

  /* Shape — revised from square-everywhere at client direction.
     Four tokens apart, so the decision stays reversible. */
  --r-btn: 999px;
  --r-card: 16px;
  --r-input: 12px;
  --r-sm: 10px;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  /* 1320, not 1180. At 1180 a 1920px desktop carries ~370px of dead margin
     each side and the page reads as a phone layout that happened to be opened
     on a monitor. Body copy is still capped at 74ch by .service-body and
     .concern-body, so the extra width widens the two-column sections and the
     bento without letting a paragraph run too long to track. */
  --frame-max: 1320px;

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Vertical rhythm. One scale, used everywhere. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Chrome heights, read by the header, the drawer and scroll-margin.
     --masthead-h is row one; --header-h is the whole sticky header, which
     gains the nav row at 62rem. */
  --masthead-h: 72px;
  --header-h: var(--masthead-h);
  --callbar-h: 60px;

  /* Depth. Every shadow carries an offset and a soft blur — a
     zero-offset halo is decoration, not depth. Tinted warm, because
     a grey shadow on parchment reads as dirt. */
  --shadow-1: 0 1px 2px rgba(46, 31, 22, 0.05), 0 2px 8px rgba(46, 31, 22, 0.04);
  --shadow-2: 0 2px 4px rgba(46, 31, 22, 0.06), 0 8px 24px rgba(46, 31, 22, 0.08);
  --shadow-3: 0 4px 8px rgba(46, 31, 22, 0.08), 0 18px 48px rgba(46, 31, 22, 0.12);
}

@media (min-width: 62rem) {
  :root {
    --masthead-h: 78px;
    /* Row one plus the nav row and its hairline. */
    --header-h: calc(var(--masthead-h) + 47px);
    /* The header carries Call and WhatsApp from here up, so the bar retires. */
    --callbar-h: 0px;
  }
}

/* ============================================================
   02  RESET AND BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* The sticky call bar occupies the bottom of every phone viewport.
     Padding the body keeps it from covering the last line of a page. */
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-6) 0;
}

/* Anchored sections must clear the sticky header. */
:target {
  scroll-margin-top: calc(var(--header-h) + var(--sp-5));
}

/* ============================================================
   03  BROWSER SURFACES
   The parts we did not draw still carry the design. Each of these
   ships with a browser default that belongs to no design system.
   ============================================================ */

::selection {
  background: rgba(200, 145, 22, 0.28);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--tan);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

* {
  scrollbar-color: var(--tan) var(--panel);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On Ink the focus ring inverts, or it disappears into the ground. */
.on-ink :focus-visible {
  outline-color: var(--gold);
}

a {
  color: inherit;
  text-decoration-color: var(--tan);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}

a:hover {
  text-decoration-color: var(--gold);
}

/* Skip link — visible the moment it takes focus, never before. */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--espresso);
  color: var(--parchment);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.skip-link:focus-visible {
  top: 0;
}

/* ============================================================
   04  TYPOGRAPHY

   The optical-size rule. Bodoni Moda is variable on an opsz axis
   from 6 to 96, and that axis decides whether the face is readable
   on a cream ground. Browsers auto-select a HIGH optical size at
   display dimensions — the cut a type designer draws for billboards,
   hairlines deliberately thinned because the letters will be
   enormous. At 64px on parchment those hairlines disappear and the
   headline reads grey and weak.

   So the system pins opsz 16 — the cut drawn for small text, where
   the hairlines carry real weight — and renders it large. Same
   typeface, same brand character, legible headline.

   Never let the browser choose the optical size on a light ground.
   ============================================================ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

h4 {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

/* The display face at its largest — hero headlines only. Capped at
   6rem; past that the measure breaks before the type does. */
.display {
  font-family: var(--display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 700;
  font-size: clamp(2.35rem, 6.4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

/* Inscriptional capitals. The seal, the motto rule, section marks and
   eyebrows — never body copy, never a heading. */
.caps {
  font-family: var(--caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-gold);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

/* Running text sets at 65–75 characters. */
.measure {
  max-width: var(--measure);
}

.small {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Hours, prices, table figures and index numbers all line up. */
.tnum,
time,
td.num {
  font-variant-numeric: tabular-nums;
}

blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--text);
}

blockquote cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--body);
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ============================================================
   05  LAYOUT PRIMITIVES
   ============================================================ */

.frame {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.frame-narrow {
  max-width: 860px;
}

.frame-wide {
  max-width: 1360px;
}

/* The hairline double rule: a 1px rule with a second 1px rule offset
   5px outside it. This is the brand's container — the border on four
   of the practice's five published creatives. */
.rule-frame {
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule-soft);
  outline-offset: 5px;
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Alternating bands. Cream for a quiet change of ground, Ink where
   the page needs to invert — the trust bar, the founder section and
   the closing call to action, and nowhere else. A fourth full-width
   inversion flips how the page reads. */
.band-cream {
  background: var(--panel);
}

.band-ink {
  background: var(--ink);
  color: var(--on-ink-text);
}

.band-ink h1,
.band-ink h2,
.band-ink h3,
.band-ink h4 {
  color: var(--on-ink-text);
}

.band-ink .lede,
.band-ink .small,
.band-ink p {
  color: var(--on-ink-soft);
}

.band-ink .caps {
  color: var(--on-ink-gold);
}

.band-ink a {
  text-decoration-color: rgba(231, 215, 188, 0.4);
}

.band-ink a:hover {
  text-decoration-color: var(--gold);
}

/* Section head: a top rule, the heading, and a right-aligned action.
   The rule above the heading is the certificate's own device. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.band-ink .section-head {
  border-top-color: var(--on-ink-rule);
}

.section-head > h2,
.section-head > .display {
  flex: 1 1 18ch;
  min-width: 0;
}

/* ============================================================
   06  DEVICES
   ============================================================ */

/* The seal. The practice's actual mark.

   No border and no background: the artwork already draws its own gold ring,
   so a CSS circle around it would print two concentric rules and read as a
   mistake. The box is square and the mark is centred in it, which keeps the
   lockup's baseline steady whichever size is used. */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex: none;
}

/* No border and no background: the artwork draws its own gold ring, so a CSS
   circle around it would print two concentric rules and read as a mistake. */
.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.seal-sm {
  width: 56px;
  height: 56px;
}

/* The motto rule. Trust · Transparency · Precision, spaced in
   inscriptional caps, centred on a hairline.

   A seal device used ALONE — a divider or a signature. It is never
   stacked above a heading as a label, which would demote it from
   mark to decoration. */
.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-block: var(--sp-6);
  font-family: var(--caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-gold);
}

.motto::before,
.motto::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--rule);
}

.band-ink .motto {
  color: var(--on-ink-gold);
}

.band-ink .motto::before,
.band-ink .motto::after {
  background: var(--on-ink-rule);
}

.motto .dot {
  color: var(--gold);
}

/* The guilloche. Concentric engine-turned rings whose radii step with
   a slight rhythm rather than evenly — that irregularity is what
   produces real moiré. One appearance per page, behind the seal or
   anchoring a corner. Never wallpaper. */
.guilloche {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  aspect-ratio: 1;
}

.guilloche circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.6;
  opacity: 0.5;
}

.band-ink .guilloche {
  opacity: 0.3;
}

/* Draws itself once, on the home hero and nowhere else. The page is
   fully readable throughout — nothing waits on it. */
@media (prefers-reduced-motion: no-preference) {
  .guilloche--draw circle {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: fmt-draw 2.4s var(--ease) forwards;
  }
}

@keyframes fmt-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* The CSS fallback, for any image slot with no photograph behind it.
   Not a placeholder — this is what the grid looks like the day the
   theme is installed, and it has to be good enough to ship. The
   origin varies per cell so no two read identically. */
.guilloche-fill {
  --gx: 50%;
  --gy: 128%;
  background-color: #150f09;
  background-image:
    repeating-radial-gradient(
      circle at var(--gx) var(--gy),
      rgba(200, 145, 22, 0.28) 0 1px,
      transparent 1px 13px
    ),
    radial-gradient(
      140% 120% at var(--gx) var(--gy),
      rgba(200, 145, 22, 0.16),
      transparent 64%
    );
}

/* The clinical note. A 2px gold rule on the TOP edge over a Cream
   panel — deliberately not a thick coloured left border, which is the
   most over-used callout pattern on the web and reads as a template. */
.note {
  border-top: 2px solid var(--gold);
  border-radius: var(--r-card);
  background: var(--panel);
  padding: var(--sp-5) clamp(1rem, 2.5vw, 1.7rem);
  max-width: var(--measure);
}

.note > h4,
.note > .note-title {
  margin: 0 0 var(--sp-2);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-gold);
}

.note p {
  font-size: 1rem;
}

/* ============================================================
   07  BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  /* A thumb target, not a mouse target. */
  min-height: 48px;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.btn-secondary {
  background: transparent;
  border-color: var(--espresso);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--espresso);
  color: var(--parchment);
}

.band-ink .btn-secondary,
.on-ink .btn-secondary {
  border-color: var(--sand);
  color: var(--on-ink-text);
}

.band-ink .btn-secondary:hover,
.on-ink .btn-secondary:hover {
  background: var(--sand);
  color: var(--ink);
}

/* WhatsApp: transparent with a gold rule, filling to a light gold
   wash on hover. Its label is Gold Deep, never Gold — gold text on
   parchment measures 2.68:1 and fails. On Ink both become Gold,
   which passes there at 6.62:1. */
.btn-whatsapp {
  background: transparent;
  border-color: var(--gold);
  color: var(--text-gold);
}

.btn-whatsapp:hover {
  background: rgba(200, 145, 22, 0.12);
  border-color: var(--gold-deep);
}

.band-ink .btn-whatsapp,
.on-ink .btn-whatsapp {
  border-color: var(--gold);
  color: var(--gold);
}

.band-ink .btn-whatsapp:hover,
.on-ink .btn-whatsapp:hover {
  background: rgba(200, 145, 22, 0.18);
}

/* Not a .btn, so it has to declare its own box: without a display the gap did
   nothing, the arrow wrapped to its own line, and the link kept the default
   underline. */
.btn-quiet {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  font-family: var(--caps);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--text-gold);
  gap: 0.6rem;
}

/* .btn-quiet is not a .btn, so it never inherited the button's icon sizing —
   the arrow rendered at the SVG's own scale, which is enormous. */
.btn-quiet svg {
  flex: none;
  width: 1em;
  height: 1em;
}

.btn-quiet .arrow {
  transition: transform 0.22s var(--ease);
}

.btn-quiet:hover .arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-quiet:hover .arrow {
    transform: none;
  }
}

.band-ink .btn-quiet {
  color: var(--on-ink-gold);
}

/* ---- The metal button ------------------------------------------

   A slow gold sheen travels the Espresso fill, accelerating on hover;
   the button presses in by 1px with an inset shadow; a click sends a
   ripple from wherever the pointer landed.

   This is deliberately not the reference implementation. Liquid Metal
   drives a WebGL shader through @paper-design/shaders — roughly 100KB
   of JavaScript and a live canvas per button, animating continuously.
   For a practice whose visitors arrive one-handed, in pain, on
   Hyderabad mobile data, that is a real battery and data cost for a
   decorative gain. The three things that actually carry the effect —
   the travelling highlight, the layered depth, the press physics —
   are all CSS, at about 2KB. Gold rather than chrome, because the
   brand is warm.

   Applied to primary calls to action ONLY. The effect means "this is
   the action" and stops meaning anything if every button shimmers.
   ---------------------------------------------------------------- */

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--espresso);
  color: var(--parchment);
  box-shadow: inset 0 1px 0 rgba(253, 250, 243, 0.12), var(--shadow-1);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(200, 145, 22, 0.55) 47%,
    rgba(244, 234, 218, 0.72) 51%,
    rgba(200, 145, 22, 0.55) 55%,
    transparent 64%
  );
  background-size: 260% 100%;
  background-position: 190% 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary::before {
    animation: fmt-sheen 6s linear infinite;
  }

  .btn-primary:hover::before,
  .btn-primary:focus-visible::before {
    animation-duration: 2.4s;
  }
}

@keyframes fmt-sheen {
  0% {
    background-position: 190% 0;
  }
  55%,
  100% {
    background-position: -90% 0;
  }
}

.btn-primary:hover {
  background: #3a2819;
  box-shadow: inset 0 1px 0 rgba(253, 250, 243, 0.16), var(--shadow-2);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.42);
}

/* The ripple origin is written by fmt.js from the pointer position. */
.btn-primary .ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 145, 22, 0.75),
    rgba(200, 145, 22, 0) 68%
  );
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: fmt-ripple 0.62s var(--ease-out) forwards;
}

@keyframes fmt-ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary .ripple {
    display: none;
  }

  .btn-primary:active {
    transform: none;
  }
}

/* On Ink the primary becomes a gold fill. */
.band-ink .btn-primary,
.on-ink .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.band-ink .btn-primary::before,
.on-ink .btn-primary::before {
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(253, 250, 243, 0.5) 47%,
    rgba(253, 250, 243, 0.85) 51%,
    rgba(253, 250, 243, 0.5) 55%,
    transparent 64%
  );
  background-size: 260% 100%;
  background-position: 190% 0;
}

.band-ink .btn-primary:hover,
.on-ink .btn-primary:hover {
  background: #d9a02a;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* On a phone the primary action spans the column — a two-up row of
   pills at 360px leaves neither label room to breathe. */
@media (max-width: 26rem) {
  .btn-row .btn {
    width: 100%;
  }
}

/* ============================================================
   08  HEADER AND NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-1);
}

/* The header spans wider than the reading frame. Chrome and measure are
   different problems: seven nav items, two icon actions and a pill do not fit
   1180px, and forcing them to would mean shrinking the practice's own nav
   labels rather than the container. */
.header-inner {
  max-width: 1360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--masthead-h);
}

/* Brand lockup: the seal, then the name in inscriptional caps. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name b {
  font-family: var(--caps);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.098em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.brand-name span {
  font-family: var(--caps);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.147em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-gold);
  white-space: nowrap;
}

/* The name alone below 380px — the tagline is the first thing to go,
   because the seal already carries it. */
@media (max-width: 23.75rem) {
  .brand-name span {
    display: none;
  }
}

/* ---- The masthead's centre: the phone number ---- */

.header-phone {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  text-align: center;
  min-width: 0;
}

@media (min-width: 75rem) {
  .header-phone {
    display: inline-flex;
  }
}

.header-phone-num {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header-phone:hover .header-phone-num {
  color: var(--text-gold);
}

.header-phone-hours {
  font-family: var(--caps);
  font-size: 0.8125rem;
  letter-spacing: 0.124em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ---- The nav row ----

   The nav sits on its own row beneath a hairline rather than competing with
   the brand and the actions for one. Seven items, a lockup and three actions
   do not share a single row at any width where the practice's own nav labels
   survive intact — and shortening "What's Bringing You In?" to make a layout
   fit would be the layout deciding the content.

   A masthead, a rule, then the schedule is also simply how a certificate is
   set. ---------------------------------------------------------------- */

.header-nav-row {
  display: none;
  border-top: 1px solid var(--rule-soft);
}

.primary-nav {
  display: none;
}

@media (min-width: 62rem) {
  .header-nav-row {
    display: block;
  }

  .primary-nav {
    display: block;
  }

  .primary-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 clamp(1rem, 2.2vw, 2.25rem);
    list-style: none;
    min-height: 46px;
  }

  .primary-nav li {
    position: relative;
  }

  /* Scoped to top-level menu links only. An unscoped `.primary-nav a`
     also matches every link inside a mega panel, and at specificity
     (0,1,1) it beats .btn-primary (0,1,0) — which painted espresso text
     on an espresso button. */
  .primary-nav > ul > li > a {
    display: block;
    padding: 0.7rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.049em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
  }

  /* The underline is drawn, not the browser's. It grows from the left
     on hover and sits permanently under the current section. */
  .primary-nav > ul > li > a::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 0.3rem;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s var(--ease);
  }

  .primary-nav > ul > li > a:hover::after,
  .primary-nav > ul > li > a:focus-visible::after,
  .primary-nav .current-menu-item > a::after,
  .primary-nav .current-menu-ancestor > a::after,
  .primary-nav .current-menu-parent > a::after {
    transform: scaleX(1);
  }

  @media (prefers-reduced-motion: reduce) {
    .primary-nav > ul > li > a::after {
      transition: none;
    }
  }

  /* Submenu: a panel inside the hairline double rule, so a dropdown
     still reads as part of the certificate. */
  /* .sub-menu, not `ul ul`: the mega panel contains its own lists, and a
     descendant selector swallowed them into this dropdown — absolutely
     positioned, opacity 0, invisible. */
  .primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    z-index: 10;
    min-width: 264px;
    padding: var(--sp-3);
    margin-top: 0.4rem;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s;
  }

  .primary-nav li:hover > .sub-menu,
  .primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .primary-nav .sub-menu a {
    padding: 0.6rem 0.8rem;
    border-radius: var(--r-sm);
    font-family: var(--body);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: normal;
  }

  .primary-nav .sub-menu a::after {
    display: none;
  }

  .primary-nav .sub-menu a:hover {
    background: var(--panel);
    color: var(--text-gold);
  }

  /* A mega item's panel is a <div>, not a <ul>, so :has(> ul) never matched it
     and the chevron — a block-level svg — dropped onto its own line under the
     label. Both kinds of parent are matched here. */
  .primary-nav li:has(> ul) > a,
  .primary-nav li.has-mega > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
}

/* ---- Header actions ---- */

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.header-actions .btn {
  display: none;
}

@media (min-width: 62rem) {
  .header-actions .btn {
    display: inline-flex;
    padding: 0.7rem 1.35rem;
    min-height: 44px;
    font-size: 0.8125rem;
  }
}

/* Icon action — call and WhatsApp in the header on tablet up. */
.icon-action {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.icon-action:hover {
  border-color: var(--gold);
  background: rgba(200, 145, 22, 0.1);
  color: var(--text-gold);
}

.icon-action svg {
  width: 19px;
  height: 19px;
}

@media (min-width: 62rem) {
  .icon-action {
    display: inline-flex;
  }
}

/* ---- The drawer toggle ---- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
}

@media (min-width: 62rem) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span {
    transition: none;
  }
}

/* ---- The drawer ----

   Eight items is a lot of top-level navigation for a phone, so below
   1024px the nav becomes a drawer with Book Appointment lifted out as
   a persistent action. */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
}

.drawer[data-open="true"] {
  visibility: visible;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 11, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer[data-open="true"] .drawer-scrim {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--rule);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.drawer[data-open="true"] .drawer-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .drawer-scrim,
  .drawer-panel {
    transition: none;
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--masthead-h);
  padding-inline: var(--sp-5);
  border-bottom: 1px solid var(--rule);
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -0.5rem;
  border-radius: 50%;
  color: var(--text);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-nav {
  padding: var(--sp-4) var(--sp-5);
  flex: 1;
}

.drawer-nav ul {
  list-style: none;
}

/* The drawer is the engraved index in miniature: one item per row on
   a hairline, set in the display face. */
.drawer-nav > ul > li {
  border-bottom: 1px solid var(--rule-soft);
}

.drawer-nav > ul > li > a {
  display: block;
  padding-block: 0.95rem;
  font-family: var(--display);
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "wght" 600;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--text);
}

.drawer-nav > ul > li > a:hover,
.drawer-nav .current-menu-item > a {
  color: var(--text-gold);
}

.drawer-nav ul ul {
  padding: 0 0 var(--sp-4) var(--sp-4);
  border-left: 1px solid var(--rule-soft);
  margin-left: 0.15rem;
}

.drawer-nav ul ul a {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--text-soft);
}

.drawer-nav ul ul a:hover {
  color: var(--text-gold);
}

.drawer-foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--rule);
  background: var(--panel);
  display: grid;
  gap: var(--sp-3);
}

.drawer-foot .btn {
  width: 100%;
}

.drawer-foot .drawer-hours {
  font-size: 0.8125rem;
  color: var(--text-soft);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   09  THE STICKY CALL BAR

   On the practice's own evidence the phone, not the form, is the
   conversion — so Call, WhatsApp and Book sit within one thumb-reach
   at all times, below 62rem. Above that the header already carries
   them and the bar would be redundant chrome.
   ============================================================ */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border-top: 1px solid rgba(200, 145, 22, 0.32);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 62rem) {
  .call-bar {
    display: none;
  }
}

.call-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: var(--callbar-h);
  padding: 0.5rem 0.25rem;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-ink-soft);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.call-bar a + a {
  border-left: 1px solid rgba(231, 215, 188, 0.14);
}

.call-bar a svg {
  width: 18px;
  height: 18px;
}

.call-bar a:active {
  background: rgba(200, 145, 22, 0.16);
  color: var(--gold);
}

/* Book is the primary action, and says so. */
.call-bar a.is-primary {
  background: var(--gold);
  color: var(--ink);
}

.call-bar a.is-primary:active {
  background: #d9a02a;
  color: var(--ink);
}

/* ============================================================
   10  FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-soft);
  padding-top: var(--section-y);
}

.footer-grid {
  display: grid;
  gap: var(--sp-7) var(--sp-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-7);
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--sp-8);
  }
}

.footer-brand {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

.footer-brand .seal {
  color: var(--on-ink-text);
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--on-ink-soft);
}

.footer-title {
  margin: 0 0 var(--sp-4);
  font-family: var(--caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-ink-gold);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--on-ink-soft);
}

.footer-links a:hover {
  color: var(--gold);
}

/* Contact block: an address is read line by line, so it sets as one. */
.footer-contact {
  display: grid;
  gap: var(--sp-4);
  font-size: 0.9375rem;
  font-style: normal;
}

.footer-contact a {
  text-decoration: none;
  color: var(--on-ink-text);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact .label {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--caps);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-ink-gold);
}

.footer-contact .hours {
  font-variant-numeric: tabular-nums;
}

/* The footer is an Ink ground but is not .band-ink, so secondary text fell
   through to Umber — which measures 2.33:1 here and fails outright. On Ink,
   secondary text is Sand, at 13.08:1. */
.site-footer .small,
.site-footer .lede {
  color: var(--on-ink-soft);
}

/* The landmark is a second address line, not a clause trailing the postcode. */
.footer-contact .small {
  display: block;
  margin-top: 0.25rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--on-ink-rule);
  font-size: 0.8125rem;
  color: var(--on-ink-soft);
}

.footer-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
}

.footer-bar a {
  text-decoration: none;
}

.footer-bar a:hover {
  color: var(--gold);
}

/* The footer closes on the motto rule — a signature, which is what the
   device is for. */
.site-footer .motto {
  margin-block: 0 var(--sp-6);
}

/* ============================================================
   11  UTILITIES
   ============================================================ */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.stack {
  display: grid;
  gap: var(--sp-4);
}

.stack-lg {
  display: grid;
  gap: var(--sp-6);
}

.relative {
  position: relative;
}

.text-center {
  text-align: center;
}

.center {
  margin-inline: auto;
}

/* The registration line in the footer.
   Smaller and quieter than the copyright above it: a credential stated,
   not a credential advertised. */
.footer-reg {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  opacity: 0.72;
}
