/*
 * public.css — KoronaDent public site styles
 *
 * Mobile-first. Base = 390px (iPhone 14 width).
 * Breakpoints:
 *   md:  768px  (tablet)
 *   lg: 1024px  (desktop)
 *   xl: 1280px  (wide)
 *
 * Design tokens are in :root. Change palette here only —
 * nothing else should have hardcoded color values.
 *
 * Load order: reset → tokens → base → layout → components → pages → utilities
 */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    /* Brand */
    --primary:        #1B6FBE;
    --primary-dark:   #154F8A;
    --primary-light:  #5B95D0;
    --primary-tint:   #E7F1FB;
    --navy:           #1A3A5C;
    --navy-dk:        #122B45;

    /* Text */
    --text:           #111827;
    --text-muted:     #5A6478;
    --text-light:     #9CA3AF;

    /* Surfaces */
    --bg:             #FFFFFF;
    --bg-tint:        #EEF3F8;
    --bg-dark:        #0F2540;
    --border:         #DDE3ED;
    --border-strong:  #C4CDD9;

    /* Accent green */
    --green:          #0D9E6E;

    /* Feedback */
    --success:        #0D9E6E;
    --error:          #D32F2F;

    /* Notice */
    --notice-bg:      #FFF8E1;
    --notice-border:  #F0B429;
    --notice-text:    #7A5500;

    /* Shape — soft, calm, modern */
    --radius:         6px;
    --radius-lg:      10px;
    --radius-xl:      16px;

    /* Shadow — layered and soft, navy-tinted */
    --shadow-sm:      0 1px 2px rgba(15, 37, 64, 0.05), 0 1px 4px rgba(15, 37, 64, 0.06);
    --shadow:         0 2px 6px rgba(15, 37, 64, 0.05), 0 6px 20px rgba(15, 37, 64, 0.08);
    --shadow-lg:      0 4px 10px rgba(15, 37, 64, 0.06), 0 14px 36px rgba(15, 37, 64, 0.13);

    /* Spacing scale */
    --space-xs:       0.5rem;
    --space-sm:       1rem;
    --space-md:       1.5rem;
    --space-lg:       2.5rem;
    --space-xl:       4rem;
    --space-xxl:      6rem;

    /* Typography */
    --font-heading:   'Lora', serif;
    --font-body:      'Nunito Sans', sans-serif;

    /* Layout */
    --container:      1280px;
    --header-h:       68px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--primary); }

::selection {
    background: var(--primary);
    color: #ffffff;
}

address { font-style: normal; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.125rem; }

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-lg); }
}

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

@media (min-width: 768px) {
    .section { padding: 5.5rem 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Sizes */
.btn-sm  { padding: 0.5rem 1rem;    font-size: 0.825rem; }
.btn-md  { padding: 0.75rem 1.5rem; }
.btn-lg  { padding: 1rem 2.25rem;   font-size: 1rem; min-height: 52px; }

/* Primary — flat solid, no gradient */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(21, 79, 138, 0.25), 0 4px 12px rgba(27, 111, 190, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 79, 138, 0.25), 0 8px 20px rgba(27, 111, 190, 0.28);
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(21, 79, 138, 0.25);
}

/* Secondary — navy fill */
.btn-secondary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: #0a2244;
    color: #fff;
    border-color: #0a2244;
}

/* Outline — border only */
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15, 37, 64, 0.04);
}

.header-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    height: var(--header-h);
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.header-phone:hover { color: var(--primary); }

.header-phone-number {
    /* Hide number on very small screens — icon stays visible */
    display: none;
}

@media (min-width: 400px) {
    .header-phone-number { display: inline; }
}

.header-book { display: none; }

@media (min-width: 640px) {
    .header-book { display: inline-flex; }
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
}

.lang-switcher a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.lang-switcher a:hover { color: var(--navy); }
.lang-switcher a.active {
    color: var(--primary);
    background: var(--bg-tint);
}

/* Navigation — now lives inside header-inner */
.site-nav {
    flex: 1;
    background: transparent;
    border: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.nav-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-muted);
    padding: 0 1.1rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
}

