@font-face {
  font-family: 'Energy';
  src: url('./fonts/Energy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */

    & > h2 {
        display: block;
        justify-content: center;
        font-size: 2rem;
        text-align: center;
        font-weight: 400;
        line-height: 0.9;

        & > span {
            display: inline;
            font-weight: 700;
        }
    }

    & > p > span {
        display: flex;
        justify-content: center;
        margin-bottom: 0.05em;
        color: #ff3232;
        font-weight: 800;
    }

    & > p > a {
        text-decoration: underline;
    }
}



/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



:root {
    font-size: 16px;
    --primary-color: #FF1818;
    --secondary-color: #C01414;
}


/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* ========== COMPONENTS ========== */

.cta-button {
    display: inline-block;
    height: fit-content;
    width: 9em;
    padding: 0.4em 1.2em;
    color: #FFF;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    background-color: #FF1818;
    border-radius: 0.3em;
    white-space: nowrap;
    transition: all 0.1s ease;

    &:hover {
        background-color: #ff0000;
        transform: scale(1.02);    
        box-shadow: 0 0.1em 0.3em rgba(0,0,0,0.6);
    }

    &:active {
        background-color: #aa1414;
        transform: scale(0.96);
        box-shadow: 0 0.05em 0.5em rgba(0,0,0,0.6);
    }
}

.cta-button2 {
    display: inline-block;
    height: fit-content;
    width: 60%;
    padding: 0.4em 1.2em;
    color: #FFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    background-color: #FF1818;
    border-radius: 0.3em;
    white-space: nowrap;
    transition: all 0.1s ease;

    &:hover {
        transform: scale(1.05);
    }

    &:active {
        transform: scale(0.98);
    }
}

.header {
    font-family: 'Strong', sans-serif;
    font-size: 3rem;
    font-weight: 500;
}

.header span {
    color: #C01414;
}

.description {
    margin: 2em 0 3em 0;
    max-width: 20em;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 200;
}

.header4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1em;
    padding: 0.6em 1.2em;
    background: #FF1818;
    color: #FFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    border-radius: 0 0 0.5em 0.5em;
    z-index: 200;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid #FF1818;
    outline-offset: 3px;
    border-radius: 2px;
}

.cta-button:focus-visible {
    outline-color: #FFF;
    outline-offset: 4px;
}

.nav-link-item:focus-visible,
.nav-cta:focus-visible {
    outline-color: #FF1818;
    outline-offset: 4px;
}

.footer-link:focus-visible,
.foot-right a:focus-visible {
    outline-color: #FF1818;
    outline-offset: 2px;
}
/* ========== MODAL ========== */

.modal {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.modal-content {
  position: relative;
  background-color: #1a1a1a;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5em;
  padding: 2.5em 2em;
  width: 100%;
  max-width: 28em;
  font-family: 'Roboto', sans-serif;
}

.close {
  position: absolute;
  top: 0.6em;
  right: 0.8em;
  color: #999;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: #FF1818;
}


/* ========== NAVIGATION BAR ========== */

.nav-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 90em;
    height: 5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #212121;
    border-radius: 1.5em;
    box-shadow: 0 0.3em 1.5em rgba(0, 0, 0, 1);
    z-index: 100;
    padding: 0 2em;
}

.nav-home-button {
    margin-bottom: 0.3em;
}

.nav-logo-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8em;
}

.nav-logo-stack {
    height: 2em;
    margin-bottom: 1.4em;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5em;
    color: #FFF;
}

#nav-IF {
    font-family: 'Energy', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
}

#nav-FC {
    font-family: 'Strong', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
}

#nav-logo {
    height: 3.4em;
    width: 3em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    text-decoration: none;
    color: #FFF;
    font-family: 'Oswald', sans-serif;
}

.nav-link-item {
    font-size: 1.2em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.2em;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #FF1818;
    transition: width 0.3s ease;
}

.nav-link-item:hover::after,
.nav-link-item.nav-active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.3em 0.9em;
    font-size: 1.3em;
    background-color: #C01414;
    border-radius: 0.5em;
    transition: all 0.1s ease;

    &:hover {
        transform: scale(1.05);
    }

    &:active {
        transform: scale(0.95);
    }
}

