/*
Theme Name: Bounce Fitness Theme
Theme URI: https://bouncepbfit.com
Description: Exact-match theme for Bounce Fitness - Private Gym in Pikesville, MD
Version: 3.0
Author: Sonic 777
License: GPL v2 or later
Text Domain: bounce-fitness
*/

/* =================================================================
   CSS VARIABLES - EXACT MATCH TO ELEMENTOR DATA
   ================================================================= */
:root {
    /* Primary Colors */
    --bf-cyan: #0099EC;
    --bf-lime: #EEFB13;
    --bf-white: #FFFFFF;
    --bf-black: #000000;

    /* Dark Backgrounds */
    --bf-dark-1: #161616;
    --bf-dark-2: #1A1A1A;
    --bf-dark-3: #040000;
    --bf-dark-4: #2D2929;
    --bf-dark-5: #020101;
    --bf-dark-6: #212121;

    /* Semi-transparent */
    --bf-card-bg: rgba(255, 255, 255, 0.05);
    --bf-lime-faded: rgba(238, 251, 19, 0.48);

    /* Text Colors */
    --bf-text-white: #FFFFFF;
    --bf-text-gray: rgba(255, 255, 255, 0.61);
    --bf-text-dark: #000000;

    /* Fonts */
    --bf-font-primary: 'Roboto', sans-serif;
    --bf-font-button: 'Montserrat', sans-serif;
    --bf-font-accent: 'Antonio', sans-serif;

    /* Typography Sizes */
    --bf-h1-size: 48px;
    --bf-h1-mobile: 40px;
    --bf-h2-size: 48px;
    --bf-h3-size: 28px;
    --bf-body-size: 18px;
    --bf-small-size: 16px;
    --bf-button-size: 12px;

    /* Spacing */
    --bf-section-padding: 60px;
    --bf-card-padding: 40px;
    --bf-container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bf-font-primary);
    font-size: var(--bf-body-size);
    font-weight: 400;
    line-height: 1.6;
    color: var(--bf-text-dark);
    background-color: var(--bf-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

/* =================================================================
   TYPOGRAPHY - EXACT ELEMENTOR MATCH
   ================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bf-font-primary);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: var(--bf-h1-size);
}

h2 {
    font-size: var(--bf-h2-size);
}

h3 {
    font-size: var(--bf-h3-size);
}

p {
    margin-bottom: 1em;
}

.subheading {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    color: var(--bf-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================================================
   CONTAINER & LAYOUT
   ================================================================= */
.container {
    max-width: var(--bf-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--bf-section-padding) 0;
}

.section-dark {
    background-color: var(--bf-dark-1);
    color: var(--bf-text-white);
}

.section-black {
    background-color: var(--bf-black);
    color: var(--bf-text-white);
}

.section-light {
    background-color: var(--bf-black);
    color: var(--bf-text-white);
}

.section-gradient {
    background: linear-gradient(180deg, var(--bf-dark-6) 0%, var(--bf-black) 100%);
    color: var(--bf-text-white);
}

/* Two Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 {
    flex: 0 0 80%;
    max-width: 100%;
    padding: 0 15px;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

/* =================================================================
   BUTTONS - EXACT ELEMENTOR STYLE
   ================================================================= */
.btn {
    display: inline-block;
    font-family: var(--bf-font-button);
    font-size: var(--bf-button-size);
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 32px;
    background-color: var(--bf-cyan);
    color: var(--bf-white);
    border: none;
    border-left: 5px solid var(--bf-cyan);
    border-right: 5px solid var(--bf-cyan);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--bf-lime);
    border-left-color: var(--bf-lime);
    border-right-color: var(--bf-lime);
    color: var(--bf-black);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 14px;
}

