/* ==================================
   VARIABLES & RESET
   ================================== */
:root {
    --bg-main: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --gradient-primary: linear-gradient(135deg, #1D4ED8, #A7F3D0);
    --gradient-mint: linear-gradient(135deg, #A7F3D0, #FFFFFF);
    --accent-coral: #FF7F50;
    --highlight-purple: rgba(216, 180, 226, 0.4);
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --logo-blue: #1D4ED8;
    
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
    
    --nav-height: 70px;
    --bottom-nav-height: 64px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height); /* Space for mobile nav */
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==================================
   UTILITIES
   ================================== */
.container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.px-container {
    padding-left: 20px;
    padding-right: 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.card-soft {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

.highlight-purple {
    background-color: var(--highlight-purple);
    padding: 0 4px;
    border-radius: 4px;
}

/* ==================================
   BUTTONS
   ================================== */
button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.btn-solid {
    background-color: var(--white);
    color: var(--accent-coral);
    padding: 16px 28px;
    border-radius: 100px;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.btn-solid.black {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 15px 28px;
    border-radius: 100px;
    font-size: 16px;
}

.btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-text {
    background: none;
    color: var(--logo-blue);
    font-size: 16px;
    padding: 0;
    margin-top: 10px;
}

.w-100 { width: 100%; }

/* ==================================
   HEADER
   ================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.logo-text {
    font-size: 20px;
    color: var(--text-dark);
}

.desktop-nav {
    display: none;
    gap: 24px;
}

.desktop-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--logo-blue);
}

.burger-btn {
    background: none;
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    display: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-card);
}

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

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 600;
}

/* ==================================
   HERO SECTION
   ================================== */
.hero {
    margin-top: var(--nav-height);
    background: var(--gradient-primary);
    padding: 40px 20px 100px; /* Extra bottom padding for overlap */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 60px;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-image {
    max-width: 90%;
    margin: 0 auto;
}

/* ==================================
   PHILOSOPHY (OVERLAP)
   ================================== */
.philosophy {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.philosophy-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
}

.philosophy-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.media-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.media-title {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 20px;
}

/* ==================================
   TRIPWIRE SECTION
   ================================== */
.tripwire-card {
    background: var(--accent-coral);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    max-width: 1160px;
}

.tripwire-content {
    padding: 40px 30px;
    color: var(--white);
}

.badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.tripwire-title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.tripwire-desc {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tripwire-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tripwire-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fdf2f0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.adv-item {
    text-align: left;
}

.adv-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 127, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.adv-item h4 {
    font-size: 20px;
    color: var(--accent-coral);
    margin-bottom: 5px;
}

.adv-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================================
   HORIZONTAL SCROLL (SERVICES & BLOG)
   ================================== */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome */
}

.service-card {
    min-width: 280px;
    padding: 30px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .price {
    font-weight: 700;
    font-size: 18px;
    display: block;
}

/* ==================================
   TRAINERS
   ================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.trainer-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.trainer-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

.trainer-info {
    padding: 25px;
}

.trainer-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tags span {
    background: var(--bg-secondary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-light);
}

.trainer-info p {
    font-size: 14px;
}

/* ==================================
   BLOG SECTION
   ================================== */
.blog-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 15px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 5px;
}

.link-all {
    color: var(--logo-blue);
    font-weight: 600;
}

.blog-card {
    min-width: 300px;
    scroll-snap-align: start;
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.category {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 15px;
}

.blog-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--logo-blue);
    font-weight: 600;
    font-size: 14px;
}

/* ==================================
   B2B
   ================================== */
.gradient-mint {
    background: var(--gradient-mint);
}

.b2b-card {
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
}

.b2b-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.b2b-content p {
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ==================================
   INNER PAGE LAYOUT
   ================================== */
.inner-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 20px 60px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: var(--logo-blue);
}

.content-block {
    background: var(--white);
}

.category-tag {
    display: inline-block;
    background: var(--highlight-purple);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.content-block h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.content-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.content-block .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.content-block h2 {
    font-size: 24px;
    margin: 40px 0 20px;
}

.content-block h3 {
    font-size: 20px;
    margin: 30px 0 15px;
}

.content-block p {
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
}

.content-block blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-coral);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-weight: 500;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-block ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
}

.cta-inline {
    background: var(--gradient-mint);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 50px;
}

.cta-inline h3 {
    margin-top: 0;
}

/* ==================================
   FOOTER
   ================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #9CA3AF;
    font-size: 14px;
}

.footer-contacts p {
    margin-bottom: 10px;
}

.footer-contacts a {
    color: var(--accent-coral);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #9CA3AF;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #9CA3AF;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    color: var(--white);
}

/* ==================================
   BOTTOM MOBILE NAV
   ================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 900;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    width: 25%;
}

.bottom-nav a.active {
    color: var(--logo-blue);
}

.bottom-nav svg {
    width: 24px;
    height: 24px;
}

.bottom-nav span {
    font-size: 10px;
    font-weight: 500;
}

/* ==================================
   MODAL (FORM)
   ================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    font-size: 28px;
    color: var(--text-light);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--logo-blue);
}

.form-disclaimer {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

.form-disclaimer a {
    text-decoration: underline;
}

/* ==================================
   MEDIA QUERIES (DESKTOP)
   ================================== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    
    .bottom-nav {
        display: none;
    }
    
    .burger-btn {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .tripwire-card {
        flex-direction: row;
        margin: 0 auto;
    }
    
    .tripwire-content {
        flex: 1;
        padding: 60px;
    }
    
    .tripwire-image {
        flex: 1;
    }
    
    .tripwire-actions {
        flex-direction: row;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}