/* ═══════════════════════════════════════════════════════
   Dr Hannah Timlin — Design System & Styles v3
   Mobile-first · Refined Rose palette · Cormorant Garamond + Inter
   ═══════════════════════════════════════════════════════ */

:root {
    /* Palette — Rose + Sage (Option 2) */
    --color-primary: #A48280;        /* 3.45:1 on white — passes AA large-text (was #B08E8B, 2.96) */
    --color-primary-dark: #7E5C5A;   /* 4.71:1 on cream — passes AA small text (was #8C6B6B) */
    --color-primary-light: #C9ACA8;
    --color-primary-alpha-10: rgba(164, 130, 128, 0.1);

    /* Sage accent — used for primary CTAs and key emphasis */
    --color-accent: #4A5A4E;
    --color-accent-dark: #3A4A3E;
    --color-accent-light: #7A8A7E;
    --color-accent-alpha-10: rgba(74, 90, 78, 0.1);

    --color-stone: #C1B5A8;
    --color-cream: #F4EFE6;          /* lightened twice (June 2026) to freshen the warm bands (memberships, locations); still reads as a band (was #EDE5D6 → #F1EADF) */
    --color-light: #F9F6F1;          /* lightened twice (June 2026) to freshen the card-section tint (services, testimonials) (was #F5F1EB → #F7F4EE) */
    --color-bg: #FAF8F4;             /* warm off-white base (was cooler #FAFAF8) */
    --color-white: #FFFFFF;
    --color-dark: #1D1D1C;           /* neutral charcoal (warm-neutral, no brown cast) */
    --color-dark-mid: #262625;
    --color-text: #2C2826;
    --color-text-secondary: #6E6A68;
    --color-text-light: #747068;     /* 4.65:1 on bg — passes AA small text (was #827C76, 3.89) */
    --color-heading: #1C2A3A;
    --color-border: #E7E1D8;         /* warm hairline */
    --color-border-strong: #D7CFC3;  /* defined warm hairline for outline buttons */
    --color-trustpilot: #00B67A;

    --font-heading: 'Georgia', 'Times New Roman', serif;   /* Jonathan prefers Georgia for headings (the pre-fix look); do NOT "correct" back to Cormorant Garamond */
    --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-logo: 'Cormorant Garamond', 'Georgia', serif;   /* logo + footer wordmark stay Garamond, as before */

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --container-padding: 1.25rem;
    --container-max: 1140px;
    --header-height: 60px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-card: 0 1px 2px rgba(44, 40, 38, 0.04);
    --shadow-card-hover: 0 10px 30px rgba(44, 40, 38, 0.10);
}

/* ── Cross-browser reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: clip;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Keyboard focus (accessible, consistent across the site) ── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
/* On dark backgrounds the sage ring is hard to see — use a light ring */
.section--dark a:focus-visible,
.before-after a:focus-visible,
.cta-section a:focus-visible,
.tx-final-cta a:focus-visible,
.footer a:focus-visible {
    outline-color: rgba(255, 255, 255, 0.7);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-heading);
}

