/* ==========================================================================
   Dominika Beauty — shared stylesheet
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Fonts (self-hosted)
   ------------------------------------------------------------------------- */
/* Wordmark-only font (header/footer brand mark, .site-logo /
   .site-footer__logo) — not part of the site's body/heading font stack. */
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Palette. --color-text-muted equals --color-text: Jet Black is the only
     neutral here that passes WCAG AA on the light backgrounds. */
  --color-bg: #d7d2cb; /* Warm Gray 1 C */
  --color-bg-alt: #ddd5c7; /* Birch */
  --color-surface: #dbd5d1; /* White Sand */
  --color-text: #2d2c2f; /* Jet Black */
  --color-text-muted: #2d2c2f; /* Jet Black */
  /* Accent — Doeskin. Only a fill/background-safe accent in this palette (its
     foreground-on-light uses have to borrow Jet Black instead, see accent-dark). */
  --color-accent: #bdab9b; /* Doeskin */
  --color-accent-dark: #2d2c2f; /* Jet Black — foreground-on-light text/border/icon/focus role */
  --color-border: #bbaa91; /* Safari */
  /* Dark scrim for the gallery lightbox — --color-text (Jet Black) as an rgba overlay, not a new hue */
  --color-overlay: rgba(45, 44, 47, 0.92);

  /* Dark section surface pair — for alternating light/dark section rhythm. */
  --color-surface-dark: #2d2c2f; /* Jet Black */
  --color-text-on-dark: #dbd5d1; /* White Sand */
  --color-text-on-dark-muted: #d7d2cb; /* Warm Gray 1 C */
  --color-border-on-dark: rgba(219, 213, 209, 0.16);

  /* Typography — system font stack */
  --font-heading: "Aptos", Calibri, "Segoe UI", Arial, sans-serif;
  --font-body: "Aptos", Calibri, "Segoe UI", Arial, sans-serif;

  /* Fluid type scale — editorial, deliberately large for hero + section headings.
     Each clamp: min (narrow phone) / preferred (grows with viewport) / max (desktop). */
  --font-size-eyebrow: 0.78rem;
  --font-size-h4: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --font-size-h3: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  --font-size-h2: clamp(1.9rem, 1.25rem + 3.1vw, 3.5rem);
  --font-size-h1: clamp(2.15rem, 1.45rem + 3vw, 4rem);
  --tracking-eyebrow: 0.18em;
  --leading-tight: 1.05;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 4.5rem;
  --transition-base: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* The off-canvas mobile nav sits one screen-width to the right; clip the
     resulting phantom horizontal scroll. `clip` (not `hidden`) doesn't create a
     scroll container, so position: sticky on the header keeps working. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
}

/* Doeskin/Safari can't pass 3:1 against both a light bg and Jet Black at once
   in this palette, so dark contexts (dark sections, lightbox modals) get the
   light-on-dark outline colour instead of the light-context default above. */
.section--dark :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--color-text-on-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-height: 44px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   Editorial heading pattern — reusable
   Markup:  <p class="eyebrow">Services</p>
            <h2 class="display-heading">Enhance your natural beauty</h2>
   ------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  /* accent-dark, not accent — small uppercase text needs WCAG AA (>=4.5:1) */
  color: var(--color-accent-dark);
  margin: 0 0 var(--space-3);
}

/* Keeps an eyebrow-styled <h1> identical to the <p> version */
h1.eyebrow {
  line-height: inherit;
}

.eyebrow--on-dark {
  color: var(--color-text-on-dark-muted);
}

.display-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-h2);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-5);
  max-width: 20ch;
}

/* Hero-scale variant */
.display-heading--xl {
  font-size: var(--font-size-h1);
  max-width: 22ch;
}

/* Centered variant for symmetrical sections that still want the big type */
.display-heading--center {
  max-width: none;
  text-align: center;
}

/* -------------------------------------------------------------------------
   Dark section surface — `.section--dark` flips a <section> into the
   alternating dark band; text tokens follow automatically.
   ------------------------------------------------------------------------- */
.section--dark {
  background-color: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}

.section--dark .eyebrow {
  color: var(--color-text-on-dark-muted);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: var(--color-text-on-dark-muted);
}

/* -------------------------------------------------------------------------
   Grain texture utility — inline SVG feTurbulence noise at very low opacity.
   Apply `.has-grain` to a dark section/hero for subtle depth. Static, no motion.
   ------------------------------------------------------------------------- */
.has-grain {
  position: relative;
}