/* ========== HAMBURGER MENU ========== */

.hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 0.35em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6em;
    min-width: 44px;
    min-height: 44px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 1.8em;
    height: 0.2em;
    background: #FFF;
    border-radius: 0.1em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4em, 0.4em);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4em, -0.4em);
}

/* ========== HERO SECTION ========== */

.hero {
    padding: 0;
    margin: 0;
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    background-image: url("assets/hero-bg.jpg");
    background-color: #C01414;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.hero h1, .hero span, .hero p {
    margin: 0;
    padding: 0;
}

#hero-content {
    left: 0;
    bottom: 0;
    margin: clamp(2em, 8em, 10em);
    height: 31em;
    max-width: 35em;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    position: absolute;
    justify-content: center;
    color: #FFF;
}

.hero span {
    font-family: 'Strong', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: lowercase;
    line-height: 0.9em;
}

.hero h1 {
    font-family: 'Energy', sans-serif;
    font-size: 8rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.75;
    letter-spacing: 0.1rem;
}

#hero-image-container {
    position: absolute;
    right: 0;
    top: 13em;
    margin-right: 6em;
    max-width: 40em;
    height: 45em;
    overflow: hidden;
    transform: scale(clamp(0.85, 1.5, 2));
}

@media (max-width: 1920px) {
    #hero-image-container {
        position: absolute;
        right: 0;
        top: 5em;
        margin-right: 1em;
        max-width: 40em;
        height: 45em;
        overflow: hidden;
        transform: scale(clamp(0.85, 1.2, 2));
    }
}

@media (max-width: 480px) {
    #hero-image-container {
        position: absolute;
        right: 0;
        top: 5em;
        margin-right: 1em;
        max-width: 40em;
        height: 45em;
        overflow: hidden;
        transform: scale(clamp(0.85, 1.2, 2));
    }
}

#hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#p-hero {
    margin: 2em 0 3em 0;
}

/* ========== FACILITIES SECTION ========== */

.facilities {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 70em;
    margin: 5em auto 10em auto;
    padding: 0 2em;
    z-index: 0;
}

.facilities p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 23em;
}

.facilities h4 {
    position: absolute;
    bottom: 0.5em;
    margin: 7em 0 0 1em; 
    color: #FFF;
    text-shadow: 0 0 1em rgb(77, 8, 8), 0 0 0.5em rgb(77, 8, 8), 0 0 0.2em rgb(77, 8, 8), 0 0.5em 2em rgb(77, 8, 8), 0 0.5em 3em rgb(77, 8, 8);
}

.facilities-images-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    margin-bottom: 2em;
}

.fic-top-row, .fic-bot-row {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
    flex-wrap: wrap;
}

.fic-gym, .fic-martial-arts,
.fic-dance-studio, .fic-lockers, .fic-lavatories {
    position: relative;
    height: 16em;
    flex: 1;
    min-width: 12em;
    max-width: 40em;
    background-color: #FFF;
    border: 0.4em solid #C01414;
    border-radius: 2em;
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.3);
    overflow: clip;
}

.fic-gym img,
.fic-martial-arts img,
.fic-dance-studio img,
.fic-lockers img,
.fic-lavatories img {
    position: absolute;
    transform: scale(1.4);
    bottom: 3em;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#h-facilities {
    align-self: center;
}

/* ========== ACTIVITIES SECTION ========== */

.activities {
    position: relative;
    padding-top: 10em;
    padding-bottom: 3em;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 40%, #2a1a1a 70%, #0f0a0a 100%);
    z-index: 0;
    text-align: center;
}

.activities-background-gradient-blurs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.activities-background-gradient-blurs::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -30%;
    width: 80%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(192, 20, 20, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.activities-background-gradient-blurs::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(192, 20, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

#activities-rectangle1 {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 60em;
    height: 80%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(192, 20, 20, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 3em;
}

#activities-circle1 {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 25em;
    height: 25em;
    background: radial-gradient(circle, rgba(192, 20, 20, 0.1) 0%, transparent 70%);
}

#activities-circle2 {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 20em;
    height: 20em;
    background: radial-gradient(circle, rgba(192, 20, 20, 0.08) 0%, transparent 70%);
}

