/* =============================================================
   MEOULAB — Μικροβιολογικό Διαγνωστικό Κέντρο
   Design system + homepage styles
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* Brand — lavender/purple scale anchored to the logo */
    --brand-900: #3f1e52;   /* deepest — headings on light */
    --brand-800: #4f2668;
    --brand-700: #662282;   /* primary accent (logo dot) */
    --brand-600: #7a4d95;
    --brand-500: #8d71b0;   /* logo wordmark tone */
    --brand-300: #b79fce;
    --brand-200: #ddd0ea;
    --brand-100: #f0e5f3;   /* soft lavender surface */
    --brand-50:  #f8f4fb;   /* lightest wash */

    /* Neutrals */
    --white: #ffffff;
    --ink: #45414c;         /* body text */
    --ink-soft: #6f6a77;    /* secondary text */
    --muted: #9b95a4;       /* captions / meta */
    --line: #e8e2ee;        /* hairlines */
    --line-strong: #d9d1e2;

    /* Support tint for warmth (pediatric etc.) */
    --rose: #d98aa0;

    /* Effects */
    --shadow-sm: 0 2px 10px rgba(63, 30, 82, 0.06);
    --shadow-md: 0 12px 30px rgba(63, 30, 82, 0.10);
    --shadow-lg: 0 26px 60px rgba(63, 30, 82, 0.16);
    --ring: 0 0 0 3px rgba(102, 34, 130, 0.28);

    /* Radii */
    --r-xs: 10px;
    --r-sm: 14px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-pill: 999px;

    /* Layout */
    --container: min(1200px, calc(100% - 40px));
    --nav-h: 66px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast: 160ms var(--ease);
    --t: 260ms var(--ease);

    /* Type */
    --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

html, body {
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: clamp(15px, 0.5vw + 14px, 17px);
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--brand-900);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--r-xs);
}

/* ---------- Layout helpers ---------- */
.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    padding: clamp(48px, 7vw, 92px) 0;
}

.section--tint {
    background:
        radial-gradient(120% 100% at 100% 0%, var(--brand-50), transparent 60%),
        var(--brand-50);
}

.section__head {
    max-width: 640px;
    margin: 0 auto clamp(32px, 4vw, 52px);
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-700);
    background: var(--brand-100);
    border-radius: var(--r-pill);
}

.section__head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

.section__head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t), box-shadow var(--t), color var(--t);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--brand-700);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--brand-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn--ghost {
    background: var(--white);
    color: var(--brand-700);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    border-color: var(--brand-300);
    background: var(--brand-50);
    transform: translateY(-2px);
}

.btn--light {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
}

.btn--light:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

/* =============================================================
   HEADER
   ============================================================= */

/* --- Top bar --- */
.topbar {
    background: linear-gradient(90deg, var(--brand-700), var(--brand-600));
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.86rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    flex-wrap: wrap;
    padding: 9px 0;
}

.topbar__group {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: inherit;
    transition: color var(--t-fast), opacity var(--t-fast);
}

a.topbar__item:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topbar__icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    opacity: 0.85;
}

.topbar__icon svg {
    width: 100%;
    height: 100%;
}

/* --- Brand row --- */
.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 0 16px;
}

.brand-logo img {
    width: clamp(210px, 26vw, 320px);
    height: auto;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand-doc {
    text-align: right;
    line-height: 1.35;
}

.brand-doc__name {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: var(--brand-600);
}

.brand-doc__role {
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.brand-cta {
    display: inline-flex;
}

/* --- Nav --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t);
}

.nav.is-stuck {
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--nav-h);
    position: relative;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav__menu a {
    position: relative;
    display: inline-block;
    padding: 12px 2px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    transition: color var(--t-fast);
}

.nav__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2.5px;
    border-radius: var(--r-pill);
    background: var(--brand-700);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t);
}

.nav__menu a:hover,
.nav__menu a.is-active {
    color: var(--brand-700);
}

.nav__menu a:hover::after,
.nav__menu a.is-active::after {
    transform: scaleX(1);
}

.nav__toggle {
    display: none;
    position: absolute;
    right: 0;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-700);
    background: var(--brand-100);
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
}

.nav__toggle svg {
    width: 18px;
    height: 18px;
}

/* =============================================================
   HERO / CAROUSEL
   ============================================================= */
.hero {
    padding: 0;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel__viewport {
    position: relative;
    height: clamp(420px, 62vh, 640px);
    overflow: hidden;
    background: linear-gradient(180deg, var(--brand-50), var(--brand-100));
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition: opacity 700ms var(--ease), transform 900ms var(--ease), visibility 700ms;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45, 20, 60, 0.62) 0%, rgba(45, 20, 60, 0.28) 42%, transparent 68%);
}

.slide--card {
    background: linear-gradient(180deg, #f3ecf8, #ede4f3);
}

.slide--card .slide__media {
    object-fit: contain;
    object-position: center;
    padding: clamp(14px, 3vw, 40px);
}

.slide__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    color: #fff;
}

.slide__content > * { max-width: 620px; }

.slide__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--r-pill);
    backdrop-filter: blur(6px);
}

