/* --- Global Variables & Reset --- */
:root {
    --bg-color: #FDFCF8; 
    --text-color: #0A0A0A; 
    --accent-color: #C5A059; 
    --footer-bg: #EAE8E3; 
    --card-bg: #F4F2EB;
    
    --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
    
    --section-padding: 8rem 5%;
    --base-font-size: clamp(1rem, 1.2vw, 1.1rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: var(--base-font-size);
}

img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.6; }

/* --- Reusable Scroll Animations (Non-One-Time) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Floating Navbar --- */
nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 100;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

/* Auto-hide class triggered ONLY at footer */
nav.nav-hidden-footer {
    transform: translate(-50%, -150%);
    opacity: 0;
    pointer-events: none;
}

.nav-left { display: flex; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.5px; border-right: 1px solid rgba(255, 255, 255, 0.3); padding-right: 1.5rem; margin-right: 1.5rem; z-index: 102; position: relative;}

/* Desktop Menu */
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 400; }
.nav-links a { color: rgba(255, 255, 255, 0.9); }
.nav-links a:hover { color: var(--accent-color); }
.nav-right { display: flex; align-items: center; gap: 1.8rem; z-index: 102; position: relative;}
.plan-link { font-size: 0.9rem; color: #fff; text-decoration: underline; text-underline-offset: 6px; font-weight: 500; }
.btn-solid { background: var(--accent-color); color: #fff; padding: 0.7rem 1.5rem; border-radius: 50px; font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; border: none; cursor: pointer; transition: opacity 0.3s ease; }
.btn-solid:hover { opacity: 0.8; }

/* Mobile Hamburger & Overlay */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 102; position: relative; }
.hamburger span { width: 25px; height: 2px; background: #fff; transition: 0.3s ease; }

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--text-color);
    z-index: 103; /* Higher than nav to cover completely */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-overlay a { color: #fff; font-family: var(--font-heading); font-size: 2.5rem; }

/* New Close Button */
.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.close-menu-btn:hover {
    opacity: 0.7;
    transform: scale(0.95);
}

/* --- Hero Section --- */
.hero { height: 100vh; width: 100%; position: relative; display: flex; align-items: flex-end; padding: 4rem 5%; overflow: hidden;}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.15) 100%); z-index: -1; }
.hero-content { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; color: #fff; z-index: 1; margin-bottom: 2rem; }
.huge-title { font-family: var(--font-heading); font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 400; line-height: 0.9; margin: 0; color: var(--accent-color); }
.hero-subtitle { font-family: var(--font-body); font-size: var(--base-font-size); max-width: 400px; text-align: right; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.9); padding-bottom: 0.5rem; }

/* --- Shared Utilities --- */
.section-title { 
    font-family: var(--font-heading); 
    font-size: clamp(3rem, 6vw, 4.5rem); 
    font-weight: 400; 
    text-align: center; 
    margin-bottom: 4rem; 
    line-height: 1; 
    color: var(--text-color);
}
.section-wrapper { padding: var(--section-padding); max-width: 1600px; margin: 0 auto; }

/* --- About Us Section --- */
.about-section { text-align: center; padding-top: 12rem; padding-bottom: 8rem; }
.about-heading { font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1.4; color: var(--text-color); font-weight: 400; }
.inline-img { display: inline-block; vertical-align: middle; width: clamp(80px, 10vw, 130px); height: clamp(40px, 5vw, 65px); border-radius: 60px; overflow: hidden; margin: 0 0.8rem; transform: translateY(-4px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.inline-img img { transition: transform 0.5s ease; }
.inline-img:hover img { transform: scale(1.1); }

/* --- Expandable "How it Works" Grid --- */
.expandable-grid { display: flex; gap: 2rem; height: 600px; width: 100%; }
.expand-card { flex: 1; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1); background: #000; }
.expand-card:hover { flex: 3; }
.expand-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.8s ease, transform 0.8s ease; }
.expand-card:hover img { opacity: 0.9; transform: scale(1.05); }
.expand-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.expand-content h3 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; margin-bottom: 0; transition: margin-bottom 0.6s ease, opacity 0.4s ease; white-space: nowrap; color: var(--accent-color); }
.expand-content p { font-family: var(--font-body); font-size: var(--base-font-size); line-height: 1.6; color: rgba(255,255,255,0.95); max-height: 0; opacity: 0; overflow: hidden; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); max-width: 500px; }

.expand-card:hover .expand-content h3 { margin-bottom: 1.5rem; }
.expand-card:hover .expand-content p { max-height: 200px; opacity: 1; transition-delay: 0.1s; }
.expandable-grid:hover .expand-card:not(:hover) .expand-content h3 { opacity: 0; }