.activities-header {
    max-width: 70em;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 2em;
    color: #FFF;
    z-index: 1;
}

#p-activities {
    text-align: right;
    z-index: 1;
}

#h-activities {
    width: 10em;
    line-height: 0.8em;
    z-index: 1;
}

.activities-carousel {
    height: 31em;
    margin: 2em auto 5em auto;
    z-index: 1;
    overflow: hidden;
}

#cta-activities {
    display: block;
    padding: 0.4em 1.2em;
    font-weight: 500;
    margin: 0 auto;
    z-index: 1;
}

/* ========== CAROUSEL ========== */

.carousel,
.carousel-2 {
    --items: 5;
    --carousel-duration: 60s;
    --carousel-item-width: 20em;
    --carousel-item-height: 13em;
    --carousel-item-gap: 2rem;

    position: relative;
    width: 100%;
    max-width: 84.5em;
    margin: 0 auto;
    height: var(--carousel-item-height);
    overflow: clip;

    &[mask] {
        mask-image: linear-gradient(
            to right,
            transparent,
            black 10% 90%,
            transparent
        );
    }

    &[reverse] > article {
        animation-direction: reverse;
    }

    &:hover > article {
        animation-play-state: paused;
    }

    & > article {
        overflow: clip;
    }

    & > article img {
        position: absolute;
        width: 100%;
        height: 100%;
        transform: scale(1.4);
        bottom: -2em;
        left: -0.2em;
    }

    & > article h3 {
        position: absolute;
        bottom: 0;
        margin-left: 2em;
        font-family: 'Oswald', sans-serif;
        font-size: 1.3rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #FFF;
        text-shadow: 0 0 1em rgb(77, 8, 8), 0 0 0.5em rgb(77, 8, 8), 0 0 0.2em rgb(77, 8, 8), 0 0.5em 2em rgb(77, 8, 8), 0 0.5em 3em rgb(77, 8, 8);
    }

    padding: 0.7em;
}

.carousel > article,
.carousel-2 > article {
    position: absolute;
    top: 0;
    left: calc(100% + var(--carousel-item-gap));
    width: var(--carousel-item-width);
    height: var(--carousel-item-height);
    display: grid;
    grid-template-rows: 200px auto 1fr auto;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding-block-end: 1rem;
    border-radius: 2em;
    background: rgba(255, 255, 255, 0.04);

    will-change: transform;
    animation-name: marquee;
    animation-duration: var(--carousel-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: calc(
        var(--carousel-duration) / var(--items) * 1 * var(--i) * -1
    );
}

.carousel > article:nth-child(1),
.carousel-2 > article:nth-child(1) { --i: 0; }
.carousel > article:nth-child(2),
.carousel-2 > article:nth-child(2) { --i: 1; }
.carousel > article:nth-child(3),
.carousel-2 > article:nth-child(3) { --i: 2; }
.carousel > article:nth-child(4),
.carousel-2 > article:nth-child(4) { --i: 3; }
.carousel > article:nth-child(5),
.carousel-2 > article:nth-child(5) { --i: 4; }
.carousel > article:nth-child(6),
.carousel-2 > article:nth-child(6) { --i: 5; }
.carousel > article:nth-child(7),
.carousel-2 > article:nth-child(7) { --i: 6; }
.carousel > article:nth-child(8),
.carousel-2 > article:nth-child(8) { --i: 7; }

.carousel-2 {
    margin-top: 0.5rem;
}

.carousel-2 > article {
    animation-delay: calc(
        (var(--carousel-duration) / var(--items) * 1 * var(--i) * -1) - (var(--carousel-duration) / var(--items) / 2)
    );
}

@keyframes marquee {
    100% {
        transform: translateX(
            calc(
                (var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) *
                    -1
            )
        );
    }
}

/* ========== SERVICES SECTION ========== */

.services {
    position: relative;
    padding: 10em 2em 15em 2em;
    background: linear-gradient(180deg, #0f0a0a 0%, #0a0a0a 50%, #0a0a0a 100%);
    z-index: 0;
}

.services-content-container {
    position: relative;
    width: 100%;
    max-width: 68em;
    display: flex;
    flex-direction: column;
    border: 0.15em solid rgba(255, 255, 255, 0.5);
    border-radius: 3em;
    margin: 0 auto;
    padding: 3em 3em;
    z-index: 1;
}

#h-services {
    align-self: center;
    color: #FFF;
}

.services-cards {
    color: #FFF;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 2em;
    flex-wrap: wrap;
}

.services-card-left h4, .services-card-right h4 {
    margin: 0;
    z-index: 0;
}

#sub.description {
    margin: 0.8em auto;
    display: block;
    text-align: left;
    max-width: 13em;
    font-size: 1.2rem;
}

