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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #faf9f6;
    --cream-100: #f5f3ee;
    --cream-200: #ebe7de;
    --cream-300: #e0dbd0;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

/* ── Typography ── */
.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section-label.light { color: rgba(255,255,255,0.7); }

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    color: var(--emerald-600);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--white);
    border: 2px solid var(--emerald-700);
}
.btn-primary:hover { background: var(--emerald-800); border-color: var(--emerald-800); transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-white {
    background: var(--white);
    color: var(--emerald-900);
    border: 2px solid var(--white);
}
.btn-white:hover { background: var(--cream-100); transform: translateY(-1px); }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(4, 47, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.nav-brand-text { display: flex; flex-direction: column; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-600);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--emerald-500); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--emerald-900);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu-link {
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--emerald-600);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.92) 0%,
        rgba(6, 78, 59, 0.85) 40%,
        rgba(4, 120, 87, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em { font-style: italic; color: rgba(255,255,255,0.85); }

.hero-headline .accent {
    color: var(--emerald-400);
    font-style: italic;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Floating Stat Cards ── */
.hero-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.stat-cards {
    display: flex;
    gap: 0;
    pointer-events: auto;
}

.stat-card {
    background: var(--white);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    border: 1px solid var(--cream-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.stat-card:first-child { border-radius: 16px 0 0 0; }
.stat-card:last-child { border-radius: 0 16px 0 0; }
.stat-card:not(:first-child):not(:last-child) { border-top: none; }

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: 10px;
    color: var(--emerald-700);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-value {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--emerald-900);
    line-height: 1.3;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle { margin: 0 auto; }

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

.service-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 16px;
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(6,78,59,0.1); border-color: var(--emerald-200); }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
    border-radius: 14px;
    color: var(--white);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

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

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

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(6,78,59,0.15);
}

.about-image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    border: 4px solid var(--cream-100);
}

.about-image-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-content { padding-top: 40px; }

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.value-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: 8px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

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

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

.patient-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.patient-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.patient-card-header {
    background: var(--emerald-900);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.patient-card-number {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    line-height: 1;
}

.patient-card-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.patient-card-body {
    padding: 28px;
}

.patient-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-200);
    font-size: 0.9rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; color: var(--text-dark); }
.hours-time { color: var(--text-light); }

.patient-list {
    display: grid;
    gap: 10px;
}
.patient-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-mid);
}
.patient-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-600);
    border-radius: 50%;
    flex-shrink: 0;
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--emerald-700);
    transition: color 0.2s;
}
.link-arrow:hover { color: var(--emerald-500); }

/* ── CTA Banner ── */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 50%, var(--emerald-700) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-text { max-width: 520px; }

.cta-headline {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Contact ── */
.contact {
    padding: 120px 0 80px;
    background: var(--cream-50);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: 12px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-item a {
    color: var(--emerald-700);
    font-weight: 500;
    transition: color 0.2s;
}
.contact-item a:hover { color: var(--emerald-500); }

/* ── Contact Form ── */
.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 20px;
    padding: 40px;
}

.form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-300);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--emerald-100);
    border: 1px solid var(--emerald-200);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald-800);
}
.form-success.show { display: flex; }

/* ── Map ── */
.map-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cream-200);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.map-wrap iframe {
    width: 100%;
    height: 350px;
}

/* ── Footer ── */
.footer {
    background: var(--emerald-950);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-logo { color: var(--emerald-400); flex-shrink: 0; margin-top: 4px; }

.footer-brand strong {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.footer-links {
    display: grid;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact { display: grid; gap: 12px; }

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-400);
    transition: color 0.2s;
}
.footer-phone:hover { color: var(--emerald-300); }

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-disclaimer { font-style: italic; }

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .stat-card:hover, .service-card:hover, .patient-card:hover { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout { gap: 48px; }
    .contact-layout { gap: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    
    .hero-content { padding: 100px 24px 120px; }
    .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
    
    .stat-cards {
        flex-direction: column;
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        margin-top: -40px;
        margin-left: 24px;
        margin-right: 24px;
    }
    .stat-card { border-radius: 12px !important; margin-bottom: 12px; }
    
    .services { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    
    .about { padding: 80px 0; }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .about-image-accent { right: 0; bottom: -30px; }
    
    .patients { padding: 80px 0; }
    .patients-grid { grid-template-columns: 1fr; }
    
    .cta-banner { padding: 80px 0; }
    .cta-inner { flex-direction: column; text-align: center; }
    
    .contact { padding: 80px 0 60px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .contact-form-wrap { padding: 28px; }
    
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}
