@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1F6F5F;
    --primary-light: #2a8f7c;
    --secondary-color: #ffffff;
    --text-color: #2D3436;
    --text-light: #636E72;
    --bg-light: #F8FBFB;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Responsive Spacing & Padding */
    --section-padding: 100px 0;
    --container-padding: 0 2rem;

    /* Responsive Typography */
    --h1-size: 4rem;
    --h2-size: 2.5rem;
    --h3-size: 2rem;
    --h4-size: 1.2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-padding {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(31, 111, 95, 0.3);
}

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

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

header.scrolled {
    background: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hidden on desktop; shown only inside mobile nav via media query */
.nav-close-btn {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,251,251,0.8) 100%), url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: var(--h1-size);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 20px 0 0 0;
    z-index: -1;
}

.about-text h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Services */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
}

.service-card:hover h3, 
.service-card:hover p,
.service-card:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card h3 {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Doctors Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.doctor-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.doctor-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
    background: white;
    position: relative;
    z-index: 10;
}

.doctor-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.doctor-info p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}

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

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

.testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    background: white;
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.dot {
    width: 12px;
    height: 12px;
    background: #DDD;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

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

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    line-height: 1.8;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 1rem;
}

/* Contact/Appointment */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: var(--h3-size);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.2rem;
}

.appointment-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.1);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: var(--h4-size);
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
/* ==========================================
   Responsive Media Queries
   ========================================== */

/* Tablet & Mobile Breakpoint (max-width: 992px) */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 1.5rem;
        --h1-size: 3rem;
        --h2-size: 2.2rem;
        --h3-size: 1.8rem;
    }

    header {
        padding: 1rem 0;
    }

    nav {
        min-height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: transform 0.4s ease-in-out, right 0.4s ease-in-out;
        gap: 2rem;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-color);
        font-size: 1.2rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--primary-color);
    }

    .menu-toggle {
        display: block;
    }

    .nav-btns .btn {
        display: none; /* Hide desktop book button on mobile header */
    }

    /* Close button inside mobile nav panel */
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: none;
        background: var(--primary-color);
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 10;
        transition: var(--transition);
    }

    .nav-close-btn:hover {
        background: var(--primary-light);
        transform: rotate(90deg);
    }

    /* Hero Section adjustments */
    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    /* About Section adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img::before {
        display: none;
    }

    /* Contact Section adjustments */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Testimonials adjustments */
    .testimonial-card {
        padding: 2.5rem 2rem;
    }
}

/* Portrait Tablet & Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.6rem;
    }

    /* Footer centered content on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Landscape Phone Breakpoint (max-width: 576px) */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 1.25rem;
        --h1-size: 2.2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.5rem;
    }

    .logo img {
        height: 50px !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Stats Grid */
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Doctors Grid */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-img img {
        height: 300px;
    }

    /* Testimonials spacing */
    .testimonial-card {
        padding: 2rem 1.25rem;
    }

    .testimonial-card p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Appointment Form Layout */
    .appointment-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

/* Small Phone Breakpoint (max-width: 375px) */
@media (max-width: 375px) {
    :root {
        --container-padding: 0 1rem;
        --h1-size: 2rem;
        --h2-size: 1.65rem;
        --h3-size: 1.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .appointment-form {
        padding: 1.5rem 1rem;
    }
}

/* Extra Small Phone Breakpoint (max-width: 320px) */
@media (max-width: 320px) {
    :root {
        --h1-size: 1.85rem;
    }
}
