/* ============================================
   ABBVIE CLONE - SHARED STYLESHEET
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN SYSTEM
   ============================================ */
:root {
    /* Brand Colors */
    --navy-dark: #0A2540;
    --navy-medium: #0D2D4F;
    --blue-brand: #0056D2;
    --blue-light: #00C7B7;
    --blue-muted: #A6B5E0;
    --purple-accent: #6B3FA0;
    --green-accent: #2E8540;
    --orange-accent: #CF451C;
    --white: #FFFFFF;
    --off-white: #F4F6F8;
    --teal-accent: #00C7B7;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --border-color: #E0E4E8;

    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --container-width: 1330px;
    --nav-height: 80px;
    --section-padding: 120px;

    /* Radii */
    --radius-card: 16px;
    --radius-small: 8px;
    --radius-pill: 50px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-card: 0 10px 40px rgba(7, 29, 73, 0.08);
    --shadow-card-hover: 0 20px 60px rgba(7, 29, 73, 0.12);
    --shadow-nav: 0 4px 20px rgba(7, 29, 73, 0.06);
    --shadow-sm: 0 2px 8px rgba(7, 29, 73, 0.06);
    --shadow-mega: 0 20px 60px rgba(7, 29, 73, 0.15);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-medium: 0.4s var(--ease-smooth);
    --transition-slow: 0.8s var(--ease-smooth);
}

/* ============================================
   CSS RESET
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--navy-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   SKIP TO CONTENT (Accessibility)
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-brand);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-small);
    font-weight: 700;
    font-size: 14px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 12px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--navy-dark);
    line-height: 1.15;
}

.h1-hero {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -1px;
}

.h2-section {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.h3-card {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
}

.body-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--navy-dark);
}

.body-text-sm {
    font-size: 16px;
    line-height: 1.6;
}

.accent-purple {
    color: var(--purple-accent);
    font-family: var(--font-accent);
    font-style: italic;
}

.accent-green {
    color: var(--green-accent);
    font-family: var(--font-accent);
    font-style: italic;
}

.accent-blue {
    color: var(--blue-brand);
    font-family: var(--font-accent);
    font-style: italic;
}

.accent-teal {
    color: var(--teal-accent);
    font-family: var(--font-accent);
    font-style: italic;
}

/* CTA Link */
.cta-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: gap var(--transition-fast);
}

.cta-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.cta-link:hover svg {
    transform: translateX(4px);
}

.cta-link:hover {
    gap: 12px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--white);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
}

.main-nav.scrolled {
    box-shadow: var(--shadow-nav);
}

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0;
    margin-left: 48px;
    height: 100%;
}

.nav-links>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links>li>a {
    font-size: 16px;
    font-weight: 500;
    color: var(--navy-dark);
    position: relative;
    padding: 8px 18px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--blue-brand);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease-smooth);
    transform-origin: left;
}

.nav-links>li:hover>a::after,
.nav-links>li.mega-active>a::after,
.nav-links>li>a.active::after {
    transform: scaleX(1);
}

.nav-links>li:hover>a,
.nav-links>li.mega-active>a {
    color: var(--blue-brand);
}

.nav-utilities {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.utility-wrapper {
    position: relative;
}

.utility-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-dark);
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.utility-link:hover {
    color: var(--blue-brand);
}

.utility-link svg {
    width: 18px;
    height: 18px;
}

.nav-cta-btn {
    background-color: var(--teal-accent);
    color: var(--navy-dark);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background-color: #00b3a4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 199, 183, 0.3);
}

.search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--gray-100);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: var(--navy-dark);
}

/* ============================================
   MEGA MENU - FULL-WIDTH BAR (matches AbbVie)
   ============================================ */
.mega-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(7, 29, 73, 0.1);
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.25s var(--ease-smooth);
    pointer-events: none;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mega-menu-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mega-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
}

.mega-menu-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-dark);
    border-radius: var(--radius-small);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.mega-menu-links a:hover {
    color: var(--blue-brand);
    background: var(--off-white);
}

.mega-menu-links a .mega-arrow {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--transition-fast);
    color: var(--blue-brand);
}

.mega-menu-links a:hover .mega-arrow {
    opacity: 1;
    transform: translateX(0);
}

.mega-menu-close {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-brand);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-primary);
    padding: 12px 16px;
    border-radius: var(--radius-small);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.mega-menu-close:hover {
    background: var(--off-white);
}

