/* CSS Variables & Global Styles */
:root {
    /* Brand Cyan Palette from Logo */
    --primary-color: #26e3ff;
    /* Main Cyan */
    --primary-light: #7df1ff;
    /* Soft Cyan */
    --primary-dark: #000000;
    /* Black background for logo blend */
    --primary-glow: rgba(38, 227, 255, 0.4);

    --accent-color: #26e3ff;
    --secondary-color: #0f172a;
    /* Slate 900 for text contrast */

    --text-color: #334155;
    /* Slate 700 - Good Contrast on White */
    --text-light: #64748b;
    /* Slate 500 */
    --light-bg: #eff6ff;
    /* Blue-50 */
    --white: #ffffff;

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --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(38, 227, 255, 0.4), 0 4px 6px -2px rgba(38, 227, 255, 0.2);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    /* Dark Slate for contrast */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 6rem 0;
}

.text-white {
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--primary-dark);
    /* Black text on Cyan for readability */
    box-shadow: 0 4px 6px -1px rgba(38, 227, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: rgba(38, 227, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(38, 227, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    /* Light blue tint */
    padding: 0.25rem 1rem;
    border-radius: 20px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    /* Ensure high contrast */
}

/* Top Bar - NEW */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-info i {
    color: var(--primary-light);
}

/* Navbar */
.navbar {
    background: var(--primary-dark);
    /* Pure Black to blend with logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    /* White text on black navbar */
    font-size: 1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.btn-primary {
    color: var(--primary-dark) !important;
    /* Black text on Cyan button */
    background: var(--primary-color);
    padding: 0.6rem 1.5rem;
}

.nav-link.btn-primary:hover {
    color: var(--primary-dark) !important;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(38, 227, 255, 0.4);
}

/* Hero Section */
.hero {
    padding-top: 5rem;
    padding-bottom: 6rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, rgba(255, 255, 255, 0) 100%);
    /* Subtle blue top fade */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-color);
    /* Vibrant Blue highlight */
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    /* Readable gray */
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    border-radius: var(--border-radius);
    width: 100%;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-bg), #dbeafe);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* FAQ Accordion - NEW */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-light);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Adjust as needed */
    padding-bottom: 1.5rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Insurance Strip - NEW */
.insurance-strip {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.insurance-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.insurance-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.insurance-logo {
    height: 40px;
    object-fit: contain;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #cbd5e1;
    /* Lighter text on dark bg */
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 2px;
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .section-padding {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .top-bar {
        display: none;
    }

    .navbar {
        padding: 0.25rem 0;
    }

    .contact-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        /* Black background for mobile menu */
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        max-height: 800px;
        padding-bottom: 2rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1.2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
        color: var(--white);
    }

    .nav-link.btn-primary {
        margin: 1.5rem auto;
        width: 85%;
        border-radius: 30px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101;
        padding: 5px;
        /* Add some padding for easier tap */
    }

    .bar {
        width: 30px;
        height: 3px;
        background: var(--primary-color);
        margin: 5px 0;
        display: block;
        transition: var(--transition);
        border-radius: 3px;
    }

    /* Hamburger Animation to X */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .slider-controls {
        right: 20px;
        bottom: 20px;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1,
    .hero h1,
    .hero-content h1 {
        font-size: 2.25rem;
    }

    h2,
    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .hero-slider {
        height: 450px;
    }

    .team-image-wrapper {
        height: 250px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.slide .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 700px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    color: #f1f5f9;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background: white;
    color: var(--primary-color);
}


/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    max-width: 350px;
    /* Constrain width to prevent "huge" images */
    margin: 0 auto;
    /* Center in grid cell */
    width: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image-wrapper {
    width: 100%;
    height: 300px;
    /* Fixed height as requested */
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Focus on faces */
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.team-role {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Utility: Backgrounds */
.bg-light {
    background-color: var(--light-bg);
}