/* ==========================================================================
   McWellness — shared stylesheet
   Single CSS file for the whole site. Token system + shared components.
   Logical properties throughout (RTL-ready). Respects prefers-reduced-motion.
   ========================================================================== */

/* 0. Fonts — self-hosted (latin + latin-ext subsets of Fraunces & Inter).
   Replaces the render-blocking third-party Google Fonts request. The
   unicode-range keeps latin-ext from downloading unless extended glyphs appear. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/fraunces-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/fraunces-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/fraunces-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/fraunces-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/fraunces-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/fraunces-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/inter-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/inter-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 0b. Arabic fonts — self-hosted (arabic subset only), used on the /ar/ RTL site.
   IBM Plex Sans Arabic (body, pairs with Inter) + Tajawal (display, echoes
   Fraunces). The unicode-range is Arabic-only, so Latin glyphs (brand terms
   like "McWellness", "QEEG") still fall through to Inter/Fraunces. */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/tajawal-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/tajawal-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand — from the McWellness neural-brain logo */
  --c-violet:   #5B2A86;
  --c-violet-dark: #46206B;
  --c-magenta:  #C2278F;
  --c-coral:    #E8633A;
  --c-lavender: #F3EDF9;
  --c-ink:      #2B2140;

  /* Surfaces */
  --c-bg:      #FFFFFF;
  --c-surface: #FFFFFF;
  --c-band:    var(--c-lavender);

  /* Derived / functional */
  --c-text:       var(--c-ink);
  --c-text-muted: #6B6280;
  --c-text-todo:  #9A93AC;
  --c-border:     #E7E0F0;
  --c-link:       var(--c-violet);
  --c-link-hover: var(--c-magenta);
  --c-focus:      var(--c-magenta);

  /* Signature gradient — thin element only (EKG line, hairlines) */
  --grad-signature: linear-gradient(90deg,
                      var(--c-violet) 0%,
                      var(--c-magenta) 50%,
                      var(--c-coral) 100%);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2rem, 5.5vw + 1rem, 4.5rem);
  --fs-h1:      clamp(2rem, 4vw + 1rem, 3rem);
  --fs-h2:      clamp(1.5rem, 2vw + 1rem, 2.25rem);
  --fs-h3:      clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-lead:    clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.65;

  --fw-body:     400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-display:  500;

  /* Spacing (8px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --measure: 65ch;
  --container: 72rem;
  --container-narrow: 46rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows — softened for a calmer, more premium feel */
  --shadow-sm: 0 2px 10px rgba(43, 33, 64, 0.04);
  --shadow-md: 0 12px 44px rgba(43, 33, 64, 0.07);
  --shadow-focus: 0 0 0 3px rgba(194, 39, 143, 0.45);

  /* Motion / layout — slightly slower, more elegant */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 340ms;
  --ekg-duration: 3.5s;
  --header-h: 5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-tight);
  color: var(--c-ink);
  margin-block: 0 var(--sp-4);
}

/* Guard against any single element forcing a horizontal scrollbar on small
   viewports (which would push the nav toggle off-screen). overflow-x: clip
   does not create a scroll container, so the sticky header still works. */
body { overflow-x: clip; }

/* ── UI RULE: never break a word across two lines ──────────────────────────────
   Site-wide: words always stay whole — no hyphenation and no mid-word wrapping.
   Lines still wrap normally at spaces. A string with no break opportunity (e.g. a
   very long URL) overflows rather than splitting; body{overflow-x:clip} above keeps
   that from creating a horizontal scrollbar. Inherited, so it covers all elements. */
html {
  overflow-wrap: normal;
  word-break: keep-all;
  -webkit-hyphens: none;
  hyphens: none;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { margin-block: 0 var(--sp-4); }
p:last-child { margin-block-end: 0; }

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--c-link-hover); }

img { max-inline-size: 100%; block-size: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* 3. Layout helpers -------------------------------------------------------- */
.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--narrow { max-inline-size: var(--container-narrow); }

.measure { max-inline-size: var(--measure); }

.section { padding-block: var(--sp-16); }
@media (min-width: 768px) { .section { padding-block: var(--sp-24); } }

.section--band { background: var(--c-band); }

.text-center { text-align: center; }
.center-block { margin-inline: auto; }

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

/* 4. Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--sp-4);
  z-index: 100;
  background: var(--c-violet);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: inset-block-start var(--dur-fast) var(--ease);
}
.skip-link:focus { inset-block-start: var(--sp-4); color: #fff; }

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-block-end: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-block-size: var(--header-h);
}

/* Brand block (logical start) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }
.brand__mark { inline-size: 38px; block-size: 38px; flex: 0 0 auto; }
.brand__logo { block-size: 60px; inline-size: auto; flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand__region {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-violet);
  background: var(--c-lavender);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  margin-inline-start: var(--sp-1);
}

/* Nav (logical end) */
.nav-toggle { display: none; }            /* the checkbox */
.nav-toggle-label { display: none; }      /* hamburger button, shown on mobile */
.nav-backdrop { display: none; }          /* drawer scrim, shown on mobile/tablet */

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  text-decoration: none;
  color: var(--c-ink);
  font-weight: var(--fw-medium);
  padding-block: var(--sp-1);
  border-block-end: 2px solid transparent;
}
.site-nav__link:hover { color: var(--c-link-hover); }
.site-nav__link[aria-current="page"] {
  color: var(--c-violet);
  border-block-end-color: var(--c-violet);
}

/* Mobile + tablet nav: app-style off-canvas side drawer, checkbox-toggled.
   The drawer slides in from the inline-end edge (same side as the hamburger —
   right in LTR, left in RTL). A dim backdrop closes it on tap. No JS. */
@media (max-width: 1024px) {
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    inline-size: 44px;
    block-size: 44px;
    padding: var(--sp-3);
    cursor: pointer;
    border-radius: var(--r-sm);
  }
  .nav-toggle-label span {
    display: block;
    inline-size: 22px;
    block-size: 2px;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease),
                opacity var(--dur-fast) var(--ease);
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--c-focus);
    outline-offset: 2px;
  }

  /* Dim backdrop — covers the page behind the drawer; tap anywhere to close. */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 64, 0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 45;
    cursor: pointer;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .nav-toggle:checked ~ .nav-backdrop { opacity: 1; visibility: visible; }

  /* The drawer panel — fixed full height, pinned to the inline-end edge. */
  .site-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    inline-size: min(82vw, 340px);
    background: var(--c-bg);
    box-shadow: var(--shadow-md);
    z-index: 50;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
  }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
  /* Stop the off-canvas (translated) drawer from creating sideways scroll. */
  html { overflow-x: hidden; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + var(--sp-2)) var(--sp-6) var(--sp-8);
  }
  .site-nav__item { border-block-end: 1px solid var(--c-border); }
  .site-nav__item:last-child { border-block-end: 0; }
  .site-nav__link { display: block; padding-block: var(--sp-4); }
  .site-nav__link--cta {
    display: inline-block;
    margin-block-start: var(--sp-6);
    text-align: center;
  }

  /* Keep the hamburger/X fixed above the drawer so it stays tappable to close. */
  .nav-toggle:checked + .nav-toggle-label {
    position: fixed;
    inset-block-start: calc((var(--header-h) - 44px) / 2);
    inset-inline-end: var(--sp-4);
    z-index: 60;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* RTL: the inline-end edge is the left, so the drawer hides/opens leftward. */
  [dir="rtl"] .site-nav { transform: translateX(-100%); }
  [dir="rtl"] .nav-toggle:checked ~ .site-nav { transform: translateX(0); }
}

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--c-violet);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--c-magenta);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* nav Book Now as a pill */
.site-nav__link--cta {
  border: 2px solid var(--c-violet);
  border-radius: var(--r-pill);
  padding-inline: var(--sp-4);
  padding-block: var(--sp-2);
  color: var(--c-violet);
}
.site-nav__link--cta:hover {
  background: var(--c-violet);
  color: #fff;
  border-color: var(--c-violet);
}

/* 7. EKG heartbeat divider (signature element) ----------------------------- */
.ekg {
  position: relative;
  inline-size: 100%;
  block-size: 60px;
  margin-block: var(--sp-12);
}
.ekg svg { inline-size: 100%; block-size: 100%; display: block; }

/* Faint full heartbeat trace — always visible, the calm baseline. */
.ekg__base {
  fill: none;
  stroke: url(#ekgGradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.22;
}
/* Bright pulse that travels along the trace, echoing the logo's heartbeat. */
.ekg__pulse {
  fill: none;
  stroke: url(#ekgGradient);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 150 1282;        /* bright segment + gap = path length */
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(232, 99, 58, 0.55));
  animation: ekg-travel var(--ekg-duration) linear infinite;
}
@keyframes ekg-travel {
  to { stroke-dashoffset: -1432; }   /* one full dash + gap = seamless loop */
}
/* Pulsing nodes that cap the line, like the dots on the logo's heartbeat. */
.ekg::before, .ekg::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: ekg-node var(--ekg-duration) var(--ease) infinite;
}
.ekg::before { inset-inline-start: 0; background: var(--c-coral); }
.ekg::after  { inset-inline-end: 0; background: var(--c-violet); animation-delay: calc(var(--ekg-duration) / -2); }
@keyframes ekg-node {
  0%, 100% { transform: translateY(-50%) scale(1);   opacity: 0.5; }
  50%      { transform: translateY(-50%) scale(1.5); opacity: 1; }
}

/* 8. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-block: var(--sp-24);
  padding-inline: var(--sp-6);
  background: var(--c-lavender);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  /* premium image treatment: richer colour, more contrast & clarity — NOT darker */
  filter: saturate(1.18) contrast(1.12) brightness(1.0);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Photo heroes: NO white layer — the landscape shows fully clear and vivid.
   Only a gentle dark gradient (strongest behind the lower text & buttons) sits
   over it so the white hero copy stays readable. */
