/* ==========================================================================
   EZ VERT CUSTOM PREMIUM FLYER STYLE SHEET
   Color Palette: Lime Green (#99cc33) & Premium Dark Navy Blue (#0b2230)
   ========================================================================== */

:root {
    --primary-green: #99cc33;
    --primary-green-hover: #82b027;
    --dark-blue: #0b2230;
    --dark-blue-light: #153448;
    --bg-light: #f4f7f6;
    --text-dark: #222e35;
    --text-light: #ffffff;
    --text-muted: #708490;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal container shifting globally */
    width: 100%;
}

body {
    line-height: 1.6;
    overflow-x: hidden; /* Absolute shield against viewport leaks */
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

.small-container {
    max-width: 700px;
}

/* --- HEADER / NAVIGATION --- */
.site-header {
    background-color: var(--dark-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--primary-green);
    transition: transform 0.4s ease-in-out;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
}

/* Clearfix utility for floats inside the header */
.header-container::after {
    content: "";
    display: table;
    clear: both;
}

.logo {
    float: left;
    line-height: 80px;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo-ez {
    color: var(--primary-green);
}

.logo-vert {
    color: var(--text-light);
}

.main-nav {
    float: right;
    line-height: 80px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-green);
}

.main-nav a.nav-cta {
    background-color: var(--primary-green);
    color: var(--dark-blue);
    padding: 10px 20px;
    border-radius: 4px;
}

.main-nav a.nav-cta:hover {
    background-color: var(--text-light);
    color: var(--dark-blue);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-blue);
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--dark-blue);
    background-image: url('../images/13.png'); 
    background-repeat: no-repeat;
    background-position: center bottom; 
    background-size: contain; 
    position: relative;
    padding: 160px 0 100px 0; 
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,34,48,0.75) 0%, rgba(11,34,48,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    max-width: 850px; 
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; 
}

.hero-tagline {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(11, 34, 48, 0.8); 
}

.hero-content p {
    font-size: 18px;
    color: #b0c4de;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(11, 34, 48, 0.8);
}

/* --- SECTION GENERAL HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark-blue);
    letter-spacing: -0.5px;
}

.section-intro {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 15px auto 25px auto;
}

.accent-line-left {
    width: 50px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 15px 0 25px 0;
}

/* --- PROGRAMS SECTION --- */
.programs-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100%;
}

.card {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card.highlighted {
    background-color: var(--dark-blue);
    color: var(--text-light);
    border-top-color: var(--primary-green);
    position: relative;
}

.card.highlighted h3 {
    color: var(--text-light);
}

.card.highlighted p {
    color: #a4bccc;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-green);
    color: var(--dark-blue);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* --- BIO SECTION --- */
.bio-grid {
    display: table;
    width: 100%;
}

.bio-image-wrapper {
    display: table-cell;
    width: 45%;
    vertical-align: middle;
}

.bio-text {
    display: table-cell;
    width: 55%;
    vertical-align: middle;
    padding-left: 60px;
}

.bio-subtitle {
    color: var(--primary-green-hover);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
}

.bio-text h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark-blue);
}

.bio-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #4a5568;
}

/* --- COACH BIOGRAPHY IMAGE CAROUSEL --- */
.coach-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-color: var(--dark-blue);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top; 
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.contact-section .section-header h2 {
    color: var(--text-light);
}

.contact-section .section-intro {
    color: #a4bccc;
}

