/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    line-height: 1.6;
    display: flex; /* Use flexbox for sticky footer */
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Ensure body takes full viewport height */
}

main {
    flex: 1; /* Allow main content to grow and push footer down */
}

h1, h2, h3 {
    color: #005f73; /* Dark Teal */
}

h1 {
    font-size: 2.5rem; /* Adjusted for new layout */
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2.section-title { /* New class for consistent section titles */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
    font-weight: 600;
    color: #005f73;
}

h3 {
     font-size: 1.3rem; /* Slightly smaller */
     margin-top: 1rem; /* Added space above h3 */
     margin-bottom: 0.5rem;
     color: #0a9396; /* Medium Teal */
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #0a9396;
    text-decoration: none;
    transition: color 0.2s ease; /* Added transition */
}

a:hover {
    color: #005f73;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 60px 20px; /* Default section padding */
    /* Removed negative margin-top and padding-top adjustments, handle overlap differently if needed */
}

.bg-light { /* Reusable class for light background sections */
    background-color: #f8f9fa; /* Light Gray */
}

.container { /* Keep this utility class if needed elsewhere */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { /* Utility class */
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem; /* Reduced padding */
    height: 60px; /* Fixed height */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Smaller logo */
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 600;
    color: #005f73;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0; /* Add padding for better click area */
    position: relative; /* For active state underline */
}
.nav-links a:hover,
.nav-links a.active {
    color: #0a9396; /* Medium Teal for hover/active */
    text-decoration: none;
}

.nav-links a.active::after { /* Underline for active link */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0a9396;
}

.nav-cta { /* Style for the appointment button in nav */
    background-color: #0a9396;
    color: white !important; /* Override default link color */
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: #005f73;
    color: white !important;
    text-decoration: none;
}
.nav-cta.active::after { /* Remove underline from button */
    display: none;
}

/* Burger Menu for Mobile */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #ee9b00; /* Orange */
    color: #fff !important; /* Ensure white text */
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #ca6702; /* Darker Orange */
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px); /* Add subtle lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Alternate CTA Button Style (e.g., for secondary actions) */
.cta-button.alt {
    background-color: #fff;
    color: #0a9396 !important; /* Teal text */
    border: 2px solid #0a9396; /* Teal border */
    box-shadow: none;
}

.cta-button.alt:hover {
    background-color: #e0f2f7; /* Very light teal background */
    color: #005f73 !important; /* Darker teal text */
    border-color: #005f73;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Hero Section V2 (New Layout) */
.hero-section-v2 {
    background-color: #e9f5f6; /* Use a very light teal solid or subtle gradient */
    min-height: calc(85vh - 60px); /* Adjust height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Adjust padding */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem; /* Space between text and image */
    max-width: 1100px;
    width: 100%;
}

.hero-content {
    flex: 1; /* Takes available space */
    max-width: 500px; /* Limit text width */
    text-align: left; /* Align text left */
}

.hero-content h1 {
    color: #003f5c; /* Darker blue */
    font-size: 2.8rem; /* Slightly larger */
}

.hero-content p {
     font-size: 1.1rem;
     margin-bottom: 2rem;
     color: #333;
     line-height: 1.7; /* Improve readability */
}

.hero-image-container {
    flex: 1; /* Takes available space */
    max-width: 550px; /* Limit image size */
    text-align: center; /* Center image within its container */
}

.hero-img {
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    width: 100%; /* Make image responsive within its container */
}

/* Key Benefits Section */
#key-benefits {
    padding: 60px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.benefit-item {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px; /* Adjust icon size */
    height: 60px;
    margin: 0 auto 1rem auto;
    opacity: 0.9;
}

.benefit-item h3 {
    margin-top: 0; /* Reset margin if icon is above */
}

/* Intro Services Section */
#intro-services {
    padding: 60px 20px;
    /* background-color: #fff; */ /* Optional: alternate background */
}

.service-grid-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item-intro {
    background-color: #fff; /* White background */
    padding: 1.5rem;
    border-radius: 8px;
    /* border: 1px solid #e0f2f7;  Optional light border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-intro:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-item-intro img {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    object-fit: contain;
}
.service-item-intro h3 {
    margin-top: 0;
    font-size: 1.2rem; /* Slightly smaller */
}
.service-item-intro p {
    font-size: 0.95rem;
    color: #555;
}

/* Intro About Section */
#intro-about {
     padding: 60px 20px;
}

