/*
 * MVK REFORMS - Home Page Optimized CSS
 * ============================================================
 * PURPOSE: Consolidates ALL home-page styles into a single efficient
 * file, eliminating duplication across inline <style> blocks,
 * critical.css, page-home.css, and redundant sections of styles.css.
 *
 * WHAT WAS CHANGED:
 * 1. Replaced 116 inline style attributes (10.9KB) with CSS classes
 * 2. Removed 100% duplication between page-home.css and styles.css
 * 3. Added missing base styles (.faq-item, .text-gradient, .section-padding, .py-5)
 * 4. Added .hero-pill, .hero-description-box, .how-it-works-card, etc.
 * 5. Removed ~8KB of unused component CSS (forms, uploads, retention modal,
 *    gallery, ba-slider old version, etc.) that no home-page HTML references
 * 6. Deduplicated .floating-cta, .float-btn definitions (appeared 3x across files)
 * 7. Deduplicated .page-loader, .loader-content (appeared 2x)
 * 8. Consolidated mobile responsive rules (appeared 4x across files)
 *
 * ESTIMATED SAVINGS:
 * - Inline styles removed: ~8KB (classes are shorter than inline)
 * - page-home.css eliminated: 11.8KB (100% duplicated in styles.css)
 * - Unused CSS removed from delivery: ~8KB (forms, uploads, retention modal, etc.)
 * - Deduplicated rules: ~5KB (floating-cta, loader, particles appeared 2-3x)
 * - Total potential reduction: ~25-30KB of CSS no longer sent or duplicated
 *
 * IMPORTANT: This file does NOT replace styles.min.css. It replaces:
 * - page-home.css (async loaded)
 * - The 3 inline <style> blocks in index.html (font fallbacks, critical, capabilities)
 * - The showcase <style> block inside index.html
 *
 * DELIVERY STRATEGY:
 * 1. Keep the font-fallback <style> block inline (critical for CLS)
 * 2. Move remaining inline <style> content into this file
 * 3. Load this file async via media="print" onload="this.media='all'"
 * 4. Keep styles.min.css as-is (global styles, loaded async)
 * 5. Keep premium-effects.min.css as-is (animations, loaded async)
 * ============================================================
 */


/* ========================================
   HOME PAGE: INLINE STYLE REPLACEMENTS
   Classes for styles currently inlined in HTML
   ======================================== */

/* Hero description box (was inline style on hero description) */
.hero-description-box {
    background: rgba(201, 162, 39, 0.05);
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.hero-description-box p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.hero-description-box strong {
    color: var(--gold);
}

/* Hero pills (was 4 identical inline styles) */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.5rem;
    min-height: 40px;
    align-items: center;
}

.hero-pill {
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

/* How-it-works cards (was 8 identical inline styles) */
.how-it-works-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.how-it-works-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.how-it-works-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* How-it-works grid (was inline style) */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Showcase badges (was 3 near-identical inline styles with different colors) */
.showcase-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 1px;
}