.mega-menu-close svg {
    width: 14px;
    height: 14px;
}

/* More dropdown */
.more-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-mega);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease-smooth);
    pointer-events: none;
    z-index: 1001;
}

.more-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.more-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-small);
    transition: all var(--transition-fast);
}

.more-dropdown a:hover {
    background: var(--off-white);
    color: var(--blue-brand);
}

.more-dropdown a svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.more-dropdown a:hover svg {
    color: var(--blue-brand);
}

/* Global dropdown */
.global-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-mega);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease-smooth);
    pointer-events: none;
    z-index: 1001;
}

.global-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.global-dropdown-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--navy-dark);
}

.global-regions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.global-regions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: var(--radius-small);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.global-regions a:hover {
    background: var(--off-white);
    color: var(--blue-brand);
}

.global-regions a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.global-regions a:hover svg {
    opacity: 1;
    color: var(--blue-brand);
}

/* Backdrop for dropdowns */
.nav-backdrop {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 29, 73, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--white);
    z-index: 999;
    padding: 40px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s var(--ease-smooth);
    overflow-y: auto;
}

.mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav a {
    display: block;
    font-size: 28px;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 140px;
    margin-top: var(--nav-height);
    overflow: hidden;
}

/* Subpage hero */
.hero-sub {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--navy-dark);
    /* Prevents white flash while video loads */
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(7, 29, 73, 0.85) 0%,
            rgba(7, 29, 73, 0.6) 40%,
            rgba(7, 29, 73, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-content .h1-hero {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1s var(--ease-smooth) 0.3s forwards;
}

.hero-content .eyebrow {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease-smooth) 0.1s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
    display: flex;
    gap: 12px;
}

.hero-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-circle);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    color: white;
}

.hero-ctrl-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   NEWS OVERLAP CARD
   ============================================ */
.news-overlap-container {
    margin-top: -200px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: flex;
    overflow: hidden;
    min-height: 340px;
}

.news-col {
    padding: 48px 56px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-col.left-col {
    border-right: 1px solid var(--border-color);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.news-header .eyebrow {
    margin-bottom: 0;
}

.news-nav-arrows {
    display: flex;
    gap: 8px;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--navy-dark);
}

.arrow-btn:hover {
    border-color: var(--blue-brand);
    color: var(--blue-brand);
    background: rgba(0, 102, 245, 0.05);
}

.arrow-btn svg {
    width: 16px;
    height: 16px;
}

.news-date {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-body h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 24px;
}

.news-body .cta-link {
    margin-top: auto;
}

.news-col.right-col .featured-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.news-slide {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-slide.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* ============================================
   CONTENT BLOCK PATTERN
   ============================================ */
.content-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}

.content-block-header {
    max-width: 580px;
}

.content-block-body .body-text {
    margin-bottom: 4px;
}

/* ============================================
   PATIENTS SECTION (IMAGE CARDS)
   ============================================ */
.patients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.patient-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    height: 420px;
    cursor: pointer;
}

.patient-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.patient-card:hover img {
    transform: scale(1.05);
}

.patient-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(7, 29, 73, 0.85));
    color: white;
}

.patient-card-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.patient-card-overlay .cta-link {
    color: white;
    margin-top: 12px;
}

.patient-card-overlay .cta-link svg {
    color: white;
}

/* ============================================
   VIDEO FEATURE SECTION
   ============================================ */
.feature-video-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    height: 520px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.feature-video-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.feature-video-card:hover img {
    transform: scale(1.03);
}

.feature-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 29, 73, 0.8) 0%, rgba(7, 29, 73, 0.3) 50%, transparent 100%);
}

.feature-video-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    width: 100%;
}

.feature-video-content .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.feature-video-content h2 {
    color: white;
    font-size: 36px;
    font-weight: 600;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.video-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: white;
    color: var(--navy-dark);
    border-color: white;
}

.video-play-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 29, 73, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
}

.video-modal-inner {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: var(--radius-card);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 500;
}

