/* --- Global & Font Definitions --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
    /* Light Gray Background */
}

/* Theme Colors */
:root {
    --primary-color: #004D4D;
    /* Deep Forest Green (Headings, strong accents) */
    --secondary-color: #008080;
    /* Softer Sage Green (Buttons, highlights) */
    --accent-color: #a3b18a;
    /* Muted Green/Khaki Accent (for subtle highlights/icons) */
    --light-bg: #fff;
    --dark-bg: #014a4a;
    /* Darker Green/Gray Footer Background */
    --max-width: 1200px;
    /* Defines max content width */
}

/* Central Content Wrapper (Replaces Bootstrap .container) */
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    /* Padding for mobile screens */
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- ANIMATION DEFINITIONS --- */
@keyframes heroZoom {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.0);
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonPulsate {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1.0);
    }
}

.animated-content {
    opacity: 0;
    animation: slideUpFadeIn 1s ease-out forwards;
}

/* --- Buttons --- */
.btn-nav,
.btn-hero,
.btn-cta,
.btn-footer,
.btn-submit,
.btn-contact-provider {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-hero:hover,
.btn-nav:hover,
.btn-cta:hover,
.btn-footer:hover,
.btn-submit:hover,
.btn-contact-provider:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    animation: buttonPulsate 0.5s ease-in-out forwards;
}


/* --- Header & Navigation --- */
header {
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

/* 1. NEW CSS BLOCK: Sets the larger size for the image using the new class */
.logo-img {
    height: 80px;
    /* Adjust this value (e.g., 60px, 100px) for your desired size */
    width: auto;
    /* Ensures image maintains aspect ratio */
    margin: 0;
    /* Ensures no extra margin interferes with alignment */
    padding: 0;
    /* Ensures no extra padding interferes with alignment */
}

/* 2. ADJUSTED CSS: Increases the font size for the accompanying text */
.logo span {
    font-size: 1.5em;
    /* Increased size to match the taller logo */
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    /* Ensures list has no vertical margin */
}

/* 3. ADJUSTED CSS: Tweak to menu links to help alignment */
nav ul a {
    text-decoration: none;
    color: #333;
    font-weight: 300;

    /* Reduced vertical padding to prevent mis-alignment inside the Flex container */
    padding: 3px 5px;

    /* Ensure the link behaves as a block element for precise alignment */
    display: inline-block;

    transition: color 0.3s;
}

nav ul a:hover {
    color: var(--secondary-color);
}

header {
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

/* 1. NEW CSS BLOCK: Sets the larger size for the image using the new class */
.logo-img {
    height: 70px;
    /* Adjust this value (e.g., 60px, 100px) for your desired size */
    width: auto;
    /* Ensures image maintains aspect ratio */
    margin: 0;
    /* Ensures no extra margin interferes with alignment */
    padding: 0;
    /* Ensures no extra padding interferes with alignment */
}

/* 2. ADJUSTED CSS: Increases the font size for the accompanying text */
.logo span {
    font-size: 1.5em;
    /* Increased size to match the taller logo */
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    /* Ensures list has no vertical margin */
}

/* 3. ADJUSTED CSS: Tweak to menu links to help alignment */
nav ul a {
    text-decoration: none;
    color: #333;
    font-weight: 500;

    /* Reduced vertical padding to prevent mis-alignment inside the Flex container */
    padding: 2px 10px;

    /* Ensure the link behaves as a block element for precise alignment */
    display: inline-block;

    transition: color 0.3s;
}

nav ul a:hover {
    color: var(--secondary-color);
}

/* --- Hero Section --- */
/* --- CAROUSEL BASE STYLES --- */
.carousel-section {
    position: relative;
    height: 80vh;
    /* Responsive height */
    min-height: 500px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel-section {
        height: 60vh;
        min-height: 400px;
    }
}

.carousel-track-container {
    height: 100%;
    /* We are controlling visibility with opacity and current-slide class in JS, 
       so the transform transition is less critical here but can be kept */
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    /* Stack slides on top of each other */
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    /* Initially hide all slides by default */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Smooth fade effect when changing slides */
}

/* Only the active slide is visible */
.carousel-slide.current-slide {
    opacity: 1;
    z-index: 10;
}

/* --- HERO OVERLAY & CONTENT STYLING --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;

    z-index: 20;
    /* Ensure content is above the slide image */
}

.hero-overlay h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-overlay p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
}