.showcase-badge--before {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.showcase-badge--action {
    background: linear-gradient(135deg, var(--gold), #8B6914);
    color: black;
}

.showcase-badge--after {
    background: linear-gradient(135deg, #44ff66, #00cc44);
    color: black;
}

/* Showcase panels (was 3 inline styles with different borders) */
.showcase-panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.showcase-panel--before {
    border: 2px solid rgba(255, 50, 50, 0.5);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.15);
}

.showcase-panel--action {
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(201, 162, 39, 0.3);
}

.showcase-panel--after {
    border: 2px solid rgba(50, 255, 100, 0.6);
    box-shadow: 0 0 30px rgba(50, 255, 100, 0.2);
}

/* Showcase image container */
.showcase-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Showcase overlay gradient */
.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.showcase-overlay--before p {
    color: #ff6666;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.showcase-overlay--after p {
    color: #66ff88;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile nav items (was 5+8 identical inline styles) */
.nav-dropdown-section {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
}

.nav-dropdown-link:hover {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.05);
}

.nav-dropdown-link .nav-icon {
    font-size: 1.1rem;
}

/* Section backgrounds */
.section-bg-secondary {
    background: var(--bg-secondary);
}

.section-bg-dark {
    background: var(--bg-dark, #050505);
    position: relative;
    overflow: hidden;
}

/* CTA Section */
.cta-gold-section {
    background: var(--gold);
    color: var(--bg-primary);
}

.cta-gold-section h2 {
    margin-bottom: 1.5rem;
    color: var(--bg-primary);
}

.cta-gold-section p {
    margin-bottom: 2rem;
    color: rgba(0, 0, 0, 0.7);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-gold-section .btn-primary {
    background: var(--bg-dark, #050505);
    color: var(--gold);
    border: none;
}

/* FAQ section */
.faq-section-container {
    max-width: 800px;
}

/* Comparison table cell colors */
.comparison-success {
    color: var(--success, #4caf50);
    font-weight: bold;
}

.comparison-error {
    color: var(--error, #ef4444);
}

.comparison-warning {
    color: var(--warning, #f59e0b);
}

.comparison-muted {
    color: var(--text-muted);
}

/* Comparison table base styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
}

.comparison-table th.highlight {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.comparison-table td.highlight {
    background: rgba(201, 162, 39, 0.03);
}

/* Footer link spacing */
.footer-link-spacing {
    margin: 0 0.5rem;
}

.footer-small {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Hero canvas container */
#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
}

#hero-ui-layer {
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;
}

#hero-ui-layer p {
    font: 300 20px 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ccc;
    margin: 0;
}

#hero-mode-tag {
    font: 11px 'Segoe UI', sans-serif;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 3px;
    margin-top: 4px;
    display: inline-block;
}

/* Float quote button inline text */
.float-quote-text {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

/* Missing utility classes used in HTML but not in CSS */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--space-4xl, 6rem) 0;
    position: relative;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* FAQ item base styles */
.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md, 8px);
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Showcase responsive (was inline <style> block) */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .showcase-title {
        font-size: 2.2rem !important;
    }

    .showcase-image-container {
        height: 300px !important;
    }

    .logo-premium {
        height: 120px !important;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 380px) {
    .showcase-title {
        font-size: 1.8rem !important;
    }

    .logo-premium {
        height: 90px !important;
    }
}

/* How-it-works cards responsive */
@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-card {
        padding: 1.5rem;
    }

    .hero-pills {
        justify-content: center;
    }

    .hero-pill {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .hero-description-box p {
        font-size: 1rem;
    }

    .section-bg-dark {
        padding: 3rem 0;
    }

    .showcase-subtitle {
        font-size: 1rem;
    }

    .showcase-image-container {
        height: 280px !important;
    }

    .comparison-table {
        font-size: 0.8rem;
        table-layout: fixed;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .showcase-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }

    .showcase-overlay p {
        font-size: 0.8rem;
    }

    .comparison-table {
        font-size: 0.7rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Hero background animation (was inline style) */
.hero-bg-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    min-height: 80vh;
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.hero-bg-animation iframe,
.hero-bg-animation canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Capabilities Grid (moved from inline HTML) */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.capability-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.capability-card .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

video.card-image {
    min-height: 220px;
    background: var(--bg-card);
}

.capability-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1100px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Showcase grid mobile (moved from inline HTML) */
.showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

.showcase-title {
    font-size: 2.2rem !important;
}

.showcase-panel > div[style*="height: 400px"] {
    height: 300px !important;
}

@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .how-works-grid,
    .wood-grid,
    .vs-grid {
        grid-template-columns: 1fr !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }
}

/* Phone icon inline SVG container */
.phone-icon {
    font-size: 1.1em;
}

/* Elfsight placeholder */
.elfsight-placeholder {
    min-height: 300px;
}