.hero--photo .hero__scrim {
  background:
    linear-gradient(180deg,
      rgba(20, 12, 35, 0.12) 0%,
      rgba(20, 12, 35, 0.30) 55%,
      rgba(20, 12, 35, 0.48) 100%);
}
/* white hero copy + soft shadow so it reads cleanly over the clear photo */
.hero--photo .hero__eyebrow { color: #fff; }
.hero--photo .hero__title,
.hero--photo .hero__subtitle,
.hero--photo .page-head__title,
.hero--photo .page-head__subtitle {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
/* Dark-copy hero variant: NO overlay tint — the photo shows in full, true colour.
   Black headline stays readable via a tight white halo on the text itself (not a
   wash over the image). Scoped so other heroes are unchanged. */
.hero--ink {
  /* ~10% taller hero, so the photo shows that much larger (extra split top & bottom) */
  padding-block: calc(var(--sp-24) + 2rem);
}
.hero--ink .hero__scrim { background: none; }
/* Service heroes (QEEG, Neurofeedback, Compassionate Inquiry) share one photo +
   colour treatment: trim ~10% magenta cast (tint toward green), keep standard vividness. */
.hero--qeeg .hero__img,
.hero--nf .hero__img,
.hero--ci .hero__img { filter: url(#hero-tint) saturate(1.18) contrast(1.12) brightness(1.0); }
/* Vibrance raised 10% from the muted setting (saturate 0.85 → 0.935); contrast/brightness/hue unchanged. */
.hero--ink .hero__img { filter: saturate(0.935) contrast(1.12) brightness(1.0); }
.hero--ink .hero__eyebrow { color: var(--c-ink); }
.hero--ink .hero__title,
.hero--ink .hero__subtitle {
  color: #141414;
  text-shadow: none;
}
.hero--ci .page-head { padding-block: 0; position: relative; }
/* Present the white-backed CI logo as an intentional rounded card so it sits
   cleanly over the photographic hero on every viewport. */
.hero--ci .graphic--logo {
  background: #fff;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
/* QEEG "Understanding Your Brainwaves" colour legend */
.bw-legend {
  list-style: none;
  margin-block: var(--sp-4) var(--sp-6);
  padding: 0;
  display: grid;
  gap: var(--sp-3);
  text-align: start;
}
.bw-legend li { display: flex; align-items: baseline; gap: var(--sp-3); }
.bw-dots { flex: 0 0 auto; display: inline-flex; gap: 0.25em; transform: translateY(0.05em); }
.bw-dot {
  flex: 0 0 auto;
  inline-size: 0.8em;
  block-size: 0.8em;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(0.05em);
}
/* Left-aligned section heading (for two-column story/spec layouts) */
.section-head.section-head--start {
  text-align: start;
  margin-inline: 0;
  max-inline-size: none;
  margin-block-end: var(--sp-6);
}

/* "Understanding First" lead story — portrait + text, side by side on desktop,
   image-above-text on mobile. Mobile-first. */
.story__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
.story__media {
  inline-size: 100%;
  max-inline-size: 28rem;   /* keep the 3:4 portrait elegant, not overpowering */
  margin-inline: auto;
}
.story__text > * + * { margin-block-start: var(--sp-4); }
.story__text .eyebrow + h2 { margin-block-start: var(--sp-3); }
.story__lead { font-size: var(--fs-lead); color: var(--c-ink); }
.story__cta { margin-block-start: var(--sp-6); }
@media (min-width: 768px) {
  .story__grid { grid-template-columns: 1fr 1.1fr; gap: var(--sp-16); }
  .story__media { max-inline-size: none; }
}

/* "Why McWellness" — six differentiator cards + authority portrait */
.spec__grid { display: grid; gap: var(--sp-8); }
.spec__photo {
  order: -1;                 /* mobile: portrait sits above the content */
  inline-size: 100%;
  max-inline-size: 24rem;
  margin-inline: auto;
}
.feature-cards.spec__cards { margin-block-start: var(--sp-6); }
@media (min-width: 560px) { .feature-cards.spec__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .spec__grid { grid-template-columns: 1.5fr 1fr; gap: var(--sp-16); align-items: center; }
  .spec__photo { order: 0; max-inline-size: none; }  /* desktop: content left, image right */
  .feature-cards.spec__cards { grid-template-columns: 1fr 1fr; }
}
.hero__title {
  font-size: var(--fs-display);
  margin-block-end: var(--sp-4);
}
.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  max-inline-size: 40ch;
  margin-inline: auto;
  margin-block-end: var(--sp-8);
}

/* 9. Intro ----------------------------------------------------------------- */
.intro {
  text-align: center;
}
.intro p {
  font-size: var(--fs-lead);
  max-inline-size: var(--measure);
  margin-inline: auto;
}

/* 10. Split section (text + figure) --------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .split--reverse .split__media { order: 2; }
}
.split__text p {
  font-size: var(--fs-lead);
  margin-block-end: 0;
}

/* 11. Figure placeholder --------------------------------------------------- */
.figure-placeholder {
  margin: 0;
}
.figure-placeholder__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--c-lavender);
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text-muted);
  text-align: center;
  padding: var(--sp-8);
}
.figure-placeholder__box svg { color: var(--c-magenta); opacity: 0.7; }
.figure-placeholder__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.figure-placeholder--16x9 .figure-placeholder__box { aspect-ratio: 16 / 9; }
.figure-placeholder--4x3 .figure-placeholder__box { aspect-ratio: 4 / 3; }
.figure-placeholder--3x4 .figure-placeholder__box { aspect-ratio: 3 / 4; }
.figure-placeholder figcaption {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  font-style: italic;
}

/* Real photo (replaces a placeholder once a client image is in place) */
/* <picture> wraps some <img> for WebP/AVIF fallback; keep it transparent to
   layout so the inner <img> behaves as a direct flex/grid/positioned child. */
picture { display: contents; }

.photo { margin: 0; }
.photo__frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.photo__frame img {        /* default: keep the image's natural aspect ratio */
  display: block;
  inline-size: 100%;
  block-size: auto;
}
/* fixed-ratio variants crop with object-fit: cover */
.photo--16x9 .photo__frame { aspect-ratio: 16 / 9; }
.photo--4x3  .photo__frame { aspect-ratio: 4 / 3; }
.photo--3x4  .photo__frame { aspect-ratio: 3 / 4; }
.photo--wide .photo__frame { aspect-ratio: 2 / 1; }
.photo--16x9 .photo__frame img,
.photo--4x3  .photo__frame img,
.photo--3x4  .photo__frame img,
.photo--wide .photo__frame img { block-size: 100%; object-fit: cover; }
.photo figcaption {
  margin-block-start: var(--sp-2);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  font-style: italic;
}

/* Centered graphic on a transparent/white field (logo lockup, diagram, icon
   illustration) — shown contained, no crop, no frame chrome */
.graphic {
  display: block;
  inline-size: 100%;
  block-size: auto;
  margin-inline: auto;
}
.graphic--logo    { max-inline-size: 22rem; margin-block: var(--sp-6); }
.graphic--diagram { max-inline-size: 40rem; }
.graphic--icon    { max-inline-size: 16rem; margin-block-end: var(--sp-8); }

/* Responsive video (founder interview) */
.video-frame {
  position: relative;
  max-inline-size: 56rem;
  margin-inline: auto;
  aspect-ratio: 16 / 9;        /* matches the landscape interview video */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}
.video-frame video {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center; /* poster is a 16:9 still */
}
/* Premium play-button overlay (injected by JS; native controls remain without JS) */
.video-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(rgba(43,33,64,0.05), rgba(43,33,64,0.35));
}
.video-frame__play span {
  inline-size: 76px;
  block-size: 76px;
  border-radius: 50%;
  background: rgba(91, 42, 134, 0.92);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.video-frame__play:hover span,
.video-frame__play:focus-visible span { transform: scale(1.08); background: var(--c-magenta); }
.video-frame__play svg { fill: #fff; margin-inline-start: 4px; }

/* 12. CTA section ---------------------------------------------------------- */
.cta-section { text-align: center; }
.cta-section__text {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--c-ink);
  max-inline-size: 28ch;
  margin-inline: auto;
  margin-block-end: var(--sp-8);
}
.cta-section .figure-placeholder {
  max-inline-size: 26rem;
  margin-inline: auto;
  margin-block-end: var(--sp-8);
}

/* 13. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: #fff;
  padding-block: var(--sp-16);
}
.site-footer a { color: #fff; }
.site-footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-block-end: var(--sp-6);
}
.site-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-small);
  font-family: var(--font-body);
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.contact-item__icon { opacity: 0.8; flex: 0 0 auto; }
/* TODO placeholder contact values render visibly unfinished */
.contact-item--todo {
  color: var(--c-text-todo);
  font-style: italic;
}
.contact-item--todo .contact-item__icon { opacity: 0.5; }
.site-footer__legal {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
  border-block-start: 1px solid rgba(255, 255, 255, 0.15);
  padding-block-start: var(--sp-6);
}

/* 15. Inner-page title block ---------------------------------------------- */
.page-head {
  text-align: center;
  padding-block: var(--sp-16) 0;
}
.page-head__title { margin-block-end: var(--sp-3); }
.page-head__subtitle {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  max-inline-size: 48ch;
  margin-inline: auto;
}

/* 16. Prose section -------------------------------------------------------- */
.prose { max-inline-size: var(--measure); }
.prose p { font-size: var(--fs-body); }
.prose--center { margin-inline: auto; }

/* 17. Service hub link cards ---------------------------------------------- */
.service-cards {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  block-size: 100%;
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.service-card:hover {
  color: var(--c-ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-magenta);
}
.service-card__mark {
  inline-size: 48px;
  block-size: 48px;
  color: var(--c-magenta);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}
.service-card__cue {
  margin-block-start: auto;
  font-weight: var(--fw-semibold);
  color: var(--c-violet);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.service-card:hover .service-card__cue { color: var(--c-magenta); }

/* 18. Callout "IN BOX" (bordered) ----------------------------------------- */
.callout {
  max-inline-size: var(--container);
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  padding: var(--sp-8);
}
.callout__header {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--c-violet);
  margin-block: 0 var(--sp-6);
}
.callout__list {
  display: grid;
  gap: var(--sp-3) var(--sp-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px) {
  .callout__list { grid-template-columns: 1fr 1fr; }
}
.callout__list li {
  position: relative;
  padding-inline-start: var(--sp-6);
}
.callout__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.62em;
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--grad-signature);
}

/* 19. Checklist (✔ markers) ----------------------------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.checklist li {
  position: relative;
  padding-inline-start: var(--sp-8);
}
.checklist li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  color: var(--c-magenta);
  font-weight: var(--fw-semibold);
}
.checklist--box {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  padding: var(--sp-8);
}
.checklist__header {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-block: 0 var(--sp-6);
}

/* 20. Step cards row ------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  block-size: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
}
.step-card__num {
  inline-size: 2.5rem;
  block-size: 2.5rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-lavender);
  color: var(--c-violet);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
}
.step-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}
.step-card__body { margin: 0; color: var(--c-text); }

/* Shared: centered CTA row at page foot */
.page-cta { text-align: center; padding-block-start: var(--sp-8); }

/* 21. Neurofeedback loop diagram ------------------------------------------ */
.diagram {
  max-inline-size: 34rem;
  margin-inline: auto;
  margin-block-start: var(--sp-12);
}
.diagram svg { inline-size: 100%; block-size: auto; display: block; }
.diagram__node {
  fill: var(--c-surface);
  stroke: var(--c-border);
  stroke-width: 1.5;
}
.diagram__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  fill: var(--c-ink);
}
.diagram__center {
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--c-text-muted);
}
.diagram__arrow {
  fill: none;
  stroke: url(#ekgGradient);
  stroke-width: 2.5;
}
.diagram figcaption {
  margin-block-start: var(--sp-4);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  font-style: italic;
}

/* 23. Contact action tap targets (Book page) ------------------------------ */
.contact-actions {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: 0;
}
@media (min-width: 768px) {
  .contact-actions { grid-template-columns: repeat(3, 1fr); }
}
.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  block-size: 100%;
  text-align: center;
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
a.contact-action:hover {
  color: var(--c-ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-magenta);
}
.contact-action__icon {
  inline-size: 44px;
  block-size: 44px;
  color: var(--c-magenta);
}
.contact-action__label {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}
.contact-action__value { color: var(--c-violet); font-weight: var(--fw-semibold); }
/* TODO placeholder values render visibly unfinished */
.contact-action--todo { cursor: default; }
.contact-action--todo .contact-action__value {
  color: var(--c-text-todo);
  font-style: italic;
  font-weight: var(--fw-body);
}

/* 22. Note box (prominent disclosure) ------------------------------------- */
.note {
  max-inline-size: var(--measure);
  background: var(--c-lavender);
  border-radius: var(--r-lg);
  border-inline-start: 6px solid var(--c-violet);
  padding: var(--sp-8);
}
.note__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-violet);
  font-size: var(--fs-h3);
  margin-block: 0 var(--sp-4);
}
.note__header svg { flex: 0 0 auto; }
.note p { font-size: var(--fs-lead); }
.note p:first-of-type { font-weight: var(--fw-medium); color: var(--c-ink); }

