/* ALIGN YOGA & PILATES - COMPLETE MASTER STYLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --forest-green: #3A5F4F;
    --gold: #C3A077;
    --cream: #FDFBF8;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --light-grey: #F0F0F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--cream); 
    color: var(--text-dark);
    line-height: 1.6;
}

section { width: 100%; clear: both; position: relative; }

/* --- 1. GLOBAL COMPONENTS --- */
.opening-banner { background: var(--gold); color: white; text-align: center; padding: 12px; font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; position: relative; z-index: 1200; }

header {
    background: var(--forest-green);
    padding: 0 40px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
}
.logo img { height: 45px; width: auto; position: relative; z-index: 1200; }

/* Desktop Navigation */
nav { display: flex; gap: 20px; align-items: center; }
nav a { color: white; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 1px; transition: 0.3s; }
nav a:hover { color: var(--gold); }
nav a.nav-cta { background: var(--gold); padding: 10px 18px; border-radius: 4px; font-weight: 600; }

/* --- HAMBURGER MENU ICON (Hidden on Desktop) --- */
.hamburger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1200;
}
.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: 0.3s ease;
}

footer { background: white; padding: 60px 20px; text-align: center; border-top: 1px solid #eee; }
footer a { color: var(--gold); text-decoration: none; margin: 0 10px; font-size: 14px; }

/* --- 2. HOME & ABOUT HERO --- */
.hero { height: 75vh; min-height: 500px; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-bg.jpg') center/cover no-repeat; background-color: var(--forest-green); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 4px; line-height: 1.1; }
.cta-button { background: var(--gold); color: white; text-decoration: none; padding: 18px 40px; border-radius: 4px; font-weight: 600; text-transform: uppercase; display: inline-block; }

.mobile-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 850px; margin: -60px auto 60px; padding: 0 20px; z-index: 100; }
.nav-card { background: white; height: 140px; display: flex; justify-content: center; align-items: center; text-decoration: none; color: var(--forest-green); font-weight: 600; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-bottom: 4px solid var(--gold); text-transform: uppercase; text-align: center; padding: 10px;}

.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; background: white; }
.hero-image { background: var(--forest-green) url('about-hero.jpg') center/cover no-repeat; }
.hero-text { padding: 80px; display: flex; flex-direction: column; justify-content: center; background: var(--cream); }

/* --- 3. SUB-PAGE CONTAINER (Pricing, Terms, etc.) --- */
.container { max-width: 850px; margin: 60px auto; background: white; padding: 50px; border-top: 8px solid var(--forest-green); box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 4px; }
.container h1 { color: var(--forest-green); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; text-align: center; }
.container h2 { color: var(--forest-green); font-size: 1.25rem; margin-top: 40px; border-bottom: 1px solid var(--gold); padding-bottom: 8px; margin-bottom: 20px; }

/* --- 4. CLASSES PAGE SPECIFICS --- */
.page-title { text-align: center; padding: 80px 20px; background: white; border-bottom: 1px solid #eee; }
.page-title h1 { color: var(--forest-green); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.page-title p { color: #666; max-width: 600px; margin: 0 auto; }

.tab-container { display: flex; justify-content: center; gap: 20px; padding: 30px; background: white; position: sticky; top: 80px; z-index: 100; border-bottom: 1px solid #eee; }
.tab-btn { padding: 10px 40px; border: 2px solid var(--forest-green); background: none; color: var(--forest-green); font-weight: 600; cursor: pointer; border-radius: 50px; transition: 0.3s; }
.tab-btn.active { background: var(--forest-green); color: white; }

.class-section { display: none; max-width: 1100px; margin: 60px auto; grid-template-columns: 1fr 1fr; gap: 30px; padding: 0 20px; }
.class-section.active { display: grid; }
.class-card { background: white; border-radius: 12px; overflow: hidden; display: flex; box-shadow: 0 4px 15px rgba(0,0,0,0.05); height: 280px; }
.class-img { width: 40%; background-size: cover; background-position: center; background-color: #eee; }
.class-content { padding: 25px; width: 60%; display: flex; flex-direction: column; justify-content: center; }
.class-tag { font-size: 11px; text-transform: uppercase; color: var(--gold); font-weight: bold; letter-spacing: 1px; }
.book-btn { margin-top: 15px; color: var(--forest-green); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--gold); display: inline-block; width: fit-content; }

/* --- 5. CONTACT PAGE SPECIFICS --- */
.contact-section { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.map-embed { height: 350px; margin-top: 20px; overflow: hidden; border-radius: 12px; border: 1px solid #eee; }
.cta-action { display: block; text-align: center; background: var(--gold); color: white; padding: 15px; border-radius: 4px; text-decoration: none; font-weight: 600; margin-top: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Mobile Header Layout */
    header { 
        padding: 15px 20px 5px; 
        height: auto; 
        flex-direction: column; 
    }
    .logo img { margin-bottom: 12px; }
    
    /* Universal Mobile Menu (Android & Apple Optimized) */
    nav { 
        display: flex; 
        width: 100%; 
        overflow-x: scroll; /* Forces the track to remain permanently visible */
        padding-bottom: 15px; 
        justify-content: flex-start; 
        -webkit-overflow-scrolling: touch; 
    }
    
    /* The Apple Visual Cue: Spaces the links so the last one is cut off */
    nav a { flex-shrink: 0; font-size: 11px; margin-right: 15px; }
    nav a:last-child { margin-right: 20px; }

    /* The Android Custom Gold Scrollbar (Forced Display) */
    nav::-webkit-scrollbar { 
        height: 6px !important; 
        display: block !important;
        -webkit-appearance: none !important;
    }
    nav::-webkit-scrollbar-track { 
        background: #F0F0F0 !important; 
        border-radius: 4px !important; 
    }
    nav::-webkit-scrollbar-thumb { 
        background-color: #C3A077 !important; 
        border-radius: 4px !important; 
    }

    /* Page Element Resets */
    .hero h1 { font-size: 2.2rem; }
    .mobile-nav-grid { margin-top: 20px; grid-template-columns: 1fr; }
    
    /* Ensure all complex grids stack on mobile */
    .hero-split, .class-section, .contact-grid, .values-grid, .team-container { grid-template-columns: 1fr; }
    
    .class-card { flex-direction: column; height: auto; }
    .class-img { width: 100%; height: 200px; }
    .class-content { width: 100%; }
    .container { padding: 30px 20px; margin: 20px; }
}

/* --- MARIANA TEK 2-COLUMN GRID FIX --- */
/* This forces the injected memberships into a 2-column grid on desktop */
.buy-page-items-list, 
.mt-buy-page-items, 
.buy-page-section-items {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    align-items: stretch !important;
}

/* Ensures the section headers (e.g., "MEMBERSHIPS") still take up the full width */
.buy-page-section-header, 
.mt-buy-page-section-header {
    grid-column: 1 / -1 !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

/* --- MOBILE RESPONSIVENESS --- */
/* Snaps the grid back to 1 column on mobile phones so it stays readable */
@media (max-width: 768px) {
    .buy-page-items-list, 
    .mt-buy-page-items, 
    .buy-page-section-items {
        grid-template-columns: 1fr !important;
    }
}