.video-modal.open .video-modal-inner {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border-radius: var(--radius-circle);
    transition: background var(--transition-fast);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    border-radius: var(--radius-card);
    padding: 44px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card.card-image {
    padding: 0;
    flex-direction: row;
}

.stat-card.card-image .card-img-side {
    flex: 1;
    overflow: hidden;
}

.stat-card.card-image .card-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.stat-card.card-image:hover .card-img-side img {
    transform: scale(1.05);
}

.stat-card.card-image .card-text-side {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
}

.stat-card.blue-bg {
    background-color: var(--off-white);
}

.stat-card.navy-bg {
    background-color: var(--navy-dark);
    color: white;
}

.stat-number {
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.stat-card.blue-bg .stat-number {
    color: var(--blue-brand);
}

.stat-card.navy-bg .stat-number {
    color: white;
}

.stat-label {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.stat-card.navy-bg .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.navy-bg .cta-link {
    color: white;
}

.stat-card.navy-bg .cta-link svg {
    color: white;
}

/* ============================================
   THREE COLUMN GRID
   ============================================ */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.grid-item {
    transition: transform 0.4s var(--ease-smooth);
}

.grid-item:hover {
    transform: translateY(-4px);
}

.grid-item-icon {
    height: 180px;
    width: 100%;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #F0F4FF 0%, #E6EAF5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--blue-brand);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

.grid-item-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.grid-item:hover .grid-item-icon {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 56, 178, 0.1);
    color: var(--navy-dark);
}

.grid-item h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.grid-item .body-text-sm {
    color: var(--gray-700);
    margin-bottom: 4px;
}

/* ============================================
   CTA BANNER (legacy)
   ============================================ */
.cta-banner {
    background-color: #C7CBF0;
    border-radius: var(--radius-card);
    padding: 64px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-banner h2 {
    font-size: 36px;
    font-weight: 500;
    max-width: 480px;
    line-height: 1.25;
}

/* CTA BANNER — full-width navy */
.cta-banner-fullwidth {
    background-color: var(--navy-dark);
    width: 100%;
}

.cta-banner-fullwidth .cta-btn-outline:hover {
    background: white;
    color: var(--navy-dark);
    border-color: white;
}

.cta-btn-outline {
    border: 2px solid var(--navy-dark);
    color: var(--navy-dark);
    background: transparent;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-btn-outline:hover {
    background: var(--navy-dark);
    color: white;
}

/* ============================================
   INVESTOR SECTION
   ============================================ */
.investor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.investor-card {
    border-radius: var(--radius-card);
    padding: 48px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.investor-card.featured {
    background: var(--off-white);
    border: none;
}

.investor-card.bordered {
    border: 1px solid var(--border-color);
}

.investor-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.investor-card h3 {
    font-size: 32px;
    font-weight: 500;
    margin: 16px 0 12px;
    line-height: 1.2;
}

.link-list {
    margin-top: 16px;
}

.link-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-list a svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-fast);
    color: var(--blue-brand);
}

.link-list a:hover {
    color: var(--blue-brand);
}

.link-list a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   ESG / SUSTAINABILITY SECTION
   ============================================ */
.esg-wrapper {
    margin-top: 60px;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    padding: 60px;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
}

.esg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.esg-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esg-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 60, 20, 0.9) 0%, rgba(14, 60, 20, 0.6) 50%, rgba(14, 60, 20, 0.3) 100%);
}

.esg-cards-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.esg-card {
    background: white;
    color: var(--navy-dark);
    padding: 36px;
    border-radius: var(--radius-small);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.esg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.esg-card h4 {
    font-size: 20px;
    font-weight: 600;
}

.esg-card .body-text-sm {
    color: var(--gray-700);
    margin-top: 12px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navy-dark);
    color: white;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-smooth);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-text a {
    color: var(--blue-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--blue-brand);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.cookie-accept:hover {
    background: var(--blue-light);
}

.cookie-settings {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-settings:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--white);
    padding: 80px 0 48px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-logo {
    margin-bottom: 32px;
    display: block;
}

.footer-logo svg {
    height: 28px;
    width: auto;
}

.footer-main-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-main-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--navy-dark);
    transition: color var(--transition-fast);
}

.footer-main-links a:hover {
    color: var(--blue-brand);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-dark);
    margin-bottom: 24px;
    display: block;
}

.footer-sub-links li {
    margin-bottom: 12px;
}

.footer-sub-links a {
    font-size: 14px;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

.footer-sub-links a:hover {
    color: var(--blue-brand);
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.social-circle {
    width: 36px;
    height: 36px;
    background-color: var(--navy-dark);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-circle:hover {
    background-color: var(--blue-brand);
    transform: translateY(-2px);
}

.social-circle svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-600);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 13px;
    color: var(--gray-600);
}

.footer-legal-links a:hover {
    color: var(--blue-brand);
}

/* Footer - Redesigned Layout (shared.js) */
.site-footer .footer-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
}