.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   Marquee band — infinite horizontal scroll, pure CSS. Two identical tracks
   for a seamless loop; the second is aria-hidden so SR reads the text once.
   Populate the track with plain text + bullet separators at the call site.
   ------------------------------------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  padding-block: var(--space-3);
  background-color: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  border-block: 1px solid var(--color-border-on-dark);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-5);
  padding-right: var(--space-5);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  animation: marquee-scroll 26s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* -------------------------------------------------------------------------
   Text reveal — data-reveal-text="lines" | "words" on a heading.
   scroll-animations.js wraps each line/word in a .reveal-text__mask
   (overflow clip) around a .reveal-text__inner that slides up on is-visible.
   ------------------------------------------------------------------------- */
.reveal-text__mask {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  /* Pad the clip box so descenders (g, y, p) aren't shaved by tight heading
     line-heights; the negative margin keeps layout height unchanged. */
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.reveal-text__inner {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-text-delay, 0s);
}

[data-reveal-text].is-visible .reveal-text__inner {
  transform: translateY(0);
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Site header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-height);
  padding: 0 var(--space-4);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  /* Hide-on-scroll-down / show-on-scroll-up — toggled by main.js.
     No will-change: transform here — it would make this element the
     containing block for its position:fixed child .primary-nav (the mobile
     menu panel), collapsing that panel's inset:0/top:var(--header-height) box
     to zero height and breaking it. */
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-logo {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", var(--font-heading);
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 0.85rem;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 200;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  background-color: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 150;
}

