/* ============================================================
   IN THE VALLEY MEDICAL & DENTAL — style.css v3.0 (clean)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    /* Brand */
    --brand: #5c1f8a;
    --brand-mid: #7c3aed;
    --brand-light: #a78bfa;
    --brand-pale: #ede9fe;
    --brand-dark: #3b0764;

    /* Light-mode surfaces */
    --bg: #faf9f7;
    --bg-surface: #ffffff;
    --bg-alt: #f3f1ee;
    --bg-muted: #eae8e4;

    /* Light-mode text */
    --text: #1a1614;
    --text-2: #4a4745;
    --text-3: #8a8380;

    /* Light-mode borders */
    --border: #e2ddd8;
    --border-sub: #eeebe7;
    --border-logout: #9b5de5;

    /* Typography */
    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'DM Sans', system-ui, sans-serif;
    --ff-mono: 'DM Mono', monospace;

    /* Spacing & shape */
    --max-w: 1280px;
    --pad-x: clamp(20px, 5vw, 80px);
    --sec-gap: clamp(80px, 10vw, 120px);
    --r: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Shadows */
    --sh-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --sh-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
    --sh-lg: 0 12px 40px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .06);
    --sh-brand: 0 8px 28px rgba(92, 31, 138, .22);

    --ease: 0.22s cubic-bezier(.4, 0, .2, 1);
    --ease-slow: 0.4s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
    --brand: #9b5de5;
    --brand-mid: #a78bfa;
    --brand-light: #c4b5fd;
    --brand-pale: #1e1530;
    --brand-dark: #0f0820;

    --bg: #0f0d12;
    --bg-surface: #1a1620;
    --bg-alt: #211d28;
    --bg-muted: #2a2535;

    --text: #f0ecf8;
    --text-2: #b8b0c8;
    --text-3: #6d6580;

    --border: #2e2840;
    --border-sub: #261f35;
    --border-logout: #261f35;

    --sh-brand: 0 8px 28px rgba(167, 139, 250, .18);
}

/* ── RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--ease-slow), color var(--ease-slow);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--brand-mid);
}

ul {
    list-style: none;
}

p {
    color: var(--text-2);
    line-height: 1.7;
}

strong {
    color: var(--text);
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

.fade-in:nth-child(2) {
    transition-delay: .1s;
}

.fade-in:nth-child(3) {
    transition-delay: .18s;
}

.fade-in:nth-child(4) {
    transition-delay: .24s;
}

.fade-in:nth-child(5) {
    transition-delay: .3s;
}

.fade-in:nth-child(6) {
    transition-delay: .36s;
}

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.section {
    padding: var(--sec-gap) 0;
    background: var(--bg);
}

.section-alt {
    padding: var(--sec-gap) 0;
    background: var(--bg-alt);
}

.section-header {
    max-width: 600px;
    margin-bottom: 64px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.12;
    margin-bottom: 16px;
}

.section-title em {
    font-style: italic;
    color: var(--brand);
}

.section-sub {
    font-size: 1rem;
    color: var(--text-2);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-body);
    font-size: .88rem;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: var(--r);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--ease);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--sh-brand);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand-pale);
    color: var(--brand);
}

/* Ghost inside header (transparent section) */
.btn-ghost-hero {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* Ghost on light/dark surfaces */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-logout);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    color: var(--text);
}

.btn-sm {
    font-size: .8rem;
    padding: 7px 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── HEADER / NAV ────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    transition: background var(--ease-slow), box-shadow var(--ease-slow);
}

.site-header.scrolled {
    background: var(--bg-surface);
    box-shadow: var(--sh-sm);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px var(--pad-x);
    display: flex;
    align-items: center;
    gap: 32px;
    transition: padding var(--ease-slow);
}

.site-header.scrolled .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Logo: two images, toggled by scrolled state + theme */
.logo-wrap {
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
}

/* Default (transparent header, any theme): show white */
.logo-white {
    display: block;
}

.logo-colour {
    display: none;
}

/* Scrolled in light mode: show colour */
.site-header.scrolled .logo-white {
    display: none;
}

.site-header.scrolled .logo-colour {
    display: block;
}

/* Scrolled in dark mode: white is fine on dark bg — keep white */
[data-theme="dark"] .site-header.scrolled .logo-white {
    display: block;
}

[data-theme="dark"] .site-header.scrolled .logo-colour {
    display: none;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    font-size: .86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    padding: 6px 11px;
    border-radius: 8px;
    transition: all var(--ease);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

/* Scrolled: adapt to solid bg */
.site-header.scrolled .nav-link {
    color: var(--text-2);
}

.site-header.scrolled .nav-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme toggle — lives in the nav bar */
.theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--ease);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, .22);
    transform: scale(1.08);
}

