/* =============================================================================
   Dr Tziotzios — main.css
   ============================================================================= */

/* ─── Design tokens ────────────────────────────────────────────────────────── */
:root {
    --navy:         #1D2B3A;
    --navy-mid:     #2D3F52;
    --primary:         #005eb8;
    --primary-dark:    #004a96;
    --primary-light:   #dbeeff;
    --primary-on-dark: #7bbff5;
    --sage:         #6B9080;
    --ivory:        #f0f4f5;
    --white:        #FFFFFF;
    --slate:        #4B5563;
    --mid-grey:     #9CA3AF;
    --border:       #E8E4DE;
    --sage-light:   #E8F0EC;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --nav-h:        76px;
    --radius:       5px;
    --container:    1280px;
    --pad:          clamp(24px, 5vw, 48px);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate);
    background: var(--white);
}

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

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

ul {
    list-style: none;
}

/* ─── Accessibility ──────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--white);
    border-radius: var(--radius);
    clip: auto !important;
    clip-path: none;
    color: var(--navy);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

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

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.container--narrow {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }


/* ─── Eyebrow ────────────────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    line-height: 1;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.btn-white:hover,
.btn-white:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-white-outline:hover,
.btn-white-outline:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 10px 20px;
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: transparent;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    gap: 6px;
    align-self: flex-start;
    transition: color 0.2s, gap 0.2s;
}

.btn-ghost::after {
    content: '→';
    font-size: 1em;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    color: var(--primary);
    gap: 12px;
    text-decoration: none;
}

/* ─── Site header / Nav ──────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(29, 43, 58, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: var(--nav-h);
    gap: 24px;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
}

.nav-logo a,
.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.2;
}

.nav-logo-text span {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

.nav-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo .custom-logo {
    height: 48px;
    width: auto;
}

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-phone {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-phone:hover {
    color: var(--navy);
}

/* Hamburger */
.nav-hamburger {
    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: var(--radius);
}

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

/* Hamburger always shown on burger-mode, always shown on mobile */
body.menu-style-burger .nav-hamburger {
    display: flex;
}

/* ─── Desktop nav ────────────────────────────────────────────────────────────── */
/*
 * .site-nav is hidden by default. On desktop standard mode it becomes the
 * inline horizontal bar. All overlay/mobile nav is handled by #mobile-menu.
 */

.site-nav {
    display: none;
}

@media (min-width: 1025px) {
    body.menu-style-standard .site-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
    }

    body.menu-style-standard .site-nav .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    body.menu-style-standard .site-nav .nav-links li {
        margin: 0 18px;
    }

    body.menu-style-standard .site-nav .nav-links a {
        font-family: var(--font-body);
        font-size: 0.875rem;
        font-weight: 400;
        color: var(--slate);
        padding: 4px 0;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        transition: color 0.2s, border-color 0.2s;
    }

    body.menu-style-standard .site-nav .nav-links a:hover,
    body.menu-style-standard .site-nav .nav-links li.current-menu-item > a,
    body.menu-style-standard .site-nav .nav-links a:focus-visible {
        color: var(--navy);
        border-bottom-color: var(--primary);
    }

    body.menu-style-standard .nav-hamburger {
        display: none;
    }
}

/* ─── Mobile menu overlay ────────────────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu nav {
    width: 100%;
    text-align: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mobile-nav-links li {
    margin: 4px 0;
    width: 100%;
    text-align: center;
}

.mobile-nav-links a {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 600;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
    color: var(--primary-on-dark);
}

.mobile-menu-foot {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu-phone {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-on-dark);
}

/* ─── Hero block ─────────────────────────────────────────────────────────────── */
.block-hero {
    position: relative;
    margin-top: calc(-1 * var(--nav-h));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--navy);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.block-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 18, 28, 0.85) 0%,
        rgba(29, 43, 58, 0.70) 50%,
        rgba(29, 43, 58, 0.40) 100%
    );
    z-index: 0;
}

