:root {
    --bark-dark: #120b08;
    --bark-mid: #1a120b;
    --moss: #388e3c;
    --moss-light: #8bc34a;
    --amber-glow: #ffc107;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    /* Deep Brown Gradient "Roots & Earth" */
    background: linear-gradient(to bottom, #3e2723 0%, #1a120b 40%, #050302 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 1. Atmosphere */
#forest-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bark-dark) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
    /* Darker uniform shadow */
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--amber-glow);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(2px);
    animation: drift linear infinite;
}

@keyframes drift {
    from {
        transform: translateY(100vh) scale(1);
    }

    to {
        transform: translateY(-10vh) scale(0.5);
    }
}

/* 2. Header */
.organic-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    /* Soft black fade as requested */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand span {
    color: var(--moss-light);
    font-style: italic;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
}

/* Language Toggle */
.lang-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* Mobile: Left */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--moss-light);
    color: var(--moss-light);
    font-family: 'Space Grotesk', sans-serif;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    z-index: 1000;
}

.lang-btn svg {
    stroke: var(--moss-light);
    transition: 0.3s;
}

.lang-btn:hover {
    background: var(--moss-light);
    transform: rotate(180deg);
}

.lang-btn:hover svg {
    stroke: var(--bark-dark);
}

@media (min-width: 768px) {
    .lang-btn {
        left: auto;
        right: 4rem;
        /* Desktop: Right (aligned with padding) */
        top: 2rem;
        /* Aligned with header padding */
    }
}

/* 3. Sections */
/* Transparency for Tree Background */
.forest-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 0;
    z-index: 10;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-bottom: none;
    /* No lines */
    background: transparent;
    /* Show Body Tree */
    user-select: none;
    overflow: hidden;
}

#hero,
#gallery,
#contact {
    /* Clean sections to show gradient body */
    background: transparent;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--moss-light);
    margin-bottom: 4rem;
    opacity: 0.6;
}

/* 4. Hero */
.living-hero {
    text-align: center;
    max-width: 1000px;
}

.seed-text {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--amber-glow);
    margin-bottom: 1.5rem;
}

.organic-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
}

.organic-title span {
    color: var(--moss-light);
    font-style: italic;
}

.sprout-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--moss-light);
    color: var(--moss-light);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.sprout-btn:hover {
    background: var(--moss-light);
    color: var(--bark-dark);
    box-shadow: 0 0 30px rgba(139, 195, 74, 0.3);
    transform: translateY(-5px);
}

.scroll-hint {
    margin-top: 5rem;
    /* Increased for better separation */
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--moss-light);
    opacity: 0.4;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    transition: 0.4s;
}

.scroll-hint:hover {
    opacity: 0.8;
}

/* 5. Infinite Slider */
.infinite-slider-wrapper {
    width: 100%;
    height: 65vh;
    /* Reverted to balanced height */
    position: relative;
    overflow: visible;
    /* Allow scaling items to protrude if needed, mask handles edges */

    /* Allow scaling items to protrude if needed, mask handles edges */
}


.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-item {
    flex: 0 0 650px;
    /* Reverted to balanced width */
    height: 100%;
    padding: 2rem 2rem 5rem 2rem;
    /* Increased bottom padding for shadow */
    cursor: grab;
    opacity: 0.4;
    will-change: transform, opacity;
}

.slider-item.active {
    opacity: 1;
}

.item-visual {
    width: 100%;
    height: 100%;
    /* Keep Organic Corners */
    border-radius: 60px 20px 80px 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s ease;
    filter: grayscale(0.4);
    display: block;
    /* Fix bottom pixel gap */
    width: 100%;
    /* Ensure full filling */
    height: 100%;
    /* Crucial for removing sub-pixel gaps */
    pointer-events: auto;
    /* Ensure hover works */
    -webkit-user-drag: none;
    /* Prevent native drag ghost */
}

/* Only hover scale if NOT dragging AND NOT disabled by warp */
.slider-track:not(.is-dragging):not(.disable-hover) .slider-item:hover .item-visual img {
    filter: grayscale(0);
    transform: scale(1.1) !important;
    transition: transform 0.4s ease;
}

.slider-track:not(.is-dragging):not(.disable-hover) .slider-item:hover {
    opacity: 1 !important;
}

/* Removed opacity boost on hover as requested */

.slider-item.is-clicked .item-visual img {
    transform: scale(1) !important;
    transition: transform 0.2s ease-out !important;
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 11, 8, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    opacity: 0;
    transition: 0.4s;
}

/* Universal Hover Rule: Mousing over ANY item hides the text/shadow */
/* BUT only if we are not suppressing hover check (warp fix) */
.slider-track:not(.disable-hover) .slider-item:hover .item-overlay {
    opacity: 0 !important;
}

.slider-item.fully-centered .item-overlay {
    opacity: 1 !important;
    /* Force show only when fully centered */
    transition: opacity 0.4s ease-out !important;
    /* Smooth appearance for clicking */
}

/* WARP FIX: When warping, disable transition to prevent flicker */
.slider-track.warping .item-overlay {
    transition: none !important;
}

/* Hover-to-Reveal: Hide text/shadow when hovering the active item to see details */
/* Unified above */

.slider-item.is-clicked .item-overlay {
    opacity: 0 !important;
    /* Ensure overlay disappears on click */
    transition: opacity 0.01s ease-out !important;
}

.item-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.item-overlay p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--moss-light);
}

/* 6. Contact Section */
.contact-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 6rem;
    background: var(--bark-mid);
    border-radius: 40px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roots-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.05;
    pointer-events: none;
}

.contact-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.moss-btn {
    text-decoration: none;
    color: var(--text-main);
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.moss-btn:hover {
    border-color: var(--moss-light);
    color: var(--moss-light);
    background: rgba(139, 195, 74, 0.05);
}

/* 6.5 Offers Section */
.offers-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
}

.offer-card {
    background: var(--bark-mid);
    border-radius: 30px 10px 40px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-10px);
    border-color: var(--moss-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.offer-visual {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.offer-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offer-card:hover .offer-visual img {
    transform: scale(1.1);
}

.offer-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--amber-glow);
    color: var(--bark-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.offer-details {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.offer-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.buy-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--moss-light);
    color: var(--moss-light);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--moss-light);
    color: var(--bark-dark);
}

/* 7. Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.contact-section {
    position: relative;
    background: #0a0705;
    /* Solid dark forest floor */
    z-index: 30;
    margin-top: -2px;
    /* Slight overlap to ensure no gap */
    border-top: 1px solid rgba(139, 195, 74, 0.1);
}

/* 8. Lightbox */
.organic-lightbox {
    position: fixed;
    background: rgba(10, 7, 5, 0.95);
    /* Deeper, solid isolation */
    z-index: 20;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    user-select: none;
}

.organic-lightbox.active {
    display: flex;
    opacity: 1;
}

.living-box-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: var(--bark-mid);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    box-shadow: none;
    border: none;
}

.image-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

#lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 40%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.lightbox-overlay h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--moss-light);
    margin: 0;
}

.lightbox-overlay p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Nav Triggers */
.lightbox-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
}

.lightbox-nav-area:hover {
    opacity: 1;
}

.lightbox-nav-area.prev {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

.lightbox-nav-area.next {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
}

.lightbox-nav-area span {
    font-size: 4rem;
    color: var(--moss-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-living {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-main);
    z-index: 100;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.close-living:hover {
    opacity: 1;
    color: var(--moss-light);
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 85vw;
    }

    .contact-card {
        padding: 3rem 2rem;
    }
}