.site-footer .footer-brand {
    flex: 0 0 auto;
}

.site-footer .footer-brand .footer-logo {
    display: block;
    margin-bottom: 8px;
}

.site-footer .footer-tagline {
    font-size: 14px;
    color: var(--gray-600);
    max-width: 280px;
    line-height: 1.5;
    margin: 0;
}

.site-footer .footer-nav {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

.site-footer .footer-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-dark);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.site-footer .footer-nav a:hover {
    color: var(--blue-brand);
}

.site-footer .footer-social {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .site-footer .footer-top {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 24px;
    }

    .site-footer .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ============================================
   CONTACT NUDGE POPUP
   ============================================ */
#contactNudge {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 320px;
    background: white;
    border-radius: var(--radius-card);
    padding: 28px 28px 24px;
    box-shadow: 0 16px 48px rgba(7, 29, 73, 0.18), 0 0 0 1px rgba(7, 29, 73, 0.06);
    z-index: 9999;
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    pointer-events: none;
}

#contactNudge.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.nudge-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.nudge-close:hover {
    color: var(--navy-dark);
}

.nudge-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy-dark);
    margin: 0 0 8px;
    padding-right: 24px;
}

.nudge-body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--gray-700);
    margin: 0 0 20px;
}

.nudge-cta {
    display: inline-block;
    background: var(--navy-dark);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nudge-cta:hover {
    background: var(--blue-brand);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    #contactNudge {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 16px;
    }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 52px;
    height: 52px;
    background-color: var(--navy-dark);
    color: white;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-smooth);
    z-index: 998;
    box-shadow: 0 4px 16px rgba(7, 29, 73, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background-color: var(--blue-brand);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

.stat-number[data-count] {
    display: block;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 29, 73, 0.95);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 0 40px;
}

.search-overlay input {
    width: 100%;
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 300;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 16px 0;
    outline: none;
}

.search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border-radius: var(--radius-circle);
    transition: background var(--transition-fast);
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

body.page-loaded {
    animation: pageIn 0.4s var(--ease-smooth);
}

