/*
Theme Name: Total Fitness Premium Demo
Theme URI: https://yourportfolio.com
Description: High-performance, pixel-perfection hybrid Gutenberg theme developed specifically for Total Fitness.
Version: 1.0.0
Author: Your Name
Text Domain: total-fitness
*/

:root {
    /* Total Fitness Brand Palette */
    --tf-teal-dark: #004D5A;
    --tf-teal-bright: #00A3C4;
    --tf-text-dark: #1A1A1A;
    --tf-text-light: #FFFFFF;
    --tf-bg-light: #F4F7F8;
    --tf-gray-border: #E2E8F0;
    
    /* Typography Rules */
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

/* Global Reset Elements */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--tf-text-dark);
    background-color: var(--tf-bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================================================
   Total Fitness Premium Hero Section Styles
   ========================================================================== */
.tf-hero-viewport {
    position: relative;
    height: 90vh;
    min-height: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tf-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    z-index: 1;
}

.tf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 90, 0.9) 0%, rgba(0, 20, 30, 0.4) 100%);
    z-index: 2;
}

.tf-hero-content-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 4;
}

.tf-hero-text-align {
    max-width: 650px;
}

.tf-hero-badge {
    color: var(--tf-teal-bright);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.tf-hero-main-title {
    color: var(--tf-text-light);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.tf-hero-main-title span {
    color: var(--tf-teal-bright);
}

.tf-hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 35px 0;
    font-weight: 400;
}

.tf-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tf-btn-primary {
    background-color: var(--tf-teal-bright);
    color: var(--tf-text-light);
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

.tf-btn-primary:hover {
    background-color: #00bdf3;
    transform: translateY(-2px);
}

.tf-btn-secondary {
    border: 2px solid var(--tf-text-light);
    color: var(--tf-text-light);
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}

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

.tf-branding-wave-svg {
    display: none !important;
}

.tf-branding-wave-svg svg {
    display: none !important;
}

/* ==========================================================================
   Total Fitness Call-To-Action Ribbon Bar
   ========================================================================== */
.tf-cta-ribbon-bar {
    background-color: #00829B;
    padding: 24px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    position: relative;
}

.tf-ribbon-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
}

.tf-ribbon-container h2 {
    color: var(--tf-text-light);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.tf-ribbon-container h2 span {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.tf-ribbon-btn {
    background-color: var(--tf-text-light);
    color: #00829B;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-ribbon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Total Fitness Footer Architecture
   ========================================================================== */
.tf-site-footer {
    background-color: #ffffff;
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--tf-gray-border);
    font-family: var(--font-body);
}

.tf-footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 0 20px 40px 20px;
}

.tf-footer-col h4 {
    color: var(--tf-teal-bright);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.tf-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-footer-col ul li {
    margin-bottom: 12px;
}

.tf-footer-col ul li a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tf-footer-col ul li a:hover {
    color: var(--tf-teal-dark);
}

.tf-footer-sub-basement {
    border-top: 1px solid var(--tf-gray-border);
    padding-top: 20px;
    margin-top: 20px;
}

.tf-basement-align {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tf-copyright, .tf-legal-links, .tf-legal-links a {
    font-size: 12px;
    color: #888888;
    margin: 0;
}
.tf-legal-links a { text-decoration: none; margin-left: 10px;}
.tf-legal-links a:hover { color: var(--tf-teal-bright); }
/* ==========================================================================
   Responsive Header, Hero, Map and Footer Polish
   ========================================================================== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img, video, canvas, svg { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

.tf-site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    background: transparent;
}

.tf-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
}

.tf-site-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}
.logo-total { color: #FFFFFF; }
.logo-fitness { color: var(--tf-teal-bright); }

.tf-header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
}

.tf-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.tf-navigation a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.tf-navigation a:hover { color: var(--tf-teal-bright); }

.tf-header-ctas {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-header-ctas .btn-join,
.tf-header-ctas .btn-members {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.tf-header-ctas .btn-join {
    background: var(--tf-teal-bright);
    color: white;
    padding: 10px 20px;
}

.tf-header-ctas .btn-members {
    border: 2px solid white;
    color: white;
    padding: 8px 18px;
}

.tf-mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0, 77, 90, 0.42);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.tf-mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    margin: 5px 0;
    transition: transform .22s ease, opacity .22s ease;
}

.tf-mobile-menu-open .tf-mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tf-mobile-menu-open .tf-mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.tf-mobile-menu-open .tf-mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .tf-navigation { gap: 18px; }
    .tf-header-menu { gap: 18px; }
    .tf-navigation a { font-size: 13px; }
    .tf-header-ctas .btn-join,
    .tf-header-ctas .btn-members { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 900px) {
    .tf-site-header { padding: 16px 0; }
    .tf-header-container { padding: 0 18px; }
    .tf-mobile-menu-toggle { display: block; }
    .tf-header-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(0, 77, 90, 0.98) 0%, rgba(0, 24, 32, 0.98) 100%);
        padding: 86px 22px 26px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 22px;
        box-shadow: 0 18px 45px rgba(0,0,0,.28);
        transform: translateY(-115%);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
    }
    .tf-mobile-menu-open .tf-header-menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .tf-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .tf-navigation a {
        padding: 15px 4px;
        border-bottom: 1px solid rgba(255,255,255,.13);
        font-size: 16px;
    }
    .tf-header-ctas {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .tf-header-ctas .btn-join,
    .tf-header-ctas .btn-members { width: 100%; }
}

@media (max-width: 768px) {
    .tf-hero-viewport {
        min-height: 620px;
        height: auto;
        padding: 120px 0 70px;
        align-items: flex-end;
    }
    .tf-hero-bg { background-position: 68% center; }
    .tf-hero-overlay { background: linear-gradient(135deg, rgba(0, 77, 90, 0.94) 0%, rgba(0, 20, 30, 0.66) 100%); }
    .tf-hero-content-container { padding: 0 22px; }
    .tf-hero-text-align { max-width: 100%; }
    .tf-hero-badge { font-size: 12px; letter-spacing: 2px; }
    .tf-hero-main-title { font-size: clamp(2.35rem, 11vw, 3.2rem); line-height: 1.02; }
    .tf-hero-lead { font-size: 16px; margin-bottom: 24px; max-width: 95%; }
    .tf-hero-actions { gap: 12px; }
    .tf-btn-primary,
    .tf-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 15px 20px;
    }
    .tf-ribbon-container {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .tf-ribbon-container h2 { font-size: 17px; line-height: 1.35; }
}

@media (max-width: 520px) {
    .tf-site-logo { font-size: 21px; }
    .tf-header-ctas { grid-template-columns: 1fr; }
    .tf-hero-viewport { min-height: 580px; padding-top: 110px; }
    .tf-hero-main-title { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .tf-site-footer { padding: 42px 0 22px; }
    .tf-footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
        padding: 0 22px 34px;
    }
    .tf-footer-col h4 { margin-bottom: 14px; }
    .tf-footer-col ul li { margin-bottom: 10px; }
    .tf-basement-align {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 22px;
    }
    .tf-legal-links a:first-child { margin-left: 0; }
}

@media (max-width: 480px) {
    .tf-footer-grid-container { grid-template-columns: 1fr; }
    .tf-legal-links { line-height: 1.9; }
}