.btn-center {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

.btn-loc {
    display: inline-block;
    font-family: var(--bf-font-button);
    font-size: var(--bf-button-size);
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 32px;
    background-color: var(--bf-cyan);
    color: var(--bf-white);
    border: none;
    border-left: 5px solid var(--bf-cyan);
    border-right: 5px solid var(--bf-cyan);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-loc:hover {
    background-color: var(--bf-lime);
    border-left-color: var(--bf-lime);
    border-right-color: var(--bf-lime);
    color: var(--bf-lime);
}

.cta-btn {
    display: inline-block;
    font-family: var(--bf-font-button);
    font-size: var(--bf-button-size);
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 32px;
    color: var(--bf-white);
    border: none;
    border: 2px solid var(--bf-cyan);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-btn:hover {
    background-color: var(--bf-lime);
    border: 2px solid var(--bf-lime);
    color: var(--bf-black);
}

/* =================================================================
   HEADER - EXACT MATCH
   ================================================================= */
.site-header {
    background-color: var(--bf-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar {
    background-color: var(--bf-dark-1);
    color: var(--bf-white);
    padding: 8px 0;
    font-size: 14px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-item a {
    color: var(--bf-white);
}

.topbar-item a:hover {
    color: var(--bf-cyan);
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-family: var(--bf-font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--bf-dark-1);
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--bf-cyan);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bf-white);
    min-width: 550px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown-menu li:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown-menu li:nth-child(2n) {
    border-right: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bf-dark-1);
}

.nav-dropdown-menu a:hover {
    background-color: var(--bf-cyan);
    color: var(--bf-white);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bf-dark-1);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    background-color: var(--bf-dark-1);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: left;
}

.hero h1 {
    font-size: 56px;
    color: var(--bf-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--bf-text-white);
    margin-bottom: 30px;
}

/* =================================================================
   CARDS - EXACT ELEMENTOR STYLE
   ================================================================= */
.card {
    background-color: var(--bf-card-bg);
    padding: var(--bf-card-padding);
    margin: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    right: 10px;
    height: 16px;
    background-color: var(--bf-cyan);
    z-index: -1;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--bf-lime-faded);
}

.card-title {
    font-size: var(--bf-h3-size);
    font-weight: 900;
    color: var(--bf-white);
    margin-bottom: 15px;
}

.card-text {
    color: var(--bf-text-white);
    font-size: 16px;
}

/* Membership Cards */
.membership-card {
    background-color: var(--bf-dark-4);
    border: 1px solid var(--bf-white);
    padding: var(--bf-card-padding);
    height: 100%;
    transition: all 0.3s ease;
}

.membership-card:hover {
    border-color: var(--bf-lime-faded);
}

.membership-card .card-title {
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
}

/* =================================================================
   TEAM SECTION
   ================================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.team-member-image {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-member-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.team-member-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 18px;
    background-color: var(--bf-cyan);
    z-index: -1;
}

.team-member h3 {
    font-size: 20px;
    color: var(--bf-white);
    margin-bottom: 5px;
}

.team-member-role {
    font-size: 14px;
    color: var(--bf-cyan);
    font-style: italic;
}

.team-member p {
    font-size: 14px;
    color: var(--bf-text-white);
    margin-top: 10px;
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.testimonial {
    background-color: var(--bf-card-bg);
    padding: var(--bf-card-padding);
    position: relative;
}

.testimonial::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    right: 10px;
    height: 16px;
    background-color: var(--bf-cyan);
    z-index: -1;
}

.testimonial-icon {
    font-size: 54px;
    color: var(--bf-white);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--bf-white);
    font-size: 16px;
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: var(--bf-font-accent);
    font-size: 24px;
    font-weight: 600;
    color: var(--bf-white);
}

/* =================================================================
   FAQ / ACCORDION
   ================================================================= */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: var(--bf-white);
}

.faq-question:hover {
    color: var(--bf-cyan);
}

.faq-answer {
    padding-bottom: 15px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--bf-cyan);
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    background-color: var(--bf-dark-1);
    color: var(--bf-white);
    padding: 60px 0 30px;
}

