/* ==========================================================================
   1. CORE VARIABLES, RESET, & BASE STYLES (Logo Palette Integration)
   ========================================================================== */
:root {
    --primary: #527284;      /* Official Balance Soul Slate Blue / Deep Ocean Blue */
    --accent: #E5C2D1;       /* Official Balance Soul Soft Lilac / Pastel Pink Accent Pedal */
    --secondary: #E4E5E7;    /* Official Balance Soul Zen Soft Gray Canvas Background */
    --dark: #232B32;         /* High Contrast Off-Black for Readable Text Layouts */
    --white: #FFFFFF;
    --gray: #cccccc;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* Adopting the calm Zen background across the core body layout */
body { 
    background-color: var(--secondary); 
    color: var(--dark); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

main { 
    flex: 1; 
    padding: 60px 8%; 
}

/* ==========================================================================
   2. HEADER & RIGHT-ALIGNED NAVIGATION MENU
   ========================================================================== */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 8%; 
    background: var(--white); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 600; 
    letter-spacing: 3px; 
    text-decoration: none; 
    color: var(--primary); 
    text-transform: uppercase;
}

/* Custom properties controlling your standalone menu logo size */
.nav-menu-icon {
    width: auto;
    height: 85px; /* Change this number to 95px or 100px if you want it even larger on screen! */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle, elegant lift effect when hovering over her main brand logo icon */
.nav-brand-group:hover .nav-menu-icon {
    transform: scale(1.05);
}

/* Ensures the right-side nav text links stay perfectly centered with your taller logo icon */
.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

.nav-links li { 
    margin-left: 20px; 
    position: relative; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    padding: 10px 15px; 
    border-radius: 4px; 
    transition: all 0.3s ease; 
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--primary); 
    background-color: var(--secondary); 
}

/* ==========================================================================
   3. THE DROPDOWNS ENGINE
   ========================================================================== */
.dropdown-menu,
.login-dropdown-panel {
    display: none; 
    position: absolute;
    top: 100%; 
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 4px;
    list-style: none;
    z-index: 1001;
    border-top: 3px solid var(--primary);
}

.dropdown-menu {
    left: 0;
    min-width: 180px;
    padding: 10px 0;
}

.dropdown-menu li {
    margin-left: 0 !important; 
    width: 100%;
}

.dropdown-menu a {
    width: 100%;
    padding: 10px 20px;
    border-radius: 0;
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.login-dropdown-panel {
    right: 0; 
    left: auto !important;
    min-width: 260px !important;
    padding: 20px !important;
}

.has-dropdown:hover .dropdown-menu,
.admin-dropdown-wrapper:hover .login-dropdown-panel {
    display: block;
}

.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.8rem;
    vertical-align: middle;
}

.admin-link-text {
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.login-dropdown-panel .form-group {
    margin-bottom: 12px;
    text-align: left;
}

.login-dropdown-panel label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
    text-transform: uppercase;
}

.login-dropdown-panel input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: var(--secondary);
}

.login-dropdown-panel input:focus {
    border-color: var(--primary);
    outline: none;
    background-color: var(--white);
}

.login-btn {
    width: 100%;
    padding: 10px !important;
    font-size: 0.8rem !important;
    margin-top: 5px;
    text-align: center;
}

/* ==========================================================================
   4. CAPSULE BUTTON SHOPPING CART
   ========================================================================== */
.cart-icon { 
    position: relative; 
    background: var(--primary) !important; 
    color: var(--white) !important; 
    border-radius: 20px !important; 
}

.cart-icon:hover { 
    background: var(--dark) !important; 
}

.cart-count { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    background: var(--accent); 
    color: var(--dark); 
    font-size: 0.7rem; 
    padding: 2px 6px; 
    border-radius: 50%; 
    border: 2px solid var(--white);
    font-weight: bold;
}

/* ==========================================================================
   5. UNIVERSAL UI ELEMENTS & BUTTONS
   ========================================================================== */
.btn { 
    display: inline-block; 
    background: var(--primary); 
    color: var(--white); 
    padding: 14px 35px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.3s; 
    border: none; 
    cursor: pointer; 
}

.btn:hover { 
    background: var(--dark); 
    transform: translateY(-2px); 
}

.section-title { 
    font-size: 2.3rem; 
    margin-bottom: 45px; 
    font-weight: 300; 
    text-align: center; 
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent); 
    margin: 15px auto 0;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 35px; 
}

/* ==========================================================================
   5.2 UNIFORM SQUARE STORE CARDS MODULES
   ========================================================================== */