/* Underline grows from the left on hover; static when active */
.nav-link::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active {
    color: var(--navy);
    font-weight: 700;
}

.nav-link.active::after { transform: scaleX(1); }

/* ============================================================
   HOMEPAGE — hero sits below the sticky header (no bleed)
   ============================================================ */

/* Hero no longer floats behind header. Remove absolute positioning.
   The hero-bg image is retained but shown within its natural flow. */
.page-home .site-header {
    position: sticky;
}

/* Homepage hero — full-bleed clinic photo, text on left with gradient overlay */
@media (min-width: 768px) {
    .page-home .hero {
        background: url('/assets/img/hero-bg.png') center / cover no-repeat;
        position: relative;
        padding: 0;
        min-height: 620px;
        display: flex;
        align-items: stretch;
    }

    /* White-to-transparent gradient — text readable left, photo visible right */
    .page-home .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to right,
            rgba(255,255,255,0.98) 0%,
            rgba(255,255,255,0.95) 38%,
            rgba(255,255,255,0.65) 55%,
            rgba(255,255,255,0.12) 70%,
            transparent 82%
        );
        z-index: 1;
        display: block;
    }

    /* Hero inner — aligned with the page container so the headline
       lines up with all section content below it.
       width:100% is required so margin:0 auto centres inside the flex hero. */
    .page-home .hero-inner {
        position: relative;
        z-index: 2;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        max-width: var(--container);
        margin: 0 auto;
        padding: var(--space-xl) var(--space-lg) calc(var(--space-xl) + 48px);
        gap: var(--space-md);
        min-height: 620px;
    }

    .page-home .hero-content {
        flex: none;
        width: 100%;
        max-width: 750px; /* gradient covers the right half — keep text out of it */
    }
}

/* Hero CTA — secondary button solid navy, clearly distinct from primary blue */
.hero-ctas .btn-outline {
    background: var(--navy);
    color: #ffffff;
    border-color: var(--navy);
}

.hero-ctas .btn-outline:hover {
    background: var(--navy-dk);
    border-color: var(--navy-dk);
    color: #ffffff;
}

/* Decorative circle removed on inner pages; homepage keeps its gradient */
.hero::before {
    display: none;
}

/* Curved transition into the navy services band — the single curve
   on the site; deliberate, not a repeated gimmick */
.page-home .hero {
    position: relative;
}

.page-home .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%2064%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2C64%20L0%2C44%20C320%2C4%201120%2C4%201440%2C44%20L1440%2C64%20Z%27%20fill%3D%27%231A3A5C%27/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {
    .page-home .hero::after { height: 64px; }
}

.page-home .hero::before {
    display: block;
}

/* ============================================================
   CTA CARD MOBILE — strip the white wrapper padding so content
   isn't strangled on small screens, buttons full-width stacked
   ============================================================ */
@media (max-width: 767px) {
    .about-cta-inner {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }

    .about-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .about-cta-buttons .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
        padding: 0 var(--space-lg);
    }
    .hero-content { flex: 1.2; }
}

.hero-badge {
    display: inline-block;
    background: var(--bg-tint);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: var(--space-sm);
    color: var(--navy);
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #1A2E44;
    margin-bottom: var(--space-xs);
    line-height: 1.6;
    font-weight: 600;
}

.hero-subline {
    font-size: 0.95rem;
    color: #1A2E44;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-sm);
    position: relative;
    font-weight: 500;
}

/* Short brand rule instead of a full-width border — quieter, more deliberate */
.hero-subline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ============================================================
   NOTICE BAR
   ============================================================ */
.notice-bar {
    background: var(--notice-bg);
    border-top: 2px solid var(--notice-border);
    border-bottom: 2px solid var(--notice-border);
}

.notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-sm);
    color: var(--notice-text);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

.notice-inner svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--notice-border);
}

