/* ============================================================
   BASE SITE LAYOUT — METAFLEX (restored)
   These rules were missing from app.css (nav, footer, switch,
   hero, gallery, stat cards, etc.) — reconstructed to match the
   theme tokens already defined in resources/css/app.scss
   ($primary: #26452D forest green, $secondary: #D26539 rust orange).
   ============================================================ */

:root {
    --mf-primary: #26452D;
    --mf-secondary: #D26539;
    --mf-dark: #121212;
    --mf-darker: #0c0c0c;
    --mf-light: #F8F9FA;
}

* { box-sizing: border-box; }

/* Bootstrap's default --bs-secondary-color / --bs-body-color-rgb are tuned
   for LIGHT backgrounds (near-black at low opacity). Since this whole site
   is a dark theme, .text-muted (and anything relying on those vars) was
   rendering almost invisible on dark sections. Override for readability. */
:root {
    --bs-secondary-color: rgba(255, 255, 255, 0.6);
    --bs-body-color: #F8F9FA;
    --bs-border-color: rgba(255, 255, 255, 0.1);
}
.text-muted { color: rgba(255, 255, 255, 0.6) !important; }

html, body {
    background-color: var(--mf-dark);
    color: var(--mf-light);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
}

a { text-decoration: none; }

.fw-black { font-weight: 900; }
.tracking-tighter { letter-spacing: -0.03em; }
.tracking-widest { letter-spacing: 0.15em; }
.text-brand { color: var(--mf-secondary) !important; }
.bg-darker { background-color: var(--mf-darker); }
.py-100 { padding: 100px 0; }
.section-py { padding: 100px 0; }
.pb-navbar-clear { padding-bottom: 140px; }

/* Glass panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* Top branding logo (fixed/absolute, sits above every hero) */
.site-logo-wrap { pointer-events: none; }
.site-logo-wrap .navbar-brand { pointer-events: auto; }
.site-logo-img { height: 95px; width: auto; }
@media (max-width: 767.98px) {
    .site-logo-img { height: 60px; }
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 160px;
    padding-bottom: 80px;
}
.hero-subtitle {
    letter-spacing: 0.2em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 767.98px) {
    .hero-section { padding-top: 130px; }
}

/* Stats strip */
.stats-section { background: var(--mf-darker); }
.stat-card { padding: 1rem; }
.stat-icon { font-size: 2rem; color: var(--mf-secondary); margin-bottom: 0.75rem; }
.stat-title { font-weight: 800; letter-spacing: 0.05em; font-size: 0.95rem; }
.stat-sub { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }

/* Gallery */
.gallery-item-premium { position: relative; overflow: hidden; border-radius: 0; }
.gallery-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.gallery-item-premium:hover .gallery-img { filter: grayscale(0%); transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item-premium:hover .gallery-overlay { opacity: 1; }

/* Facility / club / trainer cards */
.facility-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.facility-card:hover { transform: translateY(-6px); border-color: var(--mf-secondary); }

.club-card { transition: transform 0.3s ease; overflow: hidden; border-radius: 20px; }
.club-card:hover { transform: translateY(-10px); }
.club-card img { transition: transform 0.5s ease; height: 400px; object-fit: cover; }
.club-card:hover img { transform: scale(1.1); }
.club-card .card-img-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.trainer-card { border: none; background: none; }
.trainer-card .img-container { border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem; }
.trainer-card span { color: var(--mf-secondary); font-size: 0.9rem; font-weight: 600; }

/* Buttons */
.btn-secondary {
    background: var(--mf-secondary) !important;
    border-color: var(--mf-secondary) !important;
    color: #fff !important;
}
.btn-outline-secondary {
    color: var(--mf-secondary) !important;
    border-color: var(--mf-secondary) !important;
}
.btn-outline-secondary:hover {
    background: var(--mf-secondary) !important;
    color: #fff !important;
}

/* ============================================================
   TOP BRANDING + GYM / SWIM MODE SWITCH
   ============================================================ */
.mode-switch-wrap {
    top: 22px;
    right: 30px;
}
.mode-switch {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border-radius: 50px;
    padding: 5px;
}
.mode-thumb {
    position: absolute;
    top: 5px; bottom: 5px;
    width: calc(50% - 5px);
    border-radius: 50px;
    transition: left 0.4s cubic-bezier(.65,0,.35,1), background 0.4s ease;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.mode-thumb.thumb-gym { left: 5px; background: linear-gradient(135deg, #ff3b3b, #a8121f); }
.mode-thumb.thumb-swim { left: calc(50% + 0px); background: linear-gradient(135deg, #35a7ff, #0d3b66); }
.mode-opt {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.mode-opt.is-active, .mode-opt:hover { color: #fff; }

@media (max-width: 767.98px) {
    .mode-switch-wrap { top: auto; bottom: 100px; right: 50%; transform: translateX(50%); }
    .mode-opt span { display: none; }
    .mode-opt { padding: 10px 14px; }
}

/* ============================================================
   PILL BOTTOM NAV
   ============================================================ */
.bottom-nav-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    max-width: calc(100% - 30px);
}
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
}
.nav-links-wrapper a, .nav-links-wrapper button {
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    padding: 10px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}
.nav-links-wrapper a.active,
.nav-links-wrapper a:hover,
.nav-links-wrapper button:hover {
    color: #fff;
    background: var(--mf-secondary);
}
body.is-hydroflex .nav-links-wrapper a.active,
body.is-hydroflex .nav-links-wrapper a:hover {
    background: #35a7ff;
}
.mobile-nav-toggle {
    display: none;
    align-items: center;
    color: #fff;
    background: none;
    border: none;
    padding: 12px 22px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}
@media (max-width: 767.98px) {
    .mobile-nav-toggle { display: flex; }
    .nav-links-wrapper {
        display: none;
        position: absolute;
        bottom: 60px;
        left: 0;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.97);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px;
        width: 220px;
    }
    .nav-links-wrapper.show { display: flex; }
    .nav-links-wrapper a, .nav-links-wrapper button { width: 100%; text-align: left; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-premium {
    background: var(--mf-darker);
    padding-top: 90px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 60px;
}
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover { color: var(--mf-secondary); padding-left: 4px; }
.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

/* ============================================================
   HYDROFLEX PAGE — was completely unstyled before (this is why
   the eyebrow/logo/title were all stacking on top of each other).
   ============================================================ */
:root {
    --hydro-primary: #35a7ff;
    --hydro-dark: #0d3b66;
    --hydro-deep: #071c33;
}

.text-hydro { color: var(--hydro-primary) !important; }

/* Hero */
.hydro-hero {
    min-height: 100vh;
    width: 100%;
    padding: 200px 20px 140px;
    background: radial-gradient(120% 100% at 50% 0%, var(--hydro-dark) 0%, var(--hydro-deep) 55%, #050d18 100%);
    isolation: isolate;
}
.hydro-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.65);
}
.hydro-hero-title {
    font-size: clamp(2.1rem, 6vw, 4.5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hydro-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
}
.hydro-hero-sub strong { color: var(--hydro-primary); }

/* Rising bubbles */
.hydro-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.hydro-bubbles span {
    position: absolute;
    bottom: -60px;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation-name: hydro-bubble-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes hydro-bubble-rise {
    0%   { transform: translateY(0) scale(0.8); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-115vh) scale(1.2); opacity: 0; }
}

/* Waves at base of hero, masking into the next section */
.hydro-wave-wrap {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    line-height: 0;
    z-index: 1;
}
.hydro-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; }
.hydro-wave-back { fill: rgba(53, 167, 255, 0.25); animation: hydro-wave-drift 12s ease-in-out infinite alternate; }
.hydro-wave-front { fill: var(--mf-dark); animation: hydro-wave-drift 9s ease-in-out infinite alternate-reverse; }
@keyframes hydro-wave-drift {
    from { transform: translateX(-2%); }
    to   { transform: translateX(2%); }
}

@media (max-width: 767.98px) {
    .hydro-hero { padding: 150px 16px 110px; }
    .hydro-wave { height: 50px; }
}

/* Buttons */
.btn-hydro {
    background: linear-gradient(135deg, var(--hydro-primary), var(--hydro-dark));
    border: none;
    color: #fff !important;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.btn-hydro:hover { filter: brightness(1.15); transform: translateY(-2px); color: #fff !important; }
.btn-outline-hydro {
    color: var(--hydro-primary) !important;
    border: 2px solid var(--hydro-primary);
    background: transparent;
}
.btn-outline-hydro:hover { background: var(--hydro-primary); color: #fff !important; }

/* Facility cards (amenities grid) reuse .facility-card, just recolor the hover accent */
.facility-card-hydro:hover { border-color: var(--hydro-primary) !important; }

/* Aqua program cards */
.aqua-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.aqua-card:hover { transform: translateY(-6px); border-color: var(--hydro-primary); }
.aqua-card-icon { font-size: 1.8rem; color: var(--hydro-primary); margin-bottom: 0.75rem; }
.aqua-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(53, 167, 255, 0.12);
    border: 1px solid rgba(53, 167, 255, 0.3);
    color: #8ecbff;
    white-space: nowrap;
}

/* Pricing */
.price-card-hydro {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card-hydro:hover { transform: translateY(-8px); border-color: var(--hydro-primary); }

.hydro-price-toggle {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 5px;
}
.hydro-price-thumb {
    position: absolute;
    top: 5px; bottom: 5px; left: 5px;
    width: calc(50% - 5px);
    border-radius: 50px;
    background: linear-gradient(135deg, var(--hydro-primary), var(--hydro-dark));
    transition: left 0.4s cubic-bezier(.65,0,.35,1);
    z-index: 1;
}
.hydro-price-opt {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    padding: 12px 22px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.hydro-price-opt.is-active, .hydro-price-opt:hover { color: #fff; }

@media (max-width: 575.98px) {
    .hydro-price-toggle { flex-direction: column; width: 100%; }
    .hydro-price-thumb { display: none; }
    .hydro-price-opt { width: 100%; }
    .hydro-price-opt.is-active { background: linear-gradient(135deg, var(--hydro-primary), var(--hydro-dark)); }
}

/* Section eyebrow — small kicker label above headings for premium hierarchy */
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3em;
}

/* Premium hover glow for hydro cards */
.aqua-card:hover,
.price-card-hydro:hover,
.facility-card-hydro:hover {
    box-shadow: 0 20px 45px -20px rgba(53, 167, 255, 0.45);
}

/* Hydroflex gallery tile — same premium reveal as the main gallery,
   with a soft blue glow ring on hover to match the swim theme */
.gallery-item-hydro { position: relative; }
.gallery-item-hydro::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0 rgba(53, 167, 255, 0.8);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}
.gallery-item-hydro:hover::after { box-shadow: inset 0 0 0 3px rgba(53, 167, 255, 0.8); }

@media (prefers-reduced-motion: reduce) {
    .hydro-bubbles span, .hydro-wave-back, .hydro-wave-front {
        animation: none !important;
    }
}
.social-icon:hover { background: var(--mf-secondary); border-color: var(--mf-secondary); transform: translateY(-3px); }