/* ==========================================================
   SPECTRA FITNESS — Stylesheet v2
   Brand: premium dark gym · black / gold / white
   Palette: #000 bg · #D4A017 gold · #fff text · #A1A1A1 muted
   Spectrum gradient (signature, max 3 uses):
     linear-gradient(90deg,#8B5CF6,#3B82F6,#10B981,#F59E0B,#EF4444)
   ========================================================== */

/* ===== VARIABLES ===== */
:root {
    --black:          #000000;
    --card-bg:        #0A0A0A;
    --card-bg-2:      #111111;
    --text:           #FFFFFF;
    --text-muted:     #A1A1A1;
    --gold:           #D4A017;
    --gold-dark:      #B8860B;
    --gold-glow:      rgba(212, 160, 23, 0.22);
    --spectrum:       linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981, #F59E0B, #EF4444);
    --border:         rgba(255, 255, 255, 0.07);
    --border-gold:    rgba(212, 160, 23, 0.3);

    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', -apple-system, sans-serif;

    --radius:         12px;
    --radius-sm:      8px;
    --transition:     0.3s ease;
    --shadow:         0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg:      0 16px 64px rgba(0, 0, 0, 0.7);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ===== UTILITY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn-gold {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px var(--gold-glow);
}

.btn-white-outline {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}
.btn-white-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 24px 0;
    transition: background var(--transition), padding var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 16px 0;
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(212, 160, 23, 0.2));
}

/* Centered nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Gold outlined Join Now */
.nav-cta {
    display: inline-block;
    padding: 9px 24px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--black);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X when nav open */
.nav-links.open ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-links.open ~ .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-links.open ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ===== HERO CURSOR GLOW ===== */
.hero-cursor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
        rgba(212, 160, 23, 0.09) 0%,
        rgba(212, 160, 23, 0.03) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    will-change: background;
}

/* ===== HERO DECORATIVE LIGHT BEAMS ===== */
.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-deco-beam {
    position: absolute;
    width: 1.5px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 160, 23, 0.22) 45%,
        rgba(212, 160, 23, 0.22) 55%,
        transparent 100%
    );
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Wider soft halo behind each beam */
.hero-deco-beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 160, 23, 0.04) 45%,
        rgba(212, 160, 23, 0.04) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.beam-1 { height: 55vh; top:  5%; left: 12%; transform: rotate(-26deg); }
.beam-2 { height: 72vh; top: -8%; left: 38%; transform: rotate(-21deg); opacity: 0.75; }
.beam-3 { height: 60vh; top: 15%; left: 63%; transform: rotate(-29deg); opacity: 0.55; }
.beam-4 { height: 42vh; top: 30%; left: 84%; transform: rotate(-17deg); opacity: 0.45; }

/* Swap in a real gym photo here:
   background: url('images/hero-gym.jpg') center / cover no-repeat; */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(212, 160, 23, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 25% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 55%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 140px 28px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 44px;
    filter: drop-shadow(0 8px 40px rgba(212, 160, 23, 0.35));
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.06;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 48px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Spectrum gradient line — signature element #1 of 3 */
.hero-spectrum-line {
    width: 320px;
    max-width: 75vw;
    height: 2px;
    background: var(--spectrum);
    border-radius: 2px;
}

/* ===== PROGRAMS ===== */
.programs {
    padding: 130px 0;
    background: var(--black);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 52px 40px;
    position: relative;
    isolation: isolate;
    transition: transform var(--transition);
}

/* Static subtle border */
.program-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Spectrum gradient border on hover — signature element #2 of 3 */
.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: var(--spectrum);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 2;
}

.program-card:hover::before { opacity: 1; }
.program-card:hover::after  { opacity: 0; }
.program-card:hover { transform: translateY(-6px); }

.program-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 30px;
}
.program-icon svg { width: 100%; height: 100%; }

.program-card h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.program-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== TRAINERS ===== */
.trainers {
    padding: 130px 0;
    background: var(--card-bg);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.trainer-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg-2);
}