@media (min-width: 768px) {
    .notice-inner { padding: var(--space-sm) var(--space-lg); }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

/* Brand flourish under major section headings — the recurring mark
   that ties every page together (also on footer + category-nav borders) */
.section-header h2::after,
.category-header h2::after,
.highlights-section h2::after,
.find-us > .container > h2::after,
.tech-section-title::after,
.videos-title::after,
.about-text h2::after,
.tech-text h2::after,
.doctor-bio h2::after,
.advice-section-header h2::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--green));
    margin-top: 0.65rem;
}

.tech-section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.link-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-dark);
    white-space: nowrap;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}

.link-more:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* ============================================================
   SECTION BACKGROUNDS — each section owns its background
   ============================================================ */
.gradient-band {
    background: transparent;
}

.reviews-section   { background: var(--bg-tint); }

/* Find-us text — white background, standard colors apply */

/* ============================================================
   SERVICES TEASER — dark navy background
   ============================================================ */
.services-teaser {
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20fill%3D%27%23FFFFFF%27%20fill-opacity%3D%270.20%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3C/svg%3E") right 32px top 36px no-repeat,
        radial-gradient(1100px 480px at 82% -10%, rgba(91, 149, 208, 0.22), transparent 62%),
        radial-gradient(700px 380px at 0% 110%, rgba(13, 158, 110, 0.10), transparent 55%),
        var(--navy);
}

/* Heading white on navy */
.services-teaser .section-header h2 {
    color: #ffffff;
}

/* Hide the top "Всички услуги →" link — the bottom button is enough */
.services-teaser .section-header .link-more {
    display: none;
}

/* CTA button on navy — white outline */
.services-teaser .services-cta .btn-secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.45);
    color: #ffffff;
}

.services-teaser .services-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

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

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

.service-tile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.service-tile:hover h3 { color: var(--primary-dark); }

.service-tile--featured {
    background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-tint) 100%);
    border-color: var(--primary-light);
}

/* Icon sits in a tinted chip — gives every tile a clear anchor */
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-tint);
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-icon svg { width: 32px; height: 32px; }

.service-tile:hover .service-icon {
    background: #D9E9F9;
    transform: scale(1.06);
    box-shadow: 0 0 0 5px rgba(27, 111, 190, 0.08);
}

/* All icons use the same primary color — no rainbow */

.service-tile h3 {
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.3;
}

.service-tile p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.service-tag {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    text-transform: uppercase;
    margin-top: auto;
    align-self: flex-start;
}

.services-cta {
    text-align: center;
    margin-top: var(--space-md);
}

.services-cta .btn {
    min-width: 200px;
}

/* CTA band text + button colors handled in about-page section below */

.about-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .about-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
    }
    .about-text  { flex: 1.4; }
    .about-stats { flex: 0.6; }
}

.about-text h2 { margin-bottom: var(--space-sm); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-text .lead { margin-bottom: var(--space-sm); color: var(--text-muted); }
.about-text p { margin-bottom: var(--space-md); color: var(--text-muted); }

.about-stats {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .about-stats { flex-direction: column; }
}

.stat-card {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

/* On very narrow screens stack cards vertically — 3 in a row is too tight */
@media (max-width: 480px) {
    .about-stats { flex-direction: column; }
    .stat-card { padding: var(--space-sm); }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-number--flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number--flag svg {
    width: 42px;
    height: 27px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--border);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================================
   REVIEWS — horizontal scroll strip
   Single definition: cards snap-scroll on all screen sizes.
   ============================================================ */
.reviews-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-xs) var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    /* Fade the strip edges so cut-off cards read as "scroll for more" */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.reviews-grid::-webkit-scrollbar        { height: 4px; }
.reviews-grid::-webkit-scrollbar-track  { background: transparent; }
.reviews-grid::-webkit-scrollbar-thumb  { background: var(--border-strong); border-radius: 2px; }

.review-card {
    flex: 0 0 min(320px, 78vw);
    scroll-snap-align: start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .review-card { flex: 0 0 380px; }
}

.review-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.review-card img { width: 100%; height: auto; display: block; }

/* ============================================================
   FIND US
   ============================================================ */
.find-us {
    background: var(--bg);
}

.find-us h2 { margin-bottom: var(--space-lg); }

.findus-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .findus-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-xl);
    }
    .findus-info { flex: 0 0 300px; }
    .findus-map  { flex: 1; }
}

