/* Northwestern Medicine Landing Page Styles */

:root {
    /* Northwestern Brand Colors */
    --nm-navy: #0b2c6f;
    --nm-blue: #1d5bbf;
    --nm-blue-hover: #164b9c;
    --nm-blue-light: #005a9c;
    --nm-accent: #0d8bd4;

    /* Supporting Colors */
    --nm-bg: #f4f7f9;
    --nm-border: #d1d9e0;
    --nm-slate: #2d3a4a;
    --nm-text-muted: #6c7684;

    /* Status Colors */
    --nm-success: #28a745;
    --nm-warning: #ffc107;
    --nm-error: #b3261e;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--nm-slate);
    background-color: #fff;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--nm-navy);
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--nm-blue) 0%, var(--nm-navy) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-full,
.logo-nw,
.logo-med {
    font-size: 14px;
    font-weight: 700;
    color: var(--nm-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--nm-slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--nm-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--nm-slate);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: var(--spacing-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-4xl);
}

.mobile-nav-link {
    color: var(--nm-slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--nm-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--nm-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 91, 191, 0.3);
}

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

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

/* Hero section button override */
.hero .btn-outline {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-cta {
    font-size: 18px;
    padding: 16px 32px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top: 64px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--nm-navy) 0%, var(--nm-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: var(--spacing-xl);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 44, 111, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
    color: #fff;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.badge-trust {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Institute Highlight Banner */
.institute-highlight {
    background: linear-gradient(135deg, var(--nm-navy) 0%, var(--nm-blue) 100%);
    color: #fff;
    padding: var(--spacing-2xl) 0;
}

.institute-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.institute-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.institute-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.institute-text {
    flex: 1;
    min-width: 250px;
}

.institute-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.institute-tagline {
    font-size: 16px;
    opacity: 0.9;
}

.institute-ranking {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ranking-badge {
    text-align: center;
}

.ranking-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #ffd700;
}

.ranking-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ranking-source {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.institute-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

/* Features Grid */
.features {
    padding: var(--spacing-4xl) 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--nm-navy);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 18px;
    color: var(--nm-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: #fff;
    border: 1px solid var(--nm-border);
    border-radius: 10px;
    padding: var(--spacing-xl);
    box-shadow: 0 1px 3px rgba(13, 34, 79, 0.04);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(13, 34, 79, 0.12);
    border-color: var(--nm-blue);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--nm-blue) 0%, var(--nm-navy) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--nm-navy);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--nm-text-muted);
    line-height: 1.6;
}

/* Proxy Explainer */
.proxy-explainer {
    padding: var(--spacing-4xl) 0;
    background: var(--nm-bg);
}

.proxy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.proxy-intro {
    font-size: 18px;
    color: var(--nm-text-muted);
    margin-bottom: var(--spacing-xl);
}

.proxy-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.proxy-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 16px;
}

.proxy-features i {
    color: var(--nm-success);
    font-size: 20px;
    margin-top: 2px;
}

.proxy-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e3eaf4 0%, #d1dce9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--nm-text-muted);
}

.proxy-care-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Trust & Security */
.trust-security {
    padding: var(--spacing-4xl) 0;
    background: #fff;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.trust-badge {
    text-align: center;
    padding: var(--spacing-xl);
}

.trust-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, #e3eaf4 0%, #d1dce9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--nm-blue);
}

.trust-badge h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--nm-navy);
    margin-bottom: var(--spacing-xs);
}

.trust-badge p {
    color: var(--nm-text-muted);
    font-size: 14px;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* How It Works Timeline */
.how-it-works {
    padding: var(--spacing-4xl) 0;
    background: var(--nm-bg);
}

.timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    text-align: center;
}

.timeline-number {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: var(--nm-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(29, 91, 191, 0.3);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--nm-navy);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--nm-text-muted);
    font-size: 14px;
}

.timeline-connector {
    width: 2px;
    background: linear-gradient(180deg, var(--nm-blue) 0%, var(--nm-accent) 100%);
    align-self: stretch;
    margin: 32px 0;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-3xl) 0;
    background: var(--nm-navy);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-4xl) 0;
    background: #fff;
}

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

.faq-item {
    border-bottom: 1px solid var(--nm-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--spacing-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--nm-navy);
}

.faq-question:hover {
    color: var(--nm-blue);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: var(--spacing-lg);
    color: var(--nm-text-muted);
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--nm-navy) 0%, var(--nm-blue) 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.cta-help {
    margin-top: var(--spacing-lg);
    font-size: 16px;
}

.cta-help a {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
.landing-footer {
    background: var(--nm-navy);
    color: #fff;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
    opacity: 0.8;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.footer-logo .logo-nw,
.footer-logo .logo-med,
.footer-logo .logo-text-full {
    font-size: 14px;
    color: #fff;
}

.footer-copyright {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--nm-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--nm-blue-hover);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .proxy-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-connector {
        width: 100%;
        height: 2px;
        margin: var(--spacing-lg) 0;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .institute-main {
        flex-direction: column;
        text-align: center;
    }

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

    .cta-title {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}