.services-card-left, .services-card-right {
    position: relative;
    padding: 6em 4em 8em 4em;
    margin-top: 3em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000;
    background-color: #FFF;
    border-radius: 1em;
    gap: 1.2rem;
    box-shadow: 0 0.1em 7em rgba(255, 20, 20, 0.4); 
    flex: 1;
    min-width: 16em;
    max-width: 22em;
}

.card-logo {
    position: absolute;
    top: -2.6em;
    left: 50%;
    transform: translateX(-50%);
    width: 6em;
    height: 6em;
    background-color: #FF1818;
    border-radius: 50em;
    box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.5);
}

.card-logo img {
    width: 3em;
    height: 3em;
    margin: 1.45em auto;
}

#cta-services {
    margin: 2em auto 1.3em auto;
    display: block;
    z-index: 2;
}

.services-background-gradient-blurs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#services-circle1 {
    position: absolute;
    top: 10%;
    left: -5em;
    height: 30em;
    width: 30em;
    max-width: 50vw;
    background: radial-gradient(circle, rgba(27, 13, 230, 0.5) 0%, transparent 70%);
    border-radius: 100%;
    filter: blur(10em);
}

#services-circle2 {
    position: absolute;
    top: 10%;
    right: -5em;
    height: 30em;
    width: 30em;
    max-width: 50vw;
    background: radial-gradient(circle, rgba(27, 13, 230, 0.5) 0%, transparent 70%);
    border-radius: 100%;
    filter: blur(10em);
}

#services-rectangle1 {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 60em;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 2em;
}

/* ========== CALL TO ACTION SECTION ========== */

.call-to-action {
    position: relative;
    z-index: 0;
}

.cta-content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2em;
    width: 100%;
    max-width: 60em;
    margin: 10em auto -5em auto;
    padding: 5em 2em 12em 2em;
    border: 0.3em solid #212121;
    border-radius: 3em;
    z-index: -1;
}

.call-to-action-buttons {
    display: flex;
    justify-content: start;
    gap: 1em;
    flex-wrap: wrap;
}

#call-to-action {
    display: block;
}

#cta-secondary {
    display: inline-block;
    height: fit-content;
    min-width: 9em;
    padding: 0.4em 1.2em;
    color: #FF1818;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    border: 0.1em solid #FF1818;
    border-radius: 0.3em;
    white-space: nowrap;
}

#h-cta, #p-cta {
    margin: 0;
    color: #212121;
}

#p-cta {
    max-width: 24em;
}

/* ========== SUB-PAGE STYLES ========== */

.page-hero {
    padding: 8em 2em 4em 2em;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #FFF;
    margin-top: 5em;
}

.page-hero h1 {
    font-family: 'Energy', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.page-hero p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    max-width: 30em;
    margin: 1em auto 0;
    color: rgba(255, 255, 255, 0.7);
}

.nav-link-item.nav-active {
    color: #FF1818;
}

.trainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    max-width: 70em;
    margin: 4em auto;
    padding: 0 2em;
}

.trainer-card {
    background: #FFF;
    border-radius: 1.5em;
    overflow: hidden;
    box-shadow: 0 0.2em 1em rgba(0,0,0,0.15);
    text-align: center;
    padding-bottom: 2em;
    border: 2px solid #e0e0e0;
}

.trainer-card img {
    width: 100%;
    height: 16em;
    object-fit: cover;
}

.trainer-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0.8em 0 0.2em;
}