.info-block {
    margin-bottom: var(--space-md);
}

.info-block h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.info-block address {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.info-phone {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.info-phone:hover { color: var(--primary); }

.hours-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

.hours-table td {
    padding: 0.3rem 0;
    color: var(--text);
}

.hours-table td:first-child {
    color: var(--text-muted);
    padding-right: 1.5rem;
}

.findus-map iframe {
    width: 100%;
    min-height: 300px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .findus-map iframe { min-height: 400px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.75);
    margin-top: auto;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--green)) 1;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        padding: var(--space-xl) var(--space-lg);
    }
}

.footer-logo {
    opacity: 0.85;
    margin-bottom: var(--space-sm);
    max-width: 120px;
    width: auto;
    height: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-col address {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col address a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col address a:hover { color: var(--primary-light); }

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-sm) var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

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

.footer-lang {
    display: flex;
    gap: 4px;
}

.footer-lang a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    padding: 4px 7px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.footer-lang a:hover { color: #fff; }
.footer-lang a.active {
    color: var(--primary-light);
    background: rgba(255,255,255,0.08);
}

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

/* Focus ring for keyboard nav */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   PAGE HERO
   Shared across contact, services, about, privacy pages.
   ============================================================ */
.page-hero {
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20fill%3D%27%23FFFFFF%27%20fill-opacity%3D%270.20%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3C/svg%3E") right 36px center no-repeat,
        radial-gradient(900px 400px at 85% -20%, rgba(91, 149, 208, 0.25), transparent 60%),
        var(--navy);
    border-bottom: none;
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative radial removed */
.page-hero::after {
    display: none;
}

.page-hero h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.page-hero-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    max-width: 600px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--bg); }

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

@media (min-width: 768px) {
    .contact-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-xl);
    }
    .contact-info      { flex: 0 0 300px; }
    .contact-form-wrap { flex: 1; }
}

.contact-map {
    margin-top: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ============================================================
   FORM COMPONENTS
   Shared across contact form and booking form.
   ============================================================ */
.form-card {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.form-card h2 {
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--space-md);
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.01em;
}

/* Required asterisk */
.form-group label span[aria-hidden] {
    color: var(--error);
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 111, 190, 0.14);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Error state */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: var(--error);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.field-error {
    font-size: 0.825rem;
    color: var(--error);
    font-weight: 600;
}

/* Checkbox row */
.form-group--checkbox { flex-direction: row; align-items: flex-start; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-family: var(--font-body);
    font-weight: 400;
}

/* Hide native checkbox — replaced by custom box via appearance:none */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    cursor: pointer;
    border: 2px solid var(--primary-dark);
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

/* Checked state — solid primary fill, no tick */
.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

/* Focus ring for accessibility */
.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.checkbox-label a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Full-width button */
.btn-full { width: 100%; }

/* General error banner */
.form-error-banner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    color: #991B1B;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin-bottom: var(--space-md);
}

/* Success state */
.form-success-msg {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.form-success-msg svg {
    color: var(--success);
}

.form-success-msg h2 {
    font-size: 1.1rem;
    color: var(--navy);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

/* Category jump nav */
.category-nav {
    background: var(--bg-tint);
    border-top: 1px solid var(--border);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--green)) 1;
    position: sticky;
    top: var(--header-h);
    z-index: 90;
}

/* Why sticky at --header-h?
   The site header is sticky at top:0. The category nav sits
   directly below it and scrolls with the page until it hits
   the header, then sticks — so patients always see where they
   are in the services list without losing context. */

.category-nav-inner {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem var(--space-sm);
    max-width: var(--container);
    margin: 0 auto;
}

/* Mobile: single scrollable row — no wrapping, no wasted vertical space */
@media (max-width: 767px) {
    .category-nav-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
    }
    .category-nav-link {
        flex-shrink: 0;
    }
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    padding: 0.5rem 1.1rem;
    white-space: nowrap;
    border-radius: 99px;
    border: 1.5px solid var(--border-strong);
    text-decoration: none;
    transition: all 0.15s;
    letter-spacing: 0.02em;
    background: var(--bg);
}

