/* CSS for the Little Nest website */

/* --- Variables --- */
:root {
    --green-bg: #4F5B4A;
    --dark-green-text: #2c3e2f;
    --light-bg: #F0EDE5; /* Light beige/off-white */
    --dark-text: #1a1a1a;
    --gray-text: #666;
    --border-color: #dcdcdc; /* Light border for sections */
    
    /* New SOT Specific Variables (Page 1) */
    --sot-text-color: #1a1a1a;
    --sot-secondary-color: #D3A47D; /* Desert/Sand tone for fading text */
    --page-counter-color: #666; 
}

/* --- Global & Body Styles --- */
body {
    font-family: 'Montserrat', sans-serif;/*Montserrat font */
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden; /* Prevent body scroll */
}

.website-container {
    width: 90vw;
    max-width: 1400px; /* Wider container for the SOT aesthetic */
    margin: 20px;
    box-sizing: border-box;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9; /* Magazine/Desktop look */
    height: auto;
    min-height: 700px;
}

a.active{
    background: #fff;
    border-radius: 2px;
}

/* --- Page Management (Core Multi-Page Logic) --- */
.page-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    /* Transition opacity for fade effect */
    transition: opacity 0.6s ease; 
    pointer-events: none;
    display: grid; 
    grid-template-columns: 1fr 1fr; /* All pages adopt the 50/50 split */
}

.page-container.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Ensure original sections fit the new grid layout */
.main-section {
    display: contents; /* Allows child elements to span grid columns directly */
    box-shadow: none; /* Remove redundant shadow */
}

/* --- PAGE 1: Sands of Time Style (SOT) --- */
.section-sot {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Left Side: Image / Desert Look */
.sot-left {
    position: relative;
    /* Placeholder desert/nature image. Using an uploaded asset. */
    background-image: url('images/pexels-djamel-ramdani-84328305-9336328.jpg'); 
    background-size: cover;
    background-position:fixed;
    color: white;
    /* Creates the iconic fade on the right edge */
    box-shadow: inset -50px 0 50px -20px #fff;
    z-index: 2; /* Ensure the image block sits slightly higher */
}

.sot-logo {
    font-size: 1.1em;
    position: absolute;
    top: 40px;
    left: 40px;
    color: var(--sot-text-color); /* Dark logo on light part of the fade */
    font-weight: 500;
    z-index: 3;
}

/* --- HOMEPAGE: Sands of Time Style (SOT) --- */
.homesection-sot {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.home-left {
    position: relative;
    /* Placeholder desert/nature image. Using an uploaded asset. */
    background-image: url('./images/May19BW.jpg'); 
    background-size: cover;
    background-position: center;
    color: white;
    /* Creates the iconic fade on the right edge */
    box-shadow: inset -50px 0 50px -20px white;
    z-index: 2; /* Ensure the image block sits slightly higher */
}

/* Bottom Navigation Buttons */
.sot-nav-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 30px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 3;
}

.sot-nav-bottom button {
    background: none;
    border: none;
    color: var(--sot-text-color);
    cursor: pointer;
    padding: 5px 10px;
    transition: opacity 0.2s;
    outline: none;
}
.sot-nav-bottom button:hover:not(:disabled) {
    opacity: 0.7;
}
.sot-nav-bottom button:disabled {
    cursor: default;
    opacity: 0.3;
}

/* Right Side: Text & Menu */
.sot-right {
    padding: 40px 60px 40px 40px;
    color: var(--sot-text-color);
    z-index: 1;
}

.sot-header {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.sot-menu {
    display: flex;
    gap: 30px;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--gray-text);
}

a {
color: inherit;
text-decoration: none;

}



.sot-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-left: 20px; /* Shift content slightly */
}

.sot-story-label {
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--page-counter-color);
    margin-bottom: 10px;
    align-self: flex-start; /* Aligns the label left */
}

.sot-title {
    line-height: 0.8;
    font-family: 'Monteserrat';
    font-size: clamp(4rem, 8vw, 12rem); 
    margin-bottom: 40px;
    position: relative;
   
    /* This creates the two-tone text effect */
   
    
}

