/*
Theme Name: Enduranto Performance Theme
Theme URI: https://enduranto.com
Description: A high-performance, lightweight theme tailored for athletic, endurance, and domain acquisition landing pages. Built with native responsive scaling, turnkey brand suite integration, and an optimized, professional acquisition form for WPMS.
Version: 1.2.0
Author: itsSri.net
Tags: full-width-template, custom-colors, translation-ready, full-site-responsive
*/

/* ==========================================================================
   1. DESIGN TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-blue-deep: #0B1B3D;
    --color-blue-mid: #1E3A8A;
    --color-orange-brand: #FF6A00;
    --color-orange-glow: #FFB300;
    --color-bg-light: #F8FAFC;
    --color-text-dark: #0F172A;
    --color-text-muted: #475569;
    
    /* Branding Gradients */
    --gradient-endurance: linear-gradient(135deg, var(--color-orange-brand) 0%, var(--color-orange-glow) 100%);
    
    /* Typography System */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   2. CORE SYSTEM RESET & BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden; /* Prevents universal side-scrolling blowout from content overflows */
}

/* Typography Scale */
h1, h2, h3, h4 {
    color: var(--color-blue-deep);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    overflow-wrap: break-word; /* [FIX for image_37.png] Prevents long domain words from cutting, forcing them to break to next line */
}

a {
    color: var(--color-blue-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-orange-brand);
}

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

/* ==========================================================================
   3. UNIVERSAL CONTAINERS & RESPONSIVE LAYOUTS
   ========================================================================== */
.header-container, 
.content-container, 
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

.landing-container section {
    /* Critical padding for image_38.png and overall symmetry on mobile */
    padding: 3rem 1.25rem; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* [FIX for image_38.png] Prevents content overflows within grid containers from pushing parent section */
}

@media (min-width: 768px) {
    .header-container, .content-container, .footer-container {
        padding: 0 2rem;
    }
    .landing-container section {
        padding: 6rem 2rem; /* Expands symmetrically on larger screens */
    }
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

/* ==========================================================================
   4. FIXED RESPONSIVE GRIDS (PREVENTS GRID & BUTTON CUTOUTS)
   ========================================================================== */
.posts-grid,
.logo-display-grid, 
.pathways-grid {
    display: grid;
    /* [FIX for image_38.png] Use a strictly responsive multi-breakpoint system rather than a fluid one on mobile */
    grid-template-columns: 1fr; /* Default: Single Column Stacking on mobile */
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

/* Breakpoint 1: Small Tablet/Large Phone (576px+) */
@media (min-width: 576px) {
    .posts-grid, .logo-display-grid, .pathways-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
    }
}

/* Breakpoint 2: Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .posts-grid, .logo-display-grid, .pathways-grid {
        /* Drop restrictive single auto-fit minmax to force correct grid sizing on desktop only */
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
        gap: 3rem;
    }
}

/* ==========================================================================
   5. COMPONENT ELEMENTS (BUTTONS & BADGES)
   ========================================================================== */
.btn-primary, .btn-large-cta, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary, .btn-large-cta {
    background: var(--gradient-endurance);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover, .btn-large-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--color-blue-deep) !important;
}

.btn-outline {
    border: 2px solid var(--color-blue-mid);
    color: var(--color-blue-mid) !important;
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-blue-mid);
    color: #ffffff !important;
}

.btn-large-cta {
    padding: 1.25rem 2rem;
    font-size: 1.15rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .btn-large-cta {
        padding: 1.25rem 3.5rem;
        font-size: 1.25rem;
    }
}

.btn-large-cta:hover {
    transform: scale(1.02);
}

.premium-tag {
    display: inline-block;
    background: rgba(255, 106, 0, 0.15);
    color: var(--color-orange-brand);
    padding: 0.35rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   6. SITE NAVIGATION & HEADER ARCHITECTURE
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    flex-direction: column; /* Stacks navigation below logo on mobile for thumb-friendly tap targeting */
    gap: 1rem;
    justify-content: center; /* [FIX] Center on mobile */
    align-items: center;
    text-align: center;
}

@media (min-width: 576px) {
    .header-container {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
        text-align: left;
    }
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-blue-deep);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .nav-menu {
        gap: 2rem;
    }
}

