/* ==================================
   CSS Variables & Global Setup
==================================== */
:root {
    /* Colors */
    --primary-orange: #ff5a00;
    --primary-orange-hover: #e04f00;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #f4f4f4;
    --white: #ffffff;
    --dark-accent: #2a2a2a;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 3rem 0;
    /* Massively reduced uniform section padding */

    /* Layout */
    --max-width: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================================
   Animations
==================================== */
/* Normal Fade in */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* Staggered Fade in for JS control */
.animate-on-scroll-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.hover-glow {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 45px rgba(255, 90, 0, 0.35);
}

.hover-shadow {
    transition: transform 0.4s ease;
}

.hover-shadow:hover .flip-inner {
    box-shadow: 0 0 60px rgba(255, 90, 0, 0.7);
    border-radius: 12px;
}

.row-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.row-hover:hover {
    transform: scale(1.03);
    /* Pops row out */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    background-color: rgba(255, 90, 0, 0.08);
    /* Intense dark orange row block hover */
    z-index: 10;
    position: relative;
    border-radius: 8px;
}

/* ==================================
   Hero Fly-in Animations
==================================== */
.fade-in-left {
    opacity: 0;
    transform: translateX(-80px);
    animation: flyInLeft 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(80px);
    animation: flyInRight 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.3s;
}

.fade-in-bottom {
    opacity: 0;
    transform: translateY(80px);
    animation: flyInBottom 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes flyInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes energyPulse {
    0% {
        transform: scale(1.05) translate(0px, 0px) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(255, 90, 0, 0.8));
    }

    25% {
        transform: scale(1.05) translate(-2px, 2px) rotate(-1deg);
        filter: drop-shadow(0 0 35px rgba(255, 90, 0, 1));
    }

    50% {
        transform: scale(1.05) translate(2px, -2px) rotate(1deg);
        filter: drop-shadow(0 0 45px rgba(255, 90, 0, 0.9));
    }

    75% {
        transform: scale(1.05) translate(-2px, -2px) rotate(-1deg);
        filter: drop-shadow(0 0 35px rgba(255, 90, 0, 1));
    }

    100% {
        transform: scale(1.05) translate(2px, 2px) rotate(1deg);
        filter: drop-shadow(0 0 20px rgba(255, 90, 0, 0.8));
    }
}

.hover-burst {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-burst:hover {
    transform: scale(1.05);
    /* Enlarge quote container */
}

/* ==================================
   Typography & Setup
==================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    color: var(--white);
}

h3 {
    font-size: 1.6rem;
    color: var(--white);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}

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

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

/* Base section snapping format to prevent void space below Nav */
.about,
.classes,
.schedule,
.reviews,
.contact {
    scroll-margin-top: 100px;
}

/* ==================================
   Buttons & Tags
==================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.interactive-btn {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.interactive-link {
    transition: color 0.3s;
}

.interactive-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 90, 0, 0.5);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--primary-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

/* ==================================
   Header / Sticky Nav
==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: background-color var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dark-accent);
}

@media (max-width: 900px) {
    .navbar.scrolled:has(ul.active) {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0 4rem;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    /* Very slight lift */
    filter: drop-shadow(0 0 15px rgba(255, 90, 0, 0.8));
    /* New orange hover glow */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link.text-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    font-size: 1.3rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.text-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-orange);
    transition: width var(--transition-normal);
}

.nav-link.text-link:hover::after {
    width: 100%;
}

.nav-contact-btn {
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0;
}

.nav-contact-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(255, 90, 0, 0.6) !important;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
}

