/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0B3D2C;
    --green-800: #145A3D;
    --green-700: #1B7A4F;
    --green-600: #239B63;
    --green-500: #2DB874;
    --green-400: #5ECF96;
    --green-300: #8EE0B4;
    --green-200: #C2F0D4;
    --green-100: #E2F7E9;
    --green-50:  #F0FBF3;

    --cream:     #F9F6F0;
    --cream-dark:#F5F0E8;
    --cream-mid: #EDE7DA;
    --white:     #FFFFFF;
    --off-white: #FAFAF7;

    --text-dark:  #1A2E23;
    --text-body:  #3D5A47;
    --text-muted: #6B8F78;
    --text-light: #9BB5A5;

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --radius-xl:  32px;

    --shadow-sm:  0 2px 8px rgba(11, 61, 44, 0.06);
    --shadow-md:  0 6px 24px rgba(11, 61, 44, 0.10);
    --shadow-lg:  0 12px 48px rgba(11, 61, 44, 0.14);
    --shadow-smooth: 0 8px 32px rgba(11, 61, 44, 0.12);

    --font-body:  'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}
.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}
.btn-light:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* ─── Section Tag ─── */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-100);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 246, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 122, 79, 0.08);
    transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green-800);
}
.logo-icon {
    font-size: 1.3rem;
    color: var(--green-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s ease;
    position: relative;
}
.nav-links a:not(.btn):hover {
    color: var(--green-700);
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0B3D2C 0%, #145A3D 30%, #1B7A4F 60%, #239B63 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 184, 116, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(94, 207, 150, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-200);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero > .container > .hero-container > .hero-content > p {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
}

.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    max-width: 260px;
}
.hero-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.hero-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.hero-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ─── Services ─── */
.services {
    background: var(--cream);
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1px solid rgba(27, 122, 79, 0.07);
    transition: all 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-700);
}
.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ─── About ─── */
.about {
    background: var(--cream-dark);
    padding: 100px 0;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}
.about-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--green-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 20px;
}
.about-content > p {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-dark);
    font-weight: 500;
}
.feature-check {
    width: 24px;
    height: 24px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Patients ─── */
.patients {
    background: var(--cream);
    padding: 100px 0;
}

.patients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.patient-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(27, 122, 79, 0.07);
    transition: all 0.35s ease;
}
.patient-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.patient-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.patient-card-content {
    padding: 28px 26px;
}
.patient-card-content h3 {
    margin-bottom: 10px;
    font-family: var(--font-body);
}
.patient-card-content p {
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ─── Contact ─── */
.contact {
    background: var(--cream-dark);
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}
.contact-info > p {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-detail strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.contact-detail span,
.contact-detail a {
    font-size: 0.93rem;
    color: var(--text-body);
}
.contact-detail a:hover {
    color: var(--green-700);
    text-decoration: underline;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ─── Contact Form ─── */
.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-smooth);
    border: 1px solid rgba(27, 122, 79, 0.07);
}
.contact-form-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 8px;
}
.contact-form-card > p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--cream-mid);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--off-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(45, 184, 116, 0.15);
    background: var(--white);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.form-success.active {
    display: block;
}
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 16px;
}
.form-success h4 {
    font-family: var(--font-body);
    margin-bottom: 8px;
}
.form-success p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* ─── Footer ─── */
.footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1.8fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 14px;
}
.footer-brand .logo-icon {
    color: var(--green-400);
}
.footer-brand p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.footer-col ul {
    display: grid;
    gap: 10px;
}
.footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: var(--green-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ─── Mobile Menu ─── */
.mobile-menu {
    display: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 0;
        max-width: 420px;
        margin: 0 auto;
    }
    .hero-image img {
        height: 420px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-card {
        left: 50%;
        transform: translateX(-50%);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .patients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(249, 246, 240, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(27, 122, 79, 0.1);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 80px;
    }
    .hero-image img {
        height: 320px;
    }
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 16px;
        max-width: 100%;
    }

    .services-grid,
    .patients-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
}
