/* 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;
    
    --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-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--stone-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--stone-900);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--stone-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: white;
    color: var(--emerald-700);
    border-color: white;
}

.btn-full {
    width: 100%;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-600);
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--emerald-700);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    color: var(--stone-600);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--emerald-600);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--stone-700);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--cream-50);
    border-bottom: 1px solid var(--stone-200);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1rem;
    color: var(--stone-700);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stone-200);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(4, 120, 87, 0.92) 0%, 
        rgba(5, 150, 105, 0.85) 50%,
        rgba(16, 185, 129, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1875rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--cream-50);
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--emerald-200);
}

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

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--stone-800);
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: white;
}

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

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.about-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 200px;
    height: 200px;
    background-color: var(--emerald-100);
    border-radius: 1.5rem;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 1.25rem;
}

.about-content > p {
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--stone-700);
}

.feature svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* Patients Section */
.patients {
    padding: 6rem 0;
    background-color: var(--emerald-50);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--stone-200);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--emerald-300);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-100);
    border-radius: 0.875rem;
    color: var(--emerald-700);
    margin-bottom: 1.25rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.9375rem;
    white-space: pre-line;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: white;
}

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

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--stone-600);
}

.contact-item svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item a {
    color: var(--emerald-600);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--cream-50);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--stone-200);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--stone-800);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--stone-300);
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--stone-800);
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px var(--emerald-100);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--stone-500);
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: var(--emerald-600);
    margin: 0 auto 1rem;
}

.form-success h3 {
    margin-bottom: 0.75rem;
    color: var(--stone-800);
}

.form-success p {
    color: var(--stone-600);
}

/* Footer */
.footer {
    background-color: var(--emerald-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    color: var(--emerald-300);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

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

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

.footer-bottom a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