.category-nav-link:hover {
    color: var(--primary);
    background: var(--bg);
    border-color: var(--primary);
}

.category-nav-link.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}
/* Services page wrapper — transparent; each section owns its background */
.services-page {
    background: transparent;
    padding: 0;
}

/* Individual category section — full-width band, content contained by .container inside */
.category-section {
    scroll-margin-top: calc(var(--header-h) + 52px); /* header + sticky nav */
    background: var(--bg);
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
    margin: 0;
    max-width: none;
}

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

/* Alternating band — activates on even sections via PHP $alt_class */
.category-section--alt { background: var(--bg-tint); }

/* Featured section (3D implants) — distinct primary-blue tint */
.category-section--featured {
    background: #D6EAFA;
    border-bottom: 1px solid #A8CEEE;
}

/* Category header — title + desc + book button */
.category-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .category-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: var(--space-lg);
    }
    .category-header-text { flex: 1; }
    .category-book-btn    { flex-shrink: 0; margin-top: 0.5rem; }
}

.category-header h2 {
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 640px;
}

/* Treatment cards grid */
.treatments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

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

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

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

.treatment-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .treatment-card { padding: 2rem; }
}

.treatment-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

/* All treatment cards use the same accent — no rainbow per section */

.treatment-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.4;
}

.treatment-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
}
.category-section--featured      .treatment-duration { color: var(--green); }

/* Bottom CTA */
.services-bottom-cta {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.services-bottom-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.services-bottom-cta .btn + .btn {
    margin-left: 0;
}

@media (min-width: 480px) {
    .services-bottom-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .services-bottom-cta p { width: 100%; }
}

/* Treatment card description — only present when staff has filled it in */
.treatment-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Card background contrasts against its section background */
.category-section .treatment-card           { background: var(--bg-tint); }
.category-section--alt .treatment-card,
.category-section--featured .treatment-card { background: var(--bg); }

/* Doctor bio list — qualifications */
.bio-list {
    margin: var(--space-sm) 0 var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: disc;
}

.bio-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 0.25rem;
}

.doctor-section { background: var(--bg); }

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

@media (min-width: 768px) {
    .doctor-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-xxl);
    }
    .doctor-photo-wrap { flex: 0 0 420px; }
    .doctor-bio        { flex: 1; }
}

/* Signature: a quiet tinted frame offset behind the photo */
.doctor-photo-wrap {
    position: relative;
}

.doctor-photo-wrap::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: -14px;
    bottom: -14px;
    background: var(--primary-tint);
    border-radius: var(--radius-xl);
    z-index: 0;
}

.doctor-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
    display: block;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* Placeholder shown until real photo is dropped in */
.doctor-photo-placeholder {
    width: 100%;
    aspect-ratio: 5 / 6;
    max-width: 340px;
    background: var(--bg-tint);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.doctor-photo-placeholder span {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--border);
    letter-spacing: -0.02em;
}

.doctor-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

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

.doctor-bio p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

/* Highlights */
.highlights-section { background: var(--bg-tint); }

.highlights-section h2 { margin-bottom: var(--space-lg); }

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .highlights-grid { grid-template-columns: 1fr 1fr; }
}

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

.highlight-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
    border-top: 3px solid var(--primary);
}

.highlight-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.highlight-card .highlight-icon { color: var(--primary); }

.highlight-card--featured {
    border-color: var(--primary-light);
    background: linear-gradient(160deg, #FFFFFF 55%, var(--primary-tint));
}

.highlight-icon { color: var(--primary-dark); }

.highlight-card h3 {
    font-size: 1rem;
    color: var(--navy);
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

/* About CTA — the single canonical definition (used on about,
   services, advice, technology pages via the same markup).
   .cta-band is the outer section (replaces the old inline styles). */
.cta-band { background: var(--bg-tint); }

.about-cta-section { background: transparent; }

.about-cta-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20fill%3D%27%23FFFFFF%27%20fill-opacity%3D%270.20%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3C/svg%3E") right 28px bottom 24px no-repeat,
        radial-gradient(800px 360px at 90% -30%, rgba(91, 149, 208, 0.30), transparent 60%),
        var(--navy);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .about-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-xl);
    }
}