h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    min-height: 48px;
    -webkit-appearance: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 1px 2px rgba(58, 74, 62, 0.18);
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(58, 74, 62, 0.22);
}
.btn--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border-strong); }
.btn--outline:hover { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn--white { background: var(--color-white); color: var(--color-dark); }
.btn--white:hover { background: var(--color-cream); }
.btn--rose { background: var(--color-primary); color: var(--color-white); }
.btn--rose:hover { background: var(--color-primary-dark); }
.btn--full { display: flex; width: 100%; }

.overline {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

.section-divider {
    width: 50px;
    height: 1px;
    background: var(--color-stone);
    margin: 0 auto var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section--cream { background-color: var(--color-cream); }
.section--light { background-color: var(--color-light); }
/* Treatment-page alternating sections use the homepage's MORE VISIBLE tint — the cream
   (#F4EFE6, same as the memberships/locations bands) — because the lighter --color-light
   #F9F6F1 is too close to white to read on text-only pages (no cards to reveal it).
   Two-class selector (0,2,0) overrides the per-page rule; scoped to treatment pages. */
.tx-section.tx-section--alt { background-color: var(--color-cream); }
.section--dark {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.85);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(255, 255, 255, 0.65); }
.section--dark .overline { color: var(--color-primary-light); }

/* ── Placeholder image ── */
.placeholder-img {
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-img::after {
    content: 'Placeholder image';
    position: absolute;
    bottom: 8px; right: 8px;
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    padding: 3px 8px;
    border-radius: 3px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1;
}


/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    height: var(--header-height);
}

.header--scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo — Concept C, internally centred, top-left positioned */
/* ── Site logo (header brand mark) ── */
.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-logo__name {
    font-family: "Libre Caslon Display", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    -webkit-text-stroke: 0.2px currentColor;
    line-height: 0.95;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: #1C2A3A;
    white-space: nowrap;
}

.site-logo__subtitle-row {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
}

.site-logo__subtitle {
    font-family: "Inter", Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #9E6E66;
    white-space: nowrap;
}

.site-logo__line {
    width: 36px;
    height: 1px;
    background: #9E6E66;
    opacity: 0.8;
    flex-shrink: 0;
}

.site-logo__dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #9E6E66;
    opacity: 0.9;
    flex-shrink: 0;
}

.site-logo--large .site-logo__name {
    font-size: clamp(46px, 5.4vw, 78px);
    letter-spacing: 0.24em;
}

.site-logo--large .site-logo__subtitle-row {
    margin-top: 18px;
    gap: 16px;
}

.site-logo--large .site-logo__subtitle {
    font-size: clamp(12px, 1vw, 17px);
    letter-spacing: 0.42em;
}

.site-logo--large .site-logo__line {
    width: clamp(80px, 9vw, 140px);
}

.site-logo--large .site-logo__dot {
    width: 6px;
    height: 6px;
}

@media (max-width: 768px) {
    .site-logo__name {
        font-size: 19px;
        letter-spacing: 0.14em;
    }
    .site-logo__subtitle-row {
        margin-top: 7px;
        gap: 7px;
    }
    .site-logo__subtitle {
        font-size: 6.5px;
        letter-spacing: 0.24em;
    }
    .site-logo__line {
        width: 24px;
    }
    .site-logo__dot {
        width: 3.5px;
        height: 3.5px;
    }
}

@media (max-width: 380px) {
    .site-logo__name {
        font-size: 17px;
        letter-spacing: 0.115em;
    }
    .site-logo__subtitle-row {
        gap: 5px;
    }
    .site-logo__subtitle {
        font-size: 6px;
        letter-spacing: 0.18em;
    }
    .site-logo__line {
        width: 18px;
    }
}

/* Desktop nav */
.header__nav {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header__nav-link:hover { color: var(--color-text); }
.header__nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1.5px; background: var(--color-primary);
    transition: width var(--transition-base);
}
.header__nav-link:hover::after { width: 100%; }

.header__nav-cta {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.55rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    letter-spacing: 0.02em;
    white-space: nowrap;
    -webkit-appearance: none;
    margin-left: var(--space-xs);
}
.header__nav-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 90, 78, 0.25);
}

/* Dropdown trigger */
.header__nav-dropdown {
    position: relative;
}

.header__nav-dropdown-trigger {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    padding: 0.5rem 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.header__nav-dropdown-trigger:hover { color: var(--color-text); }

.header__nav-dropdown-trigger svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    transition: transform var(--transition-base);
}

.header__nav-dropdown--open .header__nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* Mega menu panel */
.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: var(--space-xl);
    min-width: 680px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 200;
    border: 1px solid var(--color-border);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    z-index: 1;
}

.header__nav-dropdown--open .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge to prevent hover gap */
.mega-menu-bridge {
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.mega-menu__group { }

.mega-menu__group-heading {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1.5px solid var(--color-cream);
    text-decoration: none;
    transition: color var(--transition-base);
}

.mega-menu__group-heading:hover {
    color: var(--color-primary);
}
.mega-menu__group-heading::after {
    content: "\203A";
    margin-left: 0.35rem;
    color: var(--color-primary);
    opacity: 0.5;
    font-weight: 600;
    display: inline-block;
    transition: opacity var(--transition-base), transform var(--transition-base);
}
.mega-menu__group-heading:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

.mega-menu__link {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    padding: 0.3rem 0;
    transition: color var(--transition-base), padding-left var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
}

.mega-menu__link:hover {
    color: var(--color-text);
    padding-left: 4px;
}

/* Mobile menu dropdown */
.mobile-menu__dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    text-align: left;
}

