/* =========================================
   VARIABLES & RESET (BRAND COLORS)
   ========================================= */
:root {
    /* Extracted from Logo */
    --primary: #FFD500;
    /* Vibrant Industrial Gold */
    --bg-dark: #0F0F0F;
    /* Deep Black */
    --bg-card: #1a1a1a;
    /* Dark Gray */
    --text-white: #FFFFFF;
    --text-muted: #B0B0B0;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    height: var(--nav-height);
    background-color: rgba(15, 15, 15, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CRITICAL FIX: BRAND COLOR */
.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary) !important;
    /* Forces Gold */
    text-transform: uppercase;
}

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

.nav-menu li a {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    background-image: url('../assets/background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 10px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-light-dark {
    background-color: #151515;
}

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

.section-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--text-white);
    margin: 15px auto 0;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.feature-list {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 25px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 0 0 300px;
    /* Fixed width for perfect centering */
    max-width: 300px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary);
}

/* ... existing code ... */

/* Class Colors - Generic Taxonomy */
.type-mobility {
    background-color: #3498db;
    color: #fff;
}

/* Blue */
.type-cardio {
    background-color: #e74c3c;
    color: #fff;
}

/* Red */
.type-tone {
    background-color: #2ecc71;
    color: #fff;
}

/* Green */

@media (max-width: 768px) {

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
}

/* =========================================
   MAP (DARK MODE HACK)
   ========================================= */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-container iframe {
    /* Invert colors to create a "Dark Mode" map effect */
    /* Filter removed for normal map colors */
    border: 0;
}

/* Added manually for Train Image layout */
.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary);
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
    }
}

/* =========================================
   FOOTER & FORM
   ========================================= */
.footer-section {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 2rem;
    display: block;
    margin-bottom: 20px;
}

.address,
.footer-section p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-section a {
    color: var(--text-muted);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a i {
    font-size: 1.2rem;
    margin-right: 20px;
    border: 1px solid #333;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover i {
    border-color: var(--primary);
    color: var(--bg-dark);
    background-color: var(--primary);
}

/* CONTACT FORM */
.contact-form-wrapper h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    color: var(--text-white);
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: none;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 1;
    /* Default to visible for SEO/No-JS */
    transform: translateY(0);
    transition: all 0.8s ease;
}

.reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #444;
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* JS will toggle this */
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.98);
        padding: 20px 0;
        border-bottom: 2px solid var(--primary);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

/* --- SCHEDULE SECTION --- */
#schedule {
    background-color: #1a1a1a;
    padding-bottom: 4rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Force scroll on small screens */
    background-color: #222;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #333;
    color: var(--light);
}

.schedule-table th {
    background-color: var(--primary);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    width: 14.28%;
    /* 100% / 7 columns = 14.28% */
}

.schedule-table td:first-child {
    font-weight: 700;
    background-color: #333;
    color: var(--primary);
}

.class-item {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

/* Class Colors - Generic Taxonomy */
.type-mobility {
    background-color: #3498db;
    color: #fff;
}

/* Blue */
.type-cardio {
    background-color: #e74c3c;
    color: #fff;
}

/* Red */
.type-tone {
    background-color: #2ecc71;
    color: #000;
}

/* Green */

@media (max-width: 768px) {

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}
/* =========================================
   MODAL (POPUP)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.modal-content p {
    color: var(--text-muted);
}