.trainer-card .specialty {
    color: #C01414;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

.trainer-card .bio {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    padding: 0 1.5em;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

.locations-container {
    max-width: 70em;
    margin: 4em auto;
    padding: 0 2em;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.location-card {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    padding: 2.5em;
    border: 2px solid #e0e0e0;
    border-radius: 1.5em;
    background: #FFF;
    box-shadow: 0 0.2em 1em rgba(0,0,0,0.08);
}

.location-info {
    flex: 1;
    min-width: 16em;
}

.location-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #C01414;
    margin: 0 0 0.5em 0;
}

.location-info .address {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1em;
    line-height: 1.6;
}

.location-hours {
    flex: 1;
    min-width: 16em;
}

.location-hours h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin: 0 0 0.8em 0;
    color: #212121;
}

.location-hours table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
}

.location-hours td {
    padding: 0.4em 0;
    border-bottom: 1px solid #e8e8e8;
}

.location-hours td:last-child {
    text-align: right;
    font-weight: 600;
}

.services-page-section {
    max-width: 70em;
    margin: 4em auto;
    padding: 0 2em;
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.service-detail-card {
    display: flex;
    gap: 2em;
    padding: 2.5em;
    background: #FFF;
    border-radius: 1.5em;
    border: 2px solid #e0e0e0;
    box-shadow: 0 0.2em 1em rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.service-icon {
    flex-shrink: 0;
    width: 5em;
    height: 5em;
    background: #FF1818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 3em;
    height: 3em;
}

.service-detail-info {
    flex: 1;
    min-width: 16em;
}

.service-detail-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #212121;
    margin: 0 0 0.3em 0;
}

.service-detail-info p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.service-detail-info ul {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    padding-left: 1.2em;
    margin: 0.5em 0 0 0;
}

.service-detail-info ul li::marker {
    color: #C01414;
}

.services-page-dark {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    padding: 4em 0 6em 0;
}

.services-page-dark .service-detail-card {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

.services-page-dark .service-detail-info h3 {
    color: #FFF;
}

.services-page-dark .service-detail-info p,
.services-page-dark .service-detail-info ul {
    color: rgba(255,255,255,0.75);
}

.rates-grid {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    max-width: 75em;
    margin: 4em auto;
    padding: 0 2em;
    flex-wrap: wrap;
    align-items: flex-start;
}

.rate-card {
    flex: 1;
    min-width: 14em;
    max-width: 18em;
    background: #FFF;
    border: 2px solid #e0e0e0;
    border-radius: 1.5em;
    padding: 2em 1.5em;
    text-align: center;
    box-shadow: 0 0.2em 1em rgba(0,0,0,0.08);
    position: relative;
}

.rate-card.recommended {
    border-color: #FF1818;
    box-shadow: 0 0 2em rgba(255,24,24,0.25);
    transform: scale(1.04);
}

.rate-card.recommended::before {
    content: 'Most Popular';
    position: absolute;
    top: -1em;
    left: 50%;
    transform: translateX(-50%);
    background: #FF1818;
    color: #FFF;
    padding: 0.2em 1em;
    border-radius: 1em;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rate-card .tier-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #212121;
    margin: 0;
}

.rate-card .price {
    font-family: 'Energy', sans-serif;
    font-size: 3rem;
    color: #C01414;
    margin: 0.3em 0;
}

.rate-card .price span {
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
    color: #666;
}

.rate-card .features {
    list-style: none;
    padding: 0;
    margin: 1.2em 0;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #444;
    line-height: 2;
}

.rate-card .features li::before {
    content: '\221A ';
    color: #C01414;
    font-weight: bold;
    margin-right: 0.2em;
}

.comparison-table-wrapper {
    max-width: 70em;
    margin: 2em auto 6em auto;
    padding: 0 2em;
    overflow-x: auto;
}

.comparison-table-wrapper h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1em;
    color: #212121;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    background: #FFF;
    border-radius: 1em;
    overflow: hidden;
    box-shadow: 0 0.2em 1em rgba(0,0,0,0.08);
}

.comparison-table thead th {
    background: #212121;
    color: #FFF;
    padding: 1em;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid #C01414;
}

.comparison-table td {
    padding: 0.8em 1em;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .trainer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trainer-card img { height: 12em; }
    .page-hero h1 { font-size: 3rem; }
    .location-card { flex-direction: column; gap: 1.5em; }
    .rates-grid { flex-direction: column; align-items: center; }
    .rate-card { max-width: 24em; width: 100%; }
    .rate-card.recommended { transform: scale(1); }
}

@media (max-width: 480px) {
    .trainer-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 6em 1em 3em 1em; }
    .page-hero h1 { font-size: 2.5rem; }
    .service-detail-card { padding: 1.5em; }
    .service-icon { width: 4em; height: 4em; }
    .service-icon img { width: 2.2em; height: 2.2em; }
    .location-card { padding: 1.5em; }
    .rate-card { padding: 1.5em 1.2em; }
}

