/* ==========================================================================
   Global Variables & Base Styles
   ========================================================================== */
:root {
    --primary: #0d9488;         /* Primary Teal */
    --primary-dark: #0f766e;    /* Dark Teal */
    --primary-light: #ccfbf1;   /* Soft Teal Tint */
    --accent: #0284c7;          /* Portal Blue Accent */
    --accent-dark: #0369a1;     /* Darker Portal Blue */
    --text-main: #0f172a;       /* Slate Dark Gray */
    --text-muted: #475569;      /* Slate Muted Gray */
    --bg-light: #f8fafc;        /* Off-white background */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Typography & Helpers
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.25;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--text-muted); }

.w-full { width: 100%; }
.bg-light { background-color: var(--bg-light); }
.section { padding: 80px 0; }

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-header p {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-portal {
    background-color: var(--accent);
    color: white;
}
.btn-portal:hover {
    background-color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background-color: var(--bg-light);
}

/* ==========================================================================
   Emergency Top Banner
   ========================================================================== */
.top-banner {
    background-color: #fef2f2;
    border-bottom: 1px solid #fee2e2;
    color: #991b1b;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
}

.top-banner i {
    margin-right: 6px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.brand-logo.light {
    color: white;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 20px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 0;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 25px;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Portal Callout Card */
.portal-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.portal-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.portal-icon {
    width: 50px;
    height: 50px;
    background-color: #e0f2fe;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.portal-features {
    list-style: none;
    margin-bottom: 30px;
}

.portal-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.portal-features i {
    color: var(--primary);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* ==========================================================================
   Providers Section (Clean & Centered 6-Card Grid)
   ========================================================================== */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.provider-simple-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.provider-simple-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.provider-simple-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.provider-simple-card .provider-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0;
}

/* ==========================================================================
   Contact & Map Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.map-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-card h3 {
    margin-bottom: 15px;
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.map-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   Multi-Location Section Styles
   ========================================================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.location-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-info h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.location-info .info-item {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.location-info .info-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 3px;
}

.portal-notice-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #e0f2fe;
    padding: 18px 24px;
    border-radius: var(--radius);
    color: #0369a1;
    font-size: 0.95rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portal-notice-centered a {
    color: #0369a1;
    text-decoration: underline;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: var(--bg-white);
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--bg-light);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 15px;
    max-width: 350px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #94a3b8;
}

/* ==========================================================================
   Modal Component
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: #e0f2fe;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid, .contact-grid, .provider-card {
        grid-template-columns: 1fr;
    }

    .provider-img {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 10px;
    }
}