.trainer-photo {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

/* When a real photo is added, target it: .trainer-photo img */
.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.1);
    transition: transform 0.6s ease, filter 0.4s ease, brightness 0.4s ease;
}
.trainer-card:hover .trainer-photo img {
    transform: scale(1.06);
    filter: grayscale(1) contrast(1.1) brightness(0.45);
}

/* Placeholder silhouette (shown until real photo is added) */
.trainer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(170deg, #141414 0%, #0d0d0d 100%);
    border-bottom: 1px solid var(--border);
}
.trainer-placeholder svg {
    width: 72px;
    height: auto;
    opacity: 0.6;
}

/* Gold overlay shown on hover (works for real photos) */
.trainer-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.trainer-card:hover .trainer-hover-overlay { opacity: 1; }

.trainer-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.trainer-spec {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
}

/* Name shown below placeholder (before real photo) */
.trainer-meta {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}
.trainer-meta h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}
.trainer-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Hide meta block when trainer has a real photo (add class trainer-card--photo) */
.trainer-card--photo .trainer-meta { display: none; }

/* ===== STATS ===== */
.stats {
    padding: 110px 0;
    background: var(--black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.35);
}

/* ===== LOCATION BRANCH TABS ===== */
.location-branch {
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 16px;
    margin: -16px;
    transition: border-color var(--transition), background var(--transition);
    user-select: none;
}
.location-branch:hover {
    border-color: rgba(212, 160, 23, 0.2);
    background: rgba(212, 160, 23, 0.02);
}
.location-branch.active {
    border-color: rgba(212, 160, 23, 0.35);
    background: rgba(212, 160, 23, 0.05);
}
.location-branch h3 { transition: color var(--transition); }
.location-branch.active h3 { color: var(--gold); }

/* Active branch indicator dot */
.location-branch.active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Map frame toggle */
.map-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.map-frame.map-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* ===== LOCATION ===== */
.location {
    padding: 130px 0;
    background: var(--card-bg);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--border);
    position: relative;
    /* Dark / night map look without API */
    filter: invert(1) hue-rotate(180deg) brightness(0.65) saturate(0.5);
}

.location-info {
    padding-top: 4px;
}

.location-branch h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.loc-address {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.loc-hours {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.hours-row span:first-child {
    color: var(--text);
    font-weight: 500;
}
.hours-row span:last-child {
    color: var(--text-muted);
}

.location-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

.location-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.contact-link:hover { color: var(--gold); }
.contact-link svg { flex-shrink: 0; }

.location-cta {
    margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
}

/* Spectrum gradient top border — signature element #3 of 3 */
.footer-spectrum-line {
    height: 1px;
    background: var(--spectrum);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(212, 160, 23, 0.15));
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.38);
    transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
    padding: 22px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .programs-grid { grid-template-columns: 1fr; gap: 20px; }
    .program-card { padding: 40px 32px; }

    .trainers-grid { grid-template-columns: 1fr 1fr; }

    .stats-grid { gap: 48px; }

    .location-grid { grid-template-columns: 1fr; gap: 52px; }
    .location-map { height: 380px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--black);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 0 40px;
        gap: 32px;
        transform: none;
        z-index: 998;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: 0;
    }
    .nav-cta { display: none; }
    .hamburger { display: flex; z-index: 1000; position: relative; }

    .hero-logo { width: 150px; }
    .hero-spectrum-line { width: 240px; }

    .programs-grid { grid-template-columns: 1fr; }

    .trainers-grid { grid-template-columns: 1fr; gap: 2px; }
    .trainer-photo { aspect-ratio: 4 / 3; }

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

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

@media (max-width: 520px) {
    .container { padding: 0 20px; }

    .programs { padding: 90px 0; }
    .trainers { padding: 90px 0; }
    .stats    { padding: 80px 0; }
    .location { padding: 90px 0; }

    .hero-headline { letter-spacing: -0.3px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-gold, .btn-white-outline { width: 100%; text-align: center; }

    .programs-grid { gap: 16px; }

    .trainer-photo { aspect-ratio: 1 / 1; }

    .stats-grid { gap: 32px; justify-content: center; }

    .location-grid { gap: 40px; }
    .location-map { height: 280px; }
}