/* ========== FOOTER ========== */

.footer {
    background-color: #212121;
    font-family: 'Roboto', sans-serif;
    color: #FFF;
    padding: 4em 2em 2em 2em;
}

.foot-container {
    margin: 0 auto;
    max-width: 70em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3em;
}

.foot-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2em;
}

.foot-logo-container {
    max-width: 6em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foot-logo-container img {
    width: 3em;
    height: 3.5em;
}

#foot-if {
    margin: 0;
    font-family: 'Energy', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
}

#foot-fc {
    margin: 0;
    font-family: 'Strong', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
}

.foot-right {
    display: flex;
    justify-content: space-between;
    gap: 5em;
    text-align: right;
    flex-wrap: wrap;
}

.foot-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4em;
    text-decoration: none;
    padding: 0;
}

.foot-header {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.foot-right-content {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 1em;
}

.foot-socials {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* ========== OVERFLOW GUARD ========== */

.activities-carousel {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    :root {
        font-size: 14px;
    }

    .nav-bar {
        padding: 0 1em;
    }

    .carousel,
    .carousel-2 {
        --carousel-item-width: 16em;
        --carousel-item-height: 10.5em;
        --carousel-item-gap: 1.5rem;
    }

    .activities-carousel {
        height: 26em;
    }

    .fic-gym, .fic-martial-arts,
    .fic-dance-studio, .fic-lockers, .fic-lavatories {
        height: 14em;
    }

    #hero-image-container {
        transform: scale(0.65);
        right: -5em;
    }
    
}

@media (max-width: 768px) {
    :root {
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5em;
        background: #212121;
        z-index: 105;
        margin: 0;
        padding: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-bar {
        justify-content: space-between;
        padding: 0 1em;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100dvh;
        padding: 5em 0 2em 0;
        gap: 1.5em;
    }

    #hero-content {
        position: relative;
        margin: 0;
        padding: 0 1.5em;
        height: auto;
        max-width: 100%;
        align-items: center;
        text-align: center;
        flex: none;
    }

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

    .hero span {
        font-size: 3rem;
    }

    #hero-image-container {
        position: relative;
        right: auto;
        top: auto;
        max-width: 20em;
        width: 90%;
        height: auto;
        aspect-ratio: 3 / 4;
        transform: none;
        margin: 0 auto;
        overflow: visible;
    }

    #hero-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    .activities {
        padding: 3em 0 2em 0;
    }

    .activities-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5em;
        padding: 0 1em;
    }

    #h-activities {
        width: auto;
        text-align: center;
    }

    #p-activities {
        text-align: center;
        max-width: 100%;
        margin: 0.5em 0 1.5em 0;
    }

    .activities-carousel {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
        height: auto;
        margin: 0 auto 2em auto;
        overflow: visible;
    }

    .carousel,
    .carousel-2 {
        display: flex;
        gap: 1em;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.5em 1em;
        height: auto;
        max-width: 100%;
        mask-image: none;
        margin: 0;
    }

    .carousel::-webkit-scrollbar,
    .carousel-2::-webkit-scrollbar {
        display: none;
    }

    .carousel > article,
    .carousel-2 > article {
        position: relative;
        top: auto;
        left: auto;
        width: 16em;
        min-width: 16em;
        height: 11em;
        flex-shrink: 0;
        scroll-snap-align: start;
        animation: none;
        display: block;
    }

    .carousel > article img,
    .carousel-2 > article img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: scale(1.3);
        bottom: -1.5em;
    }

    .carousel > article h3,
    .carousel-2 > article h3 {
        margin-left: 1.2em;
        font-size: 1.1rem;
        bottom: 0.3em;
    }

    .services-cards {
        flex-direction: column;
        align-items: center;
    }

    #sub.description {
        max-width: 100%;
    }

    .services {
        padding: 4em 1.5em 8em 1.5em;
    }

    .services-content-container {
        max-width: 95%;
        padding: 2em 1.5em;
    }

    .services .header {
        font-size: 2.6rem;
    }

    .services-card-left, .services-card-right {
        max-width: 100%;
        padding: 4.5em 2em 2.5em 2em;
        margin-top: 2.5em;
        min-width: 0;
    }

    .cta-content-container {
        margin: 5em auto -3em auto;
        padding: 3em 1.5em 8em 1.5em;
    }

    .facilities {
        margin: 3em auto 5em auto;
        padding: 0 1em;
    }

    .facilities p {
        max-width: 100%;
        margin: 1.5em 0 2em 0;
    }

    .facilities-images-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8em;
    }

    .fic-top-row, .fic-bot-row {
        display: contents;
    }

    .fic-gym {
        grid-column: 1 / -1;
    }

    .fic-gym, .fic-martial-arts,
    .fic-dance-studio, .fic-lockers, .fic-lavatories {
        max-width: 100%;
        height: 12em;
        min-width: 0;
    }

    .foot-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .foot-right {
        flex-direction: column;
        gap: 2em;
        text-align: center;
    }
    .foot-logo-container {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 10px;
    }

    #hero-content {
        padding: 0 1em;
    }

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

    .hero span {
        font-size: 2.2rem;
    }

    .hero {
        gap: 1em;
        padding: 4em 0 1em 0;
    }

    #hero-image-container {
        max-width: 16em;
        width: 85%;
        aspect-ratio: 3 / 4;
        transform: none;
        height: auto;
        margin: 8em auto -3em auto;
        transform: scale(1.75);
    }

    #hero-image {
        object-fit: cover;
        object-position: center bottom;
    }

    .activities {
        padding: 2.5em 0 1.5em 0;
    }

    .activities-carousel {
        gap: 1em;
        margin: 0 auto 1.5em auto;
    }

    .carousel,
    .carousel-2 {
        padding: 0.3em 0.8em;
        gap: 0.8em;
    }

    .carousel > article,
    .carousel-2 > article {
        width: 14em;
        min-width: 14em;
        height: 9.5em;
    }

    .carousel > article img,
    .carousel-2 > article img {
        transform: scale(1.25);
        bottom: -1.2em;
    }

    .carousel > article h3,
    .carousel-2 > article h3 {
        margin-left: 1em;
        font-size: 1rem;
    }

    .services {
        padding: 3em 1em 6em 1em;
    }

    .services-content-container {
        max-width: 100%;
        padding: 2em 1em;
        border-radius: 2em;
    }

    .services .header {
        font-size: 2.4rem;
    }

    .services-card-left, .services-card-right {
        padding: 4em 1.5em 2em 1.5em;
        margin-top: 2.5em;
        max-width: 100%;
        min-width: 0;
    }

    #sub.description {
        max-width: 100%;
        font-size: 1.05rem;
        margin: 0.5em auto;
    }

    .card-logo {
        width: 5em;
        height: 5em;
        top: -2.2em;
    }

    .card-logo img {
        width: 2.5em;
        height: 2.5em;
        margin: 1.2em auto;
    }

    .cta-content-container {
        width: 92%;
        max-width: none;
        margin: 4em auto -2em auto;
        padding: 2.5em 1.2em 6em 1.2em;
        border-radius: 2em;
    }

    .facilities {
        padding: 0 0.8em;
        margin: 2em auto 4em auto;
    }

    .facilities-images-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6em;
    }

    .fic-top-row, .fic-bot-row {
        display: contents;
    }

    .fic-gym {
        grid-column: 1 / -1;
    }

    .fic-gym, .fic-martial-arts,
    .fic-dance-studio, .fic-lockers, .fic-lavatories {
        height: 10em;
        min-width: 0;
        border-radius: 1.2em;
        border-width: 0.25em;
    }

    .footer {
        padding: 3em 1em 2em 1em;
    }

    .foot-links {
        gap: 1.8em;
    }

    .foot-header {
        font-size: 1.3rem;
    }

    .footer-link, .foot-right a {
        font-size: 1.05rem;
    }
    .foot-logo-container {
        margin: 0 auto;
    }
}
