/* ============================================
   IMMUNOVANTAGE — Brand & Visual Identity
   Main Stylesheet

   TABLE OF CONTENTS:
   1. CSS Custom Properties (Brand Colors & Typography)
   2. Reset & Base Styles
   3. Typography
   4. Layout & Container
   5. Navigation
   6. Hero Section
   7. Section Styles
   8. Cards & Components
   9. Buttons & CTAs
   10. Forms
   11. Team Profiles
   12. Timeline
   13. FAQ Accordion
   14. Footer
   15. Utilities
   16. Responsive Breakpoints
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ImmunoVantage Brand Colors & Typography
   ============================================ */
:root {
    /* Primary Color - Deep Navy / Charcoal Blue
       Purpose: Trust, authority, regulatory credibility */
    --color-primary: #1E2A36;
    --color-primary-dark: #151d26;
    --color-primary-light: #2a3a4a;

    /* Secondary Color - Muted Teal / Blue-Green
       Purpose: Immunology, biology, analytical calm */
    --color-secondary: #2F7F7A;
    --color-secondary-dark: #256662;
    --color-secondary-light: #3a9994;

    /* Accent Color - Controlled Signal Green
       Purpose: Insight, early signal, mitigation leverage
       Use sparingly for emphasis */
    --color-accent: #7FB069;
    --color-accent-dark: #6a9a56;

    /* Neutral Colors - ImmunoVantage Palette */
    --color-white: #ffffff;
    --color-gray-50: #F5F7F8;        /* Off-white - backgrounds */
    --color-gray-100: #eef1f3;
    --color-gray-200: #e1e5e8;
    --color-gray-300: #c9d0d6;
    --color-gray-400: #a8b3bc;
    --color-gray-500: #8A96A3;       /* Cool gray - brand neutral */
    --color-gray-600: #6b7785;
    --color-gray-700: #4d5866;
    --color-gray-800: #2f3944;
    --color-gray-900: #1E2A36;       /* Matches primary */

    /* Semantic Colors */
    --color-text: #1E2A36;           /* Primary navy for text */
    --color-text-light: #4d5866;
    --color-text-muted: #8A96A3;     /* Cool gray */
    --color-background: var(--color-white);
    --color-background-alt: #F5F7F8; /* Off-white */
    --color-border: #c9d0d6;

    /* Typography - Inter for headings, IBM Plex Sans for body */
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes - Using clamp() for fluid typography */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.15;
    --leading-normal: 1.65;
    --leading-relaxed: 1.75;

    /* Spacing Scale */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-6);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px 0 rgba(30, 42, 54, 0.04);
    --shadow-md: 0 8px 16px -4px rgba(30, 42, 54, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(30, 42, 54, 0.12);
    --shadow-xl: 0 30px 60px -15px rgba(30, 42, 54, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}


/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}


/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800; /* Bolder headings for authority */
    letter-spacing: -0.02em; /* Tighter tracking for premium feel */
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    margin-bottom: var(--space-6);
}

h2 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

h3 {
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light);
}

.text-small {
    font-size: var(--text-sm);
}

.text-muted {
    color: var(--color-text-muted);
}


/* ============================================
   4. LAYOUT & CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

.section--alt {
    background-color: var(--color-background-alt);
}

.section--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--primary h2,
.section--primary h3 {
    color: var(--color-white);
}

.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

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

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


/* ============================================
   5. NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo:hover {
    color: var(--color-primary-dark);
}

.logo__icon {
    width: 40px;
    height: 40px;
}

.nav {
    display: none;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav__link {
    display: block;
    position: relative;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text);
    transition: color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav__link:hover::after,
.nav__link--active::after {
    transform: scaleX(1);
}

.nav__link--cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    margin-left: var(--space-2);
    border-radius: var(--radius-md);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
}

.menu-toggle__bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-gray-700);
    transition: all var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
}

.mobile-nav--open {
    display: block;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.mobile-nav__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-medium);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }
}


/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-20);
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.hero__subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero__cta {
        flex-direction: row;
    }
}

/* Page Hero (for inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--space-12) 0;
    text-align: center;
}

.page-hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.page-hero__subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
}


/* ============================================
   7. SECTION STYLES
   ============================================ */
.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

.section--primary .section__title::after {
    background-color: var(--color-white);
}

.section__description {
    margin-top: var(--space-6);
    color: var(--color-text-light);
}


/* ============================================
   8. CARDS & COMPONENTS
   ============================================ */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm); /* Start with softer shadow */
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg); /* Elevate beautifully */
}

