/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-red: #E31C25;
    --dark-black: #0a0a0a;
    --surface-dark: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --transition-speed: 0.3s;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}


p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--primary-red);
}

.relative-z {
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-red);
    border-radius: 4px;
    transition: all var(--transition-speed);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-red);
    box-shadow: 0 0 15px rgba(227, 28, 37, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-white);
    padding: 12px 30px;
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--dark-black);
    border-color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    /* Ensure no overflow from slides */
    display: flex;
    align-items: flex-start;
    /* Align to top to prevent navbar overlap */
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    /* background image is now handled by .hero-slider on index, but via inline style on subpages */
    padding-top: 160px !important;
    /* Force clearance for navbar */
    position: relative;
    /* Ensure ::after is positioned relative to hero */
}

/* Soft transition from hero to next section (All devices) */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Height of the fade */
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    z-index: 1;
    /* Below text (z-index: 2), above image */
    pointer-events: none;
    /* Allow clicks through the fade */
}

@media (min-width: 769px) {
    .hero-offset-top {
        background-position: center 35% !important;
    }

    .hero-top {
        background-position: center top !important;
    }

    .hero-offset-lower {
        background-position: center 42% !important;
    }

    .hero-ladies {
        background-position: center 40% !important;
    }

    .hero-about {
        background-position: center 20% !important;
    }
}

.hero-short {
    height: 60vh;
    min-height: 400px;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    /* Increased for larger text */
    z-index: 2;
    position: relative;
    padding: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 1s forwards 1.1s;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background-color: var(--surface-dark);
    padding: 40px;
    border-left: 3px solid var(--primary-red);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 28, 37, 0.15);
    border-left: 5px solid var(--primary-red);
    background-color: #222;
}

.about-card h3 {
    color: var(--text-white);
    margin-bottom: 15px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background-color: var(--surface-dark);
    padding: 30px;
    text-align: center;
    transition: var(--transition-speed);
    border-bottom: 3px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.team-img-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    /* Slightly rounded corners, not circle */
    overflow: hidden;
    margin: 0 auto 20px;
    border: none;
    /* Remove border for cleaner look */
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-card:hover .team-img-wrapper {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(227, 28, 37, 0.4);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on faces */
}

.team-card .role {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Community / Awards Section (Parallax) */
.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1517438476312-10d79c077509?q=80&w=1920&auto=format&fit=crop');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}

.award-item {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: 0.4s;
    backdrop-filter: blur(5px);
}

.award-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
}

.award-item h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

/* Classes Section */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.class-card {
    background-color: var(--surface-dark);
    border-radius: 4px;
    /* Slight roundness */
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s, filter 0.5s;
}

.class-card:hover .class-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.class-content {
    padding: 25px;
    position: relative;
    background: var(--surface-dark);
    /* Ensure it sits on top of zoomed image if needed, though simpler here */
    z-index: 2;
}

.class-content h3 {
    color: var(--primary-red);
    margin-bottom: 10px;
}

.class-meta {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    color: #888;
}

/* Membership Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    background-color: var(--surface-dark);
    padding: 40px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Hover effect specifically for pricing cards */
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-red);
    transition: 0.4s;
}

.price-card:hover::before {
    height: 100%;
}

.price-card.featured {
    border: 2px solid var(--primary-red);
    transform: scale(1.05);
    background-color: #0f0f0f;
    z-index: 10;
}

.price-card.featured:hover {
    transform: scale(1.08);
}

.price-card .price {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-white);
    margin: 20px 0;
}

.price-card .price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-family: var(--font-body);
}

.price-card ul {
    margin: 30px 0;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #ccc;
    transition: transform 0.2s;
}

.price-card:hover ul li {
    transform: translateX(5px);
}

.price-card ul li::before {
    content: "✓";
    color: var(--primary-red);
    margin-right: 10px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--surface-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: rotate(360deg);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #111;
    font-size: 0.9rem;
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        /* reduced from 4.5rem */
    }

    .hero p {
        font-size: 1rem;
        /* reduced from 1.2rem */
        padding: 0 10px;
        /* ensure some padding on sides */
    }

    .section-padding {
        padding: 40px 0;
    }

    .team-grid {
        margin-top: 20px;
    }

    h2 {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        /* Ensure it is above the header */
    }

    .nav-links.active {
        right: 0;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .hero {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance/support */
        height: auto;
        /* Allow content to dictate height on mobile */
        /* Allow content to dictate height on mobile */
        min-height: 400px;
        /* Ensure it still covers screen if content is short */
        padding-top: 80px !important;
        /* Reduce padding further to move text up */
        padding-bottom: 50px;
        /* Add bottom padding so button isn't on the edge */
        background-position: center top;
        /* Keep mobile images aligned to top */

        /* Ensure background covers the area */
        height: auto !important;
        /* Override inline heights to allow text expansion */
        background-size: cover !important;
        background-repeat: no-repeat !important;
        position: relative;
        /* Ensure ::after is positioned relative to hero */
        align-items: center;
    }

    /* Soft transition from hero to next section */
    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        /* Height of the fade */
        background: linear-gradient(to bottom, transparent, #0a0a0a);
        z-index: 1;
        /* Below text (z-index: 2), above image */
        pointer-events: none;
        /* Allow clicks through the fade */
    }

    .hero-content {
        padding-bottom: 60px;
        /* Ensure space for the button */
        text-align: center;
        /* Ensure text is centered on mobile */
    }

    .hero-short {
        height: auto !important;
        min-height: 400px;
    }

    .hero-christmas {
        background-position: center top !important;
        margin-top: 80px;
    }

    .hero-contact {
        background-position: center 15% !important;
    }
}

/* Footer Banner */
.footer-banner {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/footer-bg.webp');
    background-size: cover;
    background-position: top center;
}

.footer-banner h2 {
    color: var(--text-white);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-banner {
        height: 100px;
        /* Smaller height for mobile */
    }

    .footer-banner h2 {
        font-size: 1.2rem;
    }
}

/* Community Section Background */
#community {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/bunner_comunity.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
}


/* Class Detail Pages */
.class-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .class-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .class-info-card {
        margin-top: 30px;
    }
}

.hero-short {
    height: 60vh;
    min-height: 400px;
}

/* Disable scroll animations on mobile */
@media (max-width: 768px) {
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}