.theme-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Scrolled: adapt toggle to solid bg */
.site-header.scrolled .theme-btn {
    border-color: var(--border);
    background: var(--bg-alt);
    color: var(--text-2);
}

.site-header.scrolled .theme-btn:hover {
    background: var(--bg-muted);
    color: var(--text);
}

/* Show sun in dark mode, moon in light mode */
.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* Mobile-only nav elements — hidden on desktop */
.nav-close,
.mobile-nav-header,
.mobile-nav-auth {
    display: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--ease);
}

.site-header.scrolled .nav-hamburger span {
    background: var(--text);
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--pad-x) 80px;
    background: linear-gradient(135deg, #2a0645 0%, #47108a 45%, #5c1f8a 75%, #380660 100%);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0d0318 0%, #180826 45%, #210d38 75%, #0f0520 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(155, 93, 229, .35), transparent 70%);
    top: -80px;
    right: 180px;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(196, 181, 253, .2), transparent 70%);
    bottom: 60px;
    left: 28%;
    animation-delay: -4s;
}

.hero-orb {
    will-change: transform;
}

.hero-logo {
    will-change: transform;
}

.ring {
    will-change: transform, opacity;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(18px, -26px);
    }

    66% {
        transform: translate(-14px, 18px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    padding: 5px 16px 5px 5px;
    border-radius: 99px;
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: 28px;
}

.hero-badge img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-title em {
    font-style: italic;
    color: #ddd0ff;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, .72);
    line-height: 1.72;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-sub,
.hero-sub * {
    color: rgba(255, 255, 255, .72);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-stat {
    text-align: center;
}

.stat-n {
    display: block;
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-l {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.stat-sep {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, .15);
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrap {
    position: relative;
    width: clamp(280px, 36vw, 520px);
    height: clamp(280px, 36vw, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: clamp(200px, 26vw, 400px);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .3));
    animation: logoFloat 6s ease-in-out infinite;
}

/* Hero always on dark bg: show white logo by default */
.hl-white {
    display: block;
}

.hl-colour {
    display: none;
}

/* In dark theme the hero bg is also dark — white logo still correct */
[data-theme="dark"] .hl-white {
    display: block;
}

[data-theme="dark"] .hl-colour {
    display: none;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 80%;
    height: 80%;
}

.ring-2 {
    width: 98%;
    height: 98%;
    opacity: .5;
    animation-delay: -2s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .12;
    }

    50% {
        transform: scale(1.04);
        opacity: .22;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .38);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: var(--ff-mono);
}

.scroll-hint span {
    color: rgba(255, 255, 255, .38);
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .35), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: .38;
    }

    50% {
        opacity: .8;
    }
}

/* ── NOTICE BAR ──────────────────────────────────────────── */
.notice-bar {
    background: var(--brand-pale);
    border-bottom: 1px solid var(--border);
}

.notice-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 12px var(--pad-x);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: var(--brand);
}

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

.notice-inner p {
    color: var(--brand);
}

.notice-inner strong {
    color: var(--brand);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

/* ── SERVICES ────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* featured cards each span a column, small cards span half */
.svc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.svc-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
}

.svc-featured {
    background: linear-gradient(140deg, var(--bg-surface) 55%, var(--brand-pale) 100%);
}

/* Small cards sit in a 3-column sub-row */
.services-grid .svc-card:not(.svc-featured) {
    grid-column: auto;
}

/* Override grid: featured cards take full width of their column */
/* Put small cards in a nested row */
.services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.svc-featured:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.svc-featured:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Small cards: 3 across in row 2, spanning both columns */
.svc-card:not(.svc-featured) {
    grid-row: 2;
}

/* 3 small cards across 2 columns = use a sub-grid trick via wrapping */
/* Simpler: just make services-grid 6 cols */
.services-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
}

.svc-featured:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1;
}

.svc-featured:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1;
}

.svc-card:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
}

.svc-card:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2;
}

.svc-card:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2;
}

.svc-card:nth-child(6) {
    grid-column: 6 / 7;
    grid-row: 2;
}

.svc-card:nth-child(7) {
    grid-column: 7 / 7;
    grid-row: 2;
}

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r);
    background: var(--brand-pale);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.svc-icon-sm {
    width: 44px;
    height: 44px;
}

.svc-tag {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-pale);
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.svc-card h3 {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.svc-card:not(.svc-featured) h3 {
    font-size: 1.15rem;
}

.svc-card p {
    font-size: .92rem;
    margin-bottom: 18px;
}

.svc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 14px;
    margin-bottom: 22px;
}