/* --- Expanded Services Section (4 Cards) - MODIFIED for Parallax --- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; max-width: 1300px; margin: 0 auto; }
.services-grid .card { position: relative; }
.services-grid .card:nth-child(even) { margin-top: 6rem; }
.card-img-wrapper { 
    aspect-ratio: 4/3; 
    overflow: hidden; 
    margin-bottom: 2rem; 
    border-radius: 0; /* Sharp Edges */
    position: relative;
}
.service-parallax-img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%; /* Taller for parallax movement */
    object-fit: cover;
    will-change: transform;
}
.services-grid h3 { font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 400; margin-bottom: 1rem; color: var(--accent-color); }
.services-grid p { font-size: var(--base-font-size); line-height: 1.6; color: var(--text-color); opacity: 0.8; }

/* --- Video-Style Interactive Testimonials Section --- */
.testimonials-section { background-color: var(--bg-color); padding-top: 6rem; }
.testi-overline { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 1px; color: var(--accent-color); margin-bottom: 1rem; text-align: center; }
.testi-title { font-family: var(--font-heading); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--text-color); line-height: 1; margin-bottom: 4rem; font-weight: 400; text-align: center; }

.testi-interactive-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.testi-quote-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 4rem 3rem;
    width: 100%;
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quote-slide {
    position: absolute;
    width: 85%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(10px);
}

.quote-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateY(0);
}

.quote-slide .stars { color: var(--accent-color); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 1rem; }
.quote-slide p { 
    font-family: var(--font-heading); 
    font-size: clamp(1.4rem, 2vw, 1.8rem); 
    line-height: 1.5; 
    color: var(--text-color); 
    font-style: italic; 
}

/* --- FAQ Section with Smooth JS Animation --- */
.faq-section { max-width: 900px; margin: 0 auto; padding-top: 6rem; padding-bottom: 4rem; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); overflow: hidden; }
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 2rem 0;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}
.faq-question:hover { color: var(--accent-color); }
.faq-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer-wrapper {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}
.faq-answer {
    padding-bottom: 2rem;
    line-height: 1.7;
    color: #555;
    font-family: var(--font-body);
    font-size: 1rem;
}
.faq-item.open .faq-answer-wrapper {
    max-height: 500px; 
    opacity: 1;
}

/* --- Mega Footer (Tightened Padding) --- */
.mega-footer { background-color: var(--footer-bg); padding: 4rem 5% 2rem 5%; color: var(--text-color); }
.mf-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 3rem; }
.mf-logo { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 400; }
.mf-links { display: flex; align-items: center; gap: 3rem; font-weight: 400; font-size: 1rem; }
.btn-outline { border: 1px solid var(--text-color); padding: 0.8rem 2rem; border-radius: 50px; background: transparent; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body); font-size: 1rem; }
.btn-outline:hover { background: var(--text-color); color: var(--footer-bg); }
.mf-center { text-align: center; padding: 4rem 0; }
.mf-center .huge-title { font-size: clamp(3rem, 6vw, 5rem); color: var(--text-color); margin-bottom: 2rem; line-height: 1; text-transform: none; } 
.mf-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 2rem; font-size: 0.9rem; font-weight: 400; }
.mf-social { display: flex; gap: 1rem; }
.icon-circle { width: 45px; height: 45px; border: 1px solid var(--text-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.icon-circle:hover { background: var(--text-color); }
.icon-circle:hover svg { stroke: var(--footer-bg); fill: var(--text-color); }
.icon-circle svg { width: 20px; height: 20px; fill: none; stroke: var(--text-color); stroke-width: 1.5; transition: all 0.3s ease; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .expandable-grid { flex-direction: column; height: 900px; }
    .expand-card { flex: 1; }
    .expand-card:hover { flex: 1.5; }
    .services-grid { gap: 2rem; }
    .services-grid .card:nth-child(even) { margin-top: 3rem; }
    :root { --section-padding: 6rem 5%; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .hero-subtitle { text-align: left; }
}

@media (max-width: 768px) {
    nav { padding: 1rem; width: calc(100% - 2rem); }
    .nav-links, .plan-link, .nav-right .btn-solid { display: none; }
    .logo { border-right: none; margin-right: 0; padding-right: 0; }
    .hamburger { display: flex; }
    
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .card:nth-child(even) { margin-top: 0; }
    
    .testi-quote-box { padding: 3rem 1.5rem; }
    
    .mf-top { flex-direction: column; gap: 2rem; }
    .mf-links { flex-direction: column; gap: 1.5rem; }
    .mf-bottom { flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
}