.mobile-menu__dropdown-trigger svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.mobile-menu__dropdown-trigger--open svg {
    transform: rotate(180deg);
}

.mobile-menu__dropdown-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu__dropdown-panel--open {
    max-height: 1200px;
}

.mobile-menu__group {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__group:last-child {
    border-bottom: none;
}

.mobile-menu__group-heading {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
    padding: var(--space-xs) 0;
    text-decoration: none;
}
.mobile-menu__group-heading::after {
    content: "\203A";
    margin-left: 0.3rem;
    color: var(--color-primary);
    opacity: 0.6;
    font-weight: 600;
}

.mobile-menu__group-link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    padding: 0.4rem 0 0.4rem var(--space-md);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color var(--transition-base);
}

.mobile-menu__group-link:hover {
    color: var(--color-text);
}

/* Hamburger */
.header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
.header__hamburger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--color-text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.header__hamburger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    z-index: 99;
    padding: var(--space-2xl) var(--container-padding) var(--space-xl);
    display: flex; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--transition-slow), transform var(--transition-slow), visibility var(--transition-slow);
}
.mobile-menu--open { opacity: 1; visibility: visible; transform: translateY(0); }
/* Stop the flex children compressing so an expanded dropdown overflows and the
   menu scrolls (instead of the dropdown clipping its own lower items). */
.mobile-menu > * { flex-shrink: 0; }

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition-base), padding-left var(--transition-base);
}

.mobile-menu__link::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--color-text-light);
    border-bottom: 1.5px solid var(--color-text-light);
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: border-color var(--transition-base);
}

.mobile-menu__link:hover {
    color: var(--color-primary-dark);
    padding-left: var(--space-xs);
}
.mobile-menu__link:hover::after { border-color: var(--color-primary); }

.mobile-menu__cta {
    margin-top: auto;
    padding-bottom: var(--space-2xl);
    padding-top: var(--space-lg);
}

body.menu-open { overflow: hidden; }


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
/* Mobile base: stacked (text on top, image below) */
.hero {
    background: var(--color-bg);
    padding: calc(var(--header-height) + var(--space-xl)) 0 0;
}

.hero__content {
    max-width: 520px;
    padding-bottom: var(--space-lg);
}

.hero__overline {
    font-size: 0.7rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-size: 2.6rem; font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1rem; line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 520px;
}

.hero__credit {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.hero__trustline {
    margin-top: var(--space-xl);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-light);
    letter-spacing: 0.01em;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Hide secondary CTA on mobile — single confident primary action */
.hero .btn--outline { display: none; }

.hero__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    /* Soft fade at top edge so the photo blends seamlessly into the page bg above */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 16px);
    mask-image: linear-gradient(to bottom, transparent 0, black 16px);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center;
}

/* Trustpilot badge — venue-first so the rating clearly describes the clinic */
.trustpilot-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: var(--space-xl);
    padding: 0.75rem 1.1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.trustpilot-badge__venue {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
}

.trustpilot-badge__row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.trustpilot-badge__stars {
    display: flex;
    gap: 2px;
}

.trustpilot-badge__star {
    width: 18px;
    height: 18px;
    background: var(--color-trustpilot);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1px;
}