.primary-nav[data-open="true"] {
  transform: translateX(0);
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.primary-nav__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.primary-nav__link[aria-current="page"] {
  color: var(--color-accent-dark);
}

.primary-nav__link--cta {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* The nav "Book Now" is both .btn and .primary-nav__link; this 2-class selector
   outranks the desktop .primary-nav__link { font-weight: 500 } so it matches
   every other .btn CTA at weight 700. */
.primary-nav__link.btn {
  font-weight: 700;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    justify-content: flex-end;
    background: none;
    transform: none;
    transition: none;
    z-index: auto;
  }

  .primary-nav__list {
    flex-direction: row;
    gap: var(--space-6);
  }

  .primary-nav__link {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
  }

  /* Animated underline — draws in from the left on hover/focus, and sits
     already-drawn on the current page's link (every page sets aria-current). */
  .primary-nav__link:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .primary-nav__link:not(.btn):hover::after,
  .primary-nav__link:not(.btn):focus-visible::after,
  .primary-nav__link:not(.btn)[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* -------------------------------------------------------------------------
   Site footer
   ------------------------------------------------------------------------- */
.site-footer {
  /* dark editorial band — reuses .section--dark + .has-grain in the markup.
     hairline top border separates it from the dark closing-CTA above it. */
  border-top: 1px solid var(--color-border-on-dark);
  padding: var(--space-8) var(--space-4) var(--space-5);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: var(--space-7);
}

.site-footer__logo {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-3);
}

.site-footer__tagline {
  max-width: 34ch;
  margin: 0 0 var(--space-5);
  color: var(--color-text-on-dark-muted);
}

.site-footer__col-title {
  font-family: var(--font-body);
  font-size: var(--font-size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-text-on-dark-muted);
  margin: 0 0 var(--space-4);
}

.site-footer__links {
  display: grid;
  gap: var(--space-2);
}

.site-footer__links a {
  display: inline-block;
}

.site-footer__links a,
.site-footer__contact-item {
  color: var(--color-text-on-dark);
  text-decoration: none;
  margin: 0;
  transition: color 0.2s ease;
}

.site-footer__contact-item {
  display: block;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact-item:hover,
.site-footer__contact-item:focus-visible {
  color: var(--color-accent);
}

.site-footer__contact-item {
  margin-bottom: var(--space-2);
}

.site-footer__hours {
  display: grid;
  gap: var(--space-1) var(--space-4);
  margin: var(--space-3) 0 0;
}

.site-footer__hours > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 22rem;
}

.site-footer__hours dt {
  color: var(--color-text-on-dark);
}

.site-footer__hours dd {
  margin: 0;
  color: var(--color-text-on-dark-muted);
}

/* "Today" indicator — same mechanism as .hours-list__row.is-today, dark-safe tokens */
.site-footer__hours > div.is-today {
  background-color: var(--color-border-on-dark);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: var(--space-1) var(--space-2);
  margin-left: calc(var(--space-2) * -1);
}

.site-footer__socials {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.site-footer__social-link svg {
  width: 22px;
  height: 22px;
  fill: var(--color-text-on-dark-muted);
  transition: fill 0.25s ease;
}

.site-footer__social-link:hover svg,
.site-footer__social-link:focus-visible svg {
  fill: var(--color-text-on-dark);
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin: var(--space-7) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-on-dark);
  color: var(--color-text-on-dark-muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__credit a,
.site-footer__legal a {
  color: var(--color-text-on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--color-text-on-dark);
}

@media (max-width: 767.98px) {
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Center the footer as a column of blocks. Nav links and opening hours
     keep their own internal alignment (left-aligned to each other) and only
     the block as a whole gets centered — not every line individually. */
  .site-footer__inner {
    text-align: center;
  }

  .site-footer__brand,
  .site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__logo {
    align-items: center;
  }

  .site-footer__socials {
    justify-content: center;
  }

  /* 22px icon, but a real 44x44 tap target around it. */
  .site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Full-width list; each link centers individually on the footer's width. */
  .site-footer__links {
    width: 100%;
    text-align: center;
  }

  /* Same treatment for the contact lines (phone/email/address): each one
     centers individually across the footer's full width. */
  .site-footer__contact-item {
    width: 100%;
    text-align: center;
  }

  /* Opening hours as a real 2-column grid (day / time) so both columns line
     up across all three rows, centered as a whole via justify-content. The
     row <div>s become subgrids (not display:contents) so they stay real
     boxes and the .is-today background/border still renders correctly. */
  .site-footer__hours {
    grid-template-columns: max-content max-content;
    justify-content: center;
  }

  .site-footer__hours > div {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / 3;
    justify-content: normal;
    max-width: none;
  }

  .site-footer__hours dt,
  .site-footer__hours dd {
    text-align: left;
  }

  /* The base rule's margin-left-only bleed (for the left-aligned desktop
     layout) pushes this row 8px further left than its siblings once the
     block above is centered, making it visibly jump off-center. Bleed
     symmetrically instead, so the row's own center stays put. */
  .site-footer__hours > div.is-today {
    margin: 0 calc(var(--space-2) * -1);
  }
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: var(--space-6);
  }
}

/* -------------------------------------------------------------------------
   Hero (index.html)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-7) var(--space-4);
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 55%, var(--color-surface) 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  /* minmax(0,…) stops the image's intrinsic width from blowing out the column */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.hero__text {
  /* Let the text column shrink inside the grid instead of forcing overflow */
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

.hero__media {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  /* Soft fill shown behind the photo while it loads */
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Mobile hero (< split breakpoint): the photo becomes a full-bleed
   background with a dark gradient, and the text sits on top of it in the
   lower portion. The desktop split layout below is untouched.
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero {
    display: flex;
    min-height: 88vh;
    min-height: 88svh;
    padding: 0;
    /* fill shown under the photo while it loads */
    background: var(--color-surface-dark);
  }

  /* .hero__inner fills the hero and stacks its text near the top; it is
     position:relative (NOT a stacking context — no z-index) so the media (z0),
     the ::after overlay (z1) and the text (z2) all layer correctly. */
  .hero__inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0;
    max-width: none;
    background: var(--color-surface-dark);
  }

  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 25%;
  }

  /* Dark gradient over the photo: solid zones behind the top and bottom text
     groups, with the photo showing through a clear band in between, so both
     text blocks keep WCAG AA contrast. */
  .hero__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* first layer: dark zone measured from the bottom edge so the subtitle
       and both CTAs always sit on a solid scrim, whatever the screen height */
    background:
      linear-gradient(
        to top,
        rgba(45, 44, 47, 0.9) 0,
        rgba(45, 44, 47, 0.88) 400px,
        rgba(45, 44, 47, 0) 470px
      ),
      linear-gradient(
        to bottom,
        rgba(45, 44, 47, 0.88) 0%,
        rgba(45, 44, 47, 0.84) 24%,
        rgba(45, 44, 47, 0.28) 34%,
        rgba(45, 44, 47, 0.08) 46%,
        rgba(45, 44, 47, 0.4) 56%,
        rgba(45, 44, 47, 0.9) 68%,
        rgba(45, 44, 47, 0.92) 100%
      );
  }

  /* Fills the hero and splits into two groups: the heading group stays at the
     top (normal flow), the subtitle gets margin-top:auto to push itself (and
     the CTA after it) down to the bottom edge — the classic flex "push to end"
     pattern, no extra markup needed. */
  .hero__text {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* top: just below the sticky header; bottom: clears the CTAs from the hero edge */
    padding: var(--space-5) var(--space-4) var(--space-7);
  }

  .hero__text .eyebrow {
    color: var(--color-text-on-dark-muted);
  }

  .hero__text .display-heading {
    color: var(--color-text-on-dark);
    /* a touch smaller + narrower than the desktop --xl so lines wrap cleanly
       inside a phone width over the photo */
    font-size: clamp(1.9rem, 1.35rem + 3vw, 2.6rem);
    max-width: 20ch;
  }

  .hero__subtitle {
    color: var(--color-text-on-dark);
    margin-top: auto;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-8);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--space-8);
    min-height: min(78vh, 660px);
  }

  .hero__media {
    max-width: 440px;
    justify-self: end;
    align-self: stretch;
    max-height: 660px;
  }

  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: center top;
  }
}

