/* ============================================================
   Cocoa Beach Fight Club BJJ & Fitness — Custom Styles
   ============================================================ */

:root {
    --crimson: #DC2626;
    --crimson-dark: #B91C1C;
    --crimson-glow: rgba(220, 38, 38, 0.35);
    --gold: #F59E0B;
    --gold-glow: rgba(245, 158, 11, 0.3);
    --bg-primary: #0A0A0A;
    --bg-card: #111111;
    --bg-card-hover: #1A1A1A;
    --text-primary: #F5F5F5;
    --text-muted: #A3A3A3;
    --glass-bg: rgba(10, 10, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Base ------------------------------------------------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Glassmorphism Nav ------------------------------------ */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
}

/* --- Buttons ---------------------------------------------- */
.btn-cta {
    background: var(--crimson);
    color: #fff;
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 0 20px var(--crimson-glow);
}

.btn-cta:hover {
    background: var(--crimson-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--crimson-glow);
}

.btn-outline {
    border: 2px solid var(--crimson);
    color: var(--crimson);
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.6rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--crimson);
    color: #fff;
    box-shadow: 0 0 20px var(--crimson-glow);
}

/* --- Cards ------------------------------------------------ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.35s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(220, 38, 38, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Rating Stars ----------------------------------------- */
.star-gold {
    color: var(--gold);
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

/* --- Hero Section ----------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(220, 38, 38, 0.08) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.015) 50px,
            rgba(255, 255, 255, 0.015) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.015) 50px,
            rgba(255, 255, 255, 0.015) 51px
        );
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* --- Rating Badge ----------------------------------------- */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}

/* --- Section Divider -------------------------------------- */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--crimson);
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 12px var(--crimson-glow);
}

/* --- Review Card ------------------------------------------ */
.review-card {
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 4rem;
    font-family: 'Teko', sans-serif;
    color: var(--crimson);
    opacity: 0.2;
    line-height: 1;
}

/* --- Coach Card ------------------------------------------- */
.coach-card {
    text-align: center;
}

.coach-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 25px var(--crimson-glow);
}

/* --- Mobile CTA Bar -------------------------------------- */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--crimson);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .mobile-cta-bar {
        display: none !important;
    }
}

/* --- Scroll Reveal ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Map Container ---------------------------------------- */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
}

/* --- Mobile Menu ------------------------------------------ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--crimson);
}

/* --- Hamburger -------------------------------------------- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 50;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Scrollbar -------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

/* --- Footer bottom spacing for mobile CTA ---------------- */
@media (max-width: 767px) {
    footer {
        padding-bottom: 5rem !important;
    }
}

/* --- Focus styles ----------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 2px;
}
