/*
Theme Name: F45 NYC
Theme URI: https://f45nyc.com
Author: Hän Creative Studio
Author URI: https://hancreative.studio
Description: Custom WordPress theme for F45 Training NYC locations. Features functional training gym branding with interactive location maps, workout modals, member portal, and Link In Bio pages.
Version: 1.9.94
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: f45-nyc
Tags: fitness, gym, one-page, custom-logo, featured-images
*/

/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */

:root {
    /* Brand Colors */
    --f45-red: #E02B20;
    --f45-dark: #0a0a0a;
    --f45-dark-alt: #111111;
    --f45-white: #ffffff;
    --f45-gray: #888888;
    --f45-light-gray: #f4f4f4;
    --f45-black: #000000;
    
    /* Workout Colors */
    --workout-cardio: #E02B20;
    --workout-resistance: #3B82F6;
    --workout-hybrid: #F97316;
    --workout-recovery: #22C55E;
    
    /* Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Bebas Neue', Impact, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-width: 1200px;
    --container-narrow: 900px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #666666;
    background-color: var(--f45-dark);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--f45-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.f45-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--f45-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.f45-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.f45-preloader__logo {
    width: 200px;
    animation: preloader-pulse 1.5s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--full {
    width: 100%;
    max-width: none;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section--dark {
    background-color: var(--f45-dark);
    color: var(--f45-white);
}

.section--light {
    background-color: var(--f45-white);
    color: var(--f45-dark);
}

.section--light h1,
.section--light h2,
.section--light h3 {
    color: var(--f45-dark);
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: transparent;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    overflow: visible;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    transition: height 0.4s ease;
    overflow: visible;
}

.site-header.scrolled .container {
    height: 70px;
}

.site-logo img {
    height: 70px;
    width: auto;
    transition: height 0.4s ease;
}

.site-header.scrolled .site-logo img {
    height: 45px;
}

/* Main Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--f45-white);
    transition: all 0.4s ease;
    position: relative;
}

.site-header.scrolled .nav-menu li a {
    padding: 12px 18px;
    font-size: 15px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: var(--f45-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-header.scrolled .nav-menu li a::after {
    left: 18px;
    right: 18px;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    transform: scaleX(1);
}

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

/* Header CTA Button */
.header-cta {
    margin-left: 20px;
}

.header-cta .btn {
    padding: 14px 28px;
    font-size: 16px;
    transition: all 0.4s ease;
}

.site-header.scrolled .header-cta .btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--f45-white);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled .menu-toggle span {
    width: 22px;
    margin: 5px 0;
}

/* Nav Dropdown */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li.has-dropdown .dropdown-arrow {
    transition: transform 0.2s ease;
    width: 10px;
    height: 10px;
}

.nav-menu li.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    list-style: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    overflow: visible;
    max-height: none;
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(10, 10, 10, 0.98);
}

.nav-menu .dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-menu .dropdown-menu li a::after {
    display: none !important;
}

.nav-menu .dropdown-menu li a:hover {
    background: rgba(224, 43, 32, 0.1);
    color: #ffffff;
}

.site-header.scrolled .nav-menu .dropdown-menu li a {
    padding: 10px 20px;
    font-size: 14px;
}

/* Mobile Navigation */
#mobile-nav,
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 998;
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
    overflow-y: auto;
}

#mobile-nav.active,
.mobile-nav.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
}

.mobile-nav__content {
    padding: 120px 30px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav__section {
    margin-bottom: 32px;
}

.mobile-nav__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__link {
    display: block;
    padding: 14px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.mobile-nav__link:hover {
    color: #E02B20;
}

.mobile-nav__link--sub {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav__cta {
    display: block;
    background: #E02B20;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: auto;
}

.mobile-nav__cta:hover {
    background: #c42419;
}

/* Menu Toggle Active State */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 40px;
    border: 2px solid var(--f45-white);
    background: transparent;
    color: var(--f45-white);
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--f45-red);
    border-color: var(--f45-red);
    color: var(--f45-white);
    transform: translateY(-2px);
}

.btn--red {
    background: var(--f45-red);
    border-color: var(--f45-red);
}

.btn--red:hover {
    background: #c41f16;
    border-color: #c41f16;
}

.btn--small {
    padding: 10px 24px;
    font-size: 14px;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--f45-dark);
    overflow: hidden;
    padding: 140px 20px 80px;
}

.hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Fallback image for mobile/no-autoplay browsers */
.hero__fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 2;
}

/* Hide fallback when video is playing */
@media (min-width: 769px) {
    .hero__fallback-img {
        display: none;
    }
}

/* Mobile: show fallback, hide video on very small screens or if autoplay blocked */
@media (max-width: 768px) {
    .hero__video-bg video {
        /* Keep video but it may not autoplay on mobile */
    }
}

.hero__video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 3;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--f45-white);
    max-width: 1000px;
    width: 100%;
}

.hero__nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero__nav .btn {
    min-width: 180px;
}

.hero__cta {
    margin: 50px 0;
    cursor: pointer;
    transition: var(--transition-medium);
    display: inline-block;
    padding: 30px 60px;
    border: 3px solid var(--f45-white);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.hero__cta:hover {
    transform: scale(1.02);
    background: var(--f45-red);
    border-color: var(--f45-red);
}

.hero__cta h1 {
    font-size: clamp(42px, 8vw, 72px);
    color: var(--f45-white);
    text-shadow: none;
    margin: 0;
    letter-spacing: 3px;
}

.hero__stars {
    max-width: 350px;
    margin: 40px auto;
    opacity: 0.9;
}

.hero__tagline {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.hero__tagline em {
    color: var(--f45-red);
    font-style: italic;
}

/* Stars Divider */
.stars-divider {
    display: block;
    max-width: 250px;
    margin: 25px auto;
}

.stars-divider--small {
    max-width: 180px;
}

/* ==========================================================================
   WHAT IS F45 SECTION
   ========================================================================== */

.what-is-f45 {
    background: var(--f45-white);
    padding: 120px 0;
}

.what-is-f45__title {
    text-align: center;
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 80px;
    color: var(--f45-dark);
}

.what-is-f45__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.what-is-f45__item {
    text-align: center;
    padding: 20px;
}

.what-is-f45__item-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--f45-gray);
    margin-bottom: 15px;
}

.what-is-f45__item-title {
    font-size: 42px;
    color: var(--f45-red);
    margin-bottom: 25px;
}

.what-is-f45__item-text {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

/* ==========================================================================
   WORKOUTS SECTION
   ========================================================================== */

.workouts {
    background: var(--f45-white);
    padding: 80px 0 0;
}

.workouts .container {
    max-width: 100%;
    padding: 0 20px;
}

.workouts__title {
    text-align: center;
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 50px;
    color: var(--f45-dark);
}

.workouts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Workout Cards with Images */
.workout-card {
    position: relative;
    height: 450px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
}

.workout-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: var(--transition-medium);
}

.workout-card--cardio::before {
    background: linear-gradient(to top, var(--workout-cardio) 0%, rgba(224, 43, 32, 0.3) 100%);
}

.workout-card--resistance::before {
    background: linear-gradient(to top, var(--workout-resistance) 0%, rgba(59, 130, 246, 0.3) 100%);
}

.workout-card--hybrid::before {
    background: linear-gradient(to top, var(--workout-hybrid) 0%, rgba(249, 115, 22, 0.3) 100%);
}

.workout-card--recovery::before {
    background: linear-gradient(to top, var(--workout-recovery) 0%, rgba(34, 197, 94, 0.3) 100%);
}

.workout-card:hover .workout-card__image {
    transform: scale(1.1);
}

.workout-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    z-index: 2;
    text-align: center;
}

.workout-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: block;
}

.workout-card__name {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--f45-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   MODAL POPUP
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--f45-dark);
    max-width: 600px;
    width: 100%;
    padding: 60px 50px;
    position: relative;
    text-align: center;
    color: var(--f45-white);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-medium);
    border-top: 4px solid var(--f45-red);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Modal color variants */
.modal--cardio {
    border-top-color: var(--workout-cardio);
}

.modal--resistance {
    border-top-color: var(--workout-resistance);
}

.modal--hybrid {
    border-top-color: var(--workout-hybrid);
}

.modal--recovery {
    border-top-color: var(--workout-recovery);
}

.modal--cardio .modal__label,
.modal--cardio .modal__title {
    color: var(--workout-cardio);
}