/* Entrance-on-load animation targets (triggered via JS on window load, not scroll) */
.hero__eyebrow,
.hero__subtitle,
.hero__cta {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.hero__eyebrow.is-visible {
  transition-delay: 0.05s;
}

.hero__subtitle.is-visible {
  transition-delay: 0.3s;
}

.hero__cta.is-visible {
  transition-delay: 0.45s;
}

.hero__eyebrow.is-visible,
.hero__subtitle.is-visible,
.hero__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   Generic scroll-reveal utility (data-reveal / data-reveal-group in HTML,
   wired up by scroll-animations.js — see that file for the class contract)
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  /* Set per-element by scroll-animations.js for staggered groups; 0s solo. */
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   Section rhythm shared by every homepage section below the hero
   ------------------------------------------------------------------------- */
.section {
  padding: var(--space-7) var(--space-4);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Section background modifier — subtle warm step between two light sections
   (dark sections use .section--dark from the editorial system above).
   ------------------------------------------------------------------------- */
.section--alt {
  background-color: var(--color-bg-alt);
}

/* -------------------------------------------------------------------------
   Intro / value-prop — editorial two-column (heading left, copy right)
   ------------------------------------------------------------------------- */
.intro__text {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

/* -------------------------------------------------------------------------
   Page intro (about.html — left-aligned editorial block)
   ------------------------------------------------------------------------- */
.page-intro__lead {
  max-width: 52ch;
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Bio (about.html main bio section)
   ------------------------------------------------------------------------- */
.bio__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  align-items: center;
}

/* Wraps the portrait so the achievement badge can sit against its corner */
.bio__figure {
  position: relative;
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
}

.bio__portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  /* Soft fill shown behind the photo while it loads */
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
}

.bio__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.bio__content {
  max-width: 560px;
}

.bio__content p {
  color: var(--color-text-muted);
}

/* Editorial pull-quote: opening line of the bio, set in the heading face */
.bio__lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-h3);
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
}

/* -------------------------------------------------------------------------
   Achievement badge (about.html — rotated ribbon/seal over the portrait)
   ------------------------------------------------------------------------- */
.achievement-badge {
  position: absolute;
  right: 0;
  bottom: -1rem;
  z-index: 2;
  max-width: 14rem;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-accent);
  color: var(--color-text);
  border-radius: 10px;
  box-shadow: 0 16px 30px -16px rgba(45, 44, 47, 0.5);
  transform: rotate(-4deg);
  overflow: hidden;
}

.achievement-badge__star {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 64px;
  height: 64px;
  fill: var(--color-text-on-dark);
  opacity: 0.16;
}

.achievement-badge__count {
  position: relative;
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
}

.achievement-badge__text {
  position: relative;
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .bio__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
  }

  .achievement-badge {
    right: -1.25rem;
  }
}

/* -------------------------------------------------------------------------
   Certifications (about.html)
   ------------------------------------------------------------------------- */
/* Certificate image grid (about.html) — bordered cards, open in a lightbox.
   Card styling mirrors .service-card on index for a consistent editorial system. */
.cert-gallery {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-7);
}

.cert-thumb {
  display: block;
  width: 100%;
  padding: var(--space-4);
  /* warm tint so pale certificate scans stand out from the card */
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-thumb:hover,
.cert-thumb:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-accent-dark);
  box-shadow: 0 18px 36px -22px rgba(45, 44, 47, 0.4);
}

.cert-thumb img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  /* every certificate sits as a bordered white "sheet" inside the warm card,
     so even a very pale scan has a definite edge */
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

@media (min-width: 768px) {
  .cert-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .cert-thumb img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .cert-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Services (services.html) — patch-test note, category filter, menu rows
   ------------------------------------------------------------------------- */

/* Thin section — for the strips between the full-height bands */
.section--tight {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Patch-test policy banner */
.patch-note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-accent-dark);
  border-left-width: 4px;
  border-radius: 10px;
  font-weight: 500;
}

.patch-note__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
}

/* Category filter */
.service-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.service-filter__btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-filter__btn:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

.service-filter__btn[aria-pressed="true"] {
  background-color: var(--color-accent);
  border-color: transparent;
  color: var(--color-text);
}

/* Group section fade for the filter transition */
.service-group-section {
  transition: opacity 0.25s ease;
}

.service-group-section.is-filtering-out {
  opacity: 0;
}

