/* 
   Legacy One BJJ - Premium Design System
   Core Visual Tokens, Glassmorphism, Responsive Grids and Micro-Animations
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&family=Syne:wght@700;800&display=swap');

:root {
    /* Color Palette - Premium White/Light Mode */
    --bg-dark-1: #ffffff;
    --bg-dark-2: #f8f9fa;
    --bg-dark-3: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --primary: #f15931; /* Original Legacy Orange */
    --primary-rgb: 241, 89, 49;
    --accent-cobre: #d97706; /* Premium Copper */
    --accent-cobre-rgb: 217, 119, 6;
    
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(248, 250, 252, 0.85);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glass-highlight: rgba(241, 89, 49, 0.3);
    
    /* Layout & Spacing */
    --font-heading: 'Outfit', sans-serif;
    --font-alt-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 10px 25px rgba(241, 89, 49, 0.2);
    --shadow-glow-cobre: 0 10px 25px rgba(217, 119, 6, 0.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-1);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #fffbf5 0%, var(--bg-dark-1) 60%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title-xl {
    font-family: var(--font-alt-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
}

.title-xl .static-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    display: inline-block;
}

.title-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    background: linear-gradient(135deg, #0f172a 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cobre) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Styles */
.glass-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-container:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-dark-3);
    border-radius: 10px;
    border: 2px solid var(--bg-dark-1);
}

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

/* Layout Core */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.5rem 0;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-link img {
    height: 46px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Logo toggling on transparent vs scrolled header */
header:not(.scrolled) .logo-dark {
    display: none !important;
}

header:not(.scrolled) .logo-light {
    display: block !important;
}

header.scrolled .logo-light {
    display: none !important;
}

header.scrolled .logo-dark {
    display: block !important;
}

/* Nav links styling on transparent vs scrolled header */
header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

header:not(.scrolled) .nav-link:hover {
    color: #ffffff;
}

header:not(.scrolled) .logo-link {
    color: #ffffff;
}

header:not(.scrolled) .mobile-toggle span {
    background-color: #ffffff;
}

.logo-link span {
    color: var(--primary);
}

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cobre) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
    box-shadow: 0 0 15px rgba(241, 89, 49, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cobre));
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--text-primary);
    color: var(--bg-dark-1);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.15);
    transition: var(--transition-bounce);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(255, 255, 255, 0.25);
    background: var(--primary);
    color: var(--text-primary);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 102;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: var(--transition-bounce);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 101;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
    z-index: 1; /* Creates a stacking context so z-index: -1 on children doesn't render behind body background */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; 
    filter: brightness(0.85) contrast(115%) saturate(125%); /* Rich, vibrant, highly-illuminated cinematic treatment */
    transition: var(--transition-smooth);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.8) 100%); /* Darker behind left text, bright over center tatami details */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge-premium {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(241, 89, 49, 0.15);
    border: 1px solid rgba(241, 89, 49, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ff7d5c !important; /* Brighter orange for high contrast on dark banner */
}

@media (max-width: 991px) {
    .badge-premium {
        align-self: center;
    }
}

/* Word Rotator styling */
.rotator-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.3em;
    margin-left: 0.1em;
    font-size: 0.78em; /* Slightly smaller to prevent text wrapping on UMA COMUNIDADE */
}

.rotator-words {
    display: inline-block;
    animation: rotateWordsFour 12s infinite cubic-bezier(0.76, 0, 0.24, 1);
}

.rotator-words span {
    display: block;
    line-height: 1.3em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cobre) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.1em;
    white-space: nowrap; /* Never wrap */
}

