/* --- General Setup & Variables --- */
:root {
    /* UPDATED: Matches the deep Terracotta/Rust text in the logo */
    --primary-orange: #d64d2e; 
    
    /* NEW: Matches the Golden Sun rays in the logo (used for gradients/hovers) */
    --accent-gold: #fecb46;
    
    --text-white: #ffffff;
    --dark-overlay: rgba(30, 30, 30, 0.4);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'The Seasons', 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure main doesn't overflow */
main {
    width: 100%;
    overflow-x: hidden;
}

/* --- Global Button Styles --- */
.btn {
    padding: 12px 35px;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-custom-orange {
    background-color: var(--primary-orange);
    background: linear-gradient(135deg, var(--primary-orange) 0%, #c43e23 100%);
    color: var(--text-white);
    border: none;
}

.btn-custom-orange:hover {
    background: linear-gradient(135deg, #c43e23 0%, var(--primary-orange) 100%);
    color: var(--text-white); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 77, 46, 0.4);
}

/* --- Video Section --- */
.video-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper.is-playing .play-btn-wrapper {
    opacity: 0;
}

.video-wrapper.is-playing:hover .play-btn-wrapper {
    opacity: 1;
}

.play-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.play-btn {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 10px rgba(214, 77, 46, 0.6),
                0 0 0 20px rgba(214, 77, 46, 0.3);
}

.play-btn:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(214, 77, 46, 0.5),
                0 0 0 20px rgba(214, 77, 46, 0.25);
}

.watch-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.leading-relaxed {
    line-height: 1.8;
}

.button-group-styled {
    position: relative;
    display: inline-flex;
}

/* --- Footer Credit Text Scaling (Strict 1-Line) --- */
.footer-credit-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.6rem, 2.5vw, 0.8rem); /* Shrinks dynamically to fit the screen */
    white-space: nowrap; /* Absolutely forbids the text from breaking into two lines */
}

/* --- Footer Credit Link --- */
.credit-link {
    color: #ffffff !important; 
    text-decoration: underline !important; 
    text-underline-offset: 3px; 
    text-decoration-thickness: 1px;
    opacity: 1 !important; 
    transition: all 0.3s ease;
}

.credit-link:hover {
    color: var(--accent-gold) !important; 
    text-decoration-color: var(--accent-gold) !important;
}
/* =========================================
   CLEAN NON-DESTRUCTIVE RESPONSIVENESS (UPDATED)
   ========================================= */

@media (max-width: 991px) {
    /* --- Ultra-Thin Navbar --- */
    .navbar {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        background: rgba(250, 246, 240, 0.98); 
        box-shadow: 0 2px 10px rgba(74, 51, 42, 0.05);
        min-height: 60px !important; /* Forces the navbar to stay thin */
    }
    
    .navbar-brand {
        transform: translateY(0) !important; /* Removes the desktop optical drop */
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar-brand img { 
        width: 120px !important; /* Smaller logo = thinner header */
        height: auto; 
    }

    .navbar-collapse {
        background: transparent;
        padding: 20px 0;
        text-align: center;
    }

    /* --- Scaled Down Hamburger --- */
    .custom-toggler {
        transform: scale(0.70); /* Shrunk slightly more to match thin header */
        transform-origin: right center;
        margin-right: -10px; 
    }

    .custom-toggler span:nth-child(2) {
        width: 75% !important; 
        right: 0 !important;   
        left: auto !important; 
    }

    /* --- Hero Layout: Anti-Overlap Lock --- */
    .outer-frame { padding: 0; min-height: 100vh; overflow: hidden; }
    
    .hero-container { 
        border-radius: 0; 
        height: 90svh; /* Uses most of the screen */
        min-height: 700px !important; /* MAGIC LOCK: Prevents overlap on tiny phones */
        overflow: hidden; 
        position: relative; 
        display: block; 
        width: 100%;
    }
    
    /* 1. Tags: Pushed up slightly */
    .floating-tags {
        display: block !important;
        position: absolute !important;
        top: 75px !important;
        left: 20px !important;
        max-width: calc(100% - 160px) !important; 
        transform: scale(0.85) !important;
        transform-origin: top left !important;
        z-index: 5;
    }
    
    /* 2. Top Right Info */
    .top-right-info {
        display: block !important;
        position: absolute !important;
        top: 75px !important;
        right: 20px !important;
        max-width: 130px !important; 
        text-align: right;
        transform: scale(0.85);
        transform-origin: top right;
        z-index: 5;
    }

    /* 3. Glass Card: Pulled up to clear text */
    .glass-card {
        display: block !important;
        position: absolute !important;
        top: 42% !important; /* Pulled up from 45% to give the text below more room */
        right: 20px !important;
        transform: translateY(-50%) !important; 
        width: 150px !important; 
        height: max-content !important; 
        bottom: auto !important;
        padding: 12px !important;
        z-index: 8;
    }
    .card-img-wrapper { height: 95px !important; margin-bottom: 8px !important; }
    .glass-card p { font-size: 0.85rem !important; margin: 0 !important; }

    /* 4. Vertical Text */
    .vertical-text { 
        display: block !important; 
        position: absolute !important;
        right: 5px !important; 
        top: 65% !important;
        transform: translateY(-50%) scale(0.7) !important;
        transform-origin: right center !important;
        z-index: 4;
        opacity: 0.6;
        max-width: 90%;
        word-break: break-word;
    }

    /* 5. Main Text: Safe Zone Lock */
    .hero-content {
        display: block !important;
        position: absolute !important;
        bottom: 80px !important; /* Sits perfectly below the glass card */
        left: 20px !important;
        width: calc(100% - 40px) !important;
        z-index: 10;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem); 
        line-height: 1.1;
        margin-bottom: 10px !important;
    }
    
    .hero-subtext {
        font-size: 0.95rem;
        max-width: 90%;
        margin-top: 5px;
    }

    /* 6. Scroll Icon */
    .scroll-icon { 
        display: flex !important; 
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        bottom: 15px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px !important; 
        height: 40px !important;
        z-index: 10;
        margin: 0 !important;
        padding: 0 !important;
    }
    .scroll-icon i { margin: 0 !important; padding: 0 !important; }

    /* --- Reduce Gap Below Hero --- */
    .about-stats-section {
        padding-top: 1rem !important; 
        margin-top: -20px; 
    }
    .about-stats-section .heading-text { margin-bottom: 1.5rem !important; }

    /* --- Other Section Adjustments --- */
    .floating-info-card {
        position: relative;
        bottom: auto;
        right: auto;
        transform: none;
        width: 100%;
        margin-top: -30px;
    }
    .img-wrapper-large { height: 400px; }
    .img-wrapper-small { height: 350px; }
    .mandala-bg { width: 300px; height: 300px; }
    .center-yoga-img { width: 250px; height: 250px; }
    
    .footer-titles h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
    .pose-label { display: none !important; }
    .footer-img-group { margin-top: 0px; }
    #mobile-footer-img { max-width: 150px; }
    .footer-nav { text-align: left !important; margin-top: 20px; }
}

