/**
 * FINAL FIXES - Version 4.2
 * Remove section scrollers, center CTA text, center desktop sections, fix menu, logo link
 */

/* ========================================
   FIX 1: Remove ALL Section Scrollers (Green Bar on Right)
======================================== */

/* Hide scrollbars completely */
html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Remove scrollbar from all sections */
section {
    overflow: hidden !important;
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

section::-webkit-scrollbar {
    display: none !important;  /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

/* Remove scrollbar from all containers */
.container,
.section-padding,
.trust-section,
.problem-section,
.solution-section,
.video-demos-section,
.pricing-section,
.comparison-section,
.roi-calculator-section,
.audience-section,
.process-section,
.faq-section,
.cta-section {
    overflow: hidden !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.container::-webkit-scrollbar,
.section-padding::-webkit-scrollbar,
.trust-section::-webkit-scrollbar,
.problem-section::-webkit-scrollbar,
.solution-section::-webkit-scrollbar,
.video-demos-section::-webkit-scrollbar,
.pricing-section::-webkit-scrollbar,
.comparison-section::-webkit-scrollbar,
.roi-calculator-section::-webkit-scrollbar,
.audience-section::-webkit-scrollbar,
.process-section::-webkit-scrollbar,
.faq-section::-webkit-scrollbar,
.cta-section::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* Remove scrollbar from grids */
.problems-grid,
.solutions-grid,
.videos-grid,
.pricing-grid,
.comparison-grid,
.calculator-container,
.audience-grid,
.process-timeline,
.faq-container {
    overflow: hidden !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.problems-grid::-webkit-scrollbar,
.solutions-grid::-webkit-scrollbar,
.videos-grid::-webkit-scrollbar,
.pricing-grid::-webkit-scrollbar,
.comparison-grid::-webkit-scrollbar,
.calculator-container::-webkit-scrollbar,
.audience-grid::-webkit-scrollbar,
.process-timeline::-webkit-scrollbar,
.faq-container::-webkit-scrollbar {
    display: none !important;
}

/* Hide all scrollbars globally */
*::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
}

* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Only allow body to scroll, but hide its scrollbar */
body::-webkit-scrollbar {
    width: 0px !important;
    display: none !important;
}

/* ========================================
   FIX 2: Header CTA - Center Text & Height
======================================== */

/* Mobile: Center text vertically */
@media (max-width: 768px) {
    .nav-cta-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.7rem !important;
        min-height: 40px !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

/* Desktop: Increase height */
@media (min-width: 769px) {
    .nav-cta-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 50px !important;
        line-height: 1 !important;
        text-align: center !important;
    }
}

/* ========================================
   FIX 3: Desktop - Center All Section Headers & CTAs
======================================== */

@media (min-width: 769px) {
    /* Center section headers (except hero) */
    .trust-section .section-header,
    .problem-section .section-header,
    .solution-section .section-header,
    .video-demos-section .section-header,
    .pricing-section .section-header,
    .comparison-section .section-header,
    .roi-calculator-section .section-header,
    .audience-section .section-header,
    .process-section .section-header,
    .faq-section .section-header,
    .cta-section .section-header {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center section titles and subtitles (except hero) */
    .trust-section .section-title,
    .problem-section .section-title,
    .solution-section .section-title,
    .video-demos-section .section-title,
    .pricing-section .section-title,
    .comparison-section .section-title,
    .roi-calculator-section .section-title,
    .audience-section .section-title,
    .process-section .section-title,
    .faq-section .section-title,
    .cta-section .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .trust-section .section-subtitle,
    .problem-section .section-subtitle,
    .solution-section .section-subtitle,
    .video-demos-section .section-subtitle,
    .pricing-section .section-subtitle,
    .comparison-section .section-subtitle,
    .roi-calculator-section .section-subtitle,
    .audience-section .section-subtitle,
    .process-section .section-subtitle,
    .faq-section .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center CTAs in sections (except hero) */
    .video-cta,
    .cta-content {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .video-cta .btn,
    .cta-buttons {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .cta-buttons {
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Center CTA title and description */
    .cta-title,
    .cta-description {
        text-align: center !important;
    }
}

/* ========================================
   FIX 4: Pricing CTA - Single Row on Mobile
======================================== */

@media (max-width: 768px) {
    .pricing-cta .btn-full {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.8rem !important;
        min-height: 44px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    .pricing-cta .btn-full i {
        font-size: 0.75rem !important;
        margin-right: 0.35rem !important;
    }
}

@media (max-width: 480px) {
    .pricing-cta .btn-full {
        font-size: 0.75rem !important;
        padding: 0.6rem 0.75rem !important;
    }
}

@media (max-width: 375px) {
    .pricing-cta .btn-full {
        font-size: 0.7rem !important;
        padding: 0.55rem 0.65rem !important;
    }
}

/* ========================================
   FIX 5: Mobile Menu - Show Solutions, Pricing, FAQ
======================================== */

@media (max-width: 768px) {
    /* Ensure menu displays properly */
    .nav-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-bottom: 2px solid #22c55e;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu li {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block !important;
        padding: 1rem 1.25rem !important;
        border-radius: 0.5rem !important;
        font-size: 1rem !important;
        color: #111827 !important;
        background: #f3f4f6 !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(34, 197, 94, 0.1) !important;
        color: #22c55e !important;
        transform: translateX(5px) !important;
    }
}

/* ========================================
   FIX 6: Logo Clickable - Home Link
======================================== */

.nav-brand {
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    text-decoration: none !important;
    color: inherit !important;
}

.nav-brand:hover {
    transform: scale(1.05) !important;
}

.nav-brand a {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* ========================================
   ADDITIONAL REFINEMENTS
======================================== */

/* Ensure grids don't cause overflow */
@media (max-width: 768px) {
    .problems-grid,
    .solutions-grid,
    .videos-grid,
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Fix comparison grid */
@media (max-width: 768px) {
    .comparison-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        overflow: hidden !important;
    }
}

/* Ensure all cards don't overflow */
.problem-card,
.solution-card,
.video-card,
.pricing-card,
.comparison-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Fix pricing button text alignment */
.btn-full {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

/* Menu overlay improvements */
@media (max-width: 768px) {
    .menu-overlay.active {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: block;
    }
}

/* Improve menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #22c55e;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Hide menu on desktop */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        gap: 2rem !important;
    }
    
    .nav-link {
        background: transparent !important;
        padding: 0.5rem 1rem !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Ensure body scroll is smooth but hidden scrollbar */
html {
    scroll-behavior: smooth !important;
}

body {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
}

/* Fix navbar container */
.navbar .container {
    overflow: visible !important;
}

/* Ensure proper spacing for menu */
@media (max-width: 768px) {
    .nav-menu {
        margin-top: 0 !important;
    }
    
    body.menu-active {
        overflow: hidden !important;
    }
}

/* Fix video section CTA on desktop */
@media (min-width: 769px) {
    .video-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .video-cta h3,
    .video-cta p {
        text-align: center !important;
    }
}

/* Desktop grids should be centered but items left-aligned */
@media (min-width: 769px) {
    .problems-grid,
    .solutions-grid,
    .videos-grid,
    .pricing-grid,
    .process-timeline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Fix comparison section on desktop */
@media (min-width: 769px) {
    .comparison-section .section-header {
        text-align: center !important;
    }
    
    .comparison-grid {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Ensure FAQ is centered on desktop */
@media (min-width: 769px) {
    .faq-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