.product-card { 
    border: 1px solid var(--secondary); 
    border-radius: 8px; 
    padding: 20px; 
    text-align: center; 
    transition: all 0.3s ease; 
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.04); 
    border-color: var(--accent);
}

.product-img { 
    width: 100%; 
    aspect-ratio: 1 / 1; /* Forces the image card frame into a perfect uniform square block */
    object-fit: cover; /* Crops the zoom action cleanly inside the square without distorting her mats */
    border-radius: 4px; 
    margin-bottom: 15px; 
    background-color: var(--secondary);
}

.price { 
    font-size: 1.25rem; 
    color: var(--primary); 
    font-weight: 700; 
    margin: 8px 0 15px 0; 
}


/* ==========================================================================
   6. INDIVIDUAL PAGE CONTENT MODULES
   ========================================================================== */

/* Hero Canvas (Home) */
.hero { 
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(228, 229, 231, 0.9)), url('https://unsplash.com') center center/cover; 
    height: 70vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    margin: -60px -8% 60px -8%; 
    padding: 0 20px; 
    border-bottom: 1px solid var(--gray);
}

.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 300; 
    margin-bottom: 15px; 
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtext {
    font-size: 1.25rem; 
    max-width: 650px; 
    margin-bottom: 30px; 
    color: var(--dark);
    font-weight: 400;
}

.hero-cta-btn {
    box-shadow: 0 4px 15px rgba(82, 114, 132, 0.3);
}

/* Home Body Content Canvas Background Fix */
.home-main-canvas {
    background-color: var(--white);
    margin: -60px -8% -60px -8%;
    padding: 80px 8%;
}

.sanctuary-pillar-card {
    background-color: var(--secondary); /* Adapting Zen Soft Gray background to the content grid cards */
    padding: 35px; 
    border-radius: 8px;
    border: 1px solid #dcdde0;
    transition: all 0.3s ease;
}

.sanctuary-pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.sanctuary-pillar-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Store Cards Modules */
.product-card { 
    border: 1px solid var(--secondary); 
    border-radius: 8px; 
    padding: 25px; 
    text-align: center; 
    transition: all 0.3s ease; 
    background: var(--white);
}

.product-card:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border-color: var(--accent);
}

.product-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-radius: 4px; 
    margin-bottom: 15px; 
}

.price { 
    font-size: 1.2rem; 
    color: var(--primary); 
    font-weight: bold; 
    margin: 10px 0; 
}

/* Contact Containment Box Module */
.contact-containment-box {
    background-color: var(--secondary); 
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #dcdde0;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 35px;
    color: var(--primary);
    font-size: 1.1rem;
    font-style: italic;
}

.contact-containment-box input[type="text"],
.contact-containment-box input[type="email"],
.contact-containment-box textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--white);
    border: 2px solid #b8bcbf; 
    color: var(--dark);
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-containment-box input:focus,
.contact-containment-box textarea:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(82, 114, 132, 0.15);
}

.contact-containment-box textarea {
    resize: vertical;
    min-height: 240px; 
}

.contact-containment-box label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.contact-submit-btn {
    width: 100%;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Schedule Table */
/* ==========================================================================
   6.2  DYNAMIC SCHEDULE MATRIX STABILIZATION GRID
   ========================================================================== */
.table-wrapper { 
    overflow-x: auto; 
    background: var(--white); 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    border: 1px solid var(--secondary);
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: left; 
    table-layout: fixed; /* CRUCIAL: Forces all day columns to lock at identical widths! */
}

th, td { 
    padding: 16px 12px; 
    /* Distinct structural grid borders matching your logo palette for triangulation */
    border: 1px solid #d3d5d9; 
    font-size: 0.9rem;
    vertical-align: top; /* Vertically aligns text to the top box boundary */
    word-wrap: break-word; /* Automatically wraps long lines cleanly down */
}

th { 
    background-color: var(--primary); 
    color: var(--white); 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--primary);
}

/* Give the Time slot column a slightly different column spacing layout */
th:first-child, 
td:first-child {
    width: 95px; /* Keeps the hour column tightly bound */
    text-align: center;
    background-color: #fafbfc;
    font-size: 0.85rem;
}

tr:hover td { 
    background-color: #f7f8f9; /* Subtle axis hover line helper tracing the hour */
}



/* Gallery Block Grid */
/* ==========================================================================
   6.3 UNIFORM SQUARE GALLERY LAYOUT & POPUP LIGHTBOX MODULE
   ========================================================================== */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.gallery-item { 
    position: relative; 
    overflow: hidden; 
    border-radius: 8px; 
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--secondary);
    cursor: pointer; 
    aspect-ratio: 1 / 1; /* Locks thumbnail grid as a perfect clean square */
    display: flex;
    flex-direction: column;
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.gallery-item:hover img { 
    transform: scale(1.05); 
}