.modal--resistance .modal__label,
.modal--resistance .modal__title {
    color: var(--workout-resistance);
}

.modal--hybrid .modal__label,
.modal--hybrid .modal__title {
    color: var(--workout-hybrid);
}

.modal--recovery .modal__label,
.modal--recovery .modal__title {
    color: var(--workout-recovery);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--f45-white);
    font-size: 36px;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    opacity: 0.7;
}

.modal__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.modal__title {
    font-size: 56px;
    margin-bottom: 15px;
}

.modal__days {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.modal__description {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   LOCATIONS INTRO SECTION
   ========================================================================== */

.locations {
    background: var(--f45-dark);
    padding: 120px 0;
    color: var(--f45-white);
}

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

.locations__title {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 30px;
}

.locations__subtitle {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 15px;
}

.locations__cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* ==========================================================================
   HOTSPOT MAP
   ========================================================================== */

.hotspot-map {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.hotspot-map__image {
    width: 100%;
    height: auto;
    display: block;
}

.hotspot {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-medium);
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 11;
}

.hotspot__icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* Radar ping animation */
.hotspot::before,
.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--f45-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
}

.hotspot::before {
    animation: radar-ping 2.5s ease-out infinite;
}

.hotspot::after {
    animation: radar-ping 2.5s ease-out infinite 1.25s;
}

@keyframes radar-ping {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.hotspot:hover::before,
.hotspot:hover::after {
    animation: none;
    opacity: 0;
}

.hotspot__tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--f45-dark);
    color: var(--f45-white);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    border: 2px solid var(--f45-red);
}

.hotspot__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--f45-red);
}

.hotspot:hover .hotspot__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hotspot positions - handled by JavaScript for accuracy */
.hotspot {
    top: 0;
    left: 0;
}

/* ==========================================================================
   LOCATION SECTIONS - FULL WIDTH REDESIGN
   ========================================================================== */

.location-section {
    position: relative;
    min-height: auto;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

.location-section__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px 0;
}

.location-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Location Info Side */
.location-info-block {
    color: var(--f45-white);
}

