/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5f7c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-brand-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5f7c;
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 70px;
    height: 90vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                      url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Apply fixed background on larger screens for performance */
@media (min-width: 969px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-overlay {
    width: 100%;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2c5f7c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1e4456;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 124, 0.3);
}

.btn-secondary {
    background-color: #5fa883;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #4a8a68;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 168, 131, 0.3);
}

.btn-tertiary {
    background-color: #fff;
    color: #2c5f7c;
    border: 2px solid #fff;
}

.btn-tertiary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-grey {
    background-color: #f8f9fa;
}

.section-blue {
    background-color: #e8f4f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.centered-content {
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    color: #2c5f7c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-intro {
    font-size: 1.125rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-white {
    background: #fff;
}

.card-number {
    width: 50px;
    height: 50px;
    background-color: #2c5f7c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    color: #2c5f7c;
    margin-bottom: 1rem;
}

.card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== Content Split ===== */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-split-reverse {
    direction: rtl;
}

.content-split-reverse > * {
    direction: ltr;
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    color: #555;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Feature List ===== */
.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
    line-height: 1.7;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5fa883;
    font-weight: 700;
    font-size: 1.25rem;
}

.location {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ===== Partner Grid ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partner-type {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.partner-type h4 {
    color: #2c5f7c;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.partner-type p {
    color: #777;
    font-size: 0.95rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-block h3 {
    color: #2c5f7c;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-block p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-block a {
    color: #2c5f7c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-block a:hover {
    color: #1e4456;
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background-color: #1e2a3a;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #5fa883;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7bc49e;
}

.footer-links .separator {
    color: #666;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .content-split,
    .content-split-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .partner-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand-logo {
        height: 30px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Focus Styles ===== */
a:focus,
button:focus {
    outline: 2px solid #2c5f7c;
    outline-offset: 2px;
}
