/* =========================================
   SWEAT FACTORY MASTER UNIFIED STYLES
========================================= */
:root {
    --y4: #FFD700; --g9: #09090B; --g8: #18181B; 
    --g6: #3F3F46; --g4: #71717A; --g0: #F4F4F5;
    --display: 'Bebas Neue', sans-serif;
    --sans: 'Inter', sans-serif;
}

body { background-color: var(--g9); color: var(--g0); font-family: var(--sans); margin: 0; line-height: 1.6; overflow-x: hidden; }

/* --- GLOBAL LAYOUT --- */
.sf-container { width: 90%; max-width: 1100px; margin: 0 auto; }
section { padding: 80px 0; }

/* --- NAVIGATION & UTILITY --- */

/* --- THE ULTIMATE HEADER SYNC --- */
.sf-main-nav {
    background: rgba(9, 9, 11, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    min-height: 80px; /* Forces a consistent height */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.sf-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sf-logo img {
    height: 50px; /* Keeps your logo-icon consistent */
    width: auto;
    display: block;
}

.sf-nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.sf-nav-links a {
    color: var(--g0);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.sf-nav-links a:hover, 
.sf-nav-links a.active {
    color: var(--y4);
}

.sf-btn-portal {
    border: 2px solid var(--y4);
    color: var(--y4);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.sf-btn-portal:hover {
    background: var(--y4);
    color: #000;
}

/* --- BUTTONS --- */
.sf-btn-portal, .sf-btn-member, .sf-btn-solid { background: var(--y4); color: #000; padding: 12px 25px; font-weight: 900; text-decoration: none; border-radius: 4px; display: inline-block; text-transform: uppercase; border: none; transition: 0.3s; cursor: pointer; text-align: center; }
.sf-btn-portal:hover, .sf-btn-member:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3); }

/* --- UNIFIED GRID & CARDS (PROGRAMS, PRICING, SHOP) --- */
.sf-grid, .plans-grid, .facility-grid, .membership-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.sf-card, .membership-card, .fac-card, .sf-program-card {
    background: linear-gradient(145deg, rgba(30,30,34,0.6), rgba(9,9,11,0.9)) !important;
    padding: 45px 35px !important;
    border-radius: 28px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

.sf-card:hover, .membership-card:hover, .fac-card:hover {
    border-color: rgba(255, 215, 0, 0.3) !important; 
    transform: translateY(-12px) rotate(1deg) !important; 
    box-shadow: 0 22px 50px rgba(255, 215, 0, 0.12) !important; 
}

/* Card Internal Typography */
.sf-card h3, .membership-card h3, .fac-card h3 { font-family: var(--display); font-size: 2.2rem; margin-bottom: 15px; }
.sf-price, .sf-price-tag, .sf-price-display { font-size: 3.5rem; font-weight: 900; color: var(--y4); font-family: var(--display); margin: 10px 0; }
.sf-price span, .sf-price-tag span { font-size: 1rem; color: var(--g4); font-family: var(--sans); text-transform: lowercase; }

/* --- ABOUT PAGE CONTENT & FORM --- */
.sf-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sf-form-box-master { width: 100%; max-width: 550px; margin: 0 auto; background: var(--g8); padding: 50px; border-radius: 12px; border: 1px solid rgba(255, 215, 0, 0.2); }
.sf-input-group { margin-bottom: 25px; text-align: left; }
.sf-input-group label { display: block; color: var(--y4); font-weight: 700; font-size: 0.8rem; margin-bottom: 8px; text-transform: uppercase; }
.sf-input-group input, .sf-input-group select, .sf-input-group textarea { width: 100%; padding: 15px; background: var(--g9); border: 1px solid var(--g6); border-radius: 4px; color: white; box-sizing: border-box; }


/* --- PREMIUM UNIFIED FOOTER --- */
.sf-footer {
    background: #000;
    padding: 100px 0 40px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 100px;
    position: relative;
}

/* The Gold Top Glow */
.sf-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--y4);
    box-shadow: 0 0 20px var(--y4);
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.sf-footer-brand h3 {
    font-family: var(--display);
    font-size: 2.5rem;
    color: var(--y4);
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

.sf-footer-brand p {
    color: var(--g4);
    font-size: 0.95rem;
    line-height: 1.8;
}

.sf-footer h4 {
    color: white;
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.sf-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-footer-links li {
    margin-bottom: 12px;
}

.sf-footer-links a {
    color: var(--g4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.sf-footer-links a:hover {
    color: var(--y4);
    padding-left: 5px;
}

.sf-footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sf-footer-bottom p {
    color: var(--g6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   SCHEDULE CALENDAR
========================================= */
.sf-day-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.sf-day-tabs .nav-item {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--g4);
    font-family: var(--display);
    font-size: 1.5rem;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}
.sf-day-tabs .nav-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    color: white;
}
.sf-day-tabs .nav-item.active {
    background: var(--y4);
    color: #000;
    border-color: var(--y4);
    box-shadow: var(--yellow-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sf-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.sf-class-card {
    position: relative;
    padding: 30px !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.class-time {
    font-family: var(--display);
    font-size: 2.5rem;
    color: var(--y4);
    margin-bottom: 5px;
    line-height: 1;
}
.class-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-family: var(--sans);
    font-weight: 900;
    text-transform: uppercase;
}
.class-desc {
    color: var(--g4);
    font-size: 0.85rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.sf-btn-outline {
    border: 1px solid rgba(255,215,0,0.5);
    color: var(--y4);
    background: transparent;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: auto;
}
.sf-btn-outline:hover {
    background: var(--y4);
    color: #000;
}

/* Class Type Accents */
.border-aerobics { border-left: 6px solid #FF3366 !important; }
.border-strength { border-left: 6px solid #8A2BE2 !important; }
.border-fatburner { border-left: 6px solid #FF8C00 !important; }
.border-boxing { border-left: 6px solid #00BFFF !important; }
.border-kids { border-left: 6px solid #32CD32 !important; }
/* =========================================
   HAMBURGER MENU
========================================= */
.sf-hamburger {
    display: none !important;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 4000;
}
.sf-hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #FFD700 !important; /* Force vivid yellow */
    border-radius: 10px;
    transition: all 0.3s ease;
}
.sf-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sf-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sf-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.sf-mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9,9,11,0.98);
    backdrop-filter: blur(20px);
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 100px 30px 60px;
    overflow-y: auto;
}
.sf-mobile-nav.is-open { display: flex; }
.sf-mobile-nav a {
    color: white;
    text-decoration: none;
    font-family: var(--display);
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.2s;
    text-align: center;
}
.sf-mobile-nav a:hover,
.sf-mobile-nav a.active,
.sf-mobile-nav a.sf-login-highlight { color: var(--y4); }
.sf-mobile-nav a.sf-login-highlight { font-weight: 900; border-top: 1px solid rgba(255,215,0,0.2); padding-top: 15px; width: 100%; }
.sf-mobile-nav .sf-btn-portal {
    margin-top: 20px;
    font-size: 0.9rem;
    padding: 14px 30px;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

/* --- MOBILE BREAKPOINT (≤ 850px) --- */
@media (max-width: 850px) {
    .sf-story-grid,
    .sf-corp-split,
    .sf-corp-form-grid { grid-template-columns: 1fr !important; }

    .sf-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    /* Hide desktop nav links, show hamburger */
    .sf-nav-links { display: none !important; }
    .sf-main-nav { z-index: 4010 !important; transition: background 0.3s, border-color 0.3s; }
    .sf-main-nav .sf-btn-portal { display: none !important; }
    .sf-hamburger { display: flex !important; }

    /* When menu is open, make the header bar transparent and hide the logo to allow scrolling */
    body.nav-open .sf-main-nav { 
        background: transparent !important; 
        border-color: transparent !important; 
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    body.nav-open .sf-logo { opacity: 0; pointer-events: none; }
}

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {

    /* Utility bar: wrap & reduce */
    .sf-utility-bar .sf-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        font-size: 0.7rem;
    }
    .sf-utility-bar .sf-container span { margin: 0 6px !important; }

    /* Section padding */
    section { padding: 60px 0; }

    /* Typography scale-down */
    h1, h2 { font-size: clamp(2.2rem, 10vw, 5rem) !important; line-height: 0.95 !important; }
    h3 { font-size: clamp(1.4rem, 5vw, 2.2rem) !important; }

    /* Hero section – index.html */
    .sf-hero-text h1 { font-size: clamp(3rem, 12vw, 6rem) !important; }

    /* Fix inline two-column hero grids */
    [style*="grid-template-columns: 1.2fr 0.8fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Hero image height on mobile */
    .sf-hero-text + div img { height: 300px !important; }

    /* CTA button group stacking */
    [style*="display: flex; gap: 20px"] {
        flex-direction: column;
        gap: 14px !important;
        align-items: flex-start;
    }

    /* Cards */
    .sf-card, .membership-card, .fac-card {
        padding: 30px 22px !important;
    }

    /* Grid min column width */
    .sf-grid, .plans-grid, .facility-grid, .membership-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Corporate section glass form panel */
    #corporate .sf-glass { padding: 30px 20px !important; }

    /* About – facility image strip */
    [style*="display: flex; width: 100%; height: 400px"] {
        flex-direction: column;
        height: auto !important;
    }
    [style*="display: flex; width: 100%; height: 400px"] > div {
        height: 200px;
        flex: none !important;
    }

    /* Cinematic banner height */
    [style*="height: 500px"][style*="flex; align-items: center"] {
        height: auto !important;
        padding: 80px 0 !important;
    }

    /* Programs – SF card number badge */
    .sf-card > span[style*="3.5rem"] { font-size: 2rem !important; }

    /* Gallery grid min-col */
    .sf-gallery-grid { grid-template-columns: 1fr !important; }
    .sf-gallery-item { height: 250px !important; }

    /* Footer */
    .sf-footer { padding: 60px 0 30px; margin-top: 60px; }
    .sf-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }

    /* Footer bottom */
    [style*="display:flex; justify-content: space-between; border-top"] {
        flex-direction: column !important;
        gap: 8px;
        text-align: center;
    }

    /* Form grids inside corporate + about */
    [style*="grid-template-columns: 1fr 1fr; gap: 20px"] {
        grid-template-columns: 1fr !important;
    }

    /* About corporate form card */
    .sf-glass[style*="max-width: 600px"] { padding: 35px 22px !important; }

    /* Shop hero right image */
    .sf-story-grid [style*="text-align: right"] { text-align: center !important; }

    /* Programs – free PT banner */
    .sf-card[style*="border-left: 6px solid"][style*="display: flex"] {
        flex-direction: column !important;
        text-align: center;
    }
}

/* --- SMALL MOBILE (≤ 480px) --- */
@media (max-width: 480px) {

    .sf-container { width: 94%; }

    /* Nav logo size */
    .sf-logo img { height: 38px !important; }

    /* Hero display text */
    h1 { font-size: clamp(2.5rem, 13vw, 4rem) !important; }
    h2 { font-size: clamp(2rem, 11vw, 3.5rem) !important; }

    /* Mobile nav font size */
    .sf-mobile-nav a { font-size: 2rem; }

    /* Card padding */
    .sf-card, .membership-card { padding: 24px 18px !important; }

    /* Price display */
    .sf-price, .sf-price-tag { font-size: 2.5rem !important; }

    /* Blog card image */
    article.sf-card img { height: 180px !important; }

    /* Gallery item */
    .sf-gallery-item { height: 200px !important; }

    /* Utility bar hide pipes on tiny screens */
    .sf-utility-bar .sf-container span[style*="margin: 0 20px"] { display: none; }

    /* Section padding */
    section { padding: 50px 0; }

    /* Corporate form submit button */
    #corp-submit-btn { font-size: 1rem !important; padding: 15px 20px !important; }
}

/* =========================================
   PREMIUM & DYNAMIC DESIGN SYSTEM ELEVATIONS
========================================= */

/* Vivid Yellow Gradients & Glows (Per User Request: Yellow, not Gold) */
:root {
    --yellow-grad: linear-gradient(135deg, #FFD700, #FFF500);
    --yellow-glow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--g9);
}
::-webkit-scrollbar-thumb {
    background: var(--g6);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--y4);
}

/* Text Gradient Utility */
.text-gradient {
    background: var(--yellow-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Classes */
.sf-glass {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.6), rgba(9, 9, 11, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 28px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Micro Animations */
.hover-lift {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-lift:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: var(--yellow-glow);
    border-color: var(--y4) !important;
}

/* Floating Form Labels */
.sf-form-floating {
    position: relative;
    margin-bottom: 30px;
}
.sf-form-floating input,
.sf-form-floating select,
.sf-form-floating textarea {
    width: 100%;
    padding: 20px 15px 10px 15px;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s ease;
    font-family: var(--sans);
}
.sf-form-floating label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--g4);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
}
.sf-form-floating input:focus,
.sf-form-floating select:focus,
.sf-form-floating textarea:focus {
    outline: none;
    border-color: var(--y4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
.sf-form-floating input:focus ~ label,
.sf-form-floating input:not(:placeholder-shown) ~ label,
.sf-form-floating select ~ label {
    top: 5px;
    left: 15px;
    font-size: 0.65rem;
    color: var(--y4);
    text-transform: uppercase;
    font-weight: 700;
}