.footer-content {
    border-top: 1px solid #EEFB133B;
    align-items: center;
    justify-items: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-column h4 {
    font-weight: bolder;
    font-size: 30px;
    color: var(--bf-cyan);
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    font-weight: bold;
    font-size: 16px;
    color: var(--bf-white);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid #EEFB133B;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

/* =================================================================
   CONTENT SECTIONS
   ================================================================= */
.content-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-block-reverse {
    flex-direction: row-reverse;
}

.content-block-image {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    min-height: 0;
}

.content-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-block-image--portrait-crop img {
    transform: scale(1.22);
    transform-origin: center center;
}

.content-block-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 18px;
    background-color: var(--bf-cyan);
    z-index: -1;
}

.content-block-text {
    flex: 1;
}

/* =================================================================
   SERVICES GRID
   ================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background-color: var(--bf-card-bg);
    padding: var(--bf-card-padding);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* light overlay so image appears lighter */
    backdrop-filter: blur(2px);
    /* subtle blur effect */
    z-index: 0;
}

.service-item img.service-item-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(80%);
    /* moderate darkening to keep text visible */
    z-index: 0;
}

.service-item>* {
    position: relative;
    z-index: 1;
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    right: 10px;
    height: 16px;
    background-color: var(--bf-cyan);
    z-index: -1;
}

.service-item h3 {
    color: var(--bf-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.service-item p {
    color: #f0f8ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* =================================================================
   CONTACT PAGE
   ================================================================= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-item {
    text-align: center;
}

.contact-info-icon {
    font-size: 40px;
    color: var(--bf-cyan);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.google-map {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Contact Form 7 Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: #0088cc;
}

.wpcf7 label {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.wpcf7 textarea {
    height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background: #00aaff;
    color: #fff;
    border: none;
    padding: 16px 35px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    background: #0088cc;
}

.wpcf7-response-output {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    border: none !important;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #ff4444;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 10px;
    display: block;
}

.wpcf7 p {
    margin-bottom: 0;
}

/* =================================================================
   AKA CONTENT PAGES
   ================================================================= */
.aka-hero {
    background-color: var(--bf-dark-1);
    padding: 80px 0;
    text-align: center;
}

.aka-hero h1 {
    color: var(--bf-white);
    margin-bottom: 20px;
}

.aka-hero p {
    color: var(--bf-text-white);
    max-width: 700px;
    margin: 0 auto;
}

.aka-content {
    padding: 60px 0;
}

.aka-content h2 {
    color: var(--bf-cyan);
    margin-top: 40px;
    margin-bottom: 20px;
}

.aka-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.related-links {
    background-color: var(--bf-dark-1);
    padding: 40px;
    margin-top: 40px;
}

.related-links h3 {
    color: var(--bf-cyan);
    margin-bottom: 20px;
}

.related-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.related-links a {
    color: var(--bf-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-links a:hover {
    color: var(--bf-cyan);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero {
        min-height: 65vh;
        padding-left: 40px;
    }

    .hero-content {
        max-width: 580px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        justify-content: center;
        padding-left: 20px;
        padding-right: 20px;
        min-height: 55vh;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 992px) {
    :root {
        --bf-h1-size: 40px;
        --bf-h2-size: 36px;
        --bf-h3-size: 24px;
        --bf-section-padding: 50px;
    }

    .col-6,
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

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

    .content-block,
    .content-block-reverse {
        flex-direction: column;
    }

    .content-block-image {
        flex: 0 0 100%;
        margin-bottom: 30px;
        width: 100%;
        max-width: 500px;
    }

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

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

@media (max-width: 425px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

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

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bf-white);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .related-links ul {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   UTILITIES
   ================================================================= */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--bf-white);
}

.text-cyan {
    color: var(--bf-cyan);
}

.text-lime {
    color: var(--bf-lime);
}

.bg-dark {
    background-color: var(--bf-dark-1);
}

.bg-black {
    background-color: var(--bf-black);
}

.bg-white {
    background-color: var(--bf-white);
}

.mt-0 {
    margin-top: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}