.slide__title {
    color: #fff;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    text-shadow: 0 4px 24px rgba(30, 12, 40, 0.4);
}

.slide__text {
    max-width: 48ch;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 16px rgba(30, 12, 40, 0.4);
}

.slide__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Light "figure" slide: text left (dark), graphic right */
.slide--figure {
    background: linear-gradient(180deg, #f4ecf9, #e9dcf3);
}

.slide--figure .slide__media {
    left: 42%;
    right: 0;
    width: auto;
    object-fit: contain;
    object-position: center;
    padding: clamp(16px, 3vw, 44px);
}

.slide--figure .slide__content > * { max-width: 440px; }

.slide--figure .slide__eyebrow {
    color: var(--brand-700);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--brand-200);
}

.slide--figure .slide__title {
    color: var(--brand-900);
    text-shadow: none;
}

.slide--figure .slide__text {
    color: var(--ink-soft);
    text-shadow: none;
}

@media (max-width: 860px) {
    .slide--figure .slide__media { left: 36%; padding: 18px; }
    .slide--figure .slide__content > * { max-width: 270px; }
}

@media (max-width: 680px) {
    .slide--figure .slide__media { left: 0; top: 46%; padding: 8px 8px 14px; }
    .slide--figure .slide__content { justify-content: flex-start; padding-top: 30px; padding-bottom: 0; }
    .slide--figure .slide__actions { display: none; }
}

/* Carousel controls */
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(45, 20, 60, 0.28);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background var(--t), transform var(--t);
}

.carousel__arrow:hover {
    background: var(--brand-700);
    transform: translateY(-50%) scale(1.06);
}

.carousel__arrow svg {
    width: 22px;
    height: 22px;
}

.carousel__arrow--prev { left: clamp(12px, 3vw, 34px); }
.carousel__arrow--next { right: clamp(12px, 3vw, 34px); }

.carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform var(--t), background var(--t), width var(--t);
}

.carousel__dot:hover { background: rgba(255, 255, 255, 0.8); }

.carousel__dot.is-active {
    width: 28px;
    border-radius: var(--r-pill);
    background: #fff;
}

/* =============================================================
   TRUST STRIP (features)
   ============================================================= */
.features {
    position: relative;
    z-index: 2;
    margin-top: -46px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: var(--white);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 6px;
}

.feature__icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    color: var(--brand-700);
    background: var(--brand-100);
}

.feature__icon svg { width: 24px; height: 24px; }

.feature h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.feature p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* =============================================================
   SERVICES
   ============================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 5 κάρτες σε πλέγμα 3 στηλών — οι 2 της τελευταίας σειράς κεντραρισμένες.
   Πλέγμα 6 στηλών με κάρτες που πιάνουν 2 η καθεμία → ίδιο πλάτος κάρτας,
   αλλά η τελευταία σειρά μπορεί να ξεκινήσει με μισή στήλη offset. */
.cards--center-last { grid-template-columns: repeat(6, 1fr); }
.cards--center-last > .card { grid-column: span 2; }
.cards--center-last > .card:nth-child(4) { grid-column: 2 / span 2; }
.cards--center-last > .card:nth-child(5) { grid-column: 4 / span 2; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-700), var(--brand-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

.card:hover::before { transform: scaleX(1); }

.card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    color: var(--brand-700);
    background: var(--brand-100);
}

.card__icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 1.25rem; }

.card p {
    color: var(--ink-soft);
    font-size: 0.96rem;
    flex: 1;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-700);
    transition: gap var(--t-fast);
}

.card__link svg { width: 16px; height: 16px; }
.card:hover .card__link { gap: 12px; }