@keyframes rotateWordsFour {
    0%, 20% { transform: translateY(0); opacity: 1; filter: blur(0); }
    22% { opacity: 0; filter: blur(4px); }
    25%, 45% { transform: translateY(-1.3em); opacity: 1; filter: blur(0); }
    47% { opacity: 0; filter: blur(4px); }
    50%, 70% { transform: translateY(-2.6em); opacity: 1; filter: blur(0); }
    72% { opacity: 0; filter: blur(4px); }
    75%, 95% { transform: translateY(-3.9em); opacity: 1; filter: blur(0); }
    97% { opacity: 0; filter: blur(4px); }
    100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.hero-desc {
    font-size: 1.15rem;
    color: #e2e8f0 !important; /* light slate gray for excellent contrast on dark banner */
    max-width: 580px;
    font-weight: 300;
}

@media (max-width: 991px) {
    .hero-desc {
        margin: 0 auto;
    }
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .hero-ctas {
        justify-content: center;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cobre) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(241, 89, 49, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* Floating Card / Interactive element in Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-backdrop-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 89, 49, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

.hero-showcase-card {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.showcase-stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.showcase-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.showcase-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(241, 89, 49, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(241, 89, 49, 0.2);
}

.showcase-stat-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.showcase-stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Common Styling */
.section {
    padding: 100px 0;
    position: relative;
}

/* Section-Specific Backgrounds & Contrasts (Premium Visual Identity) */
#sobre {
    background: radial-gradient(circle at 10% 20%, rgba(241, 89, 49, 0.018) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.018) 0%, transparent 40%),
                #f2f3f6; /* Slightly deeper alabaster gray for distinct contrast */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06); /* More visible clean separator */
}

#metodologia {
    background: linear-gradient(180deg, #f2f3f6 0%, #e2e5e9 100%); /* Deeper rich slate gray background */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

#grade {
    background: radial-gradient(circle at 50% 50%, rgba(241, 89, 49, 0.015) 0%, transparent 60%),
                #ffffff; /* Pure white background to make the table pop enormously */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

#equipe {
    background: linear-gradient(180deg, #ffffff 0%, #f4f3ef 50%, #eae8e1 100%); /* Deeper warm sand gradient */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
}

.section-desc {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 1.05rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.about-image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 6, 8, 0.85) 0%, transparent 60%);
}

.about-floating-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    animation: floatCardSlow 8s ease-in-out infinite;
}

@keyframes floatCardSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro-title {
    font-size: 2.25rem;
    background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-highlight-box {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.about-highlight-box p {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Methodology / Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

.program-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04) !important;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cobre));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.program-card:hover {
    background: #ffffff !important;
    border-color: rgba(241, 89, 49, 0.25) !important;
    box-shadow: 0 25px 50px -12px rgba(241, 89, 49, 0.12), 0 10px 30px -10px rgba(15, 23, 42, 0.04) !important;
}

.program-card:hover::after {
    transform: scaleX(1);
}

.program-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(241, 89, 49, 0.05);
    border: 1px solid rgba(241, 89, 49, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition-bounce);
}

.program-card:hover .program-icon-box {
    background: var(--primary);
    color: var(--text-primary);
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(241, 89, 49, 0.3);
}

.program-title {
    font-size: 1.5rem;
}

.program-desc {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.95rem;
    flex-grow: 1;
}

.program-btn-book {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.program-btn-book i {
    transition: var(--transition-smooth);
}

.program-card:hover .program-btn-book i {
    transform: translateX(5px);
}

/* Interactive BJJ Class Schedule Section */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.schedule-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.03);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: center;
    margin-right: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cobre) 100%);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(241, 89, 49, 0.3);
}

.schedule-sheet-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Skeleton Loading State for Schedule */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skeleton-card {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShine 1.5s infinite;
}

@keyframes skeletonShine {
    to { background-position-x: -200%; }
}

/* Desktop Grid Schedule */
.schedule-grid-wrap {
    width: 100%;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
    table-layout: fixed;
}

.schedule-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--border-glass);
    text-align: left;
}

.schedule-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: top;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-cell-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Schedule Card */
.schedule-item-card {
    padding: 1.25rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.015);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-bounce);
    position: relative;
    cursor: pointer;
}

.schedule-item-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(241, 89, 49, 0.15), 0 4px 15px rgba(15, 23, 42, 0.03);
}

.card-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.category-tag.adulto { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.category-tag.adolescente { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }
.category-tag.criança { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.category-tag.mulher { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.2); }

.class-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.class-instructor {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}



/* Instructors Section */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.instructor-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-premium);
}

.instructor-image-box {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f3ef 0%, #eae8e1 100%); /* Elegant warm sand backdrop for founder portrait */
}

.instructor-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Custom positioning for instructor photos to keep HTML clean (no inline styles) */
.instructor-card:nth-child(1) .instructor-image-box img {
    object-position: center top; /* Fernando Marques */
}

.instructor-card:nth-child(2) .instructor-image-box img {
    object-position: center 20%; /* Lucas Sampaio - shifts photo up */
}

.instructor-card:nth-child(3) .instructor-image-box img {
    object-position: center 20%; /* Alberto Vaz - shifts photo up */
}

.instructor-card:hover .instructor-image-box img {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(115%) sepia(12%) saturate(110%); /* Warm fiery filter on hover */
}

/* Fire Embers / Soot (Fuligem de Fogo) Hover Effect - Translucent, Vertical & Slow */
.fire-embers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen; /* Restored screen mode for beautiful glowing transparency */
    transition: opacity 0.8s ease; /* Soft fade in */
    background: 
        radial-gradient(circle at 50% 95%, rgba(241, 89, 49, 0.3) 0%, transparent 60%); /* Subtle fiery heat at the bottom */
}

