:root { 
    --maroon: #800000; 
    --maroon-dark: #5a0000; 
    --maroon-light: #a00000;
    --text: #000000; 
    --muted: #000000; 
    --light-gray: #f9fafb;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    color: var(--text); 
    background: #ffffff; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header { 
    background: transparent;
    backdrop-filter: none;
    color: var(--text); 
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.nav { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 0; 
    position: relative;
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    color: var(--maroon); 
    font-size: 24px;
}

.brand span { 
    font-size: 24px; 
}

.nav-links { 
    display: flex; 
    gap: 32px; 
    align-items: center;
}

.nav-links a { 
    color: var(--text); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover { 
    color: var(--maroon); 
}

.nav-links a.active { 
    color: var(--maroon); 
    font-weight: 600; 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--maroon);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--maroon);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero { 
    position: relative;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    padding: 140px 0 80px; 
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

.hero-background-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #c1c6ca;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg-slide.active {
    opacity: 1;
    z-index: 0;
}

.hero-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: rgba(253, 251, 251, 0.603);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1; 
    margin: 0 0 24px; 
    color: var(--text);
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 90%;
}

.hero p { 
    color: var(--muted); 
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin: 0 0 32px; 
    line-height: 1.7;
    max-width: 90%;
}

.cta-btn { 
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
    color: #fff; 
    padding: 16px 32px; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.hero-illustration { 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 30px; 
    padding: 60px 40px; 
    text-align: center; 
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.hero-illustration::before { 
    content: ''; 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    right: 20px; 
    bottom: 20px; 
    border: 2px dashed var(--border); 
    border-radius: 20px; 
    opacity: 0.5;
}

.hero-illustration .icon {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--maroon);
    margin-bottom: 20px;
    display: block;
}

.hero-illustration .text {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* Page Header (for policies page) */
.page-header { 
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: #fff; 
    padding: 140px 0 80px; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 20px; 
    font-weight: 800;
    letter-spacing: -1px;
}

.page-header p { 
    font-size: clamp(1rem, 2vw, 1.125rem);
    opacity: .9; 
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.section { 
    padding: 80px 0; 
}

.section h2 { 
    margin: 0 0 24px; 
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.section p.lead { 
    color: var(--muted); 
    margin: 0 0 50px; 
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Grid and Cards */
.grid { 
    display: grid; 
    gap: 30px; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
}

.card { 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    padding: 40px 30px; 
    background: #fff; 
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--maroon);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 { 
    margin: 0 0 20px; 
    color: var(--maroon-dark); 
    font-size: 22px;
    font-weight: 700;
}

.card p { 
    color: var(--muted); 
    line-height: 1.7; 
    margin: 0;
    font-size: 16px;
}

.card-icon { 
    width: 70px; 
    height: 70px; 
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    border-radius: 20px; 
    margin: 0 auto 25px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Special Sections */
/* Help section override */
.help-section {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
}

.help-section h2,
.help-section p.lead {
    color: #ffffff;
}

/* Footer */
.footer { 
    background: var(--light-gray);
    border-top: 1px solid var(--border); 
    color: var(--muted); 
    padding: 40px 0; 
}

.footer .container { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 20px; 
    align-items: center;
}

.footer a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        gap: 40px;
        padding: 120px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
        gap: 20px;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav {
        position: relative;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-split-overlay {
        width: 70%;
        clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    }
    
    .hero h1 {
        text-align: center;
        max-width: 100%;
        margin: 0 auto 24px;
    }
    
    .hero p {
        margin: 0 auto 32px;
        max-width: 90%;
    }
    
    .hero-illustration {
        padding: 40px 30px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card {
        padding: 30px 25px;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.cta-btn:focus,
.nav-links a:focus {
    outline: 2px solid var(--maroon);
    outline-offset: 2px;
}

/* Loading animation for cards */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }