/*
Theme Name: WHHC Enterprise
Description: Custom $200k Bespoke Theme for The White House Healing Center. Clean, fast, GSAP-powered.
Author: Senior Web Architect
Version: 1.1
*/

:root {
    --navy: #0B2545;
    --blue: #4FA3D9;
    --gold: #F2B544;
    --white: #ffffff;
    --offwhite: #F7F5F2;
    --gray: #6E7681;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; color: var(--gray); background: var(--offwhite); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem); }
h4 { font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem); line-height: 1.4; }
p { font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem); line-height: 1.6; }

/* Structural Utility */
.section { padding: clamp(80px, 10vh, 140px) clamp(20px, 5vw, 50px); }
.container { max-width: 1250px; margin: 0 auto; width: 100%; padding: 0 clamp(15px, 3vw, 30px); }
.text-center { text-align: center; }
.subhead { color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-size: clamp(12px, 1.5vw, 15px); font-weight: 800; display: block; margin-bottom: 20px; }

/* Advanced 3D Hover Premium Buttons */
.btn-primary { background: var(--gold); color: var(--navy); padding: 20px 50px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; display: inline-block; box-shadow: 0 10px 25px rgba(242, 181, 68, 0.4); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); border: 2px solid var(--gold); margin: 10px; cursor: pointer; position: relative; overflow: hidden;}
.btn-primary:after { content: ''; background: rgba(255,255,255,0.3); position: absolute; top: 0; left: -100%; width: 50%; height: 100%; transform: skewX(-20deg); transition: all 0.5s ease; }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(242, 181, 68, 0.6); }
.btn-primary:hover:after { left: 150%; }

.btn-secondary { background: transparent; color: var(--white); padding: 20px 50px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; display: inline-block; border: 2px solid var(--white); margin: 10px; transition: all 0.4s ease; }
.btn-secondary:hover { background: var(--white); color: var(--navy); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);}

/* Navigation */
.site-header { position: absolute; top: 0; width: 100%; z-index: 100; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; }
.site-logo { color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 900; text-decoration: none; letter-spacing: -1px; }

/* Immersive Hero Section */
.hero { position: relative; min-height: clamp(80vh, 100vh, 1200px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 37, 69, 0.95) 0%, rgba(79, 163, 217, 0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; text-align: center; padding: 100px 5%; width: 100%; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 6vw + 1rem, 5.5rem); margin-bottom: 30px; text-shadow: 0 15px 40px rgba(0,0,0,0.3); line-height: 1.1; font-weight: 900; }
.hero p { color: #E0E6ED; font-size: clamp(1.125rem, 2vw + 0.5rem, 1.625rem); font-weight: 400; margin-bottom: 50px; line-height: 1.7; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Floating Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 80px; }
.service-card { background: var(--white); padding: 60px 40px; border-radius: 20px; box-shadow: 0 15px 40px rgba(11, 37, 69, 0.05); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease; position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); z-index:1; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-20px); box-shadow: 0 40px 70px rgba(79, 163, 217, 0.15); }
.service-card:hover::after { transform: scaleX(1); }
.service-card i { font-size: 50px; color: var(--blue); margin-bottom: 35px; display: inline-block; transition: transform 0.4s ease;}
.service-card:hover i { transform: scale(1.1) rotate(-5deg); color: var(--gold);}
.service-card h4 { font-size: 26px; margin-bottom: 20px; color: var(--navy); }
.service-card p { font-size: 20px; line-height: 1.8; color: var(--gray); font-weight: 300;}

/* Founder Section Parallax Image */
.founder-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: center; }
.founder-img-wrapper { position: relative; }
.founder-img-wrapper::before { content:''; position:absolute; inset:-25px; background:var(--gold); border-radius:30px; z-index:0; transform: translate(-20px, 20px); opacity: 0.15;}
.founder-img { width: 100%; border-radius: 24px; box-shadow: 0 40px 80px rgba(11, 37, 69, 0.25); position: relative; z-index: 1; object-fit: cover; aspect-ratio: 3/4; }
.founder-text { border-left: 8px solid var(--gold); padding-left: 50px; }
.founder-text h2 { font-size: 54px; margin-bottom: 40px; color: var(--navy); }
.founder-text p { font-size: 24px; margin-bottom: 30px; line-height: 1.9; font-weight: 300; }

/* Amenities Grid */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.amenity-item { display: flex; align-items: center; font-size: 22px; color: var(--navy); font-weight: 700; margin-bottom: 30px; padding: 20px; background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.3s ease; border-left: 4px solid transparent;}
.amenity-item:hover { transform: translateX(10px); border-left: 4px solid var(--blue); box-shadow: 0 15px 40px rgba(0,0,0,0.08);}
.amenity-item i { color: var(--blue); font-size: 28px; margin-right: 25px; }

@media (max-width: 900px) {
    .founder-grid, .amenities-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 48px; }
}

/* =========================================
   ADMISSIONS TIMELINE CSS
   ========================================= */
.timeline-container { position: relative; max-width: 900px; margin: 0 auto; padding: 60px 0; }
.timeline-line { position: absolute; left: 50px; top: 0; bottom: 0; width: 4px; background: rgba(79, 163, 217, 0.2); border-radius: 4px; z-index: 1; }
.timeline-progress { position: absolute; left: 50px; top: 0; width: 4px; background: var(--gold); border-radius: 4px; z-index: 2; height: 0%; }

.timeline-step { position: relative; margin-bottom: 80px; padding-left: 120px; z-index: 3; }
.timeline-dot { position: absolute; left: 34px; top: 0; width: 36px; height: 36px; background: var(--navy); border: 4px solid var(--white); border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 800; font-family: 'Montserrat'; z-index: 4; transition: all 0.3s ease; }
.timeline-step:hover .timeline-dot { transform: scale(1.2); border-color: var(--gold); background: var(--white); }

.timeline-content { background: var(--white); padding: 40px; border-radius: 16px; box-shadow: 0 15px 40px rgba(11, 37, 69, 0.05); border: 1px solid rgba(0,0,0,0.03); }
.timeline-content h3 { font-size: 30px; margin-bottom: 15px; color: var(--navy); }
.timeline-content p { font-size: 20px; color: var(--gray); line-height: 1.7; }
.timeline-icon { font-size: 30px; color: var(--blue); margin-bottom: 20px; }

/* Booking Card */
.booking-card { background: var(--navy); padding: 60px; border-radius: 24px; color: var(--white); text-align: center; box-shadow: 0 30px 60px rgba(11, 37, 69, 0.3); position: relative; overflow: hidden; }
.booking-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--gold); border-radius: 50%; opacity: 0.1; filter: blur(30px); }

/* =========================================
   EXTREME MOBILE UX & CORE WEB VITALS OPTIMIZATION
   ========================================= */
@media (max-width: 1024px) {
    /* Limit shadow rendering intensity on tablets */
    .hero::before { background: linear-gradient(135deg, rgba(11, 37, 69, 0.98) 0%, rgba(79, 163, 217, 0.8) 100%); }
}

@media (max-width: 768px) {
    .site-header { padding: 15px 5%; }
    .hero { min-height: 80vh; padding: 20px; align-items: center; text-align: center; }
    .hero-content { padding-top: 50px; }
    
    /* UX Touch friendly buttons - >44px height */
    .btn-primary, .btn-secondary { 
        min-height: 52px; padding: 15px 30px; font-size: 1rem; width: 100%; text-align: center; 
        margin: 10px 0; touch-action: manipulation; display: flex; align-items: center; justify-content: center; 
    }
    
    .services-grid { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 40px); }
    .founder-grid, .amenities-grid { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 50px); }
    
    .founder-text { border-left: none; border-top: 6px solid var(--gold); padding: 30px 0 0 0; }
    .amenity-item { font-size: clamp(1rem, 4vw, 1.2rem); padding: 15px; }
    
    /* Optimize Animation/Shadows for CWV INP execution */
    .service-card { padding: 40px 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
    
    /* Timeline Mobile Fix */
    .timeline-line, .timeline-progress { left: 20px; }
    .timeline-dot { left: 4px; }
    .timeline-step { padding-left: 60px; margin-bottom: 50px; }
    .timeline-content { padding: 25px 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
    .timeline-content h3 { font-size: 1.5rem; }
    
    .booking-card { padding: 40px 20px; }
    .booking-card::before { display: none; /* remove blurry node on mobile */ }
}


/* HERO SLIDESHOW CROSSFADE */
.hero-slideshow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-slideshow img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; animation: crossfade 18s infinite;
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }

@keyframes crossfade {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; transform: scale(1.05); }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1); }
}

/* Ensure overlay stays on top */
.hero::before { z-index: 1 !important; }
.hero-content { z-index: 2 !important; }