.cole {


    /* Key change: Use 'align-items: center;' to vertically center the content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers items horizontally along the main (vertical) axis */
    align-items: center;
    /* Centers items vertically along the cross (horizontal) axis */

    text-align: center;
    color: white;
    padding: 0 20px;
    z-index: 30;
}

.coc {
    color: #c0cbc7;
}

.btn-hero {
    /* Example button styling—adjust to match your site's theme */
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    transition: background-color var(--dark-bg), border-color 0.3s;
}

.btn-hero:hover {
    background-color: transparent;
    border-color: var(--dark-bg);
}

/* --- NAVIGATION BUTTONS (Arrows) --- */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    /* Above all content */
    background: var(--secondary-color);
    border: none;
    cursor: pointer;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    transition: background 0.3s;
    /* Center the arrow icon inside the button */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-button:hover {
    background: var(--dark-bg);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* --- PURE CSS ARROW SHAPES --- */
/* The span inside the button becomes the arrow container */
.arrow-left,
.arrow-right {
    display: block;
    width: 10px;
    /* Controls the width of the arrow line */
    height: 10px;
    /* Controls the height of the arrow line */
    border-top: 3px solid white;
    /* Thickness and color of the arrow */
    border-left: 3px solid white;
    /* Thickness and color of the arrow */
}

/* Rotate and position the left arrow */
.arrow-left {
    transform: rotate(-45deg);
    margin-right: 2px;
    /* Pull it slightly left to center visually */
}

/* Rotate and position the right arrow */
.arrow-right {
    transform: rotate(135deg);
    margin-left: 2px;
    /* Pull it slightly right to center visually */
}

/* --- NAVIGATION DOTS --- */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    background-color: var(--secondary-color);
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-indicator.current-slide {
    background-color: var(--secondary-color);
    /* Active dot color */
    transform: scale(1.2);
}

/* --- General Grid and Flex Layouts --- */
/* 3-Column Grid for cards (Home Intro, Home Services, About Values) */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 72px;
    margin-bottom: 2rem;
    /* Ensure some space below grid */
}

/* 2-Column Grid for contact info, provider details */
.two-col-grid {
    display: grid;
    grid-template-columns: auto;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}


/* --- Home Intro Cards --- */
.intro-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: left;

}

.intro-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);

}

.intro-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-weight: 600;
}

/* --- Service & Blog Cards --- */
.service-card,
.blog-post-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    /* Added margin for mobile spacing */
}

.service-card:hover,
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-card img,
.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.service-card .card-content,
.blog-post-card .card-content {
    padding: 15px;
    flex-grow: 1;
}

.blog-post-card .card-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9em;
    margin-top: auto;
    /* Pushes footer to the bottom */
}

.service-card h4,
.blog-post-card h5 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 700;
}

/* --- Provider Details (Left Image, Right Text) --- */
.provider-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    padding: 50px 0;
}

.provider-photo-container {
    flex-shrink: 0;
    text-align: center;
}