/* Menu-style service list */
.service-menu {
  list-style: none;
  margin: var(--space-7) 0 0;
  padding: 0;
}

.service-menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-menu__item:last-child {
  border-bottom: 0;
}

.service-menu__body {
  min-width: 0;
}

.service-menu__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

.service-menu__desc {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 52ch;
}

.service-menu__price {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.service-menu__badge {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Dark-band overrides */
.section--dark .service-menu__item {
  border-color: var(--color-border-on-dark);
}

.section--dark .service-menu__desc {
  color: var(--color-text-on-dark-muted);
}

.section--dark .service-menu__price {
  color: var(--color-text-on-dark);
}

.section--dark .service-menu__badge {
  background-color: var(--color-text-on-dark);
  color: var(--color-surface-dark);
}

/* Payment note */
.service-payment-note {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Featured services
   ------------------------------------------------------------------------- */
.services-preview__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--color-accent-dark);
  box-shadow: 0 18px 36px -22px rgba(45, 44, 47, 0.4);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-5);
  color: var(--color-accent-dark);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.service-card__desc {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
}

.service-card__more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.services-preview__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}

@media (min-width: 768px) {
  .services-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------------------
   About teaser
   ------------------------------------------------------------------------- */
.about-teaser__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.about-teaser__portrait {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  /* Soft fill shown behind the photo while it loads */
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
}

.about-teaser__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-teaser__body {
  max-width: 480px;
  /* left-aligned on mobile to match every other section block + about.html's bio */
}

.about-teaser__body p {
  color: var(--color-text-muted);
}

/* On the dark homepage variant the body copy needs the light muted tone */
.section--dark .about-teaser__body p {
  color: var(--color-text-on-dark-muted);
}

.about-teaser__portrait {
  max-width: 380px;
}

.about-teaser__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.about-teaser__link:hover,
.about-teaser__link:focus-visible {
  border-color: currentColor;
}

.section--dark .about-teaser__link {
  color: var(--color-text-on-dark);
}

@media (min-width: 768px) {
  .about-teaser__inner {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
  }

  .about-teaser__body {
    text-align: left;
  }
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testimonials__row {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  margin: 0 calc(var(--space-4) * -1);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-dark);
  border-radius: 12px;
  padding: var(--space-6);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  line-height: 1.35;
  margin-bottom: var(--space-4);
}

.testimonial-card__author {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--color-accent-dark);
}

@media (min-width: 768px) {
  .testimonials__row {
    overflow-x: visible;
    scroll-snap-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    flex: initial;
  }
}

/* -------------------------------------------------------------------------
   Your Visit — 3-step process timeline (index.html, dark section)
   ------------------------------------------------------------------------- */
.your-visit__steps {
  position: relative;
  margin-top: var(--space-7);
}

/* Mobile: vertical connector down the left of the stacked steps */
.your-visit__track {
  position: relative;
  display: grid;
  gap: var(--space-6);
}

.your-visit__track::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--color-border-on-dark);
}

/* Desktop-only horizontal line that draws in on scroll */
.your-visit__line {
  display: none;
}

.your-visit__step {
  position: relative;
  padding-left: var(--space-7);
}

.your-visit__num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--color-surface-dark);
  border: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-on-dark);
}

.your-visit__step-title {
  font-size: var(--font-size-h4);
  margin-bottom: var(--space-2);
}