/* 14. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ekg__pulse { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  .ekg::before, .ekg::after { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   24. Premium homepage components (Phase 1 polish)
   ========================================================================== */

/* Section header (eyebrow + title + intro), centered */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-magenta);
  margin-block-end: var(--sp-3);
}
.section-head {
  text-align: center;
  max-inline-size: 60ch;
  margin-inline: auto;
  margin-block-end: var(--sp-12);
}
.section-head p {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  margin-block-start: var(--sp-2);
}

/* Stronger hero ----------------------------------------------------------- */
.hero__content { position: relative; max-inline-size: 60rem; margin-inline: auto; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-block-end: var(--sp-4);
}
.hero__title {
  font-size: clamp(2.5rem, 5vw + 1.5rem, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-block-end: var(--sp-6);
}
.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--c-ink);
  max-inline-size: 52ch;
  margin-inline: auto;
  margin-block-end: var(--sp-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}

/* Secondary / ghost button */
.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--c-violet);
  border-color: var(--c-violet);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: var(--c-violet);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Trust bar --------------------------------------------------------------- */
.trust-bar {
  border-block: 1px solid var(--c-border);
  background: var(--c-surface);
}
.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-8);
  list-style: none;
  margin: 0;
  padding-block: var(--sp-6);
  padding-inline: 0;
}
.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
  color: var(--c-ink);
}
.trust-bar__item svg { color: var(--c-magenta); flex: 0 0 auto; }

/* Who We Help grid -------------------------------------------------------- */
.who-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  max-inline-size: 56rem;
  margin-inline: auto;
}
@media (min-width: 600px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr 1fr; } }
.who-grid li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-weight: var(--fw-medium);
}
.who-grid li::before {
  content: "";
  inline-size: 10px;
  block-size: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad-signature);
}

/* Feature cards (Why McWellness) ----------------------------------------- */
.feature-cards {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  block-size: 100%;
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: var(--r-md);
  background: var(--c-lavender);
  color: var(--c-violet);
  margin-block-end: var(--sp-4);
}
.feature-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-block: 0 var(--sp-2); }
.feature-card p { margin: 0; color: var(--c-text); }

/* Service cards: add a blurb line */
.service-card__blurb { margin: 0; color: var(--c-text-muted); font-size: var(--fs-small); }

/* Practitioner band ------------------------------------------------------- */
.practitioner {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 768px) {
  .practitioner { grid-template-columns: 320px 1fr; gap: var(--sp-16); }
}
.practitioner__photo .photo__frame { box-shadow: var(--shadow-md); }
.practitioner__name { margin-block: var(--sp-2) var(--sp-1); }
.practitioner__credentials {
  font-weight: var(--fw-semibold);
  color: var(--c-violet);
  font-size: var(--fs-small);
  margin-block-end: var(--sp-4);
}

/* Testimonials ------------------------------------------------------------ */
.testimonials {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  block-size: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial__stars { color: var(--c-coral); letter-spacing: 2px; font-size: 1.1rem; }
.testimonial__quote { font-family: var(--font-body); font-weight: var(--fw-body); font-size: 1.25rem; line-height: 1.4; color: var(--c-ink); margin: 0; }
.testimonial__name { margin: 0; color: var(--c-ink); font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.testimonial__meta { margin: var(--sp-1) 0 0; color: var(--c-text-muted); font-size: 0.8125rem; }
.testimonials__note {
  text-align: center;
  margin-block-start: var(--sp-6);
  font-size: var(--fs-small);
  color: var(--c-text-todo);
  font-style: italic;
}

/* FAQ accordion (native <details>, no JS) -------------------------------- */
.faq { max-inline-size: 52rem; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  margin-block-end: var(--sp-3);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--c-ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--c-violet);
  transition: transform var(--dur) var(--ease);
  flex: 0 0 auto;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 var(--sp-6) var(--sp-6); color: var(--c-text); }
.faq__answer p { margin: 0; }

/* Enhanced footer --------------------------------------------------------- */
.site-footer__grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  margin-block-end: var(--sp-8);
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-12); }
}
.footer-col__head {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-block: 0 var(--sp-4);
}
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-col__list a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer-col__list a:hover { color: #fff; text-decoration: underline; }
.footer-col__list .is-todo { color: var(--c-text-todo); font-style: italic; }
.site-footer .contact-list { margin-block-end: 0; }
.site-footer__brand-col .site-footer__brand { margin-block-end: var(--sp-3); }

/* ==========================================================================
   25. About authority page (Phase 1b)
   ========================================================================== */

/* About hero: portrait + text, ~45/55 on desktop */
.about-hero {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 768px) {
  .about-hero { grid-template-columns: minmax(0, 0.85fr) 1fr; gap: var(--sp-16); }
}
.about-hero__photo { max-inline-size: 26rem; inline-size: 100%; }
.about-hero__photo .photo__frame { box-shadow: var(--shadow-md); }
.about-hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
}
.about-hero__roles li {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-violet);
  background: var(--c-lavender);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-pill);
}
.about-hero__lead { font-size: var(--fs-lead); color: var(--c-ink); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.stats > li { min-inline-size: 0; }
@media (min-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } }
/* Go 4-across only when the columns are wide enough to hold the longest title
   ("Certifications") on one line; stay 2x2 on narrower screens. */
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.9rem);
  color: var(--c-violet);
  line-height: 1.1;
  /* Keep each title's words whole — never hyphenate/split a word across two lines. */
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.stat__label { font-size: var(--fs-small); color: var(--c-text-muted); margin-block-start: var(--sp-2); }

/* 4-up feature cards (values) */
@media (min-width: 600px) { .feature-cards--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .feature-cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* Credentials list as compact cards */
.cred-card { display: flex; flex-direction: column; gap: var(--sp-1); }
.cred-card__title { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0; }
.cred-card__detail { margin: 0; color: var(--c-text-muted); font-size: var(--fs-small); }

/* About reading column: premium readability */
.read { max-inline-size: 65ch; margin-inline: auto; }
.read p { font-size: 1.125rem; line-height: 1.8; }

/* ==========================================================================
   26. Benefits, Journey, Credibility, 4-col footer (Phase 1c)
   ========================================================================== */

/* Potential benefits — 2-column check cards */
.benefits {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  max-inline-size: 52rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-weight: var(--fw-medium);
}
.benefits li svg { color: var(--c-magenta); flex: 0 0 auto; }

/* Your Journey — numbered timeline */
.journey {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: jstep;
}
@media (min-width: 768px) { .journey { grid-template-columns: repeat(4, 1fr); } }
.journey__step {
  position: relative;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.journey__step::before {
  counter-increment: jstep;
  content: counter(jstep);
  position: absolute;
  inset-block-start: calc(-1 * var(--sp-4));
  inset-inline-start: var(--sp-6);
  inline-size: 2.5rem;
  block-size: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-violet);
  color: #fff;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
}
.journey__step h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-block: var(--sp-2) var(--sp-2); }
.journey__step p { margin: 0; color: var(--c-text); }

/* Credibility strip */
.credibility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
@media (min-width: 768px) { .credibility { grid-template-columns: repeat(4, 1fr); } }
.credibility li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.credibility__icon {
  display: grid; place-items: center;
  inline-size: 2.75rem; block-size: 2.75rem;
  border-radius: 50%;
  background: var(--c-lavender);
  color: var(--c-violet);
}
.credibility span { font-weight: var(--fw-semibold); font-size: var(--fs-small); }