/* --- The Popup Lightbox Overlay Box Styles --- */
.lightbox-overlay {
    display: none; /* Invisible by default so it never leaks onto the page */
    position: fixed; /* Fixed placement locks it directly over everything else */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(35, 43, 50, 0.95); /* Dark slate covers the screen completely */
    z-index: 99999 !important; /* Forces it above the menu, footer, and images */
    justify-content: center;
    align-items: center;
}

/* When Javascript toggles this active class, it forces the flex box layout to reveal */
.lightbox-overlay.active {
    display: flex !important;
}

.lightbox-content-box {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%; /* Prevents the image from expanding past the screen width */
    max-height: 80vh; /* Limits the height to 80% of the screen height */
    object-fit: contain; /* Scales down image gracefully keeping original proportions */
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 4px solid var(--white);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-style: italic;
    text-align: center;
}

.lightbox-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

.lightbox-close-btn:hover {
    color: var(--accent); 
}



/* ==========================================================================
   7. MEDITATIVE FADING FLOATING LOGO ANIMATION MODULE
   ========================================================================== */
.logo-animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.floating-yoga-logo {
    width: 350px; 
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(82, 114, 132, 0.25));
    
    /* Attaches custom animation: 1.5s fade-in on arrival, combined with infinite hover drift loop */
    animation: initialFadeIn 1.5s ease-out forwards, meditativeFloat 6s ease-in-out infinite 1.5s;
}

/* Smooth fade and slide up animation triggered when the user first hits the site */
@keyframes initialFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Hypnotic, weightless hovering breathing loop cycle */
@keyframes meditativeFloat {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(82, 114, 132, 0.25));
    }
    50% {
        /* Gently rises 12px into the air at the peak of the breath */
        transform: translateY(-12px);
        filter: drop-shadow(0 25px 25px rgba(82, 114, 132, 0.12));
    }
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 15px rgba(82, 114, 132, 0.25));
    }
}

/* ==========================================================================
   8. FOOTER STYLING BLOCK
   ========================================================================== */
footer {
    background: var(--dark);
    color: var(--secondary);
    text-align: center;
    padding: 50px 20px;
    margin-top: auto;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
/* ==========================================================================
   9. MOBILE & TABLET RESPONSIVE OVERRIDES MODULE 
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Mobile Menu Adjustments */
    nav {
        flex-direction: column; /* Stacks brand logo and menu vertically */
        padding: 15px 4%;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap; /* Allows menu links to wrap elegantly if screen is tiny */
        justify-content: center;
        gap: 8px;
    }
    
    .nav-links li {
        margin-left: 0 !important; /* Drops desk structural margins */
        margin: 0 4px;
    }
    
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.8rem; /* Scales text down slightly so it fits across phones */
    }

    /* 2. Public Storefront Grid Overrides */
    .grid {
        grid-template-columns: 1fr !important; /* Collapses 3-columns into a beautiful single row flow */
        gap: 20px;
    }

    /* 3. Hero Section Spatial Balance */
    .hero {
        height: 50vh;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem; /* Keeps headline titles legible on small viewports */
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .floating-yoga-logo {
        width: 160px; /* Scales down animated emblem slightly for phone displays */
    }

       /* 4. Touch Gestures Swipe Engine for the Wide Weekly Schedule Table */
    .table-wrapper {
        overflow-x: auto !important; /* Forces side-scrolling within the box boundaries */
        -webkit-overflow-scrolling: touch; /* Ensures silky smooth, momentum-based swiping on touch devices */
        border-radius: 6px;
        position: relative;
        border: 2px solid var(--primary); /* Adds a clear framing outline around the touch zone */
        margin-bottom: 10px;
    }
    
    table {
        table-layout: auto !important; /* Allows cells to adjust space fluidly to prevent text clipping */
        min-width: 900px; /* Locks the calendar wide enough to read entries perfectly */
    }
    
    th, td {
        padding: 14px 10px;
        font-size: 0.85rem;
    }

    /* Mobile Text Indicator Helper informing visitors they can swipe */
    .table-wrapper::after {
        content: '↔ Swipe horizontally to view full week ↔';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--primary);
        padding: 8px 0;
        background: var(--secondary);
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        position: sticky;
        left: 0;
        border-top: 1px solid #d3d5d9;
    }
} /* <-- This closing bracket terminates the entire mobile @media query block! */