.your-visit__step-desc {
  color: var(--color-text-on-dark-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .your-visit__track {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .your-visit__track::before {
    display: none;
  }

  .your-visit__line {
    /* Explicit width (not left+right) so the SVG's viewBox aspect ratio can't
       blow the element out to its intrinsic 1000px and cause page overflow. */
    display: block;
    position: absolute;
    left: 16.667%;
    width: 66.666%;
    top: 15px;
    height: 2px;
    color: var(--color-accent);
  }

  .your-visit__step {
    padding-left: 0;
    padding-top: calc(32px + var(--space-5));
    text-align: center;
  }

  .your-visit__num {
    left: 50%;
    transform: translateX(-50%);
  }

  .your-visit__step-desc {
    max-width: 32ch;
    margin: 0 auto;
  }
}

/* Line-draw: scroll-animations.js sets stroke-dasharray/offset, then zeroes the
   offset when the SVG scrolls into view. */
[data-draw-line] path,
[data-draw-line] line,
[data-draw-line] polyline {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* -------------------------------------------------------------------------
   Stats / trust bar (index.html) — count-up numbers
   ------------------------------------------------------------------------- */
.stats__row {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4rem);
  line-height: 1;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-3);
}

.stat__label {
  display: block;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .stats__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Final CTA (index.html) — dark closing band
   ------------------------------------------------------------------------- */
.final-cta {
  text-align: center;
}

.final-cta .display-heading {
  margin-left: auto;
  margin-right: auto;
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* -------------------------------------------------------------------------
   Gallery bento grid (gallery.html)
   ------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: var(--space-3);
}

.gallery-grid__item[hidden] {
  display: none;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
}

.gallery-tile picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover .gallery-tile__img,
.gallery-tile:focus-visible .gallery-tile__img {
  transform: scale(1.06);
}

.gallery-tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: linear-gradient(0deg, rgba(45, 44, 47, 0.75) 0%, rgba(45, 44, 47, 0) 100%);
  color: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-tile--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-tile--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

/* Stays hidden without JS (all tiles are shown in that case, so the button is
   pointless); js/gallery.js clears [hidden] to reveal it. */
.gallery__more[hidden] {
  display: none;
}

/* -------------------------------------------------------------------------
   Before / after comparison slider (gallery.html — js/before-after.js)
   --ba-pos (a %) is set by the script from the range value; the CSS falls
   back to 50% so a no-JS page still shows a static split.
   ------------------------------------------------------------------------- */
.ba-slider {
  max-width: 560px;
  margin: var(--space-7) 0 0;
}

.ba-slider__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.ba-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-slider__img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-slider__img--after {
  z-index: 2;
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}

.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  margin-left: -1px;
  z-index: 3;
  background-color: var(--color-surface);
  pointer-events: none;
}

.ba-slider__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background-color: var(--color-surface);
  box-shadow: 0 0 0 1px rgba(45, 44, 47, 0.15), 0 8px 20px -8px rgba(45, 44, 47, 0.6);
}

.ba-slider__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  /* Not pointer-hit — the script handles drag on .ba-slider__media — but still
     Tab-focusable and arrow-key operable. */
  pointer-events: none;
}

.ba-slider__media:focus-within {
  outline: 3px solid var(--color-text-on-dark);
  outline-offset: 3px;
}

.ba-slider__label {
  position: absolute;
  bottom: var(--space-3);
  z-index: 3;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background-color: rgba(45, 44, 47, 0.72);
  color: var(--color-text-on-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-slider__label--before {
  left: var(--space-3);
}

.ba-slider__label--after {
  right: var(--space-3);
}

/* -------------------------------------------------------------------------
   Lightbox (gallery.html — controlled by js/gallery.js)
   ------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background-color: var(--color-overlay);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox__caption {
  margin: var(--space-4) 0 0;
  color: var(--color-surface);
  text-align: center;
}

/* Gallery lightbox only (not the about.html certificate lightbox, which shares
   this same .lightbox markup/class): captions stay populated by gallery.js but
   are not shown. */
#gallery-lightbox .lightbox__caption {
  display: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: var(--color-surface);
  color: var(--color-text);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 20px;
  height: 20px;
}

.lightbox__close {
  top: var(--space-4);
  right: var(--space-4);
}

.lightbox__prev {
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .lightbox__prev {
    left: var(--space-6);
  }

  .lightbox__next {
    right: var(--space-6);
  }
}

/* -------------------------------------------------------------------------
   Booking widget (booking.html) — Treatwell, loaded lazily by
   js/booking-widget.js. min-height (not aspect-ratio) reserves space against
   CLS while still letting the widget grow taller once it renders its real
   content.

   Treatwell's own script injects <div id="wahanda-online-booking-widget-
   iframe"><iframe style="width:100%;height:100%"></iframe></div> inside
   .booking-widget. That inner div has no explicit height of its own, so the
   iframe's height:100% resolves against nothing and the browser falls back
   to the default 300x150 iframe size — which is why the widget rendered in
   a tiny box with its own internal scrollbar instead of using the space
   .booking-widget reserved. Fixing this needs an explicit height on the
   Treatwell-owned div AND the iframe itself (not just the outer wrapper),
   since min-height on an ancestor doesn't hand a usable percentage-height
   basis down to an auto-sized child two levels down. */
.booking-widget {
  width: 100%;
  min-height: 1400px;
  padding: var(--space-5);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: visible;
}

/* This div (not the iframe) carries the height: it's what gives the
   iframe's own inline height:100% (set once by Treatwell's script) a real
   basis to resolve against — min-height alone doesn't count as a "definite"
   height for a percentage-height child to resolve against (confirmed: with
   only min-height here the iframe fell back to the browser default 150px),
   so this needs a real height, not just a floor. The iframe itself is still
   intentionally left alone — no CSS height/min-height/!important on it at
   all, no specificity fight with Treatwell's own inline style. */
#wahanda-online-booking-widget-iframe {
  height: 1400px;
}

@media (min-width: 768px) {
  .booking-widget {
    min-height: 1200px;
  }

  #wahanda-online-booking-widget-iframe {
    height: 1200px;
  }
}

