/* ========================================
   CRITICAL FIXES - HERO POSITIONING
   ======================================== */
/* Hide old hero sections that may conflict */
/* Ensure new mobile-optimized hero displays */
.hero-section-mobile-optimized {
    display: block !important;
}
/* Force urgency banner visibility */
.urgency-banner {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: white;
    font-size: 14px;
    line-height: 1.3;
}
/* Force accreditation badges visibility */
.accreditation-badges {
    display: flex !important;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ========================================
   MOBILE-OPTIMIZED HERO SECTION
   ======================================== */
.hero-section-mobile-optimized {
    background: linear-gradient(135deg, #4ac1c7 0%, #3ba5ab 100%);
    padding: 24px 16px 40px;
    position: relative;
}
.hero-section-mobile-optimized .container {
    max-width: 600px;
    margin: 0 auto;
}
/* Agent Trust Badge */
.agent-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 50px;
    width: fit-content;
}

.agent-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.agent-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Hero Headlines */
.hero-headline {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.hero-subtext {
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 24px 0;
    opacity: 0.95;
}

/* Primary Call Button */
.hero-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #2d5c2f;
    color: #fff;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 50px;
    border: 3px solid #fff;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.hero-call-button:active {
    transform: scale(0.98);
}

.hero-call-button svg {
    flex-shrink: 0;
}

.phone-number {
    letter-spacing: 0.5px;
}

/* Divider */
.cta-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.cta-divider::before {
    left: 0;
}

.cta-divider::after {
    right: 0;
}

.cta-divider span {
    background: #4ac1c7;
    color: #fff;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Form Box */
.hero-form-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: #1f355f;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-align: center;
}

/* Form Inputs */
.hero-quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-input-zip,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input-zip:focus,
.form-select:focus {
    outline: none;
    border-color: #4ac1c7;
}

.form-select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 16px center;
    background-color: #fff;
    cursor: pointer;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

/* Secondary Call Option */
.form-call-option {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.secondary-call-link {
    color: #2d5c2f;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.call-subtext {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Desktop Adjustments */
@media (min-width: 769px) {
    .hero-section-mobile-optimized {
        padding: 60px 40px 80px;
    }
    
    .hero-headline {
        font-size: 36px;
    }
    
    .hero-subtext {
        font-size: 18px;
    }
}
/* ========================================
   RESPONSIVE: MOBILE vs DESKTOP HERO
   ======================================== */
   
/* Hide new mobile hero on desktop */
@media (min-width: 769px) {
    .hero-section-mobile-optimized {
        display: none !important;
    }
}

/* Hide old sections on mobile */
@media (max-width: 767px) {
    #compare-plans,
    .income-plans-section,
    .calculator-section {
        display: none !important;
    }
}

/* CRITICAL: Force hide mobile hero on desktop */
@media (min-width: 992px) {
    section.hero-section-mobile-optimized {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Thank You Page - Full Screen Display */
.page-template-page-thank-you .site-main,
.page-template-template-thank-you .site-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* Mobile: Ensure hero starts immediately after header */
@media (max-width: 768px) {
    .site-header + #primary {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .hero-section-mobile-optimized {
        margin-top: 0 !important;
    }
    
    /* Ensure header doesn't push content down */
    .site-header {
        position: relative;
        margin-bottom: 0 !important;
    }
}

/* Hide original hero-section on mobile only */
@media (max-width: 768px) {
    .hero-section:not(.hero-section-mobile-optimized) {
        display: none !important;
    }
}

/* Hide mobile hero on desktop */
@media (min-width: 769px) {
    .hero-section-mobile-optimized {
        display: none !important;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE SCROLL GAP FIX
   Added: November 15, 2025
   ======================================== */
@media (max-width: 768px) {
    /* Reset body top spacing */
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reset site wrapper */
    .site,
    #page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reset content area */
    .site-content,
    .content-area,
    #content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reset main primary */
    main#primary,
    .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove spacing after header */
    header.site-header,
    .site-header,
    header[style*="background-color"] {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Target element immediately after header */
    .site-header + * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .site-header + #primary {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force hero to top with negative margin */
    .hero-section-mobile-optimized {
        margin-top: -1px !important;
        padding-top: 24px !important;
    }
    
    /* Remove any spacer divs */
    .spacer,
    .site-spacer,
    .header-spacer {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* WordPress admin bar fix */
    body.admin-bar {
        margin-top: 0 !important;
    }
    
    body.admin-bar .site-header {
        top: 0 !important;
    }
    
    /* Remove container spacing */
    .hero-section-mobile-optimized .container {
        padding-top: 0 !important;
    }
}
/* ========================================
   AGENT BADGE CLICKABLE LINK STYLES
   Added: November 15, 2025
   ======================================== */
@media (max-width: 768px) {
    /* Make agent badge link behave like button */
    .agent-badge {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: transform 0.2s ease, opacity 0.2s ease !important;
    }
    
    /* Active state for mobile tap */
    .agent-badge:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
    }
    
    /* Ensure text color remains white */
    .agent-badge .agent-text {
        color: #fff !important;
    }
}

/* ========================================
   MOBILE HAMBURGER MENU
   Added: November 15, 2025
   ======================================== */
@media (max-width: 768px) {
    /* Hide navigation links on mobile by default */
    .main-navigation {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #1f355f;
        padding: 20px;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    /* Show when menu is open */
    .main-navigation.mobile-menu-open {
        display: block !important;
    }
    
    /* Stack menu items vertically */
    .main-navigation .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-navigation .nav-menu li {
        margin: 0;
    }
    
    .main-navigation .nav-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        display: block;
        padding: 10px 0;
    }
    
    /* Hamburger button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1000;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }
    
    /* Animate hamburger to X when open */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Compress header container */
    .site-header-container {
        padding: 12px 16px !important;
        min-height: auto !important;
    }
    
    /* Smaller logo on mobile */
    .site-branding img {
        max-height: 36px !important;
        width: auto !important;
    }
    
    /* Make header actions flex for spacing */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    /* Compact phone link */
    .header-actions .phone-link {
        font-size: 14px !important;
        white-space: nowrap;
    }
}

/* Desktop: Hide hamburger, show full nav */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        display: block !important;
    }
}