.form-wrapper {
    background-color: var(--dark-blue-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: #b4c8d4;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-blue);
    border: 2px solid #234963;
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form select option {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.btn-submit {
    background-color: var(--primary-green);
    color: var(--dark-blue);
    width: 100%;
    font-size: 16px;
    font-weight: 900;
}

.btn-submit:hover {
    background-color: var(--primary-green-hover);
}

/* --- FORM NOTIFICATIONS --- */
.msg {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}
.msg-success {
    background-color: rgba(153, 204, 51, 0.2);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}
.msg-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #06141d;
    color: #526674;
    text-align: center;
    padding: 35px 0; 
    font-size: 13px;
    border-top: 1px solid #112635;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-subtext {
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #3b4c58;
}

/* --- FOOTER SOCIAL MEDIA BUTTONS --- */
.footer-socials {
    margin-top: 18px; 
    display: flex;
    justify-content: center;
    gap: 15px; 
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #112635;
    color: #526674;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-icon:hover {
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(153, 204, 51, 0.3);
}

.social-icon.insta:hover {
    background-color: #e1306c;
    color: var(--text-light);
}

.social-icon.fb:hover {
    background-color: #1877f2;
    color: var(--text-light);
}

/* ==========================================================================
   SCROLL ANIMATIONS (LIGHTWEIGHT)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; 
}

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

.services-grid .card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.services-grid.is-visible .card {
    opacity: 1;
    transform: translateY(0);
}

.services-grid.is-visible .card:nth-child(1) { transition-delay: 0.1s; }
.services-grid.is-visible .card:nth-child(2) { transition-delay: 0.3s; }
.services-grid.is-visible .card:nth-child(3) { transition-delay: 0.5s; }

/* ==========================================================================
   BACK TO TOP BUTTON (ROUNDED SQUARE & BOLD ARROW)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--dark-blue);
    border: none;
    border-radius: 8px; 
    font-size: 18px; 
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    pointer-events: none; 
    transform: scale(0.8);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.back-to-top:hover {
    background-color: #ffffff; 
    transform: translateY(-3px) scale(1.05); 
}

/* ==========================================================================
   ACTION GALLERY MASONRY GRID
   ========================================================================== */
.gallery-section {
    background-color: #ffffff;
    border-top: 1px solid #e1e8ed;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--dark-blue);
    aspect-ratio: 1 / 1; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media screen and (min-width: 769px) {
    .gallery-item:nth-child(3n) {
        grid-column: span 2;
        aspect-ratio: 16 / 9; 
    }
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* --- RESPONSIVE DESIGN INTERMEDIATE TABLETS --- */
@media screen and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .hero-section {
        background-position: center bottom;
    }
    
    .hero-overlay {
        background: rgba(11, 34, 48, 0.85); 
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
}

/* --- MOBILE MENU SEPARATED TRIGGER TRACK (CLEANED EXPLICIT OVERRIDES) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   CONSOLIDATED MOBILE BREAKPOINT MODIFICATIONS (768px and Below)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* --- Stacked Mobile Header (Logo Top, Hamburger Bottom) --- */
    .header-container {
        height: auto; 
        padding: 15px 20px;
        width: 100%; 
        max-width: 100%;
        display: flex;
        flex-direction: column; 
        align-items: center;    
        justify-content: center;
        gap: 12px; 
    }

    .logo {
        float: none !important;
        text-align: center; 
        line-height: normal;
        margin: 0;
    }

    .menu-toggle {
        display: flex; 
        margin-top: 0 !important; 
        float: none !important;  
        align-self: center; 
    }

    /* --- Full-Screen Navigation Drawer Menu Panel --- */
    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px; /* Slightly increased gap for full-screen layout breathing room */
        
        position: fixed;
        top: 0;
        right: 0; 
        width: 100%; /* Changed from 80% to 100% for full screen coverage */
        height: 100vh;
        background-color: #06141d; 
        box-shadow: none; /* Shadow removed since it matches the screen edges now */
        
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        
        z-index: 1000;
        float: none;
        line-height: normal;
        padding: 60px 40px;
    }

    .main-nav.active {
        transform: translateX(0); 
    }

    .main-nav a {
        margin: 0 !important;
        font-size: 22px; /* Bumped up size slightly so it stands out beautifully on full screen */
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .main-nav a.nav-cta {
        display: inline-block;
        width: auto;
        padding: 14px 40px;
        margin-top: 10px !important;
    }

    /* --- Animated Hamburger morphs into an "X" Close Button --- */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-green);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-green);
    }

    /* --- Content Structure Alignment Fixes --- */
    .hero-content h1 { 
        font-size: 36px; 
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    
    .bio-grid, .bio-image-wrapper, .bio-text { 
        display: block; 
        width: 100%; 
        padding-left: 0; 
    }
    
    .bio-image-wrapper { 
        margin-bottom: 30px; 
    }

    .hero-buttons {
        display: flex;
        flex-direction: column; 
        gap: 15px; 
        max-width: 290px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-left: 0 !important; 
        text-align: center;
    }

    /* --- Swipeable Beach Carousel Tracking --- */
    .gallery-carousel-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .gallery-grid {
        display: flex !important; 
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none; 
        gap: 15px;
        padding-bottom: 10px;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; 
    }

    .gallery-item {
        flex: 0 0 85%; 
        scroll-snap-align: center;
        aspect-ratio: 4 / 3 !important; 
    }

    .gallery-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #1a3444;
        transition: background-color 0.3s ease;
    }

    .gallery-dot.active {
        background-color: var(--primary-green);
    }
}