.sot-title::before {
    content: "LITTLE NEST"; /* Must match the content of the H1 */
    position: absolute;
    top: 0;
    left: 0;
    color: white; /* White shadow/outline base */
    z-index: -1;
    text-shadow: 
        1px 1px 0 rgba(255, 255, 255, 0.4),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}


.sot-title .line-1 {
   display: block;
    font-weight: 700;
    background-image: url('images/pexels-djamel-ramdani-84328305-9336328.jpg');
     background-clip: text;
     color:transparent;
}
   


.sot-title .line-2 {
    display: block;

    font-weight: 700;
    background-image: url('images/pexels-djamel-ramdani-84328305-9336328.jpg');
     background-clip: text;
     color:transparent;
}

.sot-read-more {
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-bottom: 50px;
    width: 100%;
    max-width: 120px;
    text-align: left;
}

.sot-line {
    width: 100%;
    max-width: 80px;
    height: 1px;
    background-color: var(--sot-text-color);
    margin-top: 10px;
    transition: width 0.3s ease;
}

/* Page Counter Style */
.sot-page-counter {
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--page-counter-color);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.sot-page-counter .current-page, .sot-page-counter .total-pages {
    font-size: 1.5em;
    color: var(--sot-text-color);
}
.sot-page-counter .divider {
    color: var(--page-counter-color);
    font-size: 0.8em;
    margin: 5px 0;
}

/* --- PAGE 2 & 3 General Styles (Original content adaptation) --- */

/* Green Section - Left Column of Page 2 */
.green-content-left {
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    box-sizing: border-box;
    background-color: var(--green-bg); /* Apply background to the column */
    color: var(--light-bg);
}

/* Green Image - Right Column of Page 2 */
.green-image-right {
    /* Placeholder family image. Using an uploaded asset. */
    background-image: url('images/WhatsApp\ Image\ 2025-10-20\ at\ 13.23.23.jpeg'); 
    background-size: cover;
    background-position: center;
    min-height: 100%;
    background-color: var(--green-bg); /* Ensure no gap in color */
}

/* Light Section - Page 3 Content */
.light-content-left {
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.light-content-right {
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: var(--light-bg);
    color: var(--dark-text);
}


/* Adjustments for the original content classes to look better within the multi-page context */
.section-green {
    /* No need for background color here, applied to children */
    background: none; 
}
.section-light {
    /* No need for background color here, applied to children */
    background: none; 
}
.light-alora-star {
    font-size: 2.5em;
    color: var(--green-bg); 
}
.light-lamp-image {
    /* Placeholder kids activity image. Using an uploaded asset. */
    background-image: url('images/Untitled\ design\ \(7\).png'); 
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    position: relative;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.light-penthouse-image {
    /* Placeholder home community image. Using an uploaded asset. */
    background-image: url('images/Untitled\ design\ \(4\).png'); 
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .website-container {
        aspect-ratio: auto;
        min-height: auto;
        height: auto;
    }
    .page-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        position: relative;
        /* Reset opacity/pointer-events for stack view, handle visibility with JS */
        opacity: 1; 
        pointer-events: all;
        display: none; 
    }
    .page-container.active {
        display: grid; /* Show active page on mobile */
    }

    /* Page 1 Adjustments for Mobile */
    .sot-left {
        min-height: 350px;
        box-shadow: none; 
    }
    .sot-right {
        padding: 40px 30px;
        text-align: center;
        align-items: center;
    }
    .sot-header {
        justify-content: space-between;
        flex-direction: row;
        width: 100%;
    }
    .sot-menu {
        display: none; /* Hide menu on smallest screens */
    }
    .sot-content {
        align-items: center;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: 0;
    }
    .sot-title {
        font-size: 15vw;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .sot-read-more {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    .sot-line {
        margin-left: auto;
        margin-right: auto;
    }
    .sot-nav-bottom {
        left: 50%;
        transform: translateX(-50%);
        gap: 50px;
    }
    .sot-page-counter {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    /* General Content Adjustments for all pages */
    .green-content-left, .light-content-left, .light-content-right {
        padding: 30px 40px;
        min-height: auto;
    }
    .green-title {
        font-size: 4em;
    }
    .green-image-right {
        min-height: 300px;
    }
    .light-alora-title {
        font-size: 3em;
    }
}
