/* ================================================================
   Atari Fitness — Public Website CSS
   Based on the original Gymso theme, served via Laravel
   Primary: #f13a11 | Dark: #171819 | White: #ffffff
   ================================================================ */

:root {
    --primary:    #f13a11;
    --primary-d:  #d4300e;
    --dark:       #171819;
    --dark-2:     #1e2022;
    --about-bg:   #f9f9f9;
    --gray:       #909090;
    --text:       #666262;
    --white:      #ffffff;
    --link:       #404040;
    --radius:     6px;
}

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Plain';
    src: url('../website/fonts/Plain-Regular.woff2') format('woff2'),
         url('../website/fonts/Plain-Regular.woff') format('woff');
    font-weight: 400;
}
@font-face {
    font-family: 'Plain';
    src: url('../website/fonts/Plain-Light.woff2') format('woff2'),
         url('../website/fonts/Plain-Light.woff') format('woff');
    font-weight: 300;
}
@font-face {
    font-family: 'Plain';
    src: url('../website/fonts/Plain-Bold.woff2') format('woff2'),
         url('../website/fonts/Plain-Bold.woff') format('woff');
    font-weight: 700;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plain', 'Segoe UI', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plain', sans-serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}
h1 { font-size: 48px; letter-spacing: -1px; }
h2 { font-size: 36px; letter-spacing: -2px; }
h3 { font-size: 28px; letter-spacing: -1px; }
p  { font-size: 18px; line-height: 1.7; }

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gym {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Plain', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gym-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-gym-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }

.btn-gym-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-gym-outline:hover { background: var(--primary); color: #fff; }

.btn-gym-dark {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
.btn-gym-dark:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-gym {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark);
    padding: 16px 0;
    transition: all 0.3s;
}
.navbar-gym.scrolled { padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.nav-brand span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-menu a:hover { background: var(--primary); color: #fff; }

.nav-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: all 0.2s;
}
.nav-social a:hover { background: var(--primary); color: #fff; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--dark) url('../website/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(23, 24, 25, 0.85);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}
.hero-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 24px;
    line-height: 1.1;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ── Feature Section ───────────────────────────────────────── */
.feature-section {
    background: var(--dark);
    padding: 80px 0;
    color: #fff;
}
.feature-section h2 { color: #fff; margin-bottom: 16px; }
.feature-section p  { color: rgba(255,255,255,0.7); }

.hours-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid var(--primary);
}
.hours-box h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.hours-time { font-size: 28px; font-weight: 700; color: var(--primary); }
.hours-website { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ── About ──────────────────────────────────────────────────── */
.about-section { background: var(--about-bg); }
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* ── Services ───────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    transition: background 0.2s;
}
.service-item:hover { background: #fafafa; }
.service-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(241,58,17,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-info h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.service-info p  { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; }

/* ── Classes ────────────────────────────────────────────────── */
.classes-section { background: #fff; }
.classes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.class-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.2s;
}
.class-item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.class-item:hover {
    border-color: var(--primary);
    background: rgba(241,58,17,0.04);
    color: var(--primary);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-col-6  { grid-column: span 6; }
.gallery-col-4  { grid-column: span 4; }
.gallery-col-3  { grid-column: span 3; }

/* ── Membership Carousel ────────────────────────────────────── */
.membership-section { background: #fff; }
.carousel-container { position: relative; overflow: hidden; border-radius: 12px; }
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; max-height: 500px; object-fit: contain; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: var(--dark);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}
.carousel-btn:hover { background: var(--primary); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active { background: var(--primary); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-section { background: #fff; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    color: var(--dark);
    margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(241,58,17,0.08);
    background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: var(--text);
}
.contact-info-item i { color: var(--primary); width: 20px; }

.map-wrapper { border-radius: 12px; overflow: hidden; margin-top: 24px; }
.map-wrapper iframe { display: block; width: 100%; height: 250px; border: none; }

/* ── Alert ───────────────────────────────────────────────────── */
.site-alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover { background: #f0f0f0; color: var(--dark); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    padding: 40px 0 24px;
    color: rgba(255,255,255,0.6);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand span { color: var(--primary); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.footer-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-contacts a { color: rgba(255,255,255,0.6); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.footer-contacts a:hover { color: var(--primary); }
.footer-contacts i { color: var(--primary); }

/* ── Grid & Responsive ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Animations */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* Scroll padding for fixed nav */
section[id] { scroll-margin-top: 70px; }

@media (max-width: 900px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    p  { font-size: 16px; }

    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .classes-list { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(6, 1fr); }
    .gallery-col-6 { grid-column: span 6; }
    .gallery-col-4 { grid-column: span 3; }

    .nav-links { display: none; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark); padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 24px; border-radius: 0; display: block; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.04); border-radius: 0; }
    .nav-hamburger { display: flex; }
    .navbar-inner { flex-wrap: wrap; gap: 0; position: relative; }
}

@media (max-width: 640px) {
    .section-pad { padding: 60px 0; }
    .gallery-col-4 { grid-column: span 6; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-contacts { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-content { text-align: center; }
}