/* Footer: 4 columns */
@media (min-width: 768px) {
  .site-footer__grid--4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-contact li { display: inline-flex; align-items: center; gap: var(--sp-2); color: rgba(255,255,255,0.9); }
.footer-contact .is-todo { color: var(--c-text-todo); font-style: italic; }
.footer-contact svg { opacity: 0.8; flex: 0 0 auto; }

/* ==========================================================================
   27. Micro-interactions (calm, professional) + scroll reveal
   ========================================================================== */

/* Animated nav underline */
.site-nav__link {
  position: relative;
}
@media (min-width: 768px) {
  .site-nav__link:not(.site-nav__link--cta)::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -2px;
    block-size: 2px;
    background: var(--c-violet);
    transform: scaleX(0);
    transform-origin: var(--logical-start, left);
    transition: transform var(--dur) var(--ease);
  }
  .site-nav__link:not(.site-nav__link--cta):hover::after,
  .site-nav__link[aria-current="page"]:not(.site-nav__link--cta)::after { transform: scaleX(1); }
  /* the static underline is now provided by ::after (CTA pill keeps its full border) */
  .site-nav__link[aria-current="page"]:not(.site-nav__link--cta) { border-block-end-color: transparent; }
}

/* Subtle button press */
.btn:active { transform: translateY(0) scale(0.98); }

/* Scroll reveal — elements fade/slide up as they enter the viewport.
   No-JS / reduced-motion safe: content is visible by default; the 'reveal'
   class is only added by JS when motion is allowed. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   28. About authority — featured quote, timeline, why-choose, trust (Phase 1d)
   ========================================================================== */

/* Featured pull-quote */
.featured-quote {
  text-align: center;
  max-inline-size: 50rem;
  margin-inline: auto;
}
.featured-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 1.25rem, 3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.featured-quote blockquote p { margin: 0; }
.featured-quote cite {
  display: block;
  margin-block-start: var(--sp-4);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-violet);
}

/* Stats as cards */
.stats--cards li {
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Professional timeline */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-inline-size: 44rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 11px;
  inline-size: 2px;
  background: linear-gradient(var(--c-violet), var(--c-coral));
  opacity: 0.4;
}
.timeline__item {
  position: relative;
  padding-inline-start: var(--sp-12);
  padding-block-end: var(--sp-8);
}
.timeline__item:last-child { padding-block-end: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 6px;
  inline-size: 16px;
  block-size: 16px;
  border-radius: 50%;
  background: var(--grad-signature);
  box-shadow: 0 0 0 4px var(--c-bg);
}
.timeline__year {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--c-violet);
  font-size: 1.1rem;
}
.timeline__year.is-todo { color: var(--c-text-todo); font-style: italic; }
.timeline__title { font-weight: var(--fw-semibold); margin-block: 2px 0; }
.timeline__detail { color: var(--c-text-muted); font-size: var(--fs-small); margin: 0; }

/* Why clients choose — premium check-card grid */
.why-choose {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  max-inline-size: 56rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .why-choose { grid-template-columns: 1fr 1fr; } }
.why-choose li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  font-weight: var(--fw-medium);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.why-choose li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.why-choose li svg { color: var(--c-magenta); flex: 0 0 auto; }

/* Trust indicators strip (icons) */
.trust-indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
@media (min-width: 768px) { .trust-indicators { grid-template-columns: repeat(4, 1fr); } }
.trust-indicators li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.trust-indicators__icon {
  display: grid; place-items: center;
  inline-size: 3rem; block-size: 3rem;
  border-radius: 50%;
  background: var(--c-lavender);
  color: var(--c-violet);
}
.trust-indicators span { font-weight: var(--fw-semibold); font-size: var(--fs-small); }

/* ==========================================================================
   29. Service page — 5-step journey, disclaimer, mini practitioner (Phase 2)
   ========================================================================== */
@media (min-width: 900px) { .journey--5 { grid-template-columns: repeat(5, 1fr); } }

/* Disclaimer note near footer */
.disclaimer {
  max-inline-size: var(--measure);
  margin-inline: auto;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-lavender);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.disclaimer strong { color: var(--c-ink); display: block; margin-block-end: var(--sp-1); }

/* Compact practitioner reminder */
.prac-mini {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .prac-mini { grid-template-columns: auto 1fr; text-align: start; justify-items: start; gap: var(--sp-8); }
}
.prac-mini__photo { inline-size: 120px; flex: 0 0 auto; }
.prac-mini__photo .photo__frame { inline-size: 120px; block-size: 120px; border-radius: 50%; box-shadow: var(--shadow-md); }
.prac-mini__photo .photo__frame img { inline-size: 120px; block-size: 120px; object-fit: cover; object-position: center top; }
.prac-mini__name { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0; }
.prac-mini__creds { list-style: none; margin: var(--sp-2) 0 var(--sp-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.prac-mini__creds li { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--c-violet); background: var(--c-bg); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); }

/* ==========================================================================
   30. The McWellness Journey framework (signature IP) + footer mission
   ========================================================================== */
.framework {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fw;
}
@media (min-width: 768px) { .framework { grid-template-columns: repeat(4, 1fr); } }
.framework__stage {
  position: relative;
  padding: var(--sp-12) var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
/* signature gradient accent near the top of each stage (inset so it never
   clips the rounded corners or the connector arrow) */
.framework__stage::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--sp-8);
  block-size: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-signature);
}
.framework__num {
  counter-increment: fw;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  color: var(--c-text-todo);
}
.framework__num::before { content: "0" counter(fw); }
.framework__name {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.5vw + 1rem, 2.5rem);
  color: var(--c-violet);
  margin-block: var(--sp-2) var(--sp-3);
}
.framework__service {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-magenta);
  background: var(--c-lavender);
  padding: 2px var(--sp-3);
  border-radius: var(--r-pill);
  margin-block-end: var(--sp-3);
}
.framework__body { margin: 0; color: var(--c-text); font-size: var(--fs-small); line-height: 1.6; }
/* connector arrow between stages on desktop (sits in the grid gap) */
@media (min-width: 768px) {
  .framework__stage:not(:last-child)::after {
    content: "→";
    position: absolute;
    inset-inline-end: calc(-1 * var(--sp-4) - 4px);
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--c-magenta);
    font-size: 1.25rem;
    z-index: 2;
  }
}

/* Footer mission line (mini-homepage feel) */
.site-footer__mission {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-small);
  max-inline-size: 34ch;
  margin-block: var(--sp-2) var(--sp-6);
}

/* ==========================================================================
   31. Local trust strip (UAE emirates) + Start Here band
   ========================================================================== */
.local-trust { text-align: center; }
.local-trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-4);
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
}
.local-trust__list li {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--c-violet);
  background: var(--c-lavender);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--r-pill);
}

/* Start Here funnel band */
.start-here {
  text-align: center;
  background: var(--c-lavender);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  max-inline-size: var(--container);
  margin-inline: auto;
}
.start-here h2 { margin-block: 0 var(--sp-3); }
.start-here p { max-inline-size: 52ch; margin-inline: auto; color: var(--c-text); }

/* ==========================================================================
   32. Legal pages (Privacy, Terms)
   ========================================================================== */
.legal { max-inline-size: 65ch; margin-inline: auto; }
.legal__intro { font-size: var(--fs-lead); color: var(--c-text); margin-block-end: var(--sp-8); }
.legal h2 {
  font-size: var(--fs-h3);
  margin-block: var(--sp-8) var(--sp-3);
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid var(--c-border);
}
.legal p { line-height: 1.8; }
.legal__list { margin-block: 0 var(--sp-4); padding-inline-start: var(--sp-6); display: grid; gap: var(--sp-2); }
.legal__list li { line-height: 1.6; }

/* ==========================================================================
   33. Brand differentiator (Brain + Nervous System + Self-Awareness)
   ========================================================================== */
.differentiator__lead { max-inline-size: 62ch; margin-inline: auto; text-align: center; }
.differentiator__lead p { font-size: var(--fs-lead); color: var(--c-text); }
.differentiator__pillars {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  list-style: none;
  margin: var(--sp-12) 0 0;
  padding: 0;
}
@media (min-width: 768px) { .differentiator__pillars { grid-template-columns: repeat(3, 1fr); } }
.differentiator__pillars li {
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.differentiator__pillars li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.differentiator__pillars h3 { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--c-violet); margin: 0 0 var(--sp-2); }
.differentiator__pillars p { margin: 0; color: var(--c-text); font-size: var(--fs-small); }
.differentiator__closing { text-align: center; margin-block-start: var(--sp-8); font-family: var(--font-display); font-size: var(--fs-h3); color: var(--c-ink); }

/* Waving UAE flag in the header brand block.
   The SVG carries a static displacement ripple (reads as waved cloth even when
   motion is off); the gentle flutter animation is disabled under reduced motion. */
.brand__flag {
  block-size: 16px;
  inline-size: auto;
  flex: 0 0 auto;
  transform-origin: left center;
  animation: brand-flag-wave 3.6s ease-in-out infinite;
}
@keyframes brand-flag-wave {
  0%, 100% { transform: skewX(0deg) rotate(-0.5deg); }
  50%      { transform: skewX(-4deg) rotate(0.5deg); }
}

/* ------------------------------------------------------------------------- */
/* Ask widget — floating "Have a question?" launcher + panel                 */
/* ------------------------------------------------------------------------- */
.ask {
  position: fixed;
  inset-block-end: var(--sp-3);
  inset-inline-end: var(--sp-4);
  z-index: 60;
  font-family: var(--font-body);
  /* Purple-only interaction colour inside the widget (header, buttons, focus) */
  --c-focus: var(--c-violet);
  --shadow-focus: 0 0 0 3px rgba(91, 42, 134, 0.4);
}

/* Launcher button (collapsed state) */
.ask__launch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6) var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-violet);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.ask__launch:hover { transform: translateY(-2px); background: var(--c-violet-dark); }
.ask__launch:focus-visible { outline: none; box-shadow: var(--shadow-md), var(--shadow-focus); }
.ask__launch svg { flex: none; }
.ask__launch-text { white-space: nowrap; }

/* Panel (expanded state) */
.ask__panel {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  inline-size: min(22rem, calc(100vw - var(--sp-8)));
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--c-border);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-block-size: min(40rem, calc(100vh - var(--sp-16)));
}

/* Toggle state driven by the hidden checkbox */
.ask__toggle { position: absolute; opacity: 0; pointer-events: none; }
.ask__toggle:checked ~ .ask__launch { display: none; }
.ask__toggle:checked ~ .ask__panel { display: flex; }
.ask__toggle:focus-visible ~ .ask__launch { box-shadow: var(--shadow-md), var(--shadow-focus); }

