/* ========== CSS Custom Properties ========== */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --cream-50: #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde68a;
    --cream-500: #fcd34d;
    --cream-600: #fbbf24;

    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

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

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a {
    color: var(--emerald-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--emerald-700);
}

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

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.96);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--emerald-700);
}

.nav-logo-icon {
    color: var(--emerald-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--stone-700);
    font-size: 0.938rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.nav-cta {
    background: var(--emerald-600) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--emerald-700) !important;
    color: white !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.92) 0%,
        rgba(5, 150, 105, 0.85) 50%,
        rgba(4, 120, 87, 0.88) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 28px;
}

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

.hero-accent {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    color: var(--emerald-200);
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.938rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--emerald-300);
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-600);
    color: white;
    border-color: var(--emerald-600);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-600);
}

.btn-secondary:hover {
    background: var(--emerald-50);
    color: var(--emerald-800);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background: white;
    color: var(--emerald-700);
    border-color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.063rem;
}

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

/* ========== Section Shared ========== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.063rem;
    color: var(--stone-600);
    line-height: 1.7;
}

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

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

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--stone-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.938rem;
    color: var(--stone-600);
    line-height: 1.65;
}

/* ========== About Section ========== */
.about {
    padding: 100px 0;
    background: white;
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
}

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

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--emerald-600);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.813rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.3;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-text {
    font-size: 1.063rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
}

.value-item strong {
    display: block;
    font-size: 1rem;
    color: var(--stone-900);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.938rem;
    color: var(--stone-500);
    line-height: 1.5;
}

/* ========== Patient Info Section ========== */
.patient-info {
    padding: 100px 0;
    background: var(--emerald-50);
}

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

.info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--emerald-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--emerald-600);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 16px;
}

.info-card p {
    font-size: 0.938rem;
    color: var(--stone-600);
    line-height: 1.65;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-100);
    font-size: 0.938rem;
    color: var(--stone-700);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:first-child {
    font-weight: 500;
    color: var(--stone-800);
}

/* ========== CTA Section ========== */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.93) 0%,
        rgba(4, 120, 87, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ========== Contact Section ========== */
.contact {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-text {
    font-size: 1.063rem;
    color: var(--stone-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
}

.contact-detail strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--stone-900);
    margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
    font-size: 0.938rem;
    color: var(--stone-600);
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--emerald-600);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-100);
}

.contact-form h3,
.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 24px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.938rem;
    color: var(--stone-800);
    background: var(--stone-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    background: white;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-notice {
    font-size: 0.813rem;
    color: var(--stone-500);
    text-align: center;
    margin-top: 16px;
}

/* Success State */
.form-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--emerald-50);
    border: 2px solid var(--emerald-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--emerald-600);
}

.form-success h3 {
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.938rem;
    color: var(--stone-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ========== Footer ========== */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.063rem;
    color: white;
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--emerald-400);
}

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.65;
    color: var(--stone-400);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-200);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--stone-400);
    font-size: 0.938rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact p {
    font-size: 0.938rem;
    line-height: 1.65;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--emerald-400);
}

.footer-contact a:hover {
    color: var(--emerald-300);
}

.footer-bottom {
    border-top: 1px solid var(--stone-800);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: var(--stone-500);
}

.footer-bottom a {
    color: var(--stone-400);
}

.footer-bottom a:hover {
    color: var(--emerald-400);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--stone-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-trust {
        flex-direction: column;
        gap: 16px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        right: 0;
        bottom: -24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