.about-content-intro {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Space between image and text */
    max-width: 950px;
    margin: 0 auto;
    background-color: #fff; /* White card background */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-img-intro {
    width: 200px; /* Adjust size */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.about-text-intro {
    text-align: left;
}
.about-text-intro p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Testimonials Section */
#testimonials {
    background-color: #005f73; /* Dark Teal background */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

#testimonials h2.section-title {
    color: #fff; /* White title on dark background */
    margin-bottom: 2rem;
}

.testimonial-item {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-item blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    position: relative;
}
/* Optional: Add quote marks */
.testimonial-item blockquote::before {
    content: '“';
    font-size: 3rem;
    position: absolute;
    left: -25px;
    top: -10px;
    opacity: 0.5;
    color: #94d2bd; /* Light Teal */
}

.testimonial-item cite {
    font-weight: 600;
    font-style: normal;
    color: #e0f2f7; /* Very light teal */
}

/* Page Header Styling (Common for subpages) */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background-color: #e9f5f6; /* Consistent light teal background */
    margin-bottom: 3rem;
    border-radius: 0 0 15px 15px; /* Soft curve at bottom */
}
.page-header h1 {
    color: #005f73;
    margin-bottom: 0.5rem;
}
.page-header p {
    color: #005f73;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

section.page-section { /* Adjust padding for pages with header */
     padding-top: 0;
     padding-bottom: 60px;
}

/* Service Page Specific Grid */
#services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* About Page Specific Layout */
#a-propos .about-content {
     display: flex;
     flex-direction: column; /* Keep column layout for main about page */
     align-items: center;
     gap: 2rem;
     max-width: 900px;
     margin: 0 auto;
     text-align: center;
}

#a-propos .about-img {
     width: 250px;
     height: 250px;
     border-radius: 50%;
     object-fit: cover;
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#a-propos .about-text {
     max-width: 700px; /* Allow slightly wider text */
     text-align: left; /* Justify text for readability */
}

/* Contact Page Specific Layout */
#contact .contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px; /* Ensure minimum width on smaller screens */
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    text-align: left;
    color: #005f73;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
}

.map-container {
    text-align: center;
    margin-top: 3rem;
}

.map-container img {
    margin: 1rem auto; /* Center the map image */
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #003f5c; /* Darker Blue */
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #e0f2f7; /* Lighter color for footer links */
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2.section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    /* Navigation */
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px; /* Match header height */
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%; /* Adjust as needed */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding: 1rem 0; /* Add padding for links */
        height: calc(100vh - 60px); /* Full height */
        overflow-y: auto; /* Allow scrolling if needed */
    }

    .nav-links li {
        margin: 1rem 0;
        opacity: 0; /* For animation */
        width: 80%; /* Ensure links take width */
        text-align: center;
    }

    .nav-links a.nav-cta {
        padding: 10px 20px !important; /* Adjust padding for mobile */
    }

    .nav-links a {
         color: #333; /* Ensure visibility on white bg */
         display: block; /* Make whole area clickable */
         width: 100%;
    }

    .nav-links a.active::after {
        display: none; /* No underline in mobile flyout */
    }

    .nav-links a.active {
        font-weight: bold; /* Indicate active page */
        color: #0a9396;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Animate Links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section V2 Responsive */
    .hero-section-v2 {
        min-height: auto; /* Adjust height */
        padding: 40px 15px; /* Reduce padding */
    }

    .hero-container {
        flex-direction: column; /* Stack text and image */
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center; /* Center text */
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image-container {
        max-width: 90%; /* Allow image to be wider */
        order: -1; /* Show image first on mobile */
    }

    /* Key Benefits Responsive */
    .benefits-grid {
        grid-template-columns: 1fr; /* Stack items */
        gap: 1.5rem;
    }

    /* Intro About Responsive */
    .about-content-intro {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}