.card--bordered {
    box-shadow: none;
    border: 1px solid var(--color-border);
}

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

.card__icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.card__title {
    margin-bottom: var(--space-3);
}

.card__text {
    color: var(--color-text-light);
}

/* Service Card */
.service-card {
    text-align: center;
    padding: var(--space-8);
}

.service-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    background-color: var(--color-gray-100);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.feature-list__item {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.feature-list__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
}

.feature-list__text {
    color: var(--color-text-light);
}


/* ============================================
   9. BUTTONS & CTAS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn--secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn--secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-white);
}

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

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

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

.btn--white:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-100);
    color: var(--color-primary);
}

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

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

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn--small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn--full {
    width: 100%;
}

/* CTA Block */
.cta-block {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.cta-block__title {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-block__text {
    margin-bottom: var(--space-6);
    opacity: 0.9;
}


/* ============================================
   10. FORMS
   ============================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__label {
    font-weight: var(--font-medium);
    color: var(--color-text);
}

.form__label--required::after {
    content: ' *';
    color: #dc3545;
}

.form__input,
.form__textarea,
.form__select {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

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

.form__help {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.form__row {
    display: grid;
    gap: var(--space-5);
}

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


/* ============================================
   11. TEAM PROFILES
   ============================================ */
.team-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: repeat(1, 1fr);
}

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

.team-card {
    text-align: center;
    padding: var(--space-8);
}

.team-card__image {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-5);
    border: 4px solid var(--color-gray-200);
}

.team-card__name {
    margin-bottom: var(--space-1);
}

.team-card__title {
    color: var(--color-primary);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-3);
}

.team-card__credentials {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

/* Profile Page */
.profile {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .profile {
        grid-template-columns: 300px 1fr;
    }
}

.profile__sidebar {
    text-align: center;
}

.profile__image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--color-gray-200);
}

.profile__name {
    margin-bottom: var(--space-1);
}

.profile__title {
    color: var(--color-primary);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
}

.profile__social {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.profile__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-100);
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
}

.profile__social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.profile__content section {
    margin-bottom: var(--space-8);
}

.profile__content section:last-child {
    margin-bottom: 0;
}

.profile__section-title {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}


/* ============================================
   12. TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.timeline__item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: calc(-1 * var(--space-8) - 6px);
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__title {
    margin-bottom: var(--space-2);
}

.timeline__content {
    color: var(--color-text-light);
}

/* Horizontal Timeline for larger screens */
@media (min-width: 768px) {
    .timeline--horizontal {
        display: flex;
        padding-left: 0;
        padding-top: var(--space-8);
    }

    .timeline--horizontal::before {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: auto;
        height: 2px;
    }

    .timeline--horizontal .timeline__item {
        flex: 1;
        padding-bottom: 0;
        padding-right: var(--space-4);
        text-align: center;
    }

    .timeline--horizontal .timeline__marker {
        left: 50%;
        transform: translateX(-50%);
        top: calc(-1 * var(--space-8) - 6px);
    }
}


/* ============================================
   13. FAQ ACCORDION
   ============================================ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.accordion__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background-color: var(--color-white);
    text-align: left;
    font-weight: var(--font-medium);
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.accordion__trigger:hover {
    background-color: var(--color-gray-50);
}

.accordion__trigger[aria-expanded="true"] {
    background-color: var(--color-gray-50);
}

.accordion__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    display: none;
    padding: 0 var(--space-5) var(--space-5);
    color: var(--color-text-light);
}

.accordion__content--open {
    display: block;
}


/* ============================================
   14. FOOTER
   ============================================ */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer__tagline {
    margin-bottom: var(--space-4);
}

.footer__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__link {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-800);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer__bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-800);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    font-size: var(--text-sm);
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__legal-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer__legal-links {
        justify-content: flex-end;
    }
}


/* ============================================
   15. UTILITIES
   ============================================ */
/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Flex utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Publication List */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.publication-item {
    padding: var(--space-4);
    background-color: var(--color-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.publication-item__title {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.publication-item__authors {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-1);
}

.publication-item__journal {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Process Steps */
.process-steps {
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-left: var(--space-16);
    padding-bottom: var(--space-8);
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step__title {
    margin-bottom: var(--space-2);
}

.process-step__content {
    color: var(--color-text-light);
}


/* ============================================
   16. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and up */
@media (min-width: 768px) {
    .section {
        padding: var(--space-20) 0;
    }

    .hero {
        padding: var(--space-20) 0 var(--space-24);
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    :root {
        --container-padding: var(--space-8);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
}

/* ============================================
   17. SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grouped items */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