.trustpilot-badge__star svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.trustpilot-badge__text {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.trustpilot-badge__rating {
    font-weight: 600;
    color: var(--color-text);
}


/* ═══════════════════════════════════════════════════════
   ACCREDITATIONS
   ═══════════════════════════════════════════════════════ */
.accreditations {
    padding: var(--space-xl) 0;
    background: var(--color-cream);
}

.accreditations__overline {
    text-align: center;
    margin-bottom: var(--space-md);
}

.accreditations__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.accreditations__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.accreditations__logo-name {
    font-size: 0.56rem;
    line-height: 1.3;
    font-weight: 500;
    color: #4D4382;
    text-align: center;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.accreditations__logo img {
    height: 44px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

/* Square logos need more height to balance visual weight against wordmarks */
.accreditations__logo--square img {
    height: 64px;
    max-width: 80px;
}

/* When a logo has a caption beneath, shrink the logo so the combined stack
   matches the visual height of the other accreditation logos */
.accreditations__logo--with-caption {
    gap: 3px;
}
.accreditations__logo--with-caption img {
    height: 32px;
}

.accreditations__logo:hover img {
    opacity: 1;
}

.accreditations__affiliations {
    margin-top: var(--space-md);
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════
   ABOUT / MEET DR TIMLIN
   ═══════════════════════════════════════════════════════ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.about__portrait {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 4;
    max-width: 400px;
    margin: 0 auto;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}
.about__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.about__content h2 {
    margin-bottom: var(--space-md);
}

.about__text {
    font-size: 0.95rem; line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about__awards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-lg) 0 var(--space-xl);
}

.about__award {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-white);
    padding: 0.35rem 0.65rem;
    border-radius: 100px;
    border: 1px solid var(--color-border);
}

.about__award svg {
    width: 13px;
    height: 13px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.about__link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.88rem; font-weight: 500;
    color: var(--color-primary-dark);
    transition: gap var(--transition-base);
}
.about__link:hover { gap: 0.75rem; }
.about__link svg { width: 16px; height: 16px; }


/* ═══════════════════════════════════════════════════════
   WHY CHOOSE
   ═══════════════════════════════════════════════════════ */
.why-choose {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.why-choose__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.why-choose__content { }

.why-choose__title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--space-2xl);
}

.why-choose__title em {
    font-style: italic;
    color: var(--color-primary);
}

.why-choose__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.why-choose__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.why-choose__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-alpha-10);
    border-radius: 50%;
    margin-top: 2px;
}

.why-choose__check svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary-dark);
    stroke-width: 2.5;
}

.why-choose__item-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.why-choose__item-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.why-choose__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 5;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}

.why-choose__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-light);
}
.services__header { text-align: center; margin-bottom: var(--space-2xl); }
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
    box-shadow: var(--shadow-card);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-strong);
}
.service-card__image { height: 200px; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card__body { padding: var(--space-lg) var(--space-lg) var(--space-xl); }
.service-card__title {
    font-size: 1.2rem; margin-bottom: var(--space-xs);
    color: var(--color-heading);
}
.service-card__desc {
    font-size: 0.88rem; line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}
.service-card__link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 500;
    color: var(--color-primary-dark);
    transition: gap var(--transition-base);
}
.service-card__link:hover { gap: 0.65rem; }


/* ═══════════════════════════════════════════════════════
   BEFORE & AFTER
   ═══════════════════════════════════════════════════════ */
.before-after {
    padding: var(--space-3xl) 0;
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.85);
}
.before-after .overline { color: var(--color-primary-light); }
.before-after h2 { color: white; }

.before-after__header { text-align: center; margin-bottom: var(--space-2xl); }
.before-after__header .section-divider { background: rgba(255,255,255,0.15); }
.before-after__subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 480px;
    margin: var(--space-xs) auto 0;
}

.before-after__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.ba-slider__container {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    cursor: ew-resize;
    user-select: none;
    background: var(--color-dark-mid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ba-slider__before,
.ba-slider__after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.ba-slider__before img,
.ba-slider__after img { width: 100%; height: 100%; object-fit: cover; }

.ba-slider__before { z-index: 2; -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.ba-slider__after { z-index: 1; }

.ba-slider__label {
    position: absolute; bottom: 12px;
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px; border-radius: 3px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 5;
}
.ba-slider__label--before { left: 12px; }
.ba-slider__label--after { right: 12px; }

.ba-slider__handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    z-index: 4;
    display: flex; flex-direction: column; align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
}
.ba-slider__handle-line {
    flex: 1; width: 2px;
    background: white;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.ba-slider__handle-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto; cursor: ew-resize;
}
.ba-slider__handle-circle svg { width: 18px; height: 18px; color: var(--color-text-secondary); }

.ba-slider__caption {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-sm);
    font-style: italic;
}

.before-after__note {
    text-align: center; font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic; margin-top: var(--space-xl);
}


/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-light);
}
.testimonials__header { text-align: center; margin-bottom: var(--space-2xl); }