/* Open animation (respects reduced motion below) */
@media (prefers-reduced-motion: no-preference) {
  .ask__toggle:checked ~ .ask__panel {
    animation: ask-in var(--dur) var(--ease);
  }
}
@keyframes ask-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Header */
.ask__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-3);
  background: var(--c-violet);
  color: #fff;
}
.ask__avatar {
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: var(--r-pill);
  object-fit: cover;
  object-position: center 18%; /* keep the face centred in the round crop of the 3:4 portrait */
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex: none;
}
.ask__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  flex: 1;
}
.ask__close {
  inline-size: 2rem;
  block-size: 2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  flex: none;
  transition: background var(--dur-fast) var(--ease);
}
.ask__close:hover { background: rgba(255, 255, 255, 0.3); }
.ask__close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.7); }

/* Scrollable body */
.ask__body {
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Intro message bubble */
.ask__intro {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.ask__intro img {
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: var(--r-pill);
  object-fit: cover;
  object-position: center 18%; /* face stays centred in the round crop of the 3:4 portrait */
  flex: none;
}
.ask__bubble {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-band);
  border-radius: var(--r-md);
  border-start-start-radius: var(--r-sm);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--c-text);
}

/* Form */
.ask__form { display: flex; flex-direction: column; gap: var(--sp-3); }
.ask__field {
  inline-size: 100%;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-small);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.ask__field::placeholder { color: var(--c-text-muted); }
.ask__field:focus {
  outline: none;
  border-color: var(--c-focus);
  box-shadow: var(--shadow-focus);
}
textarea.ask__field { resize: vertical; min-block-size: 5.5rem; }

/* Phone field with flag prefix */
.ask__phone {
  display: flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.ask__phone:focus-within { border-color: var(--c-focus); box-shadow: var(--shadow-focus); }
.ask__phone-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-inline: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  border-inline-end: 1px solid var(--c-border);
  align-self: stretch;
  background: var(--c-band);
}
.ask__phone-flag svg { display: block; border-radius: 2px; }
.ask__phone .ask__field { border: 0; border-radius: 0; flex: 1 1 auto; inline-size: auto; min-inline-size: 0; }
.ask__phone .ask__field:focus { box-shadow: none; }

/* Consent row */
.ask__consent {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  background: var(--c-band);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.ask__consent input {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin-block-start: 0.1rem;
  accent-color: var(--c-violet);
  flex: none;
}

/* Send button */
.ask__send {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-violet);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.ask__send:hover { transform: translateY(-1px); background: var(--c-violet-dark); }
.ask__send:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.ask__send:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Sign-off line */
.ask__signoff {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* Success message (shown after submit) */
.ask__done { text-align: center; padding-block: var(--sp-4); }
.ask__done p { margin: 0 0 var(--sp-2); }

/* Inline success / error feedback shown beneath the ask form */
.ask__feedback {
  margin-block-start: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.ask__feedback p { margin: 0 0 var(--sp-2); }
.ask__feedback p:last-child { margin-block-end: 0; }
.ask__feedback--success {
  background: rgba(46, 158, 91, 0.10);
  border: 1px solid rgba(46, 158, 91, 0.35);
  color: #1f7a47;
}
.ask__feedback--error {
  background: rgba(224, 70, 59, 0.08);
  border: 1px solid rgba(224, 70, 59, 0.35);
  color: #b3261e;
}
.ask__wa-link { font-weight: var(--fw-semibold); color: inherit; text-decoration: underline; }
.ask__wa-link:hover { text-decoration: none; }

/* Country dialling-code selector — compact left segment of the phone row.
   Collapsed it shows just "flag +code"; the dropdown reveals full country
   names (handled in JS). */
.ask__cc {
  flex: 0 0 auto;
  inline-size: 7rem;               /* compact: fits "flag +code" + arrow only */
  align-self: stretch;
  border: 0;
  border-inline-end: 1px solid var(--c-border);
  background: var(--c-band);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-small);
  padding-inline: var(--sp-3);
  cursor: pointer;
  text-overflow: ellipsis;
  -webkit-appearance: menulist;    /* keep the platform's dropdown arrow */
  appearance: menulist;
}
.ask__cc:focus { outline: none; }

@media (max-width: 30rem) {
  .ask { inset-block-end: var(--sp-2); inset-inline-end: var(--sp-3); }
  .ask__launch-text { display: none; }
  .ask__launch { padding: var(--sp-3); }
}

/* ------------------------------------------------------------------------- */
/* Discovery Call form — premium booking form on book.html                   */
/* ------------------------------------------------------------------------- */
.dc-benefits {
  list-style: none;
  margin: 0 auto var(--sp-8);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  max-inline-size: 52rem;
}
.dc-benefits li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--c-text);
}
.dc-benefits svg { color: var(--c-magenta); flex: none; }

.dc-card {
  max-inline-size: 46rem;
  margin-inline: auto;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
}

.dc-form { display: flex; flex-direction: column; gap: var(--sp-6); }
.dc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.dc-field { display: flex; flex-direction: column; gap: var(--sp-2); min-inline-size: 0; }
.dc-fieldset { border: 0; margin: 0; padding: 0; }

.dc-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.dc-req { color: var(--c-magenta); }
.dc-optional { color: var(--c-text-muted); font-weight: var(--fw-body); }

.dc-input {
  inline-size: 100%;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-body);
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.dc-input::placeholder { color: var(--c-text-muted); }
.dc-input:focus {
  outline: none;
  border-color: var(--c-focus);
  box-shadow: var(--shadow-focus);
}
.dc-textarea { resize: vertical; min-block-size: 6.5rem; }

/* Invalid state */
.dc-input[aria-invalid="true"] { border-color: #c0392b; }
.dc-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.3); }

/* Custom select */
.dc-select { position: relative; display: flex; }
.dc-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: var(--sp-12);
  cursor: pointer;
}
.dc-select__chev {
  position: absolute;
  inset-inline-end: var(--sp-4);
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  pointer-events: none;
}

/* Radio choices as pill cards */
.dc-choices { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.dc-choice {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.dc-choice:hover { border-color: var(--c-magenta); }
.dc-choice input { accent-color: var(--c-magenta); inline-size: 1.05rem; block-size: 1.05rem; }
.dc-choice:has(input:checked) {
  border-color: var(--c-violet);
  background: var(--c-lavender);
}
.dc-choice:has(input:focus-visible) { box-shadow: var(--shadow-focus); }

/* Error + counter text */
.dc-error {
  font-size: 0.8125rem;
  color: #c0392b;
  min-block-size: 0;
}
.dc-error:empty { display: none; }
.dc-count {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  align-self: flex-end;
}

/* Honeypot — kept in the DOM, hidden from people */
.dc-hp {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Submit button: loading state */
.dc-submit {
  align-self: center;
  margin-block-start: var(--sp-2);
  min-inline-size: 16rem;
  justify-content: center;
}
.dc-spinner {
  inline-size: 1.1rem; block-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-block-start-color: #fff;
  border-radius: 50%;
  display: none;
}
.dc-form.is-submitting .dc-spinner { display: inline-block; }
.dc-form.is-submitting .btn__arrow { display: none; }
.dc-form.is-submitting .dc-submit { opacity: 0.85; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dc-form.is-submitting .dc-spinner { animation: dc-spin 0.7s linear infinite; }
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

.dc-reassure {
  margin: 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}
.dc-trust {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-lavender);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.dc-trust svg { color: var(--c-violet); flex: none; margin-block-start: 0.1rem; }

/* Result panel after submit */
.dc-result { text-align: center; padding-block: var(--sp-4); }
.dc-result__icon {
  inline-size: 3.5rem; block-size: 3.5rem;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--c-lavender);
  color: var(--c-violet);
}
.dc-result h3 { margin: 0 0 var(--sp-2); }
.dc-result p { margin: 0 auto; max-inline-size: 34rem; color: var(--c-text-muted); }
.dc-result--error .dc-result__icon { background: #fdecea; color: #c0392b; }

@media (max-width: 40rem) {
  .dc-row { grid-template-columns: 1fr; }
  .dc-submit { inline-size: 100%; }
}

/* ==========================================================================
   29. Testimonials ecosystem — cards, stories, Google summary, carousel,
       submission form, and admin dashboard. Uses the shared token system;
       logical properties throughout (RTL-ready). (Phase 8)
   ========================================================================== */

/* Shared star display */
.t-stars { color: var(--c-coral); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }

/* Verified badges */
.vbadge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.78rem; font-weight: var(--fw-semibold);
  padding: 0.3rem 0.6rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-border); color: var(--c-text-muted);
  background: var(--c-surface); white-space: nowrap;
}
.vbadge svg { flex: none; }
.vbadge--direct { color: #1f7a4d; border-color: #bfe3cf; background: #f1faf4; }
.vbadge--google { color: var(--c-text); border-color: var(--c-border); }

/* Card grid */
.tgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr;
}
@media (min-width: 600px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }

.tcard {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.tcard__quote {
  margin: 0; font-family: var(--font-display); font-size: 1.15rem;
  line-height: var(--lh-snug); color: var(--c-ink);
}
.tcard__by { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); }
.tcard__name { font-weight: var(--fw-semibold); color: var(--c-ink); }
.tcard__name a { color: inherit; }
.tcard__city { color: var(--c-text-muted); font-size: var(--fs-small); }
.tcard__city::before { content: "·"; margin-inline-end: var(--sp-2); color: var(--c-border); }
.tcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding-block-start: var(--sp-2); }
.tcard__date { color: var(--c-text-muted); font-size: 0.8rem; }
.tcard__head { display: flex; align-items: center; gap: var(--sp-3); }
.tcard__avatar { border-radius: var(--r-pill); object-fit: cover; }
.tcard--empty { align-items: center; text-align: center; color: var(--c-text-muted); grid-column: 1 / -1; }

/* Google summary band */
.google-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6);
  justify-content: space-between;
  padding: var(--sp-6); margin-block-end: var(--sp-8);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-lavender);
}
.google-summary:empty { display: none; }
.google-summary__score { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.google-summary__num { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--c-violet); }
.google-summary__score .t-stars { font-size: 1.35rem; }
.google-summary__count { color: var(--c-text-muted); font-weight: var(--fw-medium); }

