/* ==================== CSS VARIABLES — "IRON LOG" SYSTEM ==================== */
:root {
    --ink: #17140f;
    --ink-2: #201b14;
    --panel: #262019;
    --panel-2: #2e2820;
    --chalk: #f4efe4;
    --chalk-dim: #b3a794;
    --chalk-faint: #7a7061;
    --amber: #ffb400;
    --amber-rgb: 255, 180, 0;
    --rust: #d1491f;
    --rust-rgb: 209, 73, 31;
    --line: rgba(244, 239, 228, 0.12);
    --line-strong: rgba(244, 239, 228, 0.22);

    /* legacy aliases so nothing in the markup breaks */
    --neon-green: var(--amber);
    --neon-green-rgb: var(--amber-rgb);
    --dark-bg: var(--ink);
    --dark-secondary: var(--ink-2);
    --dark-card: var(--panel);
    --text-primary: var(--chalk);
    --text-secondary: var(--chalk-dim);
    --glass-bg: var(--panel);
    --glass-border: var(--line);
    --glass-hover: var(--panel-2);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--ink);
    color: var(--chalk);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 400;
}

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

/* Data/numeric type — every stat, price and count reads like a logbook entry */
.counter,
.stat-item span,
.price,
.bmi-value,
.modal-plan .price {
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-dumbbell {
    font-size: 3.5rem;
    color: var(--amber);
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: var(--chalk);
    letter-spacing: 4px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 20px;
    background: linear-gradient(rgba(23, 20, 15, 0.75), rgba(23, 20, 15, 0.35));
    border-bottom: 1px solid rgba(244, 239, 228, 0.06);
}

.navbar.scrolled {
    background: rgba(23, 20, 15, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--amber);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--amber);
    margin-top: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    color: var(--chalk-dim);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.25s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--chalk);
    border-bottom-color: var(--amber);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--chalk-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    transition: color 0.3s;
}

.nav-phone:hover {
    color: var(--chalk);
}

.nav-phone i {
    color: var(--amber);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--chalk);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--ink-2);
    z-index: 2000;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-menu {
    background: none;
    border: none;
    color: var(--chalk);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 10px;
}

.mobile-nav-links a {
    color: var(--chalk-dim);
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--chalk);
    background: var(--panel);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--amber);
    color: var(--ink);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
    transform: translate(-2px, -2px);
}

.btn-outline {
    background: transparent;
    color: var(--chalk);
    border: 2px solid var(--line-strong);
}

.btn-outline:hover {
    background: var(--panel);
    border-color: var(--amber);
    color: var(--amber);
}

.btn-lg {
    padding: 18px 34px;
    font-size: 0.95rem;
}

.w-full {
    width: 100%;
}

/* ==================== PANEL (formerly "glass") ==================== */
/* Steel-plate card treatment: flat panel, hairline border, square corner tag */
.glass {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    position: relative;
    transition: all 0.25s ease;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    width: 28px;
    height: 3px;
    background: var(--amber);
}

.glass:hover {
    background: var(--panel-2);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 20px;
    position: relative;
}

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

/* Hazard-tape divider — reads as gym floor marking tape, not decoration */
.section-line,
.hero-line {
    width: 90px;
    height: 6px;
    background: repeating-linear-gradient(
        45deg,
        var(--amber),
        var(--amber) 8px,
        var(--ink) 8px,
        var(--ink) 16px
    );
    margin: 0 auto 30px;
}

.hero-line {
    margin: 0 0 30px;
}

.section-title {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    color: var(--chalk);
    margin-bottom: 20px;
    line-height: 1;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--chalk-dim);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.text-green {
    color: var(--amber);
}

.text-gradient {
    color: var(--amber);
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80') center/cover;
    filter: grayscale(45%) contrast(1.1);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23,20,15,0.97) 0%, rgba(23,20,15,0.85) 55%, rgba(23,20,15,0.4) 100%);
}

.hero-container {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 120px 0;
}

.hero-title {
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--chalk-dim);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
    font-family: 'Work Sans', sans-serif;
    text-transform: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.stat-item {
    text-align: left;
    padding: 20px 20px 0 0;
    border-right: 1px solid var(--line);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    display: none;
}

.stat-item span {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--amber);
}

.stat-item p {
    color: var(--chalk-dim);
    font-size: 0.75rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--chalk);
    font-size: 1.4rem;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-16px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