.location-info-block__logo {
    max-width: 60px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.location-info-block__name {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 5px;
    line-height: 1;
}

.location-info-block__stars {
    max-width: 120px;
    margin: 10px 0 15px;
}

.location-info-block__address {
    font-size: 15px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.location-info-block__address a {
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.location-info-block__address a:hover {
    color: var(--f45-red);
    border-bottom-color: var(--f45-red);
}

.location-info-block__subway {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.location-info-block__subway img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.location-info-block__contact {
    margin-bottom: 15px;
}

.location-info-block__phone {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 3px;
}

.location-info-block__phone a {
    color: var(--f45-white);
}

.location-info-block__phone a:hover {
    color: var(--f45-red);
}

.location-info-block__email a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.location-info-block__email a:hover {
    color: var(--f45-red);
}

.location-info-block__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.location-info-block__actions .btn {
    padding: 10px 18px;
    font-size: 12px;
}

.location-info-block__social {
    display: flex;
    gap: 8px;
}

.location-info-block__social a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f45-white);
    transition: var(--transition-fast);
}

.location-info-block__social a svg {
    width: 14px;
    height: 14px;
}

.location-info-block__social a:hover {
    background: var(--f45-red);
    border-color: var(--f45-red);
}

/* Location Map Side */
.location-map-block {
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.location-map-block iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Location Contact Block (Middle Column) */
.location-contact-block {
    color: var(--f45-white);
    text-align: center;
}

.location-contact-block__info {
    margin-bottom: 20px;
}

.location-contact-block__phone {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 5px;
}

.location-contact-block__phone a {
    color: var(--f45-white);
}

.location-contact-block__phone a:hover {
    color: var(--f45-red);
}

.location-contact-block__email a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.location-contact-block__email a:hover {
    color: var(--f45-red);
}

.location-contact-block__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn--full {
    width: 100%;
    text-align: center;
}

.location-contact-block__actions .btn {
    padding: 12px 20px;
    font-size: 13px;
}

.location-contact-block__social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.location-contact-block__social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f45-white);
    transition: var(--transition-fast);
}

.location-contact-block__social a svg {
    width: 16px;
    height: 16px;
}

.location-contact-block__social a:hover {
    background: var(--f45-red);
    border-color: var(--f45-red);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: var(--f45-dark);
    padding: 120px 0;
    text-align: center;
    color: var(--f45-white);
}

.cta-section__title {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 30px;
}

/* ==========================================================================
   FOOTER - COMPREHENSIVE REDESIGN
   ========================================================================== */

.site-footer {
    background: var(--f45-dark-alt);
    color: var(--f45-white);
}

/* Footer Portal Access Bar */
.footer-portals {
    background: linear-gradient(135deg, var(--f45-dark) 0%, #1a1a1a 100%);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-portals__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-portals__text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-portals__label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-portals__buttons {
    display: flex;
    gap: 12px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.portal-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.portal-btn--member {
    background: linear-gradient(135deg, var(--f45-red) 0%, #c42419 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(224, 43, 32, 0.3);
}

.portal-btn--member:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(224, 43, 32, 0.4);
}

.portal-btn--team {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-btn--team:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer Top - Main Content */
.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

/* Footer Brand Column */
.footer-brand {
    padding-right: 40px;
}

.footer-brand__logo {
    max-width: 180px;
    margin-bottom: 25px;
}

.footer-brand__tagline {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-brand__social {
    display: flex;
    gap: 12px;
}

.footer-brand__social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f45-white);
    transition: var(--transition-fast);
}

.footer-brand__social a:hover {
    background: var(--f45-red);
}

/* Footer Columns */
.footer-column__title {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--f45-white);
}

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

.footer-column__list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-column__list a:hover {
    color: var(--f45-red);
}

/* Footer Locations Quick Links */
.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-locations a,
.footer-locations a:visited {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-locations a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--f45-red);
    border-radius: 50%;
}

.footer-locations a:hover {
    color: var(--f45-white);
}

/* Footer Middle - Badges */
.footer-middle {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-badges img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-badges img:hover {
    opacity: 1;
}

/* Footer Bottom - Copyright */
.footer-bottom {
    padding: 25px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__links {
    display: flex;
    gap: 30px;
}

.footer-bottom__links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__links a:hover {
    color: var(--f45-red);
}

.footer-nyc {
    text-align: center;
}

.footer-nyc__text {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--f45-white);
}

.footer-nyc__emoji {
    font-size: 24px;
    margin-left: 8px;
}

/* Footer Credit */
.footer-credit {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.footer-credit .heart {
    color: var(--f45-red);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--f45-red);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Simple fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animation */
.hero__content {
    animation: fadeIn 0.8s ease 0.2s both;
}

/* Modal animations */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Preloader */
.preloader {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

@media screen and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 3;
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-brand__logo {
        margin: 0 auto 25px;
    }
    
    .footer-brand__social {
        justify-content: center;
    }
}

@media screen and (max-width: 1024px) {
    .location-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .location-info-block {
        grid-row: 1;
    }
    
    .location-contact-block {
        grid-row: 1;
    }
    
    .location-map-block {
        grid-column: span 2;
        height: 250px;
        max-width: 100%;
    }
    
    .location-info-block__subway {
        justify-content: flex-start;
    }
    
    .location-section {
        background-attachment: scroll;
    }
    
    .location-map-block {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .location-section {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 980px) {
    .site-header .container {
        height: 100px;
    }
    
    .site-header.scrolled .container {
        height: 60px;
    }
    
    .site-logo img {
        height: 55px;
    }
    
    .site-header.scrolled .site-logo img {
        height: 40px;
    }
    
    .site-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero__nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero__nav .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .hero__cta {
        padding: 25px 40px;
    }
    
    .what-is-f45__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .workouts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    /* CTA Section mobile */
    .cta-section .container {
        text-align: center;
    }
    
    .cta-section .btn {
        display: block;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 767px) {
    .section {
        padding: 80px 0;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Hero mobile */
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero__cta {
        padding: 20px 30px;
        margin: 30px 0;
    }
    
    .hero__cta h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero__tagline {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .hero__stars {
        max-width: 250px;
        margin: 30px auto;
    }
    
    /* What is F45 mobile */
    .what-is-f45 {
        padding: 80px 0;
    }
    
    .what-is-f45__title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .what-is-f45__item {
        padding: 15px;
    }
    
    .what-is-f45__image {
        width: 100px;
        height: 100px;
    }
    
    .what-is-f45__item h3 {
        font-size: 22px;
    }
    
    /* Workouts mobile */
    .workouts {
        padding: 60px 0 0;
    }
    
    .workouts__title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .workouts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .workout-card {
        height: 280px;
    }
    
    .workout-card__name {
        font-size: 20px;
    }
    
    .workout-card__label {
        font-size: 10px;
    }
    
    /* Modal mobile */
    .modal {
        padding: 50px 25px;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal__title {
        font-size: 36px;
    }
    
    .modal__label {
        font-size: 12px;
    }
    
    .modal__days {
        font-size: 14px;
    }
    
    .modal__description {
        font-size: 15px;
    }
    
    /* Locations intro mobile */
    .locations__title {
        font-size: 32px;
    }
    
    .locations__subtitle {
        font-size: 20px;
    }
    
    .locations__cta-text {
        font-size: 14px;
    }
    
    .hotspot-map {
        margin-top: 30px;
    }
    
    .hotspot {
        width: 32px;
        height: 32px;
    }
    
    .hotspot__icon {
        width: 32px;
        height: 32px;
    }
    
    /* Location sections mobile - Clean card layout */
    .location-section {
        background-attachment: scroll;
    }
    
    .location-section__inner {
        padding: 0;
    }
    
    .location-section__grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 20px;
        gap: 24px;
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    /* Info block - logo, name, stars, address, subway */
    .location-info-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        order: 1;
        width: 100%;
    }
    
    .location-info-block__logo {
        max-width: 50px;
        margin-bottom: 12px;
    }
    
    .location-info-block__name {
        font-size: 32px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .location-info-block__stars {
        max-width: 90px;
        margin: 0 0 12px;
    }
    
    .location-info-block__address {
        font-size: 14px;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .location-info-block__subway {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .location-info-block__subway img {
        width: 26px;
        height: 26px;
    }
    
    /* Contact block - phone, email, buttons, social */
    .location-contact-block {
        text-align: left;
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .location-contact-block__info {
        text-align: left;
        width: 100%;
    }
    
    .location-contact-block__phone {
        font-size: 24px;
        margin-bottom: 4px;
        text-align: left;
    }
    
    .location-contact-block__email {
        font-size: 14px;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .location-contact-block__actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 16px;
        width: 100%;
    }
    
    .location-contact-block__actions .btn {
        flex: 1;
        padding: 14px 20px;
        font-size: 12px;
        text-align: center;
    }
    
    .location-contact-block__social {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .location-contact-block__social a {
        width: 40px;
        height: 40px;
    }
    
    /* Map block - at the bottom */
    .location-map-block {
        order: 3;
        height: 200px;
        border-radius: 8px;
        overflow: hidden;
        width: 100%;
    }
    
    .location-map-block iframe {
        width: 100%;
        height: 100%;
    }
    
    /* CTA Section mobile */
    .cta-section__title {
        font-size: 28px;
    }
    
    .cta-section__text {
        font-size: 16px;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-brand__logo {
        margin: 0 auto 20px;
    }
    
    .footer-brand__social {
        justify-content: center;
    }
    
    .footer-column__title {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .footer-locations a {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom__links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Portal buttons responsive */
    .footer-portals__inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-portals__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .portal-btn {
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 479px) {
    .hero__cta {
        padding: 15px 20px;
        margin: 20px 10px;
    }
    
    .hero__cta h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .hero__nav .btn {
        max-width: 100%;
        padding: 14px 20px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .workouts__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    
    .workout-card {
        height: 220px;
    }
    
    .workout-card__name {
        font-size: 18px;
    }
    
    .workout-card__label {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .location-info-block__name {
        font-size: 32px;
    }
    
    .location-info-block__phone {
        font-size: 22px;
    }
    
    .location-info-block__address {
        font-size: 16px;
    }
    
    .location-info-block__actions {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .modal {
        padding: 40px 20px;
        margin: 10px;
    }
    
    .modal__title {
        font-size: 28px;
    }
    
    .modal__close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }
    
    .hotspot {
        width: 28px;
        height: 28px;
    }
    
    .hotspot__icon {
        width: 28px;
        height: 28px;
    }
    
    .hotspot__tooltip {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-scroll {
    overflow: hidden;
}