@media (max-width: 768px) {
    .heading-text { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .schedule-tabs { overflow-x: auto; white-space: nowrap; padding-bottom: 5px; scrollbar-width: none; }
    .schedule-tabs::-webkit-scrollbar { display: none; }
    .service-card { min-width: 280px; padding: 25px; }
    .services-scroller { scroll-snap-type: x mandatory; padding-bottom: 20px; }
    .service-card { scroll-snap-align: start; }
    .button-group-styled { flex-direction: column; width: 100%; gap: 10px; }
    .button-group-styled .btn { width: 100%; margin: 0 !important; }

    /* Ensure text doesn't over-scale on the absolute smallest phones */
    .hero-content h1 { font-size: clamp(2rem, 7vw, 2.8rem) !important; }

    .glass-card { 
        width: 130px !important; 
        right: 15px !important;
    }
    .card-img-wrapper { height: 80px !important; }
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */

/* Continuous soft breathing for images and accents */
@keyframes softBreathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* Liquid, drifting float for tags */
@keyframes liquidFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(5px, -8px); }
    66% { transform: translate(-3px, 5px); }
}

/* Custom AOS Blur Reveal (Intimate & Cinematic) */
[data-aos="sensual-reveal"] {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(30px) scale(0.98);
    transition-property: transform, opacity, filter;
}
[data-aos="sensual-reveal"].aos-animate {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Hover smoothness on main images */
.img-wrapper-small img, .img-wrapper-large img, .schedule-img-wrapper img {
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-wrapper-small:hover img, .img-wrapper-large:hover img, .schedule-img-wrapper:hover img {
    transform: scale(1.04);
}

.sensual-texture-overlay {
    animation: subtlePulse 10s ease-in-out infinite;
}

/* Optical alignment to match the nav links baseline */
.navbar-brand {
    transform: translateY(8px); 
}

/* --- ABOUT MEGANE SECTION --- */
.icon-check-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(196, 122, 101, 0.3);
}

.experience-initials {
    font-size: clamp(4rem, 8vw, 6rem); 
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

/* --- THEME BORDER RADIUS ENFORCEMENT --- */
.img-wrapper-small, .img-wrapper-large, .classes-img-wrapper, .schedule-img-wrapper, .video-wrapper, .video-wrapper video {
    border-radius: 3px !important;
}

.floating-info-card, .time-slot {
    border-radius: 5px !important;
}

@media (max-width: 991.98px) {
    .overlap-container { position: relative; width: 100%; display: flex; padding: 0; margin: 0; }
    .overlap-text-col { width: 85% !important; max-width: 85% !important; flex: 0 0 85% !important; position: relative; z-index: 2; padding-right: 10px; }
    .overlap-img-col { width: 55% !important; max-width: 55% !important; flex: 0 0 55% !important; position: absolute !important; right: 0; top: 0; height: 100%; z-index: 1; padding: 0; }
    .overlap-text-col .time-slot.bg-white { background-color: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(4px); box-shadow: 2px 4px 15px rgba(0,0,0,0.08) !important; border-color: rgba(0,0,0,0.1) !important; }
}