/* ==================== WHY CHOOSE US ==================== */
.why-us {
    background: var(--ink);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px 30px;
    text-align: left;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--ink);
    border: 2px solid var(--amber);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    font-size: 1.5rem;
    color: var(--amber);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--chalk);
}

.feature-card p {
    color: var(--chalk-dim);
    line-height: 1.6;
    font-weight: 300;
}

/* ==================== PROGRAMS ==================== */
.programs {
    background: var(--ink-2);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.program-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ink);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--line-strong);
}

.program-icon {
    font-size: 2rem;
    color: var(--amber);
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.program-card p {
    color: var(--chalk-dim);
    margin-bottom: 20px;
    font-weight: 300;
}

.program-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.program-tags span {
    background: var(--ink);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--chalk-dim);
    font-family: 'IBM Plex Mono', monospace;
    border: 1px solid var(--line);
}

/* ==================== MEMBERSHIP ==================== */
.membership {
    background: var(--ink);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pricing-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--amber);
    box-shadow: 0 0 0 1px var(--amber);
    transform: scale(1.05);
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--ink);
    padding: 5px 18px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-badge {
    background: var(--rust);
    color: var(--chalk);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--amber);
}

.price span {
    font-size: 0.95rem;
    color: var(--chalk-dim);
    font-family: 'Work Sans', sans-serif;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--chalk-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-weight: 300;
}

.pricing-features li i {
    color: var(--amber);
    font-size: 0.8rem;
}

/* ==================== BMI CALCULATOR ==================== */
.bmi-calculator {
    background: var(--ink-2);
}

.bmi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.bmi-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    color: var(--chalk);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--chalk);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Work Sans', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(var(--amber-rgb), 0.15);
}

.form-input::placeholder {
    color: var(--chalk-faint);
}

.bmi-right {
    padding: 40px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmi-result-placeholder {
    color: var(--chalk-dim);
}

.bmi-result-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.bmi-result-display {
    width: 100%;
}

.bmi-value {
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--amber);
}

.bmi-category {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 10px 0 20px;
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
}

.bmi-bar {
    height: 8px;
    background: var(--panel);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.bmi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--rust));
    border-radius: 4px;
    transition: width 1s ease;
}

.bmi-recommendations {
    text-align: left;
}

.bmi-recommendations h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--chalk);
}

.bmi-recommendations ul {
    list-style: none;
}

.bmi-recommendations li {
    padding: 8px 0;
    color: var(--chalk-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
}

.bmi-recommendations li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 0;
}

/* ==================== TRAINERS ==================== */
.trainers {
    background: var(--ink);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.trainer-card {
    overflow: hidden;
}

.trainer-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    filter: grayscale(30%);
}

.trainer-info {
    padding: 25px;
}

.trainer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.trainer-role {
    color: var(--amber);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.trainer-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--chalk-dim);
    font-family: 'IBM Plex Mono', monospace;
}

.trainer-stats i {
    color: var(--amber);
    margin-right: 5px;
}

.trainer-specialty {
    color: var(--chalk-dim);
    margin-bottom: 20px;
    font-weight: 300;
}

.trainer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.trainer-social a {
    color: var(--chalk-dim);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.trainer-social a:hover {
    color: var(--amber);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    background: var(--ink-2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    text-align: left;
}

.testimonial-stars {
    color: var(--amber);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--chalk-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: normal;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    filter: grayscale(40%);
}

.testimonial-author h4 {
    font-size: 1.05rem;
    color: var(--chalk);
    font-family: 'Work Sans', sans-serif;
    text-transform: none;
    font-weight: 700;
}

.testimonial-author p {
    color: var(--amber);
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
}

/* ==================== FAQ ==================== */
.faq {
    background: var(--ink);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--chalk);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--amber);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--chalk-dim);
    line-height: 1.6;
    font-weight: 300;
}

/* ==================== CONTACT ==================== */
.contact {
    background: var(--ink-2);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    padding: 25px;
    text-align: left;
}

.contact-card i {
    font-size: 1.6rem;
    color: var(--amber);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--chalk-dim);
    font-size: 0.9rem;
    font-family: 'IBM Plex Mono', monospace;
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form textarea {
    resize: vertical;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--ink);
    padding: 80px 20px 30px;
    border-top: 1px solid var(--line);
}

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