/* ==================================
   Hero Section
==================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: url('Pictures/General/bg1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-logo {
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-main-logo:hover {
    animation: energyPulse 0.4s infinite linear;
}

.subheadline {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 3.5rem;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ==================================
   Trust Indicators
==================================== */
.trust-indicators {
    background-color: var(--primary-orange);
    padding: 5rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.rating-stars {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trust-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.trust-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* ==================================
   Dynamic Photo Flip Gallery
==================================== */
.gallery {
    padding: var(--section-padding);
    position: relative;
    width: 100%;
    background: radial-gradient(circle at center, rgba(255, 90, 0, 0.4) 0%, var(--dark-bg) 60%);
    overflow: hidden;
    /* Contains massive vertical text */
}

.gallery-side-text {
    position: absolute;
    top: 50%;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    /* Scaled uniformly to accommodate 12 vertical characters (LIFE IS GOOD) */
    font-weight: 900;
    color: var(--white);
    /* Solid White body */
    -webkit-text-stroke: 2px var(--primary-orange);
    /* Vibrant explicit orange border */
    line-height: 1;
    /* Keep characters packed tightly */
    text-align: center;
    z-index: 1;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    opacity: 0.9;
}

/* Position strictly and remove 180deg flip since they stack properly */
.left-text {
    left: 80px;
    /* Nudged deeper inward to center organically between screen limit and photo grid */
    transform: translateY(-50%);
}

.right-text {
    right: 80px;
    transform: translateY(-50%);
}

.dynamic-gallery {
    position: relative;
    z-index: 2;
    /* Forces gallery to float cleanly above the huge aesthetic background text */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 340px);
    gap: 1.8rem;
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-slot {
    background-color: transparent;
    perspective: 1200px;
    width: 100%;
    height: 100%;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.gallery-slot.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    background-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.flip-back {
    transform: rotateY(180deg);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* ==================================
   About 
==================================== */
.about {
    background-color: var(--dark-bg);
    padding: var(--section-padding);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "text image"
        "pillars image";
    gap: 2rem 5rem;
    /* Gap between rows is 2rem, cols is 5rem */
    align-items: start;
    width: 100%;
}

.about-text {
    grid-area: text;
}

.about-extras {
    grid-area: image;
}

.pillars {
    grid-area: pillars;
}

.about-extras {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.credential-sub {
    color: var(--primary-orange);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.philosophy-box {
    background-color: var(--card-bg);
    padding: 2rem;
    border-left: 5px solid var(--primary-orange);
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

.philosophy-box h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.pillars h4 {
    font-size: 1.8rem;
    display: inline-block;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pillars ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pillars li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
    /* Shrunk down so they fit visually under the new massive title */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-color: transparent;
}

.pillars li:hover {
    background-color: rgba(255, 90, 0, 0.08);
    /* Fills with dark orange */
    border-color: rgba(255, 90, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 90, 0, 0.25);
    /* Orange glow */
    transform: translateX(10px);
    /* Slides slightly to the right */
}

.pillars li i {
    color: var(--primary-orange);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
    /* Shrunk down icon slightly to match new font size */
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================
   Classes 
==================================== */
.classes {
    background-color: var(--darker-bg);
    padding: var(--section-padding);
}

.classes>.container {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.class-card {
    background-color: var(--card-bg);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--dark-accent);
}

.class-audience.primary-outline {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    margin-top: -0.5rem;
    transition: all 0.3s ease;
}

/* Hover pill fill */
.class-audience.primary-outline:hover,
.class-card:hover .class-audience.primary-outline {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ==================================
   Schedule 
==================================== */
.schedule {
    background-color: var(--dark-bg);
    padding: var(--section-padding);
    padding-bottom: 6rem;
    /* Breathing space injected exactly below calendars */
}

.schedule>.container {
    width: 100%;
}

.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Encase the entire schedule block with heavy orange 3D POP */
.schedule-column {
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255, 90, 0, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.schedule-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 60px rgba(255, 90, 0, 0.45);
}

.schedule-column h3 {
    text-align: center;
    background-color: var(--primary-orange);
    padding: 1.2rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    font-size: 1.4rem;
}

.schedule-list {
    list-style: none;
    background-color: var(--card-bg);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--dark-accent);
    border-top: none;
}

/* Modified row formatting for pure CSS Left-Center-Right Layout */
.schedule-list li {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--dark-accent);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .day-col {
    text-align: left;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.schedule-list .time-col {
    text-align: center;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.1rem;
}

.schedule-list .class-col {
    text-align: right;
    font-size: 1.1rem;
}

/* ==================================
   Reviews 
==================================== */
.reviews {
    background-color: var(--darker-bg);
    padding: var(--section-padding);
}

.reviews>.container {
    width: 100%;
}

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.reviews-slider {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.reviews-slider:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 auto;
    width: 450px;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--dark-accent);
    display: flex;
    flex-direction: column;
}

.review-card .stars {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
}

.review-card .author {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-align: right;
    color: var(--primary-orange);
}

/* ==================================
   Life is Good Quote Banner 
==================================== */
.quote-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('Pictures/General/IMG_5801.JPG') center/cover fixed;
    text-align: center;
    border-top: 5px solid var(--primary-orange);
    border-bottom: 5px solid var(--primary-orange);
    padding: 4rem 0;
}

.quote-banner>.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.massive-quote {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.quote-subtext {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

/* ==================================
   Contact 
==================================== */
.contact {
    background-color: var(--dark-bg);
    padding: var(--section-padding);
}

.contact>.container {
    width: 100%;
    max-width: 1200px;
}

/* Revert back to original layout formatting but tighter */
.contact-card {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--dark-accent);
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 90, 0, 0.5);
    /* Massive orange burst on hover */
}

.contact-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.2rem;
}

.contact-desc {
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-details i {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-right: 1.2rem;
    margin-top: 0.2rem;
    width: 35px;
    /* Force uniform column width */
    text-align: center;
    /* Center icon inside uniform column */
}

.contact-details strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Social Buttons Redesign */
.social-links-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: transparent;
    /* Specific hollow style */
    font-size: 1.4rem;
    border-radius: 50%;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.social-links-contact a i {
    margin: 0;
    color: var(--primary-orange);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.4);
}

.social-links-contact a:hover i {
    color: var(--white);
    /* White icon over filled orange bg */
}

/* Restored Map side */
.contact-map-placeholder {
    height: 100%;
    min-height: 400px;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================================
   Footer
==================================== */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--dark-accent);
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    color: var(--white);
}

/* ==================================
   Responsive Media Queries
==================================== */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .massive-quote {
        font-size: 4rem;
    }

    .quote-subtext {
        font-size: 1.8rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

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

    .dynamic-gallery {
        grid-template-rows: repeat(2, 280px);
    }

    .gallery-side-text {
        display: none;
        /* Hide massive aesthetic text when screen is too narrow to support it cleanly */
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .nav-container {
        padding: 0 1rem;
    }

    nav ul {
        display: none;
        position: fixed;
        /* Lock to viewport */
        top: 80px;
        /* Below navbar naturally */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        /* Massive glass bleed down the whole screen */
        background-color: rgba(10, 10, 10, 0.4);
        /* Lower opacity heavily to reveal the blur effect */
        backdrop-filter: blur(25px);
        /* Strong frosted glass blur */
        -webkit-backdrop-filter: blur(25px);
        /* Crucial for Safari Native */
        flex-direction: column;
        padding: 4rem 0;
        /* Huge vertical center focus */
        border-top: 1px solid var(--dark-accent);
        gap: 2rem;
        /* Better vertical breathing room for links */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }

    nav ul.active {
        display: flex;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        order: 1;
    }

    .about-extras {
        order: 2;
        margin-top: 1rem;
    }

    .pillars {
        order: 3;
        /* Render precisely below the image */
    }

    .schedule-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .schedule-column:nth-child(2) {
        order: -1;
        /* Automatically hoist Adult classes above Kids classes */
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .dynamic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 280px);
    }

    .contact-info {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 2rem 0;
        /* Save massive vertical dead-space on scrolling */
    }

    h2 {
        font-size: 2rem !important;
        /* Downscaled heavily from 3rem */
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero-main-logo {
        height: 180px;
    }

    .massive-quote {
        font-size: 2.5rem;
    }

    .quote-subtext {
        font-size: 1.15rem;
        /* Shrunk so 'team' doesn't wrap off the line */
    }

    .pillars li {
        margin-bottom: 0.8rem;
        /* Squish excessive gap on mobile */
    }

    .subheadline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

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

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

    .dynamic-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 250px);
        /* Limit to 3 slots */
        padding: 1rem 0;
    }

    .gallery-slot:nth-child(n+4) {
        display: none !important;
        /* Hide remaining slots cleanly */
    }

    .container {
        width: 100%;
        padding: 0 1.5rem;
        /* Ensure healthy text distance from extremely narrow phone bezels */
    }

    .reviews .section-header {
        margin-bottom: 2rem;
        /* Tighten gap between text and actual scrolling cards */
    }

    .contact-info {
        padding: 2.5rem 1.5rem 1rem 1.5rem;
        /* Bring components together */
    }

    .social-links-contact a {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        /* Inflate touch-targets massively on phones */
    }

    .social-links-contact a i {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .review-card {
        width: 300px;
    }

    .schedule-list li {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: 0.5rem;
    }

    .schedule-list .day-col,
    .schedule-list .class-col {
        text-align: center;
    }

    .contact-map-placeholder {
        min-height: 250px;
        /* Compress the visual height of map block on mobile */
    }
}

/* ==================================
   Touch Device Formats (Disable Hover Stickiness)
==================================== */
@media (hover: none) {

    /* Globally override hover transforms on interactive UI segments when using a touch screen */
    .hover-lift:hover,
    .hover-burst:hover {
        transform: none !important;
    }

    .hover-glow:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: var(--dark-accent) !important;
        background-color: var(--card-bg) !important;
    }

    .hover-shadow:hover .flip-inner {
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .row-hover:hover {
        transform: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        z-index: auto !important;
        position: static !important;
    }

    .logo img:hover,
    .hero-main-logo:hover {
        transform: none !important;
        filter: none !important;
        animation: none !important;
        box-shadow: none !important;
    }

    .pillars li:hover {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .class-audience.primary-outline:hover,
    .class-card:hover .class-audience.primary-outline {
        background-color: transparent !important;
        color: var(--primary-orange) !important;
    }

    .schedule-column:hover {
        transform: none !important;
        box-shadow: 0 0 40px rgba(255, 90, 0, 0.25) !important;
    }

    .contact-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .social-links-contact a:hover {
        background-color: transparent !important;
        border-color: var(--primary-orange) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .social-links-contact a:hover i {
        color: var(--primary-orange) !important;
    }
}