/* Client stories — long form */
.story-list { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 800px) { .story-list { grid-template-columns: repeat(2, 1fr); } }
.story-card {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.story-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.story-card__by { margin: 0; }
.story-card__name { font-weight: var(--fw-semibold); color: var(--c-ink); }
.story-card__city { color: var(--c-text-muted); font-size: var(--fs-small); }
.story-card__city::before { content: "·"; margin-inline: var(--sp-2); color: var(--c-border); }
.story-card__block { display: flex; flex-direction: column; gap: var(--sp-2); }
.story-card__klabel {
  margin: 0; font-size: 0.72rem; font-weight: var(--fw-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-magenta);
}
.story-card__challenge { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--c-ink); }
.story-card__quote {
  margin: 0; padding-inline-start: var(--sp-4);
  border-inline-start: 3px solid var(--c-lavender);
  color: var(--c-text); line-height: var(--lh-body);
}
.story-card__changes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.story-card__changes li { display: flex; align-items: center; gap: var(--sp-2); color: var(--c-text); }
.story-card__changes svg { color: #1f7a4d; flex: none; }
.story-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.tquick__foot { display: flex; justify-content: center; margin-block-start: var(--sp-8); }

/* Overall rating + star breakdown */
.trating {
  display: grid; gap: var(--sp-6);
  padding: var(--sp-8);
  margin-block-end: var(--sp-8);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .trating { grid-template-columns: minmax(10rem, 14rem) 1fr; align-items: center; gap: var(--sp-10); }
}
.trating__overall { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-align: center; }
.trating__num {
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: var(--c-violet);
}
.trating__overall .t-stars { font-size: 1.4rem; }
.trating__based { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); max-inline-size: 14rem; }
.trating__bars { display: flex; flex-direction: column; gap: var(--sp-2); min-inline-size: 0; }
.trating__row {
  display: grid; grid-template-columns: 4.5rem 1fr 2rem;
  gap: var(--sp-3); align-items: center;
}
.trating__label {
  font-size: var(--fs-small); font-weight: var(--fw-medium);
  color: var(--c-text-muted); text-align: end;
}
.trating__bar {
  block-size: 0.5rem; border-radius: var(--r-pill);
  background: var(--c-band); overflow: hidden;
}
.trating__fill {
  block-size: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--c-coral), #e8a060);
  transition: width var(--dur-fast) var(--ease);
}
.trating__count {
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--c-ink); text-align: end; font-variant-numeric: tabular-nums;
}
.trating__cta { margin-block-start: var(--sp-4); text-align: center; grid-column: 1 / -1; }

/* Testimonials page — wide rows */
.trows {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-block-start: 1px solid var(--c-border);
}
.trow {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-block-end: 1px solid var(--c-border);
}
.trow__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); }
.trow__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); min-inline-size: 0; }
.trow__name { font-weight: var(--fw-semibold); color: var(--c-ink); font-size: 1.05rem; }
.trow__name a { color: inherit; text-decoration: none; }
.trow__name a:hover { color: var(--c-violet); }
.trow__sub { color: var(--c-text-muted); font-size: var(--fs-small); }
.trow__sub::before { content: "·"; margin-inline-end: var(--sp-2); color: var(--c-border); }
.trow__avatar { border-radius: var(--r-pill); object-fit: cover; flex: none; }
.trow__quote {
  margin: 0; max-inline-size: 52rem;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: var(--lh-snug); color: var(--c-ink);
}
.trow__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.trow__date { color: var(--c-text-muted); font-size: 0.8rem; }
.trow__extra { display: flex; flex-direction: column; gap: var(--sp-4); }
.trow__block { display: flex; flex-direction: column; gap: var(--sp-2); }
.trow__klabel {
  margin: 0; font-size: 0.72rem; font-weight: var(--fw-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-magenta);
}
.trow__challenge { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--c-ink); }
.trow__body {
  margin: 0; padding-inline-start: var(--sp-4);
  border-inline-start: 3px solid var(--c-lavender);
  color: var(--c-text); line-height: var(--lh-body);
}
.trow__changes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.trow__changes li { display: flex; align-items: center; gap: var(--sp-2); color: var(--c-text); font-size: var(--fs-small); }
.trow__changes svg { color: #1f7a4d; flex: none; }
.trow--story { padding-block: var(--sp-8); }
.trow--empty { align-items: center; text-align: center; color: var(--c-text-muted); border-block-end: 0; }
@media (min-width: 768px) {
  .trow__head { justify-content: space-between; }
}

/* ---- Submission form ---- */
.tform { display: flex; flex-direction: column; gap: var(--sp-6); }
.tform__type {
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: var(--sp-4); margin: 0; display: grid; gap: var(--sp-3);
}
@media (min-width: 560px) { .tform__type { grid-template-columns: 1fr 1fr; } }
.tform__type legend { padding-inline: var(--sp-2); font-weight: var(--fw-semibold); color: var(--c-text-muted); font-size: var(--fs-small); }
.tform__typeopt { display: flex; gap: var(--sp-3); align-items: flex-start; cursor: pointer; padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.tform__typeopt span { display: flex; flex-direction: column; }
.tform__typeopt small { color: var(--c-text-muted); }
.tform__typeopt:has(input:checked) { border-color: var(--c-magenta); background: var(--c-lavender); }
.tform__row { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 560px) { .tform__row { grid-template-columns: 1fr 1fr; } }
.tform__field { display: flex; flex-direction: column; gap: var(--sp-2); border: 0; padding: 0; margin: 0; }
.tform__field > label, .tform__field > legend, .tform__rate-wrap > legend {
  font-weight: var(--fw-semibold); color: var(--c-ink); font-size: var(--fs-small); padding: 0;
}
.tform input[type="text"], .tform input[type="email"], .tform select, .tform textarea {
  font: inherit; color: var(--c-text);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-surface);
}
.tform textarea { resize: vertical; }
.tform__count { margin: 0; align-self: flex-end; font-size: 0.8rem; color: var(--c-text-muted); }
.tform__err { margin: 0; color: #c0392b; font-size: var(--fs-small); min-height: 1em; }
.tform__hint { margin: 0; color: var(--c-text-muted); font-size: var(--fs-small); }
.tform__optional { font-weight: var(--fw-body); color: var(--c-text-muted); }
.tform__checks { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .tform__checks { grid-template-columns: 1fr 1fr; } }
.tform__checks label, .tform__check { display: flex; gap: var(--sp-2); align-items: flex-start; color: var(--c-text); cursor: pointer; }
.tform__check--single { font-size: var(--fs-small); }
.tform__submit { align-self: flex-start; }

/* Star rating input (DOM order 5→1, displayed 1→5 via row-reverse) */
.t-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.t-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.t-rate label {
  font-size: 2rem; line-height: 1; color: var(--c-border); cursor: pointer;
  padding-inline: 2px; transition: color var(--dur-fast) var(--ease);
}
.t-rate label:hover, .t-rate label:hover ~ label,
.t-rate input:checked ~ label { color: var(--c-coral); }
.t-rate input:focus-visible + label { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---- Homepage carousel ---- */
.tcarousel {
  --tcarousel-per-view: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 640px) { .tcarousel { --tcarousel-per-view: 2; } }
@media (min-width: 1024px) { .tcarousel { --tcarousel-per-view: 3; } }
.tcarousel__viewport {
  overflow: hidden;
  flex: 1;
  min-inline-size: 0;
  border-radius: var(--r-lg);
}
.tcarousel__track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform var(--dur) var(--ease);
  will-change: transform;
}
.tcarousel__track--instant { transition: none; }
.tslide {
  flex: 0 0 calc(100% / var(--tcarousel-per-view));
  min-inline-size: 0;
  padding-inline: calc(var(--sp-3) / 2);
  box-sizing: border-box;
  display: flex;
}
.tslide__card {
  margin: 0; display: flex; flex-direction: column; gap: var(--sp-4);
  flex: 1;
  text-align: center; align-items: center;
  max-inline-size: 44rem; margin-inline: auto;
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-band);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}
@media (min-width: 640px) {
  .tslide__card {
    text-align: start;
    align-items: flex-start;
    max-inline-size: none;
    margin-inline: 0;
  }
  .tslide__quote { font-size: 1.0625rem; }
  .tslide__by { justify-content: flex-start; }
}
.tslide__tag {
  margin: 0; font-size: 0.72rem; font-weight: var(--fw-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-magenta);
}
.tslide__quote { margin: 0; font-family: var(--font-body); font-weight: var(--fw-body); font-size: clamp(1.05rem, 1.2vw + 0.85rem, 1.25rem); line-height: var(--lh-body); color: var(--c-text); }
.tslide__by { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-3); }
.tslide__name { font-weight: var(--fw-semibold); }
.tslide__city,
.tslide__meta { color: var(--c-text-muted); font-size: var(--fs-small); }
.tcarousel__nav {
  flex: none; inline-size: 2.75rem; block-size: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--r-pill); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-violet); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tcarousel__nav:hover { background: var(--c-lavender); }
.tcarousel__dots { display: flex; justify-content: center; gap: var(--sp-2); margin-block-start: var(--sp-4); }
.tdot {
  inline-size: 0.6rem; block-size: 0.6rem; padding: 0;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--c-border); transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tdot.is-active { background: var(--grad-signature); transform: scale(1.25); }
.tcarousel__more { text-align: center; margin-block-start: var(--sp-6); }
.tcarousel__more a {
  color: var(--c-violet);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.tcarousel__more a:hover { color: var(--c-magenta); }
@media (max-width: 560px) {
  .tcarousel__nav { inline-size: 2.25rem; block-size: 2.25rem; }
  .tslide__card { padding-inline: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .tcarousel__track { transition: none; }
}

/* ==========================================================================
   30. Admin dashboard
   ========================================================================== */
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-small); }

.admin-body { background: #faf8fd; }
.admin-topbar { background: var(--c-surface); border-block-end: 1px solid var(--c-border); position: sticky; inset-block-start: 0; z-index: 10; }
.admin-topbar__inner { max-inline-size: var(--container); margin-inline: auto; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-6); }
.brand--admin { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; }
.admin-topbar__tag { font-weight: var(--fw-semibold); color: var(--c-text-muted); }
.admin-topbar__spacer { flex: 1; }
.admin-who { color: var(--c-text-muted); font-size: var(--fs-small); }
.admin-main { max-inline-size: var(--container); margin-inline: auto; padding: var(--sp-8) var(--sp-6); }
.admin-muted { color: var(--c-text-muted); }