.svc-list li {
    font-size: .83rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.svc-list li::before {
    content: '—';
    color: var(--brand);
    flex-shrink: 0;
}

.svc-link {
    font-size: .86rem;
    font-weight: 500;
    color: var(--brand);
}

.svc-link:hover {
    color: var(--brand-mid);
}

/* ── HOURS ───────────────────────────────────────────────── */
.hours-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 72px;
    align-items: start;
}

.hours-intro {
    color: var(--text-2);
    font-size: .98rem;
    margin-bottom: 32px;
}

.hours-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.hours-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-lg);
    padding: 26px 30px;
}

.hours-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hours-card-head h3 {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.hours-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-pale);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hours-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-sub);
    font-size: .88rem;
}

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

.hours-row span:first-child {
    color: var(--text-2);
}

.htime {
    font-family: var(--ff-mono);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
}

.hclosed .htime {
    color: var(--text-3);
    font-weight: 400;
}

.hours-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .83rem;
    color: var(--text-3);
    line-height: 1.55;
}

.hours-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--text-3);
}

.hours-notice strong {
    color: var(--text-2);
}

.booking-card {
    background: var(--brand);
    border-radius: var(--r-xl);
    padding: 40px 34px;
    text-align: center;
    position: sticky;
    top: 90px;
}

.booking-pulse {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 18px;
}

.booking-card h3 {
    font-family: var(--ff-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.booking-card p {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    margin-bottom: 24px;
}

.booking-card p,
.booking-card p * {
    color: rgba(255, 255, 255, .8);
}

.booking-card .btn-primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.booking-card .btn-primary:hover {
    background: #f0ecff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.booking-note {
    font-size: .75rem !important;
    opacity: .65;
    margin-top: 14px;
    margin-bottom: 0 !important;
}

/* ── TEAM ────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--ease);
}

.team-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--sh-lg);
    transform: translateY(-4px);
}

.team-muted {
    opacity: .6;
}

.team-muted:hover {
    opacity: .9;
}

.team-avatar {
    height: 400px;
    background: linear-gradient(135deg, var(--brand-pale), var(--bg-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}

.team-avatar-muted {
    background: var(--bg-alt);
    color: var(--text-3);
}

.team-info {
    padding: 26px;
}

.team-tag {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.tag-gp {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-dental {
    background: #fef3c7;
    color: #92400e;
}

.tag-neutral {
    background: var(--bg-muted);
    color: var(--text-3);
}

[data-theme="dark"] .tag-gp {
    background: #0c2d47;
    color: #7dd3fc;
}

[data-theme="dark"] .tag-dental {
    background: #3d1f00;
    color: #fbbf24;
}

.team-card h3 {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.team-role {
    font-size: .82rem;
    font-weight: 500;
    color: var(--brand);
    margin-bottom: 10px;
}

.team-info p {
    font-size: .88rem;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 16px;
}

.pillars {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.pillar {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r);
    background: var(--brand-pale);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar strong {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.pillar p {
    font-size: .88rem;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    height: 440px;
}

.acard {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 26px;
    box-shadow: var(--sh-md);
}

.acard-1 {
    top: 30px;
    left: 40px;
    right: 0;
}

.acard-2 {
    top: 140px;
    left: 0;
    right: 40px;
}

.acard-val {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 3px;
}

.acard-lbl {
    font-size: .78rem;
    color: var(--text-3);
    font-family: var(--ff-mono);
}

.acard-logo {
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 0;
    background: var(--brand);
    border-radius: var(--r-xl);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alogo {
    width: 110px;
}

.al-white {
    display: block;
}

.al-colour {
    display: none;
}

/* About card sits on brand bg — white logo always correct */
/* In dark mode it's still brand bg, so still white */

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ci {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-sub);
}

.ci:last-of-type {
    border-bottom: none;
}

.ci-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    background: var(--brand-pale);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 5px;
}

.ci-val {
    font-size: .92rem;
    color: var(--text);
    line-height: 1.55;
}

.ci-val,
.ci-val * {
    color: var(--text);
}

.ci-val a {
    color: var(--brand);
}

.ci-val a:hover {
    text-decoration: underline;
}

.social-row {
    padding-top: 20px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease);
}

.social-btn:hover {
    background: var(--brand-pale);
    color: var(--brand);
    border-color: var(--brand-light);
}

.map-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-sub);
    border-radius: var(--r-xl);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-inner {
    text-align: center;
    color: var(--text-3);
}

.map-inner svg {
    margin: 0 auto 12px;
    color: var(--text-3);
}

.map-inner p {
    font-size: .88rem;
    color: var(--text-3);
}

.map-inner a {
    color: var(--brand);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--brand-dark);
    padding: 64px var(--pad-x) 0;
}