.nav-menu a {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* ==========================================================================
   7. MOBILE-OPTIMIZED & CENTERED SALES HERO
   ========================================================================== */
.sales-hero {
    background-color: var(--color-blue-deep);
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.25rem !important; /* Fixed symmetric mobile indentation */
    border-radius: 0;
    width: 100%;
}

.hero-wrapper {
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.sales-hero h1 {
    color: #ffffff;
    /* [FIX for image_37.png] Scale down mobile size to prevent domain cutout, combined with break-word rule in typography section */
    font-size: 2.25rem; 
    line-height: 1.2;
    margin-bottom: 1rem;
    width: 100%;
    min-width: 0; /* Remove restrictive single value min-width that causes blowouts */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-orange-glow);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1rem;
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    color: #cbd5e1;
}

.hero-ctas {
    display: flex;
    flex-direction: column; /* Vertical stacking cleanly fits screen widths for image_38.png */
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .sales-hero {
        padding: 8rem 2rem !important;
    }
    .sales-hero h1 {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.65rem;
    }
    .hero-lead {
        font-size: 1.15rem;
    }
    .hero-ctas {
        flex-direction: row; /* Tablet horizontal alignment */
        max-width: none;
        justify-content: center;
    }
}

/* ==========================================================================
   8. BRAND OPPORTUNITY & CARDS STRUCTURING
   ========================================================================== */
.brand-opportunity {
    border-bottom: 1px solid #e2e8f0;
}

.opp-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-blue-mid);
}

@media (min-width: 768px) {
    .opp-card {
        padding: 2.5rem;
    }
}

.opp-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Classic Post Feed Fallback */
.content-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-body {
    padding: 1.5rem;
}

.card-body h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   9. TURNKEY LOGO SUITE SHOWCASE 
   ========================================================================== */
.brand-suite-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.logo-showcase-box {
    background: var(--color-bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .logo-showcase-box {
        padding: 2rem;
    }
}

.concept-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.logo-image-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

@media (min-width: 768px) {
    .logo-image-wrapper {
        padding: 3rem 1.5rem;
        min-height: 250px;
    }
}

.logo-image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.logo-caption {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.suite-footer-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   10. SECURE ACQUISITION & TRANSACTION PATHWAYS
   ========================================================================== */
.path-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .path-card {
        padding: 3.5rem 3rem;
    }
}

.secure-outright {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(11, 27, 61, 0.05);
    border-top: 5px solid var(--color-orange-brand);
}

.lease-finance {
    background: var(--color-bg-light);
    border-top: 5px solid var(--color-blue-mid);
}

.path-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.path-card p {
    margin-bottom: 2.5rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   11. SECURE PHP CONTACT FORM (PROFESSIONAL ONE-LINE ALIGNMENT)
   ========================================================================== */
.final-cta-pillar {
    background: linear-gradient(135deg, var(--color-blue-deep) 0%, #111827 100%);
    color: #ffffff !important;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 4rem !important;
}

.final-cta-pillar h2 {
    color: #ffffff;
    font-size: 1.85rem;
}

@media (min-width: 768px) {
    .final-cta-pillar h2 {
        font-size: 2.5rem;
    }
}

.contact-form-container {
    max-width: 650px;
    margin: 3rem auto 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 6px;
    width: 100%; /* [FIX for image_39.png] Prevents restrictive narrow width on mobile */
}

@media (min-width: 576px) {
    .contact-form-container {
        padding: 2.5rem;
    }
}

.secure-acquisition-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.secure-acquisition-form label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.secure-acquisition-form input[type="text"],
.secure-acquisition-form input[type="email"],
.secure-acquisition-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--color-text-dark);
    font-family: inherit;
    box-sizing: border-box;
}

.secure-acquisition-form input:focus,
.secure-acquisition-form textarea:focus {
    outline: none;
    border-color: var(--color-orange-brand);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

/* [FIX for image_39.png] Use grid for tight on-mobile label alignment */
.form-row-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 576px) {
    .form-row-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* [FIX for image_39.png] PROFESSIONAL ONE-LINE ALIGNMENT: 
   Use grid for form groups on standard viewports, with a tight fallback on low-res screens */
.secure-acquisition-form .form-group {
    display: grid;
    /* Strict min-width logic on mobile to keep label next to input on *all* standard portrait screens (>320px) */
    grid-template-columns: 100px 1fr; 
    align-items: start;
    gap: 1rem;
    text-align: left;
}

/* Breakpoint for tablet landscape/desktop: increase label weight */
@media (min-width: 992px) {
    .secure-acquisition-form .form-group {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }
}

/* PROFESSIONAL ALIGNMENT: Right-align the labels */
.secure-acquisition-form label {
    text-align: right;
    margin-top: 0.85rem; /* Vertically align with top of input field text */
}

/* Special Case: Stack labels above textareas as per convention, unless forcing one line */
/* .secure-acquisition-form textarea {
    width: 100%;
} */

.secure-acquisition-form textarea {
    margin-top: 0.5rem;
}

.secure-acquisition-form .btn-large-cta {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

/* System Response Validation Alerts */
.form-success-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgb(16, 185, 129);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
}

.form-success-alert h3 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.form-error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgb(239, 68, 68);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: #ef4444;
    font-size: 0.9rem;
}

/* ==========================================================================
   12. FOOTER SYSTEM TERMINATION
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}