/* ========================================
   Velari — Healthcare Cybersecurity
   Multi-Page Site Styles
   ======================================== */

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

:root {
    --navy-950: #070d14;
    --navy-900: #0d1920;
    --navy-800: #111e28;
    --navy-700: #162633;
    --navy-600: #1c3340;
    --navy-500: #254550;
    
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    
    --gold: #E0B860;
    --gold-light: #F0D48A;
    --gold-dark: #B8933F;
    --gold-muted: rgba(224, 184, 96, 0.15);
    
    --white: #ffffff;
    --off-white: #fafafa;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --section-pad: 100px;
    --container-max: 1140px;
    
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
    color: var(--slate-600);
    font-size: 1.02rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-950);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}

.btn-outline:hover {
    background: var(--gold-muted);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(7, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy-900);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(224, 184, 96, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(28, 51, 64, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 0 80px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.trust-check {
    color: var(--gold);
    font-weight: 700;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255,255,255,0.7);
}

.section-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    margin-bottom: 18px;
}

.section-header p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--slate-300);
}

.card-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-200);
    line-height: 1;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Dark Cards */
.card-dark {
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.card-dark:hover {
    border-color: var(--navy-500);
    transform: translateY(-4px);
}

.card-dark h3 {
    color: var(--white);
}

.card-dark p {
    color: rgba(255,255,255,0.6);
}

/* Stats */
.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature Lists */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid var(--slate-200);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Dark Feature Lists */
.feature-list-dark {
    list-style: none;
}

.feature-list-dark li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.feature-list-dark li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Tags */
.tag {
    display: inline-block;
    background: var(--gold-muted);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Check Items */
.check-item {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}

.check-icon {
    width: 28px;
    height: 28px;
    background: rgba(224, 184, 96, 0.15);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.check-item strong {
    display: block;
    color: var(--navy-900);
    font-size: 1rem;
    margin-bottom: 4px;
}

.check-item span {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--navy-900);
    position: relative;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(224, 184, 96, 0.08) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 18px;
}

.cta-content > p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.cta-note {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: var(--navy-950);
    border-top: 1px solid var(--navy-700);
    padding: 70px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--navy-700);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 300px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h5 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-900);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-cta-group,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 70px;
    }
    
    .hero-content {
        padding: 120px 0 60px;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    /* Force all inline grids to single column on mobile */
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 1.2fr 0.8fr"],
    [style*="grid-template-columns: 0.8fr 1.2fr"],
    [style*="grid-template-columns: 1fr 1.1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .hero-cta-group,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta-group .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .card,
    .card-dark {
        padding: 24px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    
    /* Reduce hero height on mobile */
    .hero {
        min-height: auto !important;
        padding: 100px 0 60px;
    }
    
    /* Fix alternating layouts stacking order */
    [style*="order: 2"] {
        order: 0 !important;
    }
    
    /* Smaller stat values on mobile */
    .stat-value {
        font-size: 1.6rem;
    }
    
    .card-number {
        font-size: 2rem;
    }
    
    /* Check items stack better */
    .check-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Responsive Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Utility */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