.admin-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-sm); }
.admin-notice, .admin-login { max-inline-size: 34rem; margin-inline: auto; }
.admin-login label { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-small); margin-block: var(--sp-4) var(--sp-2); }
.admin-login input { inline-size: 100%; font: inherit; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.admin-login button { margin-block-start: var(--sp-6); }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-block-end: var(--sp-4); }
.admin-filters { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }
.admin-chip {
  font: inherit; font-size: var(--fs-small); cursor: pointer;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill);
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-muted);
}
.admin-chip.is-active { background: var(--c-violet); border-color: var(--c-violet); color: #fff; }
.admin-search { flex: 1; min-inline-size: 12rem; }
.admin-search input { inline-size: 100%; font: inherit; padding: var(--sp-2) var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--r-pill); }

.admin-list { display: grid; gap: var(--sp-4); }
.admin-item {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-6); box-shadow: var(--shadow-sm);
}
.admin-item__main { flex: 1 1 16rem; min-inline-size: 0; display: flex; flex-direction: column; gap: var(--sp-2); overflow-wrap: anywhere; }
.admin-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.admin-item__rating { margin-inline-start: auto; }
.admin-pill { font-size: 0.7rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: var(--r-sm); background: var(--c-lavender); color: var(--c-violet); }
.admin-pill--pending { background: #fff4e0; color: #9a6212; }
.admin-pill--approved { background: #e9f8ef; color: #1f7a4d; }
.admin-pill--rejected { background: #fdecea; color: #c0392b; }
.admin-pill--feat { background: var(--grad-signature); color: #fff; }
.admin-pill--src, .admin-pill--type { background: #eee; color: var(--c-text-muted); }
.admin-item__by { margin: 0; overflow-wrap: anywhere; }
.admin-item__quote { margin: 0; color: var(--c-text); overflow-wrap: anywhere; word-break: break-word; }
.admin-item__chal, .admin-item__changes { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); overflow-wrap: anywhere; word-break: break-word; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-content: flex-start; }
.admin-act {
  font: inherit; font-size: var(--fs-small); cursor: pointer;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
}
.admin-act:hover { background: var(--c-lavender); }
.admin-act--primary { background: var(--c-violet); border-color: var(--c-violet); color: #fff; }
.admin-act--primary:hover { background: var(--c-magenta); border-color: var(--c-magenta); }
.admin-act--danger { color: #c0392b; border-color: #f0c5c0; }
.admin-act--danger:hover { background: #fdecea; }
.admin-act:disabled { opacity: 0.5; cursor: default; }

/* Edit modal */
.admin-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--sp-4); }
.admin-modal[hidden] { display: none !important; }
.admin-modal__backdrop { position: absolute; inset: 0; background: rgba(43, 33, 64, 0.45); }
.admin-modal__panel { position: relative; inline-size: min(40rem, 100%); max-block-size: 90vh; overflow: auto; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.admin-modal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-6); border-block-end: 1px solid var(--c-border); position: sticky; inset-block-start: 0; background: var(--c-surface); }
.admin-modal__head h2 { margin: 0; font-size: var(--fs-h3); }
.admin-modal__close { background: none; border: 0; cursor: pointer; color: var(--c-text-muted); display: grid; place-items: center; padding: var(--sp-2); }
.admin-edit { padding: var(--sp-6); display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
.admin-edit__field { display: flex; flex-direction: column; gap: var(--sp-2); min-inline-size: 0; }
.admin-edit__field > span { font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.admin-edit__field--wide { grid-column: 1 / -1; }
.admin-edit input, .admin-edit select, .admin-edit textarea {
  font: inherit; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--r-sm);
  inline-size: 100%; max-inline-size: 100%; box-sizing: border-box;
  overflow-wrap: break-word; word-break: break-word;
}
.admin-edit textarea { resize: vertical; min-block-size: 5rem; max-block-size: 40rem; }
.admin-edit__check { grid-column: 1 / -1; display: flex; gap: var(--sp-2); align-items: flex-start; overflow-wrap: anywhere; }
.admin-edit__check span { flex: 1; min-inline-size: 0; }
.admin-edit__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .admin-edit { grid-template-columns: 1fr; } }

.admin-tabs { display: flex; gap: var(--sp-2); margin-block-end: var(--sp-6); border-block-end: 1px solid var(--c-border); padding-block-end: var(--sp-2); }
.admin-tab {
  font: inherit; font-weight: var(--fw-semibold); font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-4); border: 0; background: none; cursor: pointer;
  color: var(--c-text-muted); border-block-end: 2px solid transparent; margin-block-end: -1px;
  text-decoration: none; display: inline-block;
}
.admin-tab:hover { color: var(--c-violet); }
.admin-tab.is-active { color: var(--c-violet); border-block-end-color: var(--c-violet); }
.admin-back {
  font-weight: var(--fw-medium); font-size: var(--fs-small); color: var(--c-text-muted);
  text-decoration: none; display: inline-block; margin-block-end: var(--sp-2);
}
.admin-back:hover { color: var(--c-violet); }

/* Full-page editor ------------------------------------------------------- */
.admin-body--editor { overflow-x: clip; }

.admin-topbar--editor .admin-topbar__inner { gap: var(--sp-3); flex-wrap: wrap; }
.admin-crumb {
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--c-text-muted); text-decoration: none;
}
.admin-crumb:hover { color: var(--c-violet); }
.admin-crumb__sep { color: var(--c-border); font-size: var(--fs-small); user-select: none; }
.admin-crumb__current { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--c-ink); }
@media (max-width: 560px) {
  .admin-topbar--editor .admin-topbar__inner { padding-inline: var(--sp-4); }
  .admin-topbar--editor .admin-crumb__current { flex: 1 1 100%; order: 3; }
}

.admin-main--editor {
  max-inline-size: none; margin-inline: 0;
  display: flex; justify-content: center;
  padding: var(--sp-6) var(--sp-4) var(--sp-12);
}

.admin-sheet {
  inline-size: min(44rem, 100%);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) {
  .admin-sheet { padding: var(--sp-6) var(--sp-5); }
}

.admin-tform { gap: var(--sp-5); }

.admin-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  padding-block-end: var(--sp-5);
  border-block-end: 1px solid var(--c-border);
}
.admin-meta__item {
  display: flex; flex-direction: column; gap: var(--sp-1);
  flex: 1 1 7rem; min-inline-size: 0;
}
@media (max-width: 480px) {
  .admin-meta { flex-direction: column; }
  .admin-meta__item { flex: none; }
}
.admin-meta__label {
  font-size: 0.68rem; font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-text-muted);
}
.admin-meta select {
  font: inherit; font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-text);
  inline-size: 100%;
}
.admin-meta select:focus { outline: none; border-color: var(--c-violet); box-shadow: var(--shadow-focus); }

.admin-title-field { margin-block-start: var(--sp-2); }
.admin-title-input {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, var(--fs-h2));
  line-height: var(--lh-tight); color: var(--c-ink);
  padding: var(--sp-2) 0;
  border: 0; border-block-end: 2px solid var(--c-border);
  border-radius: 0; background: transparent;
  inline-size: 100%;
}
.admin-title-input::placeholder { color: #c8bdd8; }
.admin-title-input:focus { outline: none; border-block-end-color: var(--c-violet); }

.admin-slug-field label { font-size: 0.75rem; color: var(--c-text-muted); font-weight: var(--fw-medium); }
.admin-slug-input {
  font-size: var(--fs-small); color: var(--c-text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.admin-body-md {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem; line-height: 1.55;
  min-block-size: 16rem; white-space: pre-wrap; overflow-wrap: anywhere;
}

.admin-fold {
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-band); overflow: hidden;
}
.admin-fold__summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  font-weight: var(--fw-semibold); font-size: var(--fs-small);
  color: var(--c-violet); cursor: pointer; list-style: none;
  user-select: none;
}
.admin-fold__summary::-webkit-details-marker { display: none; }
.admin-fold__summary::after {
  content: ""; inline-size: 0.45rem; block-size: 0.45rem;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease);
  margin-inline-start: var(--sp-3); flex: none;
}
.admin-fold[open] > .admin-fold__summary::after { transform: rotate(-135deg); }
.admin-fold__body {
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4);
  background: var(--c-surface); border-block-start: 1px solid var(--c-border);
}

.admin-tform input[type="date"],
.admin-tform input[type="url"] {
  font: inherit; color: var(--c-text);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-surface); inline-size: 100%;
}

.admin-upload { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.admin-upload__thumb {
  inline-size: 7rem; block-size: 5rem; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--c-border);
}
.admin-upload__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--sp-2) var(--sp-4); border: 1px dashed var(--c-border);
  border-radius: var(--r-md); font-size: var(--fs-small); font-weight: var(--fw-semibold);
  color: var(--c-violet); cursor: pointer; background: var(--c-band);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.admin-upload__btn:hover { border-color: var(--c-violet); background: var(--c-lavender); }

.admin-gallery { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block-end: var(--sp-3); }
.admin-gallery__item { position: relative; }
.admin-gallery__item img {
  inline-size: 5.5rem; block-size: 4.5rem; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--c-border);
}
.admin-gallery__rm {
  position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
  inline-size: 1.35rem; block-size: 1.35rem; border-radius: 50%;
  border: 0; background: #c0392b; color: #fff; cursor: pointer;
  font-size: 0.95rem; line-height: 1; box-shadow: var(--shadow-sm);
}

