:root {
    --primary: #0d9488;
    --primary-light: #2dd4bf;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-regular: #475569;
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* PREMIUM NAVIGATION */
nav {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* EMERGENCY TOP BAR */
.emergency-top-bar {
    background: #00c8ff; /* Bright professional red */
    color: white;
    text-align: center;
    padding: 10px 5%;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1200;
    letter-spacing: 0.5px;
}

.emergency-top-bar span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* INSURANCE STRIP */
.insurance-strip {
    margin-top: 60px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.insurance-strip h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.providers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-bottom: 25px;
}

.providers span {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.7;
}

.insurance-strip p {
    font-size: 15px;
    color: var(--text-regular);
}

.insurance-strip strong {
    color: var(--primary);
}

nav h1 {
    font-size: 28px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 5px;
    transition: 0.3s;
}

nav a {
    color: var(--text-regular);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* HERO / HEADER SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #f0fdfa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

.page-header {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    padding: 120px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2,
.page-header h1 {
    font-size: clamp(40px, 8vw, 64px);
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p,
.page-header p {
    font-size: 1.2rem;
    color: var(--text-regular);
    margin-bottom: 40px;
}

/* BUTTONS */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* CONTAINER & LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.stat-item {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.stat-item h4 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-card,
.value-card,
.mission-card,
.vision-card,
.service-card {
    background: white;
    padding: 30px;
    /* Slimmer padding */
    border-radius: 30px;
    border: 1px solid #f1f5f9;
    transition: 0.4s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover,
.value-card:hover,
.mission-card:hover,
.vision-card:hover,
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Ensure hovered card stays on top */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f0fdfa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-card h3,
.value-card h4,
.mission-card h3,
.vision-card h3,
.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    /* Increased margin */
    color: var(--text-dark);
}

.feature-card p,
.value-card p,
.mission-card p,
.vision-card p,
.service-card p {
    color: var(--text-regular);
    font-size: 16px;
    line-height: 1.7;
    /* Increased line-height */
    margin-bottom: 20px;
    /* Added spacing below paragraphs */
}

.benefits {
    list-style: none;
    margin-bottom: 25px;
}

.benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    /* Spacing between list items */
    font-size: 15px;
    color: var(--text-regular);
}

.benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* SPECIAL SECTIONS */
.testimonials {
    background: #f1f5f9;
    padding: 80px 5%;
    border-radius: 50px;
    margin-bottom: 100px;
    overflow: hidden;
    position: relative;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.testimonial-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
    flex: 0 0 100%;
    background: white;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-sizing: border-box;
    transition: 0.3s;
}

.testimonial p {
    font-style: italic;
    color: var(--text-regular);
    margin-bottom: 24px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.testimonial strong {
    color: var(--primary);
    font-size: 16px;
    display: block;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    background: white;
    border: 2px solid #e2e8f0;
    width: 54px;
    height: 32px;
    border-radius: 30px;
    /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
    padding: 80px 40px;
    border-radius: 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-cta p {
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta .btn {
    background: white !important;
    color: var(--primary) !important;
    border: none !important;
}

.contact-cta .btn:hover {
    background: var(--text-dark) !important;
    /* Darker green or slate for high contrast hover */
    color: white !important;
    transform: translateY(-3px);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.info-pill strong,
.info-pill div {
    color: white;
}

/* FOOTER */
footer {
    padding: 60px 20px;
    text-align: center;
    background: white;
    color: var(--text-regular);
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--text-dark);
    }

    .hero,
    .page-header {
        height: 60vh;
        /* Reduced height for better balance */
        min-height: 400px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        background: #1e293b;
        /* Fallback dark background */
    }

    .hero::after,
    .page-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 148, 136, 0.35);
        /* Themed teal overlay, lighter and on-brand */
        z-index: 2;
    }

    .hero-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .hero-content,
    .header-content {
        position: relative;
        /* Changed from absolute to work within flex parent */
        width: 90%;
        max-width: 600px;
        z-index: 10;
        text-align: center;
    }

    .hero h2,
    .page-header h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
        color: white !important;
    }

    .hero p,
    .page-header p {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
        color: white !important;
        opacity: 0.9;
    }

    .cta-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }

    .btn {
        flex: 1;
        /* Stretch to fill */
        padding: 12px 10px;
        /* Slimmer padding */
        font-size: 13px;
        /* Slightly smaller font for mobile fit */
        min-width: 0;
        /* Allow shrinking below text width if needed */
        text-align: center;
        white-space: nowrap;
        /* Keep text on one line */
    }

    .grid-2,
    .stats,
    .features-grid,
    .testimonial-grid,
    .pricing-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        /* Consistent spacing */
    }

    .container {
        padding: 80px 20px;
        /* More breathing room between sections */
    }

    .testimonial-header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        margin-bottom: 40px;
    }

    .testimonial-header .section-title {
        text-align: center;
        font-size: 32px;
    }

    .slider-controls {
        justify-content: center;
    }

    .stat-item {
        padding: 40px 25px;
    }


    .contact-info {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 50px;
        background: rgba(255, 255, 255, 0.05);
        padding: 30px 20px;
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .info-pill {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: none !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .info-pill svg {
        margin-bottom: 5px;
        opacity: 0.8;
        color: white;
    }

    .info-pill strong {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.6;
        color: white;
    }

    .info-pill div {
        font-size: 18px;
        font-weight: 500;
        color: white;
    }
}

@media (max-width: 480px) {

    .hero h2,
    .page-header h1 {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .stat-item h4 {
        font-size: 32px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .info-pill {
        display: none !important;
    }
}