.testimonials__carousel { position: relative; overflow: hidden; }

.testimonials__track {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%; min-width: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    box-shadow: var(--shadow-card);
}
.testimonial-card__stars {
    display: flex; gap: 2px;
    margin-bottom: var(--space-md);
    color: var(--color-trustpilot);
}
.testimonial-card__stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-card__date {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: var(--space-xs);
    font-weight: 400;
}

.testimonial-card__quote {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 400; font-style: italic;
    line-height: 1.6; color: var(--color-text);
    margin-bottom: var(--space-md);
}
.testimonial-card__cite {
    font-size: 0.78rem; font-weight: 500;
    color: var(--color-primary-dark);
    letter-spacing: 0.04em; font-style: normal;
}
.testimonial-card__procedure { font-weight: 400; color: var(--color-text-secondary); }

.testimonials__controls {
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-md); margin-top: var(--space-xl);
}
.testimonials__arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
}
.testimonials__arrow:hover:not(:disabled) {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: white;
}
.testimonials__arrow:disabled { opacity: 0.25; cursor: default; }
.testimonials__arrow svg { width: 18px; height: 18px; stroke: currentColor; }

.testimonials__dots { display: flex; gap: 8px; }
.testimonials__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-border);
    border: none; cursor: pointer; padding: 0;
    transition: background var(--transition-base), transform var(--transition-base);
}
.testimonials__dot--active { background: var(--color-primary); transform: scale(1.25); }

.testimonials__placeholder {
    text-align: center; font-size: 0.78rem;
    color: var(--color-text-secondary);
    font-style: italic; margin-top: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════
   LOCATIONS
   ═══════════════════════════════════════════════════════ */
.locations {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}
.locations__header { text-align: center; margin-bottom: var(--space-2xl); }
.locations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.location-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}
.location-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--color-border-strong); }
.location-card__image { height: 160px; }
.location-card__logo {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}
.location-card__logo img {
    max-width: 190px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.location-card__body { padding: var(--space-lg); text-align: center; }
.location-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 600;
    margin-bottom: var(--space-xs);
}
.location-card__address {
    font-size: 0.85rem; color: var(--color-text-secondary);
    line-height: 1.6; margin-bottom: var(--space-md);
}
.location-card__sub {
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
}
.location-card__sub:first-of-type {
    padding-top: 0;
    border-top: none;
}
.location-card__sub .location-card__address {
    margin-bottom: 0;
}
.location-card__sub-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--color-primary-dark);
    margin-bottom: 0.3rem;
}
.location-card__sub + .location-card__sub {
    margin-top: 0;
}

/* Trustpilot inline for Ezra Clinic */
.location-card__trustpilot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.tp-stars-sm {
    display: flex;
    gap: 1px;
}
.tp-stars-sm .tp-star {
    width: 14px; height: 14px;
    background: var(--color-trustpilot);
    display: flex; align-items: center; justify-content: center;
    border-radius: 1px;
}
.tp-stars-sm .tp-star svg { width: 9px; height: 9px; fill: white; }

.location-card__tp-text {
    font-size: 0.68rem;
    color: var(--color-text-secondary);
}
.location-card__tp-text strong {
    font-weight: 600;
    color: var(--color-text);
}