a.admin-act {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: inherit;
}
a.admin-act:hover { background: var(--c-lavender); color: var(--c-violet); }
.admin-modal__panel--wide { inline-size: min(52rem, 100%); }
.admin-pill--draft { background: #eee; color: var(--c-text-muted); }
.admin-pill--published { background: #e9f8ef; color: #1f7a4d; }

/* Insights listing & articles -------------------------------------------- */
.insights-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-block-end: var(--sp-8); }
.insights-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.insights-chip {
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--r-pill);
  background: #fff; color: var(--c-text); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.insights-chip:hover { border-color: var(--c-violet); color: var(--c-violet); }
.insights-chip.is-active { background: var(--c-violet); border-color: var(--c-violet); color: #fff; }
.insights-status { margin: 0; }
.insights-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .insights-grid { grid-template-columns: repeat(3, 1fr); } }
.insights-empty { text-align: center; color: var(--c-text-muted); padding: var(--sp-12) var(--sp-4); }
.insights-more-wrap { text-align: center; margin-block-start: var(--sp-8); }

.insight-card { border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.insight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.insight-card__link { display: flex; flex-direction: column; block-size: 100%; text-decoration: none; color: inherit; }
.insight-card__img { display: block; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-band); }
.insight-card__img--placeholder { background: linear-gradient(135deg, var(--c-lavender), var(--c-band)); }
.insight-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.insight-card__cat { font-size: 0.7rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-violet); }
.insight-card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-tight); margin: 0; color: var(--c-ink); }
.insight-card__excerpt { margin: 0; color: var(--c-text-muted); font-size: var(--fs-small); flex: 1; }
.insight-card__meta { margin: 0; font-size: var(--fs-small); color: var(--c-text-muted); }
.insight-card__cta { margin-block-start: var(--sp-2); font-weight: var(--fw-semibold); font-size: var(--fs-small); color: var(--c-violet); }

.article-page { padding-block: var(--sp-10) var(--sp-16); }
.article-back { margin-block-end: var(--sp-6); }
.article-back a { color: var(--c-violet); font-weight: var(--fw-semibold); text-decoration: none; }
.article-back a:hover { color: var(--c-magenta); }
.article__hero { margin-block-end: var(--sp-8); border-radius: var(--r-lg); overflow: hidden; }
.article__hero img { inline-size: 100%; display: block; }
.article__head,
.article__body,
.article__video,
.article__gallery { inline-size: 100%; max-inline-size: none; margin-inline: 0; }
.article__head { margin-block-end: var(--sp-8); }
.article__cat { font-size: 0.75rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-violet); }
.article__title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: var(--lh-tight); margin: var(--sp-2) 0; color: var(--c-ink); }
.article__date { color: var(--c-text-muted); margin: 0; }
.article__byline { font-style: italic; color: var(--c-text-muted); margin: var(--sp-2) 0 0; }
.article__video { position: relative; padding-block-end: 56.25%; margin-block: var(--sp-6) var(--sp-8); border-radius: var(--r-lg); overflow: hidden; background: #000; }
.article__video iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.article__body.read { max-inline-size: none; margin-inline: 0; }
.article__body h2, .article__body h3 { font-family: var(--font-display); color: var(--c-ink); margin-block: var(--sp-8) var(--sp-4); }
.article__body p, .article__body ul, .article__body ol { margin-block: var(--sp-4); }
.article__body img { max-inline-size: 100%; border-radius: var(--r-md); }
.article__body a { color: var(--c-violet); }
.article__gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin-block-start: var(--sp-10); }
.article__gallery-item { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.article__gallery-item img { inline-size: 100%; display: block; }
.article__loading, .article__error { color: var(--c-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .tcarousel__nav, .tdot, .t-rate label { transition: none; }
}

/* Language switch — flag + language-name dropdown (native <details>, no JS). */
.lang-switch { position: relative; font-size: var(--fs-small); font-weight: var(--fw-medium); }
.lang-switch__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: 36px;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.lang-switch__btn::-webkit-details-marker { display: none; }
.lang-switch__btn::marker { content: ""; }
.lang-switch__btn:hover { border-color: var(--c-violet); }
.lang-switch__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.lang-switch__chev { transition: transform var(--dur-fast) var(--ease); flex: none; opacity: 0.7; }
.lang-switch[open] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + var(--sp-2));
  margin: 0;
  padding: var(--sp-2);
  list-style: none;
  min-inline-size: 11.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.lang-switch__opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--c-text);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-switch__opt:hover { background: var(--c-lavender); color: var(--c-violet); }
.lang-switch__opt[aria-current="true"] {
  color: var(--c-violet);
  font-weight: var(--fw-semibold);
  background: var(--c-lavender);
}
/* Flag chips — self-hosted SVGs (visible in header + drawer). */
.flag {
  display: inline-block;
  inline-size: 22px;
  block-size: 16px;
  flex: none;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.lang-switch__menu .flag { inline-size: 24px; block-size: 17px; }
.flag--uk { background-image: url("../assets/img/flags/en.svg"); }
.flag--ae { background-image: url("../assets/img/flags/ae.svg"); }
.site-header__inner > .lang-switch { margin-inline-start: auto; }
@media (max-width: 767px) {
  .site-header__inner > .lang-switch .lang-switch__label { display: none; }
  .site-header__inner > .lang-switch .lang-switch__btn {
    padding-inline: var(--sp-2);
    min-block-size: 40px;
  }
  .site-header__inner > .lang-switch .flag { inline-size: 24px; block-size: 17px; }
}

/* ==========================================================================
   RTL / Arabic (the /ar/ site sets <html lang="ar" dir="rtl">).
   The layout already uses logical properties throughout, so it mirrors
   automatically. This block only: (a) swaps in the Arabic font stacks, and
   (b) re-mirrors the few elements that use *physical* transforms/glyphs.
   ========================================================================== */
[dir="rtl"] {
  /* Arabic glyphs use Tajawal/IBM Plex; Latin brand terms (McWellness, QEEG,
     "Neurofeedback") fall through to Fraunces/Inter via their unicode-range. */
  --font-display: "Tajawal", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-display: 700;            /* Tajawal reads better bold at display sizes */
}
/* Arabic text is a touch more legible with slightly looser leading. */
[dir="rtl"] body { line-height: 1.8; }

/* The "→" CTA arrow is a physical glyph — point it toward the (left) text end
   and send its hover nudge the same way. */
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

/* The EKG heartbeat reads left→right; mirror the whole trace so the pulse
   travels right→left. The capping nodes use logical insets and flip already. */
[dir="rtl"] .ekg svg { transform: scaleX(-1); }

/* Phone is a left-to-right construct: keep the "Have a question?" widget's
   phone row LTR even on Arabic pages, so the dialling code (+971) sits on the
   left, followed by the number input. */
[dir="rtl"] .ask__phone { direction: ltr; }

/* ------------------------------------------------------------------------- */
/* Pain point — expanded empathy section (homepage)                          */
/* ------------------------------------------------------------------------- */
.pain-point h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  color: var(--c-ink);
  margin-block: var(--sp-3) var(--sp-4);
}
.pain-point__lead {
  font-size: var(--fs-lead);
  color: var(--c-ink);
  margin: 0;
}
.pain-point__lines {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.pain-point__lines li {
  position: relative;
  padding-inline-start: var(--sp-5);
  color: var(--c-text);
}
.pain-point__lines li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--c-magenta);
}
.pain-point__reassurance {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--c-violet);
  margin-block: var(--sp-5) 0;
}

.journey__cta {
  text-align: center;
  margin-block-start: var(--sp-8);
}

.practitioner--compact {
  max-inline-size: 42rem;
  margin-inline: auto;
  text-align: center;
}
.practitioner--compact .hero__actions {
  justify-content: center;
}

.local-trust__list--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-block-end: var(--sp-8);
}

/* Mobile sticky conversion bar */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-block-start: 1px solid var(--c-border);
  box-shadow: 0 -4px 24px rgba(43, 33, 64, 0.08);
  backdrop-filter: blur(8px);
}
.sticky-cta[hidden] { display: none !important; }
.sticky-cta__btn {
  flex: 1 1 auto;
  justify-content: center;
  min-block-size: 44px;
  font-size: var(--fs-small);
}
.sticky-cta__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-violet);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.sticky-cta__wa:hover { border-color: var(--c-violet); color: var(--c-violet-dark); }
.sticky-cta__wa:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
body.has-sticky-cta .ask {
  inset-block-end: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 48rem) {
  .sticky-cta { display: none !important; }
  body.has-sticky-cta .ask { inset-block-end: var(--sp-3); }
}

.dc-or {
  text-align: center;
  color: var(--c-text-muted);
  margin-block: var(--sp-6);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

/* Homepage polish --------------------------------------------------------- */
.page-home .section { padding-block: var(--sp-14); }
@media (min-width: 768px) { .page-home .section { padding-block: var(--sp-20); } }
.page-home .section--disclaimer { padding-block: var(--sp-8) var(--sp-12); }

.trust-bar--slim .trust-bar__list {
  gap: var(--sp-3) var(--sp-10);
  padding-block: var(--sp-5);
}

.section-head--compact p { max-inline-size: 36rem; margin-inline: auto; }

.framework--compact .framework__stage { padding: var(--sp-5) var(--sp-4); }
.framework--compact .framework__body { display: none; }

.section-foot {
  text-align: center;
  margin-block-start: var(--sp-8);
  font-weight: var(--fw-semibold);
}
.section-foot a {
  color: var(--c-violet);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.section-foot a:hover { color: var(--c-magenta); }

.pain-point__cta { margin-block-start: var(--sp-6); }

.home-teaser__photo { max-inline-size: 18rem; margin-inline: auto; }
@media (min-width: 768px) { .home-teaser__photo { margin-inline: 0; } }
.home-teaser__photo .photo__frame { box-shadow: var(--shadow-md); }
.home-teaser__name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-block: var(--sp-2) var(--sp-1);
}
.home-teaser__creds {
  font-weight: var(--fw-semibold);
  color: var(--c-violet);
  font-size: var(--fs-small);
  margin-block-end: var(--sp-4);
}
.home-teaser__lead {
  font-size: var(--fs-lead);
  color: var(--c-ink);
  margin-block-end: var(--sp-6);
}

.testimonials--home {
  max-inline-size: 68rem;
  margin-inline: auto;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .testimonials--home { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials--home { grid-template-columns: repeat(3, 1fr); } }
.testimonials--home .testimonial {
  text-align: start;
  padding: var(--sp-8);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.testimonials--home .testimonial__quote {
  font-size: 1.125rem;
  flex: 1 1 auto;
}

.cta-section--home {
  background: var(--c-band);
  padding-block: var(--sp-20);
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--c-ink);
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
}
.cta-section__lead {
  font-size: var(--fs-lead);
  color: var(--c-text);
  max-inline-size: 38rem;
  margin: 0 auto var(--sp-8);
}