/* =============================================================
   TEAM teaser
   ============================================================= */
.team {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.team__figure {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-100), var(--brand-200));
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
}

.team__figure svg { width: 100%; height: 100%; }

.team__body h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 16px;
}

.team__body p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.team__list {
    list-style: none;
    margin: 20px 0 26px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.team__list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--ink);
    font-size: 0.98rem;
}

.team__list svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--brand-700);
    margin-top: 1px;
}

/* =============================================================
   LOCATIONS
   ============================================================= */
.locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Ένα μόνο σημείο εξυπηρέτησης — μία στήλη, κεντραρισμένη */
.locations--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    margin-inline: auto;
}

.loc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}

.loc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.loc__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 13px;
    margin-bottom: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-700);
    background: var(--brand-100);
    border-radius: var(--r-pill);
}

.loc__badge svg { width: 15px; height: 15px; }

.loc h3 { font-size: 1.2rem; }

.loc__row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.loc__row svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--brand-500);
}

.loc__row a:hover { color: var(--brand-700); }

.loc__map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-700);
    transition: gap var(--t-fast);
}

.loc__map svg { width: 16px; height: 16px; }
.loc__map:hover { gap: 11px; }

/* =============================================================
   INSURANCE
   ============================================================= */
.insurance__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--brand-800);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), border-color var(--t);
}

.chip svg { width: 20px; height: 20px; color: var(--brand-500); flex: none; }
.chip:hover { transform: translateY(-3px); border-color: var(--brand-200); }

.insurance__note {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.insurance-figure {
    margin: 8px auto 0;
    max-width: 760px;
}

.insurance-figure img { width: 100%; height: auto; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

/* Μόνο η κάρτα στοιχείων — μία στήλη, κεντραρισμένη */
.contact--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    margin-inline: auto;
}

.contact__card {
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(150deg, var(--brand-800), var(--brand-700));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.contact__card h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }

.contact__card p { color: rgba(255, 255, 255, 0.86); margin-top: 12px; }

.contact__list {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.contact__list .ic {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.contact__list .ic svg { width: 19px; height: 19px; }

.contact__list b { display: block; font-size: 0.98rem; color: #fff; }
.contact__list span,
.contact__list a { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.contact__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.contact__hours {
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.contact__hours h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact__hours > p { color: var(--ink-soft); margin-bottom: 20px; }

.hours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
}

.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--ink); font-weight: 600; }
.hours li span:last-child { color: var(--ink-soft); }
.hours li.is-closed span:last-child { color: var(--rose); font-weight: 600; }

.contact__cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
    background: var(--brand-900);
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(28px, 5vw, 60px);
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
    width: 210px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer p { font-size: 0.92rem; line-height: 1.7; }

.footer h4 {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer__links a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer__links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer__contact {
    display: grid;
    gap: 13px;
}

.footer__contact .row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.92rem;
}

.footer__contact svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--brand-300);
    margin-top: 3px;
}

.footer__contact a:hover { color: #fff; }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__bottom a:hover { color: #fff; }

/* =============================================================
   INNER PAGES — shared components
   ============================================================= */

/* Page hero (breadcrumb + title band) */
.page-hero {
    padding: clamp(38px, 5vw, 68px) 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(120% 120% at 50% 0%, var(--brand-100), transparent 62%),
        var(--brand-50);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb svg { width: 15px; height: 15px; color: var(--line-strong); }

.page-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.1rem);
}

.page-hero .lead {
    max-width: 660px;
    margin: 16px auto 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

/* Values grid (4-up cards) */
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Pull-quote / commitment band */
.quote {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.quote__mark {
    font-size: 4rem;
    line-height: 0.6;
    color: var(--brand-300);
    font-weight: 800;
}

.quote p {
    font-size: clamp(1.3rem, 2.7vw, 2rem);
    font-weight: 600;
    line-height: 1.42;
    color: var(--brand-900);
    letter-spacing: -0.01em;
}

.quote cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-600);
}

/* Doctor / scientific lead card */
.doctor {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: clamp(30px, 4vw, 52px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.doctor__avatar {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--brand-100), var(--brand-200));
    color: var(--brand-700);
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.doctor__role {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.doctor h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.doctor p { color: var(--ink-soft); max-width: 60ch; }

/* Split rows (image + text, alternating) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}

.split + .split { margin-top: clamp(40px, 6vw, 84px); }

.split__media {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

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

.split--reverse .split__media { order: 2; }

.split__body h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 14px; }
.split__body > p { color: var(--ink-soft); margin-bottom: 14px; }

/* Callout strip (e.g. what to bring) */
.callout {
    margin: 28px auto 0;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    justify-content: center;
    padding: 22px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.callout .item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.callout svg { flex: none; width: 19px; height: 19px; color: var(--brand-700); }

/* Contact form */
.form-card {
    padding: clamp(28px, 4vw, 44px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.form-card > h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.form-card > p { color: var(--ink-soft); margin-top: 8px; }

.form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { display: grid; gap: 7px; }

.field label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--brand-900);
}

.field label .req { color: var(--brand-600); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(102, 34, 130, 0.16);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

/* honeypot */
.form__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__submit { justify-self: start; margin-top: 4px; }
.form__submit[disabled] { opacity: 0.6; cursor: default; }

.form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-700); flex: none; }

.form__status {
    display: none;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 13px 16px;
    border-radius: var(--r-sm);
}

.form__status.is-ok {
    display: block;
    background: #e9f6ec;
    color: #1f7a3a;
    border: 1px solid #c2e6cb;
}

.form__status.is-err {
    display: block;
    background: #fcebef;
    color: #b02a44;
    border: 1px solid #f4c6cf;
}

/* Map + place cards */
.map-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--brand-50);
    overflow: hidden;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.place {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}

.place:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.place__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 28px 28px;
}

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

/* Notice / partnership band */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: clamp(24px, 3.4vw, 38px);
    background: linear-gradient(150deg, var(--brand-100), var(--brand-50));
    border: 1px solid var(--brand-200);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.notice__icon {
    flex: none;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--white);
    color: var(--brand-700);
    box-shadow: var(--shadow-sm);
}

