/* --- CSS THEME VARIABLES --- */
:root {
    --bg-color: #ffffff;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #666666;
    --brand-yellow: #f1c40f;  
    --brand-dark: #333333;
    --border-color: #eeeeee;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --wa-green: #25D366;
    --wa-glow: rgba(37, 211, 102, 0.4);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --section-bg: #1a1a1a;
    --card-bg: #252525;
    --text-main: #f0f0f0;
    --text-muted: #bbbbbb;
    --border-color: #333333;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.6);
    --nav-bg: rgba(18, 18, 18, 0.95);
    --wa-glow: rgba(37, 211, 102, 0.7);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

/* --- NAVIGATION --- */
header {
    background: var(--nav-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span { color: var(--brand-yellow); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 600;
    font-size: 1rem;
}
.nav-links a:hover { color: var(--brand-yellow); }

/* --- THEME TOGGLE --- */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.theme-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--brand-yellow); }
input:checked + .slider:before { transform: translateX(22px); }

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero-content p { font-size: 1.4rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

.btn-hero {
    display: inline-block;
    padding: 15px 35px;
    background: var(--brand-yellow);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3); }

/* --- TRAINER SECTION --- */
.trainer-section { padding: 80px 0; background-color: var(--bg-color); }

.trainer-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 8px solid var(--brand-yellow);
    gap: 40px;
}

.trainer-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
    overflow: hidden;
    border: 5px solid var(--section-bg);
}

.trainer-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge {
    background: var(--brand-yellow);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- SERVICES --- */
.services-section { padding: 100px 0; background-color: var(--section-bg); }

/* NEW: Category Title Styling */
.category-title {
    font-size: 1.8rem;
    margin: 50px 0 25px;
    padding-left: 15px;
    border-left: 5px solid var(--brand-yellow);
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.icon-box { font-size: 3rem; margin-bottom: 20px; }

.price { 
    margin-top: 20px; 
    color: var(--brand-yellow); 
    font-size: 1.5rem; 
    font-weight: 800; 
}

/* --- TESTIMONIALS --- */
.testimonials-section { padding: 100px 0; background: var(--bg-color); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--section-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--brand-yellow);
}

.quote { font-style: italic; color: var(--text-muted); font-size: 1.1rem; }
.author { margin-top: 15px; font-weight: bold; text-align: right; }

/* --- CONTACT --- */
.contact-section { padding: 100px 0; background: var(--section-bg); }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form { display: grid; gap: 20px; }

input, select, textarea {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
}

/* Fix for dark mode form inputs */
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--brand-yellow);
    border-color: transparent;
}

.btn-action {
    background: var(--brand-yellow);
    color: #000;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-action:hover { background: #e6b800; }

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

/* --- WHATSAPP FLOATING LOGO --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float svg { width: 32px; height: 32px; fill: white; }

.wa-float:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 0 20px var(--wa-glow);
}

/* --- FOOTER --- */
footer {
    background: #111;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

/* --- MOBILE ADAPTIVE RULES --- */
@media (max-width: 768px) {
    nav { flex-direction: column; height: auto; padding: 20px 0; gap: 15px; }
    .nav-links { gap: 15px; font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .trainer-card { flex-direction: column; text-align: center; padding: 30px; }
    .trainer-card h2 { margin-top: 15px; }
    
    .contact-layout { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }
    
    .wa-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .wa-float svg { width: 28px; height: 28px; }
}

/* --- LOCATION GATEWAY MODAL --- */
.gateway-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Dark overlay */
    backdrop-filter: blur(8px);
    z-index: 9999; /* Ensures it sits on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--brand-yellow);
    transform: translateY(0);
    animation: slideDown 0.4s ease-out;
}

.gateway-box h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.gateway-box p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.gateway-box select {
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Utility to lock background scrolling while modal is open */
body.gateway-active {
    overflow: hidden;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}