/* ===================================
   A Better Reality - Medical Website
   Fresh, Airy, Forest Green & Off-White
=================================== */

/* CSS Custom Properties */
:root {
    /* Forest Green Palette */
    --forest-dark: #1a3a2a;
    --forest-primary: #2d5a3d;
    --forest-medium: #3d7a52;
    --forest-light: #5a9a6f;
    --forest-pale: #e8f5e9;
    --forest-mist: #f1f8f2;
    
    /* Off-White Palette */
    --cream: #faf9f6;
    --off-white: #f5f4f0;
    --warm-white: #fefefe;
    --sand: #e8e6e1;
    --sand-light: #f0efe9;
    
    /* Text Colors */
    --text-dark: #1a2e23;
    --text-medium: #3d5a4a;
    --text-light: #6b8a75;
    --text-muted: #8fa898;
    
    /* Functional Colors */
    --accent-gold: #c9a84c;
    --accent-rose: #e8c4c4;
    --success: #4caf50;
    --error: #e74c3c;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 58, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 58, 42, 0.08);
    --shadow-lg: 0 8px 40px rgba(26, 58, 42, 0.12);
    --shadow-xl: 0 16px 60px rgba(26, 58, 42, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===================================
   Navigation
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sand);
    transition: var(--transition-base);
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-dark);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--forest-dark);
    transition: var(--transition-base);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-primary);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--forest-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--forest-primary);
    color: var(--warm-white) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--forest-dark);
    color: var(--warm-white) !important;
}

/* ===================================
   Hero Section
=================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 25%, #a5d6a7 50%, #81c784 75%, #66bb6a 100%);
    overflow: hidden;
    padding: var(--space-3xl) var(--space-lg);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(45, 90, 61, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    color: var(--forest-dark);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--forest-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--forest-dark);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--forest-light);
    opacity: 0.3;
    align-self: center;
}

/* ===================================
   Buttons
=================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--forest-dark);
    color: var(--warm-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--forest-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--warm-white);
    color: var(--forest-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--forest-pale);
    transform: translateY(-2px);
}

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

/* ===================================
   Section Styles
=================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--forest-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--forest-dark);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===================================
   Services Section
=================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}

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

.service-card {
    background: var(--cream);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-mist) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--forest-primary);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-dark);
    margin-bottom: var(--space-sm);
}

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

/* ===================================
   About Section
=================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--forest-dark);
    color: var(--warm-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: var(--shadow-lg);
}

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

.badge-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content {
    max-width: 500px;
}

.about-text {
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.about-features {
    margin-top: var(--space-xl);
    display: grid;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--forest-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-primary);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===================================
   Testimonials Section
=================================== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--forest-pale) 0%, var(--cream) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--warm-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--forest-light);
    opacity: 0.3;
    margin-bottom: -1rem;
}

.testimonial-text {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--forest-dark);
}

.author-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Contact Section
=================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--warm-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-text {
    color: var(--text-medium);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: grid;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--forest-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-primary);
    flex-shrink: 0;
}

.contact-text-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--forest-dark);
    margin-bottom: 4px;
}

.contact-text-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-link {
    color: var(--forest-primary);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--forest-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--sand);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--forest-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--forest-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--forest-primary);
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--text-light);
}

/* ===================================
   Map Section
=================================== */
.map-section {
    background: var(--sand-light);
}

.map-container {
    height: 400px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ===================================
   Footer
=================================== */
.footer {
    background: var(--forest-dark);
    color: var(--warm-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--warm-white);
}

.footer-links ul,
.footer-hours ul {
    display: grid;
    gap: var(--space-sm);
}

.footer-links a,
.footer-hours li,
.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--warm-white);
}

.footer-hours .day {
    display: block;
}

.footer-hours .time {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--warm-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

/* ===================================
   Animations
=================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: var(--space-2xl) var(--space-lg);
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--space-2xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .stat-divider {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}