.hero-body {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    padding-inline: var(--pad);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 580px;
    background: rgba(15, 26, 38, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 44px 48px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-on-dark);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title em {
    display: block;
    font-style: normal;
    font-size: 0.55em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    margin-top: 4px;
    font-family: var(--font-body);
}

.hero-lead {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* ─── About block ────────────────────────────────────────────────────────────── */
.block-about {
    background: var(--white);
    padding: 96px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
}

.about-heading em {
    font-size: 0.6em;
    font-weight: 300;
    font-style: italic;
    display: block;
    color: var(--mid-grey);
}

.about-body {
    color: var(--slate);
    margin-top: 20px;
    margin-bottom: 28px;
}

.about-body p {
    margin-bottom: 1em;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.credentials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.credential-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: calc(var(--radius) * 0.8);
}

.credential-badge::before {
    content: '· ';
    color: var(--primary-on-dark);
}

/* ─── Conditions block ───────────────────────────────────────────────────────── */
.block-conditions {
    background: var(--ivory);
    padding: 96px 0;
}

.conditions-intro {
    max-width: 620px;
    margin-bottom: 56px;
}

.conditions-intro h2 {
    margin-top: 8px;
    margin-bottom: 16px;
}

.conditions-intro p {
    color: var(--slate);
}

.conditions-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.condition-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.condition-group-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.condition-group-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.condition-group-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.condition-group-sub {
    font-size: 0.75rem;
    color: var(--mid-grey);
    margin-top: 2px;
}

.condition-list {
    padding: 24px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.condition-item {
    font-size: 0.9375rem;
    color: var(--slate);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.condition-item::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 8px;
}

.condition-item.sage::before {
    background: var(--sage);
}

/* ─── Stats block ────────────────────────────────────────────────────────────── */
.block-stats {
    background: var(--white);
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px var(--pad);
}

.stat-cell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 72px 32px 64px;
    text-align: center;
}

.stat-cell::before {
    content: attr(data-number);
    font-family: var(--font-heading);
    font-size: clamp(9rem, 16vw, 15rem);
    font-weight: 600;
    color: color-mix(in srgb, var(--primary) 6%, transparent);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--mid-grey);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ─── CTA block ──────────────────────────────────────────────────────────────── */
.block-cta {
    position: relative;
    background: var(--navy);
    padding: 96px 0;
    text-align: center;
    overflow: hidden;
}

.block-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
}

.cta-heading {
    font-family: var(--font-heading);
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Testimonials block ─────────────────────────────────────────────────────── */
.block-testimonials {
    background: var(--ivory);
    padding: 96px 0;
}

.testimonials-intro {
    max-width: 600px;
    margin: 0 auto 56px;
    text-align: center;
}

.testimonials-intro h2 {
    margin-top: 8px;
}

.testimonials-grid {
    display: grid;
    gap: 24px;
}

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

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: 0 1px 3px rgba(29, 43, 58, 0.06);
    display: flex;
    flex-direction: column;
}

.testimonial-blockquote {
    position: relative;
    padding-top: 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-light);
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.0625rem;
    color: var(--slate);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
}

.testimonial-cite {
    font-style: normal;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-attribution {
    display: block;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9375rem;
}

.testimonial-detail {
    display: block;
    font-size: 0.8125rem;
    color: var(--mid-grey);
    margin-top: 2px;
}

/* ─── Page hero ──────────────────────────────────────────────────────────────── */
.block-page-hero {
    background: var(--navy);
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-hero-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* ─── Contact form block ─────────────────────────────────────────────────────── */
.block-contact-form {
    padding: 80px 0;
    background: var(--white);
}

.contact-form-inner {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form-heading {
    color: var(--navy);
    margin-bottom: 16px;
}

.contact-form-text {
    color: var(--slate);
    margin-bottom: 36px;
}

/* ─── Page content ───────────────────────────────────────────────────────────── */
.page-content {
    padding-top: var(--nav-h);
}

.page-content--home {
    padding-top: 0;
}

/* ─── Site footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy-mid);
    padding: 72px 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-grid {
    display: grid;
    gap: 48px;
    padding-bottom: 56px;
}

.site-footer .footer-cols-3 {
    grid-template-columns: 1.5fr 1fr 1fr;
}

.site-footer .footer-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* WordPress widget wrapper resets */
.site-footer .widget,
.site-footer .footer-widget,
.site-footer .textwidget,
.site-footer .custom-html-widget {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.site-footer ul,
.site-footer ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer p {
    margin-top: 0;
    margin-bottom: 0;
}

.site-footer address {
    font-style: normal;
}

.site-footer .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    display: block;
}

.site-footer .footer-logo-sub {
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-on-dark);
    display: block;
    margin-bottom: 20px;
}

.site-footer .footer-tagline {
    font-size: 0.875rem;
    color: #ffffff66;
    line-height: 1.65;
    margin-bottom: 24px;
}

.site-footer .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer .footer-contact-item {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-contact-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-heading {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-on-dark);
    margin-bottom: 20px;
}

.site-footer .footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-nav-list a {
    font-size: 0.875rem;
    color: #ffffff66;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-nav-list a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .footer-memberships {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer .footer-membership {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.site-footer .footer-membership strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer .footer-bottom-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}

.site-footer .footer-bottom-links {
    display: flex;
    gap: 24px;
}

.site-footer .footer-bottom-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Text Content block ─────────────────────────────────────────────────────── */
.block-text {
    padding: 72px 0;
}


.block-text .eyebrow {
    display: block;
    margin-bottom: 16px;
}

.block-text .prose {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate);
}

.block-text .prose h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 600;
    color: var(--navy);
    margin: 2em 0 0.5em;
    line-height: 1.25;
}

.block-text .prose h2:first-child {
    margin-top: 0;
}

.block-text .prose h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin: 1.75em 0 0.4em;
}