.footer-brand p {
    color: var(--chalk-dim);
    margin: 20px 0;
    line-height: 1.6;
    font-weight: 300;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--panel);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chalk);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--amber);
    color: var(--ink);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--chalk);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--chalk-dim);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: var(--chalk-dim);
    margin-bottom: 20px;
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form .form-input {
    flex: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    color: var(--chalk-dim);
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--chalk-dim);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--chalk);
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--panel);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--chalk);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.modal-content > p {
    color: var(--chalk-dim);
    margin-bottom: 30px;
    font-weight: 300;
}

.modal-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.modal-plan {
    text-align: center;
    padding: 20px;
    background: var(--ink);
    border-radius: 4px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-plan:hover,
.modal-plan.popular {
    border-color: var(--amber);
    background: rgba(var(--amber-rgb), 0.08);
}

.modal-plan h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-plan .price {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.trial-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trial-form select {
    appearance: none;
}

/* ==================== MAP SECTION ==================== */
.map-section {
    background: var(--ink);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.map-container {
    overflow: hidden;
    border-radius: 6px;
    filter: grayscale(60%) contrast(1.1);
}

.map-container iframe {
    display: block;
}

.map-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-info-card {
    padding: 25px;
    text-align: left;
}

.map-info-card i {
    font-size: 1.6rem;
    color: var(--amber);
    margin-bottom: 15px;
}

.map-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.map-info-card p {
    color: var(--chalk-dim);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.map-info-card .text-green {
    color: var(--amber);
    font-weight: 600;
}

.text-sm {
    font-size: 0.85rem;
    color: var(--chalk-dim);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-bottom: 1px solid var(--line);
        padding-bottom: 15px;
    }

    .bmi-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .map-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .modal-pricing {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== EDITORIAL "REASONS" LIST (replaces boxed feature cards) ==================== */
.reasons-list {
    max-width: 900px;
    margin: 0 auto;
}

.reason-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.reason-row:first-child {
    border-top: 1px solid var(--line);
}

.reason-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    color: var(--chalk-faint);
    padding-top: 4px;
    min-width: 34px;
}

.reason-icon {
    font-size: 1.3rem;
    color: var(--amber);
    padding-top: 5px;
    min-width: 24px;
    text-align: center;
}

.reason-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.reason-body p {
    color: var(--chalk-dim);
    font-weight: 300;
    max-width: 560px;
}

/* ==================== EDITORIAL PROGRAM ROWS (replaces boxed program cards) ==================== */
.programs-list {
    max-width: 980px;
    margin: 0 auto;
}

.program-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.program-row:first-child {
    border-top: 1px solid var(--line);
}

.program-row-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 260px;
}

.program-row .program-icon {
    font-size: 1.5rem;
    color: var(--amber);
    padding-top: 6px;
    min-width: 28px;
}

.program-row h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.program-row .program-badge {
    position: static;
    border: none;
}

.program-row p {
    color: var(--chalk-dim);
    margin-bottom: 12px;
    font-weight: 300;
    max-width: 480px;
}

.program-row .program-tags {
    margin-bottom: 0;
}

.program-row .btn {
    flex-shrink: 0;
}

/* ==================== TESTIMONIAL CAROUSEL ==================== */
.testimonial-swiper {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 50px;
    position: relative;
}

.testimonial-swiper .testimonial-card {
    text-align: center;
    padding: 20px 40px 0;
}

.testimonial-quote-mark {
    font-size: 2rem;
    color: var(--amber);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-swiper .testimonial-stars {
    justify-content: center;
    display: flex;
    gap: 4px;
}

.testimonial-swiper .testimonial-text {
    font-size: 1.3rem;
    line-height: 1.6;
}

.testimonial-swiper .testimonial-author {
    justify-content: center;
    margin-top: 25px;
}

.testimonial-swiper .swiper-pagination-bullet {
    background: var(--chalk-faint);
    opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--amber);
}

.testimonial-swiper .swiper-button-prev,
.testimonial-swiper .swiper-button-next {
    color: var(--amber);
    top: 45%;
}

.testimonial-swiper .swiper-button-prev:after,
.testimonial-swiper .swiper-button-next:after {
    font-size: 1.3rem;
}

/* ==================== CONTACT ROW LIST (replaces boxed contact cards) ==================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row:first-child {
    border-top: 1px solid var(--line);
}

.contact-row i {
    font-size: 1.3rem;
    color: var(--amber);
    min-width: 26px;
    text-align: center;
}

.contact-row h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-row p {
    color: var(--chalk-dim);
    font-size: 0.9rem;
    font-family: 'IBM Plex Mono', monospace;
}

/* ==================== PRICING — DESTYLED FROM BOXES TO A PRICE SHEET ==================== */
.pricing-card {
    background: transparent;
    border: none;
    border-left: 1px solid var(--line);
    border-radius: 0;
}

.pricing-grid .pricing-card:first-child {
    border-left: none;
}

.pricing-card.popular {
    box-shadow: none;
    border-left-color: var(--amber);
    transform: none;
}

.pricing-card.popular::before,
.pricing-card::before {
    display: none;
}

/* ==================== FLOATING CONTACT BUTTONS ==================== */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: translateY(-3px);
}

.float-whatsapp {
    background: #25d366;
    color: #0b1a10;
}

.float-call {
    background: var(--amber);
    color: var(--ink);
}

@media (max-width: 480px) {
    .floating-actions {
        right: 16px;
        bottom: 70px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ==================== FULL-BLEED EDGE TREATMENT ====================
   Fixes the "empty right side on wide/zoomed-out screens" issue:
   every section now carries a fixed-to-viewport vertical tag at both
   edges, so the design reads as intentional edge-to-edge on any
   screen width instead of a centered island with dead space. */
.section {
    isolation: isolate;
}

.section::before,
.section::after {
    content: 'APEX — EST.';
    position: absolute;
    top: 0;
    bottom: 0;
    writing-mode: vertical-rl;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--line-strong);
    display: flex;
    align-items: center;
    padding: 24px 0;
    pointer-events: none;
}

.section::before {
    left: clamp(8px, 2vw, 28px);
}

.section::after {
    content: 'ELITE FITNESS';
    right: clamp(8px, 2vw, 28px);
}

.hero::before,
.hero::after {
    display: none;
}

@media (max-width: 1024px) {
    .section::before,
    .section::after {
        display: none;
    }
}

/* Subtle full-bleed texture so wide/zoomed-out viewports don't look flat/empty */
body {
    background-image:
        linear-gradient(rgba(244, 239, 228, 0.025) 1px, transparent 1px);
    background-size: 100% 44px;
    background-attachment: fixed;
}

/* Slightly wider content well on very large screens, with edge tags taking up the rest */
.container {
    max-width: 1360px;
}

/* ==================== INNER PAGE BANNER (legal/blog pages) ==================== */
.page-banner {
    padding: 160px 20px 60px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.page-banner .section-line {
    margin: 0 auto 20px;
}

.page-banner h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
}

.page-banner p {
    color: var(--chalk-dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== LEGAL / ARTICLE TYPOGRAPHY ==================== */
.legal-content,
.article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 20px;
}

.legal-content h2,
.article-content h2 {
    font-size: 1.6rem;
    color: var(--chalk);
    margin: 40px 0 16px;
}

.legal-content h2:first-child,
.article-content h2:first-child {
    margin-top: 0;
}

.legal-content h3,
.article-content h3 {
    font-size: 1.2rem;
    color: var(--amber);
    margin: 28px 0 12px;
    text-transform: none;
    letter-spacing: 0;
}

.legal-content p,
.article-content p {
    color: var(--chalk-dim);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.article-content ul {
    color: var(--chalk-dim);
    font-weight: 300;
    line-height: 1.8;
    margin: 0 0 16px 20px;
}

.legal-content li,
.article-content li {
    margin-bottom: 8px;
}

.legal-content .updated,
.article-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--chalk-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-content blockquote {
    border-left: 3px solid var(--amber);
    padding: 4px 20px;
    margin: 24px 0;
    color: var(--chalk);
    font-style: normal;
    font-size: 1.1rem;
}

/* ==================== BLOG LISTING ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 30px;
}

.blog-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: grayscale(35%);
    margin-bottom: 20px;
    border-radius: 4px;
}

.blog-card-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h2 {
    font-size: 1.4rem;
    color: var(--chalk);
    margin: 10px 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

.blog-card p {
    color: var(--chalk-dim);
    font-weight: 300;
    font-size: 0.95rem;
}

.blog-card-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--chalk-faint);
    margin-top: 12px;
}

/* Safety: nav-logo is a link on inner pages (legal/blog), a div on the homepage */
a.nav-logo {
    text-decoration: none;
    color: inherit;
}
