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

:root {
    /* Base Colors from provided scheme */
    --color-white: #FFFFFF;
    --color-dark-gray: #4A4A4A;
    --color-primary-blue: #588FB1;
    --color-secondary-blue: #87B1CB;
    --color-light-blue: #ACCFE5;
    --color-navy: #1A1551;
    --color-beige: #E6DCCD;
    
    /* Semantic color assignments */
    --primary-dark: #1A1551;
    --primary-blue: #588FB1;
    --secondary-blue: #87B1CB;
    --accent-blue: #ACCFE5;
    --text-dark: #1A1551;
    --text-gray: #4A4A4A;
    --bg-light: #E3E1DC;
    --bg-beige: #E6DCCD;
    --bg-white: #FFFFFF;
    --bg-light-gray: #f8f9fa;
    --border-gray: #E0E0E0;
    --green: #4CAF50;
    --blue: #5B9BD5;
    --purple: #9B7EBD;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===========================
   Header & Navigation
   =========================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

.header {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.navbar-logo a {
    font-size: 32px;
    font-weight: 700;
    color: #1A1551;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

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

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    color: #87B1CB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #588FB1;
}

.nav-cta {
    margin-left: 10px;
}

.btn-nav-cta {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: #87B1CB;
    border: 1px solid #87B1CB;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: #87B1CB;
    color: #ffffff;
    transform: none;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: var(--bg-light);
    padding: 100px 0 120px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

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

.btn-primary {
    background: var(--primary-dark);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1A1551;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 21, 81, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--bg-light);
    padding: 0 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    padding: 40px 36px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
    max-width: 100%;
}

.feature-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 56px;
    height: 56px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===========================
   Providers Section
   =========================== */
.providers {
    background: #ffffff;
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 48px;
}

.search-filter {
    text-align: center;
    margin-bottom: 56px;
}

.search-button {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.provider-card {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.provider-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.provider-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.provider-role {
    font-size: 14px;
    color: var(--text-gray);
}

.availability-badge {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    white-space: nowrap;
}

.provider-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.provider-details {
    margin-bottom: 24px;
}

.provider-details p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.detail-label {
    font-weight: 600;
    color: #9B7EBD;
}

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

.provider-rate {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-connect {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary-dark);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-connect:hover {
    background: #1A1551;
    transform: translateY(-1px);
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
    background: var(--bg-light-gray);
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.step-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: var(--primary-dark);
    padding: 80px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.btn-cta-primary {
    background: #C9A882;
    color: #1A1551;
    border: none;
}

.btn-cta-primary:hover {
    background: #B89870;
    transform: translateY(-2px);
}

/* ===========================
   Final Hero Section
   =========================== */
.final-hero {
    position: relative;
    padding: 100px 0;
    background: #E3E1DC;
    overflow: hidden;
}

/* To use an actual image, replace the data URI below with: 
   background: url('path-to-your-image.jpg'); */
.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjRTNFMURDIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjMwJSIgc3RvcC1jb2xvcj0iI0UzRTFEQyIgc3RvcC1vcGFjaXR5PSIwLjMiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNFM0UxREMiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+');
    background-size: cover;
    background-position: left center;
    z-index: 1;
}

.final-hero .container {
    position: relative;
    z-index: 2;
}

.final-hero-content {
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.final-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.final-hero-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}


/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }

    .navbar-logo a {
        font-size: 28px;
    }

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

    .features-grid {
        gap: 30px;
    }

    .providers-grid {
        gap: 24px;
    }

    .steps-grid {
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .navbar-logo {
        order: 1;
    }

    .nav-cta {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        align-items: flex-start;
    }

    .nav-menu.active {
        max-height: calc(100vh - 70px);
        opacity: 1;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 10px;
        font-size: 16px;
        width: 100%;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 80px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

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

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    /* Providers */
    .providers-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
    }

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

    .final-hero-title {
        font-size: 32px;
    }

    .hero-image {
        display: none;
    }

    .final-hero {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .navbar-logo a {
        font-size: 24px;
    }

    .btn-nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }

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

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

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

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

    .final-hero-title {
        font-size: 26px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .feature-card {
        padding: 36px 28px;
    }

    .provider-card {
        padding: 24px;
    }
}