/* -------------------------------------------------------------------------
   Alternative booking contact (booking.html)
   ------------------------------------------------------------------------- */
.booking-contact {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.booking-contact__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.booking-contact__link:hover,
.booking-contact__link:focus-visible {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

@media (min-width: 480px) {
  .booking-contact {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Contact layout (contact.html)
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: var(--space-7);
}

.contact-layout--spaced {
  margin-top: var(--space-7);
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Small left-aligned sub-heading for the details / map columns */
.contact-col__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-h4);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

/* Enquiry form — 2-column on desktop (supporting note beside the form) */
.contact-enquiry__inner {
  display: grid;
  gap: var(--space-7);
}

.contact-enquiry__inner .contact-form {
  max-width: none;
  margin: 0;
}

.contact-enquiry__inner .contact-enquiry__note {
  margin-inline: 0;
  max-width: 46ch;
  text-align: left;
}

@media (min-width: 900px) {
  .contact-enquiry__inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

/* Booking widget frame reads on the dark section it now sits in */
.section--dark .booking-widget {
  border-color: var(--color-border-on-dark);
}

.hours-list {
  margin: var(--space-4) 0;
  max-width: 26rem;
}

.hours-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-list__row:last-child {
  border-bottom: none;
}

.hours-list__row dt {
  font-weight: 500;
}

.hours-list__hours {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.hours-list__hours--closed {
  color: var(--color-text-muted);
  /* muted text shares the body colour, so opacity marks the closed rows */
  opacity: 0.55;
  font-weight: 400;
}

/* "Today" indicator — set by initTodayHighlight() in main.js, matched via
   data-days (0=Sun..6=Sat, JS Date.getDay() convention) against the visitor's
   local day, so it's never hardcoded to a specific date. */
.hours-list__row.is-today {
  background-color: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent-dark);
  border-radius: 4px;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  margin: 0 calc(var(--space-3) * -1);
}

@media (max-width: 374px) {
  .hours-list__row {
    font-size: 0.92rem;
  }
}

/* Tap-to-load map facade (contact.html) — fixed aspect-ratio reserves the
   space up front so swapping the button for the real iframe (js/map-facade.js)
   causes zero layout shift, before or after loading. */
.map-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-facade__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  border: 1px solid var(--color-accent-dark);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.map-facade__button:hover,
.map-facade__button:focus-visible {
  background: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

.map-facade__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.map-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------------------
   Enquiry form (contact.html) — tokens only, no new colours/fonts
   ------------------------------------------------------------------------- */
.contact-enquiry__note {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}


.form-field {
  margin-bottom: var(--space-5);
}

.form-field__label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.form-field__optional {
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-field__control {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.25s ease;
}

.form-field__control::placeholder {
  color: var(--color-text-muted);
}

.form-field__control:focus {
  border-color: var(--color-accent-dark);
}

textarea.form-field__control {
  min-height: 8rem;
  resize: vertical;
}

/* Invalid state — the palette has no error hue, so the deep accent tone carries
   the "needs attention" signal, alongside the inline text and aria-invalid. */
.form-field--invalid .form-field__control {
  border-color: var(--color-accent-dark);
}

.form-field__error {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-dark);
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--space-2);
}

.contact-form__status {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  background-color: var(--color-bg-alt);
  text-align: center;
}

.contact-form__status--success {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

@media (min-width: 480px) {
  .contact-form__submit {
    width: auto;
  }
}

/* -------------------------------------------------------------------------
   Legal pages (privacy-policy.html): single readable column
   ------------------------------------------------------------------------- */
.legal__inner {
  max-width: 70ch;
  margin: 0 auto;
  text-align: left;
  line-height: 1.7;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
}

.legal h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  margin: var(--space-7) 0 var(--space-3);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 var(--space-4);
}

.legal li + li {
  margin-top: var(--space-2);
}

.legal a,
.contact-form__privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Consent note under the contact form submit button */
.contact-form__privacy {
  margin: var(--space-3) 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Christmas packages: hero trigger and dialog (js/christmas-popup.js)
   ------------------------------------------------------------------------- */
.christmas-off [data-open-christmas] { display: none !important; }

/* Hero buttons: stacked full-width on phones, side by side from 768px */
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }

.btn--ghost {
  gap: var(--space-2);
  background-color: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px currentColor; /* outline without changing the box size */
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
  box-shadow: inset 0 0 0 1.5px var(--color-accent-dark);
  transform: translateY(-1px);
}
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }

/* Mobile hero sits on the dark photo */
.hero .btn--ghost { color: var(--color-text-on-dark); }
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background-color: var(--color-text-on-dark);
  color: var(--color-text);
  box-shadow: inset 0 0 0 1.5px var(--color-text-on-dark);
  outline-color: var(--color-text-on-dark);
}

@media (min-width: 768px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
  .hero .btn--ghost { color: var(--color-text); }
  .hero .btn--ghost:hover,
  .hero .btn--ghost:focus-visible {
    background-color: var(--color-accent-dark);
    color: var(--color-text-on-dark);
    box-shadow: inset 0 0 0 1.5px var(--color-accent-dark);
    outline-color: var(--color-accent-dark);
  }
}

/* Call link under the hero buttons */
.hero__call {
  margin: var(--space-2) 0 0;
  text-align: center;
}

.hero__call-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--color-text-on-dark-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero__call-link:focus-visible {
  outline-color: var(--color-text-on-dark);
}

.hero__call-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

@media (min-width: 768px) {
  .hero__call {
    text-align: left;
  }

  .hero__call-link {
    color: var(--color-text-muted);
  }

  .hero__call-link:focus-visible {
    outline-color: var(--color-accent-dark);
  }
}

/* Dialog */
.xmas-dialog {
  --xmas-img-h: min(78vh, calc(100vh - 8.5rem)); /* image + button + paddings always fit */
  position: fixed;
  inset: 0;
  z-index: 400; /* above header, mobile nav, snow (250) and lightbox (300) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: rgba(45, 44, 47, 0.8);
  opacity: 0;
  transition: opacity 0.25s ease;
}
@supports (height: 100dvh) {
  .xmas-dialog { --xmas-img-h: min(78dvh, calc(100dvh - 8.5rem)); }
}
.xmas-dialog[hidden] { display: none; }
.xmas-dialog.is-open { opacity: 1; }

.xmas-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: min(92vw, 560px, calc(var(--xmas-img-h) * 1089 / 1444 + 2 * var(--space-3)));
  max-width: 100%;
  padding: var(--space-3);
  border-radius: 12px;
  background-color: var(--color-surface-dark);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.xmas-dialog.is-open .xmas-dialog__panel { transform: translateY(0); }

.xmas-dialog__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--xmas-img-h);
  object-fit: contain;
  border-radius: 8px;
}

.xmas-dialog__book { align-self: stretch; }
.xmas-dialog__book:hover,
.xmas-dialog__book:focus-visible {
  background-color: var(--color-text-on-dark);
  color: var(--color-text);
  outline-color: var(--color-text-on-dark);
}

.xmas-dialog__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(45, 44, 47, 0.82);
  color: var(--color-text-on-dark);
  box-shadow: inset 0 0 0 1px rgba(219, 213, 209, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease;
}
.xmas-dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.xmas-dialog__close:hover { background-color: var(--color-surface-dark); }
.xmas-dialog__close:focus-visible { outline: 3px solid var(--color-text-on-dark); outline-offset: 2px; }

@media (min-width: 768px) {
  .xmas-dialog__panel {
    width: min(640px, calc(var(--xmas-img-h) * 1089 / 1444 + 2 * var(--space-4)));
    padding: var(--space-4);
    gap: var(--space-4);
  }
  .xmas-dialog__book { align-self: center; min-width: min(14rem, 100%); }
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__subtitle,
  .hero__cta,
  .reveal,
  .reveal-text__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-toggle__bar,
  .primary-nav,
  .primary-nav__link::after,
  .site-header,
  .btn--primary,
  .service-card,
  .service-filter__btn,
  .service-group-section,
  .cert-thumb,
  .gallery-tile__img,
  .gallery-tile__caption,
  .booking-contact__link,
  .form-field__control,
  [data-draw-line] path,
  [data-draw-line] line,
  [data-draw-line] polyline {
    transition: none;
  }

  .btn--ghost,
  .xmas-dialog,
  .xmas-dialog__panel {
    transition: none;
  }

  .xmas-dialog__panel {
    transform: none;
  }

  /* Marquee: stop the loop and show a single static copy of the text. */
  .marquee__track {
    animation: none;
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Main content area
   ------------------------------------------------------------------------- */
main {
  min-height: 40vh;
}

/* -------------------------------------------------------------------------
   Breakpoints reference
   480px  — larger phones
   768px  — tablets / nav switches to horizontal
   1024px — small desktops
   1280px — large desktops, max content width
   ------------------------------------------------------------------------- */
/* Desktop hero gutter (the mobile hero stays full-bleed) */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-8) var(--space-5);
  }
}

@media (min-width: 1024px) {
  .site-header,
  .site-footer__inner,
  .site-footer__bottom,
  .section {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1280px) {
  .site-header {
    max-width: var(--max-width);
    margin: 0 auto;
  }
}