/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--color-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 38%, rgba(164, 130, 128, 0.06) 0%, transparent 62%);
    pointer-events: none;
}
.cta-section h2 { color: white; margin-bottom: var(--space-sm); }
.cta-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
    max-width: 440px;
    margin-left: auto; margin-right: auto;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: #161615;
    color: rgba(255, 255, 255, 0.5);
}
.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
.footer__logo-text {
    font-family: var(--font-logo);
    font-weight: 500; font-size: 0.82rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-sm);
}
.footer__tagline {
    font-size: 0.78rem; line-height: 1.6;
    color: rgba(255, 255, 255, 0.35);
}
.footer__gmc {
    font-size: 0.72rem; line-height: 1.5;
    color: rgba(255, 255, 255, 0.3);
    margin-top: var(--space-sm);
    letter-spacing: 0.02em;
}
.footer__heading {
    font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-md);
}
.footer__link {
    display: block; font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0;
    transition: color var(--transition-fast);
}
.footer__link:hover { color: rgba(255, 255, 255, 0.85); }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--space-xl); padding-top: var(--space-lg);
    display: flex; flex-direction: column; gap: var(--space-sm);
}
.footer__copyright { font-size: 0.75rem; color: rgba(255, 255, 255, 0.25); }
.footer__insurance { font-size: 0.72rem; color: rgba(255, 255, 255, 0.25); }


/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.fade-in--visible { opacity: 1; transform: translate3d(0, 0, 0); }
.fade-in-delay-1 { transition-delay: 100ms; }
.fade-in-delay-2 { transition-delay: 200ms; }
.fade-in-delay-3 { transition-delay: 300ms; }

/* Hero always visible */
.hero .fade-in { opacity: 1; transform: none; }


/* ═══════════════════════════════════════════════════════
   TABLET (640px+)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    :root { --container-padding: 2rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-3xl));
        padding-bottom: var(--space-3xl);
    }
    /* Hero switches to full-bleed at tablet+ */
    .hero {
        position: relative;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
        min-height: 680px;
        overflow: hidden;
    }
    .hero .container { position: relative; z-index: 2; }
    .hero__content { padding-bottom: 0; }
    .hero__image {
        position: absolute;
        inset: 0;
        z-index: 0;
        aspect-ratio: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero__image img { object-position: right 30%; }
    /* Readability scrim: keeps the left-hand text crisp while the photo stays
       visible on the right. Fades fully to transparent by ~70% width. */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            100deg,
            rgba(250, 248, 244, 0.97) 0%,
            rgba(250, 248, 244, 0.94) 30%,
            rgba(250, 248, 244, 0.72) 48%,
            rgba(250, 248, 244, 0.25) 62%,
            rgba(250, 248, 244, 0) 74%
        );
    }
    .hero__title { font-size: 2.75rem; line-height: 1.15; }
    .hero__actions { flex-direction: row; }
    .hero .btn--outline { display: inline-flex; }
    .btn--full { display: inline-flex; width: auto; }

    .about__portrait { max-width: 340px; }

    .why-choose__grid { grid-template-columns: 1fr 1fr; align-items: center; }

    .services__grid { grid-template-columns: repeat(2, 1fr); }

    .before-after__grid { grid-template-columns: repeat(2, 1fr); }

    .testimonial-card { flex: 0 0 calc(50% - var(--space-lg) / 2); }

    .locations__grid { grid-template-columns: repeat(2, 1fr); }

    .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════
   DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    :root { --container-padding: 3rem; --header-height: 76px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .section { padding: var(--space-4xl) 0; }

    .header__hamburger { display: none; }
    .header__nav { display: flex; gap: var(--space-xl); }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-4xl));
        padding-bottom: var(--space-4xl);
        min-height: 720px;
    }
    .hero__title { font-size: 2.8rem; }
    .hero__content { max-width: 600px; }

    .about__grid {
        grid-template-columns: 4fr 7fr;
        gap: var(--space-3xl);
        align-items: start;
    }

    .about__portrait {
        max-width: none;
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--header-height) + var(--space-lg));
    }

    .why-choose__grid {
        grid-template-columns: 7fr 5fr;
        gap: var(--space-3xl);
    }

    .why-choose__title { font-size: 2.2rem; }

    .services__grid { grid-template-columns: repeat(3, 1fr); }
    .service-card__image { height: 220px; }

    .before-after__grid { grid-template-columns: repeat(3, 1fr); }

    .testimonial-card { flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3); }

    .locations__grid { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }

    .cta-section { padding: var(--space-4xl) 0; }

    .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (min-width: 1280px) {
    .hero__title { font-size: 3.2rem; }
}