.about-cta-inner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.about-cta-inner p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Outline button on dark background */
.about-cta-section .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.about-cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ============================================================
   BOOKING PAGE
   ============================================================ */
/* .section.booking-section out-specifies .section — no !important needed */
.section.booking-section { background: var(--bg-tint); padding-top: var(--space-md); }

.booking-wrap {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-sm);
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}

.step-dot.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.step-dot.completed {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 80px;
    transition: background 0.25s;
}

/* Booking card */
.booking-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    min-height: 400px;
}

@media (min-width: 640px) {
    .booking-card { padding: var(--space-xl); }
}

.booking-step h2 { margin-bottom: var(--space-lg); }

/* Initial loading state */
.booking-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 300px;
    color: var(--text-muted);
}

/* Spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Calendar ---- */
.cal { user-select: none; }

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.cal-month-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    text-transform: capitalize;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.cal-nav-btn:hover:not(:disabled) {
    background: var(--bg-tint);
    border-color: var(--primary);
}

.cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cal-loading {
    display: flex;
    justify-content: center;
    padding: var(--space-lg);
}

.cal-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.cal-header {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid transparent;
    transition: all 0.15s;
    min-height: 44px; /* minimum tap target */
}

.cal-day[data-date] {
    color: var(--navy);
    background: var(--bg-tint);
    cursor: pointer;
}

.cal-day[data-date]:hover {
    background: var(--border);
    border-color: var(--primary-light);
}

.cal-day--today { border-color: var(--primary-light) !important; }

.cal-day--selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.cal-day--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: none;
}

.cal-day--empty { background: none; border: none; }

/* Selected date bar */
.selected-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Slots */
.slots-loading {
    display: flex;
    justify-content: center;
    padding: var(--space-md);
}

.slots-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: var(--space-md) 0 var(--space-sm);
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-btn {
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-tint);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 68px;
    text-align: center;
}

.slot-btn:hover { border-color: var(--primary); background: var(--bg); }

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

.no-slots {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-sm) 0;
}

.step1-next { margin-top: var(--space-lg); }

/* Step 2 form */
.step2-form { margin-bottom: var(--space-lg); }

/* Step nav — back + next buttons */
.step-nav {
    display: flex;
    gap: var(--space-sm);
    justify-content: space-between;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* Step 3 summary */
.summary-card {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--text-muted); }
.summary-row strong { color: var(--navy); text-align: right; }

.consent-section { margin-bottom: var(--space-lg); }

.gdpr-note {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

/* Step 4 success */
.booking-step--success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
}

.success-icon { color: var(--success); margin-bottom: var(--space-sm); }

.booking-step--success h2 { color: var(--navy); }
.booking-step--success p  { color: var(--text-muted); max-width: 400px; }

.pending-notice {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
}

.success-actions { margin-top: var(--space-md); }

/* Alt booking info */
.booking-alt {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.booking-alt a { color: var(--primary-dark); }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-section { background: var(--bg); }

.not-found-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.not-found-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 20vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.not-found-inner h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.not-found-inner p {
    color: var(--text-muted);
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-sm);
}

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.privacy-section { background: var(--bg); }

.privacy-content {
    max-width: 720px;
}

.privacy-content h2 {
    font-size: 1.2rem;
    color: var(--navy);
    margin: var(--space-lg) 0 var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.privacy-content h2:first-child {
    border-top: none;
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 1rem;
    color: var(--navy);
    margin: var(--space-md) 0 var(--space-xs);
}

.privacy-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.privacy-content ul {
    margin: var(--space-xs) 0 var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.privacy-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.privacy-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-content code {
    font-family: monospace;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.875rem;
    color: var(--navy);
}

/* Category nav pills in hero */
.category-nav-link--hero {
    background: rgba(255,255,255,0.12);
    border-radius: 99px;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    border-bottom: none;
}
.category-nav-link--hero:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
}

/* ============================================================
   BURGER MENU + MOBILE NAV
   ============================================================ */

/* Burger button — hidden on desktop */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.burger-btn:hover { background: var(--bg-tint); }

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

/* Animate to X when open */
.burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay — hidden by default */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    z-index: 999;
    overflow-y: auto;
    padding: 80px var(--space-md) var(--space-xl);
}

