/* --- CSS Variables for Consistency --- */
:root {
    --primary-color: #2EC4B6; /* Teal */
    --secondary-color: #F4A261; /* Orange */
    --accent-color: #ff6b6b; /* Urgent/CTA Red */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f4f7f6;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Native smooth scrolling */
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Top Info Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    margin-right: 20px;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-dark);
}

.mobile-only {
    display: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    font-weight: 800;
}

.hero p {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.4);
}

/* --- Hero Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide.active .hero-content h1,
.carousel-slide.active .hero-content p,
.carousel-slide.active .hero-content .btn-primary {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.carousel-slide.active .hero-content h1 {
    animation-delay: 0.2s;
}

.carousel-slide.active .hero-content p {
    animation-delay: 0.4s;
}

.carousel-slide.active .hero-content .btn-primary {
    animation-delay: 0.6s;
}

/* --- Page Header (Subpages) --- */
.page-header {
    background: linear-gradient(rgba(46, 196, 182, 0.85), rgba(46, 196, 182, 0.7)), url('image3.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* --- Doctors Section --- */
.doctors {
    padding: 100px 0;
    background: linear-gradient(rgba(45, 40, 40, 0.75), rgba(45, 40, 40, 0.75)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
}

.doctors .section-title h2 {
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Targets paragraphs in the "Who We Serve" section title and body */
.doctors .section-title p, .doctors .container > div:not(.section-title) p {
    color: rgba(255, 255, 255, 0.9);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doc-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #ddd; /* Fallback */
}

.doc-info {
    padding: 20px;
    text-align: center;
}

.doc-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.doc-info span {
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* --- About Section --- */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: serif;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.author .name {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.author .role {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Appointment Section --- */
.appointment {
    padding: 80px 0;
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.appointment-form button {
    grid-column: 1 / -1;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

/* --- Footer --- */
.modern-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-brand p {
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav h4, .footer-newsletter h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    transition: 0.3s;
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .btn-primary {
        display: none; /* Hide header button on mobile */
    }

    .mobile-only {
        display: block; /* Show list item button on mobile */
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .appointment-form {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        flex-direction: column;
    }
    
    .service-detail:nth-child(even) {
        flex-direction: column;
    }
    
    .service-detail img, .service-text {
        width: 100%;
    }
}

/* --- Expanded Page Styles --- */
.values { padding: 100px 0; background: linear-gradient(to bottom, var(--light-gray), #eef2f5); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-color);
}
.value-card .icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background-color: rgba(244, 162, 97, 0.1); /* Secondary color with opacity */
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.4s ease;
}
.value-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 0 8px rgba(46, 196, 182, 0.1);
}
.value-card h3 { color: var(--text-dark); margin-bottom: 15px; font-size: 1.4rem; font-weight: 700; transition: color 0.3s; }
.value-card:hover h3 { color: var(--primary-color); }
.value-card p { color: var(--text-light); font-size: 1rem; line-height: 1.6; }

.detailed-services { padding: 80px 0; background: var(--white); }
.service-detail { display: flex; gap: 50px; align-items: center; margin-bottom: 80px; }
.service-detail:last-child { margin-bottom: 0; }
.service-detail:nth-child(even) { flex-direction: row-reverse; }
.service-detail img { width: 50%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-text { width: 50%; }
.service-text h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 20px; }
.service-text ul { margin-top: 20px; }
.service-text ul li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.service-text ul li::before { content: "✓"; color: var(--secondary-color); position: absolute; left: 0; font-weight: bold; }

.contact-wrapper { padding: 80px 0; background: var(--light-gray); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.info-item { margin-bottom: 30px; }
.info-item:last-child { margin-bottom: 0; }
.info-item h3 { color: var(--primary-color); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.map-frame { width: 100%; height: 300px; border: 0; border-radius: 10px; margin-top: 30px; background: #ddd; }