.notice__icon svg { width: 28px; height: 28px; }

.notice h3 { font-size: 1.25rem; margin-bottom: 8px; }
.notice p { color: var(--ink-soft); margin-bottom: 12px; }

.notice__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-700);
    transition: gap var(--t-fast);
}

.notice__link svg { width: 16px; height: 16px; }
.notice__link:hover { gap: 11px; }

@media (max-width: 600px) {
    .notice { flex-direction: column; }
}

/* CTA band */
.cta-band {
    text-align: center;
    padding: clamp(38px, 5vw, 68px);
    border-radius: var(--r-lg);
    color: #fff;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(150deg, var(--brand-800), var(--brand-700));
    box-shadow: var(--shadow-md);
}

.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { margin: 14px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.88); }

.cta-band__actions {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1080px) {
    .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}
@media (max-width: 600px) {
    .values { grid-template-columns: 1fr; }
}

/* =============================================================
   Reveal-on-scroll
   ============================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .cards, .cards--center-last { grid-template-columns: 1fr; }
    .cards--center-last > .card,
    .cards--center-last > .card:nth-child(4),
    .cards--center-last > .card:nth-child(5) { grid-column: auto; }
    .team { grid-template-columns: 1fr; }
    .team__figure { max-width: 460px; margin-inline: auto; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .brand-row { flex-wrap: wrap; gap: 16px; }
    .brand-cta { order: 3; }

    .nav__toggle { display: inline-flex; }

    .nav__inner { justify-content: flex-start; }

    .nav__menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-lg);
    }

    .nav__menu.is-open { display: flex; }

    .nav__menu a {
        padding: 12px 14px;
        border-radius: var(--r-xs);
        text-align: center;
    }

    .nav__menu a::after { display: none; }
    .nav__menu a.is-active { background: var(--brand-100); }
}

@media (max-width: 680px) {
    .topbar__inner { justify-content: center; text-align: center; }
    .topbar__group:first-child { display: none; }
    .topbar__group:last-child { gap: 16px; }
    .brand-row { justify-content: center; text-align: center; }
    .brand-doc { text-align: center; }
    .brand-meta { flex-direction: column; gap: 14px; }
    .features { margin-top: -30px; }
    .features__grid { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
    .locations { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .slide__scrim { background: linear-gradient(180deg, rgba(45, 20, 60, 0.25) 0%, rgba(45, 20, 60, 0.68) 100%); }
    .slide__content { justify-content: flex-end; padding-bottom: 54px; max-width: 100%; }
    .carousel__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
