/* ============================================
   DIGESTIVE CARE — Editorial Medical Website
   Color Palette: Emerald Green + Cream
   ============================================ */

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

:root {
    /* Emerald + Cream Palette */
    --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;
    --emerald-950: #022c22;
    
    --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;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --container-max: 1200px;
    --navbar-height: 72px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

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

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

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-600);
    transition: width var(--transition-base);
}

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

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

.nav-cta {
    background: var(--emerald-700) !important;
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: background var(--transition-fast), transform var(--transition-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--emerald-800) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream-50);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--navbar-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
        gap: var(--space-lg);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-slow);
        z-index: 999;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        color: var(--stone-700);
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 50%, var(--emerald-800) 100%);
    padding: calc(var(--navbar-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 95, 70, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-greeting {
    margin-bottom: var(--space-xl);
}

.hero-greeting-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-300);
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.hero-greeting-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-400);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

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

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--emerald-200);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--emerald-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

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

/* Floating Stat Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 420px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: var(--space-xl);
    transition: transform var(--transition-base), background var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.stat-card--1 { grid-column: 1; grid-row: 1; }
.stat-card--2 { grid-column: 2; grid-row: 1; }
.stat-card--3 { grid-column: 1; grid-row: 2; }
.stat-card--4 { grid-column: 2; grid-row: 2; }

.stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: var(--emerald-300);
    margin-bottom: var(--space-md);
}

.stat-card-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--emerald-200);
    line-height: 1.4;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--emerald-300);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--emerald-400), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (min-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr 400px;
        gap: var(--space-4xl);
    }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-4xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-card {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 8px 30px rgba(4, 120, 87, 0.1);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-number {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald-300);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 12px;
    color: var(--emerald-700);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-card-icon {
    background: var(--emerald-100);
    border-color: var(--emerald-300);
}

.service-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: var(--space-sm);
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--stone-500);
    line-height: 1.65;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: white;
}

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

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-100);
    border-radius: 16px;
    z-index: -1;
}

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

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

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.about-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-700);
}

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

@media (min-width: 768px) {
    .about-container {
        grid-template-columns: 5fr 6fr;
        gap: var(--space-4xl);
    }
    
    .about-image img {
        height: 560px;
    }
}

/* ============================================
   CONDITIONS SECTION
   ============================================ */
.conditions {
    padding: var(--space-4xl) 0;
    background: var(--emerald-900);
}

.conditions .section-label {
    background: rgba(110, 231, 183, 0.15);
    border-color: rgba(110, 231, 183, 0.3);
    color: var(--emerald-300);
}

.conditions .section-title {
    color: white;
}

.conditions .section-subtitle {
    color: var(--emerald-200);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--emerald-100);
}

.condition-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-400);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .conditions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .conditions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

.why-us-content {
    max-width: 480px;
}

.why-us-text {
    font-size: 1.05rem;
    color: var(--stone-600);
    line-height: 1.8;
}

.why-us-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.why-feature {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.why-feature:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.08);
}

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

.why-feature-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: var(--space-xs);
}

.why-feature-desc {
    font-size: 0.9rem;
    color: var(--stone-500);
    line-height: 1.65;
}

@media (min-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
    }
    
    .why-us-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   INSURANCE SECTION
   ============================================ */
.insurance {
    padding: var(--space-4xl) 0;
    background: white;
}

.insurance-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.insurance-text {
    font-size: 1.05rem;
    color: var(--stone-500);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.insurance-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.insurance-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.25rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-800);
}

.insurance-badge svg {
    color: var(--emerald-600);
}

.insurance-note {
    font-size: 0.95rem;
    color: var(--stone-500);
}

.insurance-note a {
    color: var(--emerald-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.insurance-note a:hover {
    color: var(--emerald-600);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

.contact-info {
    max-width: 480px;
}

.contact-text {
    font-size: 1rem;
    color: var(--stone-500);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 10px;
    color: var(--emerald-700);
    flex-shrink: 0;
}

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

.contact-detail p {
    font-size: 0.95rem;
    color: var(--stone-700);
    line-height: 1.6;
}

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

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

/* Contact Form */
.contact-form-wrapper {
    max-width: 520px;
}

.contact-form {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 20px;
    padding: var(--space-2xl);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: var(--space-xs);
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--stone-500);
    margin-bottom: var(--space-2xl);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--stone-300);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--stone-800);
    background: var(--cream-50);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    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.1);
    background: white;
}

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

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

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

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

.form-success svg {
    color: var(--emerald-600);
    margin-bottom: var(--space-md);
}

.form-success p {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        align-items: start;
    }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: var(--stone-200);
}

.map-container {
    width: 100%;
    height: 300px;
    filter: grayscale(30%);
}

@media (min-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--stone-900);
    color: var(--stone-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

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

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--stone-500);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--stone-500);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

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

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

.footer-bottom {
    border-top: 1px solid var(--stone-800);
    padding-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

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

.footer-disclaimer {
    font-size: 0.75rem !important;
    color: var(--stone-700) !important;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================
   SCROLL REVEAL (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state: always visible (no JS) */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