@keyframes pageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }

    .content-block {
        gap: 48px;
    }

    .footer-content {
        gap: 48px;
    }

    .mega-menu-inner {
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
    }

    .nav-utilities .utility-link {
        display: none;
    }

    .nav-utilities .utility-wrapper {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .content-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-block-header {
        max-width: 100%;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 260px;
    }

    .three-col-grid {
        grid-template-columns: 1fr 1fr;
    }

    .esg-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .investor-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 48px;
    }

    .cta-banner h2 {
        max-width: 100%;
    }

    .patients-grid {
        grid-template-columns: 1fr;
    }

    .patient-card {
        height: 360px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-fullwidth .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-fullwidth .container h2 {
        max-width: 100%;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 64px;
    }

    .container {
        padding: 0 20px;
    }

    .h1-hero {
        font-size: 36px;
    }

    .h2-section {
        font-size: 30px;
    }

    .hero {
        min-height: 500px;
        padding-bottom: 100px;
    }

    .hero-sub {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }

    .news-overlap-container {
        margin-top: -160px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-col.left-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .news-col {
        padding: 32px;
    }

    .three-col-grid {
        grid-template-columns: 1fr;
    }

    .esg-cards-grid {
        grid-template-columns: 1fr;
    }

    .esg-wrapper {
        padding: 32px;
    }

    .stats-row {
        gap: 16px;
    }

    .stat-card.card-image {
        flex-direction: column;
        min-height: auto;
    }

    .stat-card.card-image .card-img-side {
        height: 200px;
    }

    .feature-video-card {
        height: 380px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-controls {
        bottom: 20px;
        right: 20px;
    }

    .cta-banner {
        padding: 36px 28px;
    }

    .cta-banner h2 {
        font-size: 28px;
    }

    .investor-card {
        padding: 32px;
        min-height: auto;
    }

    .search-overlay input {
        font-size: 24px;
    }

    .cookie-banner-inner {
        padding: 20px;
        gap: 16px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .nav-cta-btn {
        display: none;
    }

    .stats-row {
        grid-template-columns: 1fr !important;
    }

    .cta-banner-fullwidth .container {
        flex-direction: column;
        text-align: center;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   ENHANCED MOTION SYSTEM
   ============================================ */

/* Hero parallax text */
.hero-content .body-text {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.9s var(--ease-smooth) 0.5s forwards;
}

.hero-content div[style*="margin-top: 40px"] {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.9s var(--ease-smooth) 0.7s forwards;
}

/* Staggered line reveal for section headings */
.h2-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.active .h2-section {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.reveal.active .eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active .body-text {
    opacity: 1;
    transform: translateY(0);
}

.content-block-body .body-text {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-smooth) 0.15s, transform 0.6s var(--ease-smooth) 0.15s;
}

/* Stat cards — use base .reveal system, no override needed */

/* Grid item icons — draw-in effect */
.grid-item-icon svg {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s var(--ease-smooth);
}

.grid-item.reveal.active .grid-item-icon svg {
    stroke-dashoffset: 0;
}

/* Patient cards — slide from edges */
.patient-card.reveal.reveal-delay-1 {
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-smooth) 0.1s, transform 0.8s var(--ease-smooth) 0.1s;
}

.patient-card.reveal.reveal-delay-2 {
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-smooth) 0.2s, transform 0.8s var(--ease-smooth) 0.2s;
}

.patient-card.reveal.active {
    transform: translateX(0);
}

/* CTA banner — subtle lift */
.cta-banner.reveal {
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.cta-banner.reveal.active {
    transform: translateY(0) scale(1);
}

/* Investor cards — fade in from center */
.investor-card.reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.investor-card.reveal.active {
    opacity: 1;
    transform: scale(1);
}

/* Smooth hover lift for all interactive cards */
.stat-card,
.grid-item,
.investor-card,
.patient-card {
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

/* Nav CTA teal glow on scroll */
.main-nav.scrolled .nav-cta-btn {
    box-shadow: 0 2px 8px rgba(0, 199, 183, 0.2);
}

/* ============================================
/* ============================================
   CONTACT MODAL — Centered Clean Design
   ============================================ */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

.contact-modal.active {
    visibility: visible;
    opacity: 1;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 29, 73, 0.6);
    backdrop-filter: blur(8px);
}

.contact-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 64px rgba(7, 29, 73, 0.25);
    padding: 48px 40px 40px;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.contact-modal.active .contact-modal-container {
    transform: translateY(0) scale(1);
}

.contact-modal-content {
    text-align: center;
}

.contact-modal-header {
    margin-bottom: 32px;
}

.modal-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--gray-600);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
    border-radius: var(--radius-circle);
}

.contact-modal-close:hover {
    color: var(--navy-dark);
    background: var(--off-white);
}

.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-modal-form .form-group {
    display: flex;
    flex-direction: column;
}

/* Hide labels visually but keep for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.contact-modal-form input,
.contact-modal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid transparent;
    background: var(--off-white);
    border-radius: var(--radius-small);
    font-family: inherit;
    font-size: 15px;
    color: var(--navy-dark);
    transition: all 0.2s ease;
}

.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
    outline: none;
    background: white;
    border-color: var(--blue-brand);
    box-shadow: 0 0 0 3px rgba(0, 102, 245, 0.1);
}

.contact-modal-form textarea {
    resize: none;
    min-height: 100px;
}

.contact-submit-btn {
    width: 100%;
    background: var(--navy-dark);
    color: white;
    padding: 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.contact-submit-btn:hover {
    background: var(--blue-brand);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 245, 0.2);
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    border-radius: 6px;
    display: none;
    text-align: left;
}

.form-status.info { background: var(--off-white); color: var(--navy-dark); }
.form-status.success { background: #eafbf0; color: #2e8540; text-align: center; }
.form-status.error { background: #fef0ef; color: #cf451c; text-align: center; }

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact-modal-container {
        padding: 32px 24px 24px;
    }
    
    .modal-title {
        font-size: 22px;
    }
}

/* ============================================
   MOBILE LAYOUT FIXES
   ============================================ */
@media (max-width: 768px) {
    /* Homepage image cards */
    .patients-grid {
        grid-template-columns: 1fr !important;
    }

    .patient-card {
        height: 280px !important;
    }

    /* Two-column content blocks */
    .content-block {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Hero bottom padding */
    .hero {
        padding-bottom: 60px !important;
    }
}