.mobile-nav.is-open { display: flex; flex-direction: column; }

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
    display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active { color: #ffffff; }

.mobile-nav-actions {
    margin-top: var(--space-lg);
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
}

.mobile-nav-lang {
    display: flex;
    gap: 12px;
    margin-top: var(--space-md);
}

.mobile-nav-lang a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s;
}

.mobile-nav-lang a.active,
.mobile-nav-lang a:hover { color: #ffffff; }

/* Responsive: show burger, hide desktop nav strip on mobile */
@media (max-width: 767px) {
    .burger-btn { display: flex; }
    .site-nav    { display: none; }

    /* Hero mobile — the navy curve handles the transition (see .hero::after) */
    .page-home .hero {
        padding-bottom: calc(var(--space-lg) + 48px);
    }
}

/* On homepage, burger icon colour needs to be light-friendly */
.page-home .burger-btn span { background: var(--navy); }

/* When nav is open, burger is above navy overlay — bars need to be white */
.burger-btn.is-open span,
.page-home .burger-btn.is-open span {
    background: rgba(255,255,255,0.85);
}

.burger-btn.is-open:hover {
    background: rgba(255,255,255,0.10);
}

/* ============================================================
   ADVICE PAGE
   ============================================================ */

.advice-hero {
    background: var(--navy);
}

.advice-hero h1,
.advice-hero .page-hero-sub { color: #ffffff; }

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

.advice-section--blue  { background: var(--bg-tint); border-top: 3px solid var(--primary); }
.advice-section--teal  { background: #E8F8FA;        border-top: 3px solid #0097A7; }
.advice-section--green { background: #EDFBF1;        border-top: 3px solid var(--green); }
.advice-section--videos { background: var(--bg-dark); border-top: 3px solid var(--primary-light); }

.advice-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.advice-section-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advice-section-header h2 { margin-bottom: 0.35rem; }

.advice-section-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0;
}

.advice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 560px) {
    .advice-grid { grid-template-columns: 1fr 1fr; }
}

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

.advice-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Section header icons follow the theme color */
.advice-section--blue  .advice-section-icon { color: var(--primary); }
.advice-section--teal  .advice-section-icon { color: #0097A7; }
.advice-section--green .advice-section-icon { color: var(--green); }

/* Card accents match each section's color theme */
.advice-section--blue  .advice-card { border-top-color: var(--primary); }
.advice-section--teal  .advice-card { border-top-color: #0097A7; }
.advice-section--green .advice-card { border-top-color: var(--green); }

.advice-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.advice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Videos section */
.videos-title {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.videos-sub {
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-lg);
}

.videos-empty {
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

.videos-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

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

.video-embed-wrap { display: flex; flex-direction: column; gap: 0.75rem; }

.video-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Responsive 16:9 iframe */
.video-frame-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-frame-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============================================================
   TECHNOLOGY PAGE
   ============================================================ */

.tech-hero {
    background: var(--navy);
}

.tech-hero h1,
.tech-hero .page-hero-sub { color: #ffffff; }

.tech-hero-badge {
    display: inline-block;
    background: rgba(91,149,208,0.20);
    color: var(--primary-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(91,149,208,0.30);
    margin-bottom: var(--space-sm);
}

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

.tech-section--intro  { background: var(--bg-tint); }
.tech-section--steps  { background: var(--bg); }
.tech-section--sprintray { background: var(--navy); }
.tech-section--benefits  { background: var(--bg-tint); }

.tech-section-title {
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Two-column intro layout */
.tech-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .tech-two-col { grid-template-columns: 1fr 1fr; }
}

.tech-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Stat block */
.tech-stat-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tech-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-left: 4px solid var(--primary);
}

.tech-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 70px;
}

.tech-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps */
.tech-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .tech-steps {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

.tech-step {
    flex: 1;
    display: flex;
    gap: var(--space-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-top: 3px solid var(--primary);
    padding: 1.75rem var(--space-md);
}

.tech-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.tech-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.tech-step-arrow {
    display: none;
    color: var(--primary-light);
    font-size: 1.5rem;
    font-weight: 700;
    align-self: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .tech-step-arrow { display: flex; }
}

/* SprintRay spotlight card */
.sprintray-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .sprintray-card { grid-template-columns: auto 1fr; }
}

.sprintray-logo-wrap {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    min-width: 180px;
}

.sprintray-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.sprintray-tagline {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.sprintray-content h2 {
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.sprintray-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    color: var(--navy);
}

/* On the dark navy SprintRay section, use white so the button is legible */
.sprintray-card .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.sprintray-card .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* Benefits grid */
.tech-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 560px) {
    .tech-benefits-grid { grid-template-columns: 1fr; }
}

.tech-benefit {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.tech-benefit-icon {
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1;
}

.tech-benefit-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.tech-benefit-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.tech-benefit p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger service tiles */
.services-grid .fade-in:nth-child(1) { transition-delay: 0.00s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.07s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.14s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.21s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.28s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.35s; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

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

    .btn,
    .service-tile,
    .treatment-card,
    .highlight-card,
    .link-more,
    .service-icon,
    .btn-primary:hover,
    .service-tile:hover,
    .treatment-card:hover,
    .highlight-card:hover {
        transition: none;
        transform: none;
    }

    /* Underline keeps its hidden rest state — only the animation is removed */
    .nav-link::after { transition: none; }
}

/* ============================================================
   ABOUT — doctor photo
   ============================================================ */
.about-teaser {
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20fill%3D%27%231B6FBE%27%20fill-opacity%3D%270.32%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3C/svg%3E") right 40px top 48px no-repeat, var(--bg);
    padding: var(--space-xxl) 0; /* More room — less cramped */
}

.about-photo {
    flex-shrink: 0;
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

.about-photo::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
    background: var(--primary-tint);
    border-radius: var(--radius-xl);
    z-index: 0;
}

.about-photo img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: block;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    /* 3-column layout: photo | text | stats */
    .about-inner {
        align-items: flex-start;
    }
    .about-photo img {
        width: 360px;
        height: 360px;
    }
    .about-text  { flex: 1; }
    .about-stats { flex: 0 0 auto; min-width: 170px; }
}


/* ============================================================
   3D TECHNOLOGY STRIP — same scale as about-teaser
   ============================================================ */
.tech-strip {
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20fill%3D%27%231B6FBE%27%20fill-opacity%3D%270.32%27%3E%3Ccircle%20cx%3D%276%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%276%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2724%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2742%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2760%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2778%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2796%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2724%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2778%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%2796%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%27114%27%20r%3D%272.4%27/%3E%3C/svg%3E") right 36px bottom 36px no-repeat, #EBF3FC;
    /* light primary-blue tint — distinct from white (doctor) and gray (reviews) */
    border-top: 1px solid #D0E5F7;
    border-bottom: 1px solid #D0E5F7;
    padding: var(--space-xxl) 0; /* matches about-teaser */
}

.tech-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .tech-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-xl);
    }
    .tech-visual { flex: 0 0 auto; }  /* left column — image */
    .tech-text   { flex: 1; }          /* middle column — text + button */
}

.tech-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem); /* matches about h2 */
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.tech-text .lead {
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.tech-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

/* Image placeholder — replaced with real img when photo is ready.
   Styled as a quiet branded panel so the page looks finished meanwhile. */
.tech-img-placeholder::before {
    content: '3D';
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(27, 111, 190, 0.25);
}

.tech-img-placeholder {
    width: 360px;
    max-width: 100%;
    height: 360px;
    background:
        radial-gradient(280px 280px at 30% 25%, rgba(255,255,255,0.45), transparent 70%),
        linear-gradient(160deg, var(--primary-tint), #D9E9F9);
    border: 1px solid #C8DFF4;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-sm);
}