.provider-photo {
    width: 291px;
    height: 342px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.provider-details-content {
    flex-grow: 1;
}

.provider-details-content ul {
    list-style: none;
    padding: 0;
}

.provider-details-content ul li {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.provider-details-content i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* --- Insurance Logos Layout (Grid for easy alignment) --- */
.insurance-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
    align-items: center;
    justify-items: center;
}

.logo-box {
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-box:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.accepted-insurance img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Contact Form/Info Layout --- */
.contact-form-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 0;
}

.contact-form-box,
.contact-details-box {
    flex: 1;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details-box h3 {
    color: var(--secondary-color);
}

.contact-details-box ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-details-box ul li {
    margin-bottom: 10px;
    display: flex;
}

.contact-details-box i {
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Fee Schedule */
.fee-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.fee-list li:last-child {
    border-bottom: none;
}

.fee-list span {
    font-size: 1.1em;
}

.fee-item {
    display: flex;

    gap: 4px;
    text-align: left;

}

@media (max-width: 768px) {
    .fee-item {
        flex-direction: column;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.form-textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

/* --- Telehealth CTA (Full Width) --- */
.telehealth-cta {
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    background-attachment: fixed;
}

.cta-overlay {
    background-color: rgb(7 93 97 / 32%);
    padding: 40px;
    border-radius: 10px;
}

.telehealth-cta h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.telehealth-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Ensure items align to top in desktop */
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
    border-bottom: 1px solid #455a4e;
}

.footer-branding,
.quick-links,
.schedule-info {
    flex: 1;

}

.footer-branding {
    max-width: 350px;
}

.footer-branding h4,
.quick-links h4,
.schedule-info h4 {
    color: white;
    margin-top: 0;
}

.schedule-info ul {
    list-style: none;
    padding: 0;
}

.schedule-info li {
    margin-bottom: 8px;
}

.schedule-info i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.quick-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    font-size: 0.9em;
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

.mobile-book-btn {
    display: none;
}

@media (max-width: 992px) {
    nav {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 1000;
        text-align: center;
    }

    nav ul.show-menu {
        display: flex;
        /* Shown when toggled */
    }

    nav ul a {
        padding: 10px 0;
        width: 100%;
        font-size: 1.1rem;
    }

    .btn-nav {
        display: none;
        /* Hide individual book button on small screens */
    }

    .mobile-book-btn {
        display: block;
        margin: 10px 20px;
    }
}

@media (max-width: 768px) {
    .three-col-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        /* Increased vertical spacing between cards */
    }

    .insurance-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for logos on mobile */
        gap: 15px;
    }

    .insurance-logo-box img {
        max-width: 100%;
        height: auto;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    section {
        padding: 40px 0 !important;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    /* Footer Fixes */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-branding,
    .quick-links,
    .schedule-info {
        width: 100%;
        margin-bottom: 30px;
    }

    .schedule-info h4 {
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .carousel-button {
        height: 40px;
        width: 40px;
    }
}

/* ... (Your existing CSS code goes here) ... */

/* --- Capability Statement Base Styles (New Section) --- */
.capability-statement-container {
    max-width: var(--max-width);
    /* Use your existing max width */
    margin: 40px auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Added subtle shadow */
}

/* --- Headers and Titles --- */
.statement-header h1 {
    font-size: 2em;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.capability-statement-container h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    /* Use secondary color for section headers */
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-color);
}

.capability-statement-container .icon {
    font-size: 1.2em;
    margin-right: 8px;
    color: var(--secondary-color);
}

/* --- Lists (Core Competencies & Differentiators) --- */
.core-competencies ul,
.differentiators ul,
.naics-codes ul {
    list-style: none;
    padding-left: 0;
}

.core-competencies li,
.differentiators li,
.naics-codes li {
    background: #fcfcfc;
    /* Very light background for list items */
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
    /* Subtle accent border */
}

/* --- Past Performance Grid (Responsive Layout) --- */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.performance-item {
    padding: 15px;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.performance-item h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 0;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

/* --- Certifications & Registrations Flex Layout --- */
.cert-details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.cert-table-wrapper,
.naics-codes {
    flex: 1;
    min-width: 280px;
}

.cert-table-wrapper h3,
.naics-codes h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
}

.cert-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f7f7f7;
    border-radius: 4px;
    overflow: hidden;
}

.cert-table-wrapper th,
.cert-table-wrapper td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.cert-table-wrapper th {
    background-color: #e8e8e8;
    width: 35%;
    font-weight: 600;
    color: #555;
}

/* --- Contact Information Footer --- */
.contact-info {
    margin-top: 40px;
    padding: 20px;
    background-color: #eff3ee;
    /* Very light, complementary green */
    border-radius: 6px;
    border-top: 4px solid var(--secondary-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Media Query Adjustment for Stacking Registrations on Mobile */
@media (max-width: 600px) {
    .cert-details {
        flex-direction: column;
        gap: 20px;
    }
}