[data-theme="dark"] .site-footer {
    background: #0a0612;
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 52px;
    padding-bottom: 52px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
    max-width: 240px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-heading {
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    transition: color var(--ease);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: .78rem;
    color: rgba(255, 255, 255, .35);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, .55);
}

/* ── ACCESSIBILITY ───────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .services-grid .svc-featured:nth-child(1) {
        grid-column: 1 / 4;
        grid-row: 1;
    }

    .services-grid .svc-featured:nth-child(2) {
        grid-column: 4 / 7;
        grid-row: 1;
    }

    .services-grid .svc-featured:nth-child(3) {
        grid-column: 1 / 7;
        grid-row: 2;
    }

    .services-grid .svc-image-panel {
        grid-column: 1 / 7;
        grid-row: 3;
    }

    .services-grid .svc-card:nth-child(5),
    .services-grid .svc-card:nth-child(6),
    .services-grid .svc-card:nth-child(7),
    .services-grid .svc-card:nth-child(8),
    .services-grid .svc-card:nth-child(9) {
        grid-column: auto;
        grid-row: auto;
    }

    .hours-layout {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* ── 860px: mobile nav, single-col layouts ── */
@media (max-width: 860px) {
    :root {
        --pad-x: 20px;
        --sec-gap: 60px;
    }

    .section,
    .section-alt {
        padding: 56px 0;
    }

    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 100px 20px 60px;
    }

    .hero-visual {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .contact-grid,
    .hours-layout,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-card {
        position: static;
    }

    .map-box {
        height: 280px;
        min-height: 280px;
    }

    /* ── Mobile nav ── */
    .primary-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-surface);
        padding: 0 20px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: var(--sh-lg);
        z-index: 850;
        overflow-y: auto;
    }

    .primary-nav.open {
        display: flex;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 0 16px;
        border-bottom: 1px solid var(--border-sub);
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .mobile-nav-title {
        font-family: var(--ff-mono);
        font-size: 10px;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1.5px solid var(--border);
        background: var(--bg-alt);
        color: var(--text-2);
        cursor: pointer;
        flex-shrink: 0;
        transition: all var(--ease);
    }

    .nav-close:hover {
        background: var(--bg-muted);
        color: var(--text);
    }

    .primary-nav .nav-link {
        color: var(--text-2);
        font-size: 1.1rem;
        padding: 13px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-sub);
    }

    .primary-nav .nav-link:hover {
        color: var(--text);
        background: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-auth {
        display: none;
    }

    .mobile-nav-auth {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .mobile-nav-auth .btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .header-inner {
        gap: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-right {
        gap: 6px;
    }
}

/* ── 600px: everything single column ── */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .services-grid>* {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .svc-image-panel {
        grid-template-columns: 1fr;
    }

    .svc-img-block {
        min-height: 200px;
    }

    .svc-list {
        grid-template-columns: 1fr;
    }

    .svc-card {
        padding: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-avatar-photo {
        height: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 12px;
    }

    .booking-card {
        padding: 28px 20px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .map-box {
        height: 240px;
        min-height: 240px;
    }
}


/* ── TEAM CARD PORTRAIT STYLES ─────────────────── */
.team-avatar-photo {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--brand-pale), var(--bg-alt));
}

.team-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .team-avatar-photo img {
    transform: scale(1.04);
}

/* ── SERVICES DUAL-IMAGE PANEL ─────────────────── */
.svc-image-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 0;
}

.svc-img-block {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    min-height: 260px;
}

.svc-img-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.svc-img-block:hover img {
    transform: scale(1.04);
}

.svc-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 10, 50, 0.82) 0%, transparent 100%);
    padding: 28px 24px 20px;
    color: #fff;
}

.svc-img-caption .eyebrow {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
}

.svc-img-caption h3 {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

/* ── SERVICES GRID OVERRIDE for 3 featured cards ─ */
.services-grid .svc-featured:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.services-grid .svc-featured:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

.services-grid .svc-featured:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1;
}

.services-grid .svc-image-panel {
    grid-column: 1 / 7;
    grid-row: 2;
}

.services-grid .svc-card:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 3;
}

.services-grid .svc-card:nth-child(6) {
    grid-column: 3 / 5;
    grid-row: 3;
}

.services-grid .svc-card:nth-child(7) {
    grid-column: 5 / 7;
    grid-row: 3;
}

.services-grid .svc-card:nth-child(8) {
    grid-column: 1 / 4;
    grid-row: 4;
}

.services-grid .svc-card:nth-child(9) {
    grid-column: 4 / 7;
    grid-row: 4;
}

@media (max-width: 600px) {
    .svc-image-panel {
        grid-template-columns: 1fr;
    }

    .svc-img-block {
        min-height: 200px;
    }
}