.block-text .prose p {
    margin-bottom: 1.25em;
    color: var(--slate);
}

.block-text .prose p:last-child {
    margin-bottom: 0;
}

.block-text .prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.block-text .prose ul,
.block-text .prose ol {
    margin: 0 0 1.25em 1.25em;
    padding: 0;
}

.block-text .prose ul {
    list-style: disc;
}

.block-text .prose ol {
    list-style: decimal;
}

.block-text .prose li {
    margin-bottom: 0.4em;
    color: var(--slate);
}

.block-text .prose strong {
    font-weight: 600;
    color: var(--navy);
}

/* ─── Publications block ─────────────────────────────────────────────────────── */
.block-publications {
    padding: 72px 0;
    background: var(--white);
}

.publications-heading {
    margin-bottom: 36px;
}

.publications-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.publications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.publications-table thead th {
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
}

.publications-table thead th:nth-child(3),
.publications-table thead th:nth-child(4) {
    text-align: center;
}

.publications-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.publications-table tbody tr:last-child {
    border-bottom: none;
}

.publications-table tbody tr:hover {
    background: var(--ivory);
}

.publications-table td {
    padding: 20px 16px;
    vertical-align: top;
}

.pub-title-cell {
    width: 55%;
}

a.pub-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    line-height: 1.45;
    display: block;
}

a.pub-title:hover {
    color: var(--primary-dark);
}

span.pub-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.45;
    display: block;
}

.pub-authors {
    font-size: 0.8125rem;
    color: var(--slate);
    margin-top: 6px;
    line-height: 1.5;
}

.pub-authors strong {
    color: var(--navy);
    font-weight: 600;
}

.pub-notes {
    display: block;
    font-size: 0.75rem;
    color: var(--mid-grey);
    margin-top: 4px;
}

.pub-journal {
    width: 25%;
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.45;
}

.pub-year {
    width: 7%;
    font-size: 0.875rem;
    color: var(--mid-grey);
    text-align: center;
    white-space: nowrap;
}

.pub-pmid {
    width: 13%;
    text-align: center;
    white-space: nowrap;
}

.pub-pmid a {
    font-size: 0.75rem;
    color: var(--mid-grey);
    text-decoration: none;
    font-family: monospace;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 0.6);
    padding: 3px 8px;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s;
}

.pub-pmid a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── Gravity Forms overrides ────────────────────────────────────────────────── */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea,
.gform_wrapper select {
    font-family: var(--font-body) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    color: var(--slate) !important;
    background: var(--white) !important;
    width: 100% !important;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
    border-color: var(--primary) !important;
}

.gform_wrapper label {
    font-family: var(--font-body) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    color: var(--navy) !important;
}

.gform_wrapper input[type="submit"],
.gform_wrapper .gform_footer input[type="submit"] {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 14px 28px !important;
    cursor: pointer !important;
    font-size: 0.9375rem !important;
    transition: background 0.2s !important;
}

.gform_wrapper input[type="submit"]:hover {
    background: var(--primary-dark) !important;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea {
    border-color: #dc2626 !important;
}

.gform_wrapper .validation_message {
    color: #dc2626 !important;
    font-size: 0.875rem !important;
    font-family: var(--font-body) !important;
}

/* ─── Responsive — 1024px ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 400px;
    }

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

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

    .site-footer .footer-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Responsive — 1024px ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-phone {
        display: none;
    }

    .hero-content {
        padding: 32px 28px;
    }

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

    .conditions-groups {
        grid-template-columns: 1fr;
    }

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

    .testimonials-grid--cols-2,
    .testimonials-grid--cols-3 {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-cols-3,
    .site-footer .footer-cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .block-about,
    .block-conditions,
    .block-stats,
    .block-cta,
    .block-testimonials,
    .block-publications {
        padding: 64px 0;
    }

    /* Publications table → stacked cards on mobile */
    .publications-table,
    .publications-table tbody,
    .publications-table tr,
    .publications-table td {
        display: block;
        width: 100% !important;
    }

    .publications-table thead {
        display: none;
    }

    .publications-table tbody tr {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 20px;
        margin-bottom: 12px;
    }

    .publications-table tbody tr:last-child {
        border-bottom: 1px solid var(--border);
    }

    .publications-table td {
        padding: 0;
    }

    .pub-title-cell {
        margin-bottom: 12px;
    }

    .pub-journal,
    .pub-year {
        display: inline;
        font-size: 0.8125rem;
    }

    .pub-year::before {
        content: ' · ';
        color: var(--mid-grey);
    }

    .pub-pmid {
        display: block;
        text-align: left;
        margin-top: 10px;
    }
}

/* ─── Responsive — 540px ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .hero-content {
        padding: 24px 20px;
    }

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

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

    .site-footer .footer-cols-3,
    .site-footer .footer-cols-4 {
        grid-template-columns: 1fr;
    }

    .condition-group-header,
    .condition-list {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-right .btn-sm {
        display: none;
    }
}