.fire-embers-overlay::before,
.fire-embers-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(241, 89, 49, 0.75) 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(217, 119, 6, 0.6) 1.2px, transparent 2.2px),
        radial-gradient(circle, rgba(245, 158, 11, 0.5) 1px, transparent 2px);
    background-size: 80px 80px, 60px 60px, 40px 40px;
    background-position: 0px 0px, 20px 30px, 10px 15px;
    animation: embersVerticalSlow 22s linear infinite;
}

.fire-embers-overlay::after {
    background-size: 70px 70px, 50px 50px, 35px 35px;
    background-position: 40px 40px, 10px 25px, 25px 5px;
    animation: embersVerticalSlow 14s linear infinite reverse;
    opacity: 0.7;
}

.instructor-card:hover .fire-embers-overlay {
    opacity: 1;
}

.instructor-card {
    transition: var(--transition-smooth);
}

.instructor-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 15px 35px rgba(241, 89, 49, 0.12), var(--shadow-premium) !important;
    transform: translateY(-4px);
}

@keyframes embersVerticalSlow {
    0% {
        background-position-y: 0px, 0px, 0px;
    }
    100% {
        background-position-y: -240px, -240px, -240px; /* Moves strictly bottom-to-top (no tilt/inclination) */
    }
}

.instructor-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #ffffff 0%, transparent 60%);
    z-index: 1;
}

.instructor-achievements {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.instructor-achievements h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.instructor-achievements ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.instructor-achievements li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-achievements li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.instructor-details {
    padding: 2rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2;
    margin-top: -10px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.instructor-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instructor-name {
    font-size: 1.35rem;
    font-weight: 700;
}

.instructor-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #fffefe 0%, #fffbf7 50%, #fff5ee 100%);
    border: 1px solid rgba(241, 89, 49, 0.15);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(241, 89, 49, 0.08), var(--shadow-premium);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 3rem 1.5rem;
    }
}

.cta-banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(241, 89, 49, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-banner-content h2 {
    font-family: var(--font-alt-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.cta-banner-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 300;
}

/* Modern Glassmorphic Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-bounce);
    background: #ffffff !important; /* Pure solid white background to eliminate greyish bleed-through */
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 25px 60px -15px rgba(3, 3, 5, 0.4) !important; /* Strong drop shadow for premium depth */
}

@media (max-width: 576px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9; /* Solid light slate background for crisp contrast */
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header-text {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-header-text h3 {
    font-size: 1.75rem;
}

.modal-header-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-control {
    background: #f8fafc; /* Crisp light gray background for input field */
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(241, 89, 49, 0.2);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238e939e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Category Grid Selector in Modal */
.category-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.category-option-btn {
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc; /* Crisp light gray background for buttons */
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-bounce);
}

.category-option-btn:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.15);
}

.category-option-btn i {
    font-size: 1.3rem;
}

.category-option-btn.selected {
    background: rgba(241, 89, 49, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(241, 89, 49, 0.15);
}

.category-option-btn.selected.adulto { color: #60a5fa; border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.category-option-btn.selected.adolescente { color: #a78bfa; border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.category-option-btn.selected.criança { color: #34d399; border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.category-option-btn.selected.mulher { color: #f472b6; border-color: #ec4899; background: rgba(236, 72, 153, 0.1); }

/* Submit Button in Modal */
.btn-submit-booking {
    width: 100%;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition-bounce);
    animation: floatAnim 3s infinite ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer Section */
footer {
    background-color: #030305;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px 0;
}

.footer-logo {
    height: 46px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
    align-self: flex-start;
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .footer-logo {
        align-self: center !important;
        margin: 0 auto 0.5rem auto !important;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .footer-col {
        align-items: center !important;
    }
}

.footer-brand h3 {
    font-family: var(--font-alt-heading);
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 320px;
}

@media (max-width: 991px) {
    .footer-desc {
        margin: 0 auto;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

@media (max-width: 991px) {
    .footer-socials {
        justify-content: center;
    }
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

@media (max-width: 991px) {
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

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

.footer-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

@media (max-width: 991px) {
    .footer-contact-item {
        justify-content: center;
    }
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Intersection Observer Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Mobile Typography Enhancements for perfect single-line word rotation */
@media (max-width: 480px) {
    .title-xl {
        font-size: clamp(2rem, 5.5vw, 2.5rem) !important;
    }
    .rotator-container {
        font-size: 0.65em !important; /* Extremely safe size for narrow phone screens to ensure UMA COMUNIDADE fits beautifully */
    }
}
