/*
Theme Name: Financial Retirement Plans Pro
Theme URI: https://financialretirementplans.com
Description: Professional WordPress theme for Maximum Funded IUL strategies with comprehensive schema markup and SEO optimization
Version: 1.0.0
Author: Financial Retirement Plans
Author URI: https://financialretirementplans.com
Text Domain: maxfunded-iul-pro
*/

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-blue: #2B4C7E;
    --secondary-blue: #4169B5;
    --accent-orange: #FF8C42;
    --dark-navy: #0F1F3D;
    --light-gray: #F5F7FA;
    --white: #FFFFFF;
    --success-green: #28A745;
    --error-red: #DC3545;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Breakpoints */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1280px;
}

/* ===== Typography ===== */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--primary-blue);
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--light-gray);
}

/* ===== Header & Navigation ===== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--dark-navy);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Header CTA Buttons */
.header-cta-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.header-phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-phone-btn:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 76, 126, 0.3);
}

.header-phone-btn svg {
    flex-shrink: 0;
}

/* Mobile responsive for header CTA */
@media (max-width: 1024px) {
    .header-cta-buttons {
        margin-left: 10px;
    }
    
    .header-phone-btn .phone-text {
        display: none;
    }
    
    .header-phone-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

/* Mobile Floating Phone Button - Hidden by default */
.mobile-floating-phone {
    display: none;
}

@media (max-width: 768px) {
    /* Hide header phone button on mobile */
    .header-cta-buttons.desktop-only {
        display: none !important;
    }
    
    /* Show and style floating phone button on mobile */
    .mobile-floating-phone {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        background: #2B4C7E !important;
        color: white !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(43, 76, 126, 0.4) !important;
        z-index: 9999 !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .mobile-floating-phone:hover {
        background: #1e3a5f !important;
        transform: scale(1.05);
    }
    
    .mobile-floating-phone svg {
        stroke: white;
    }
    
    /* Mobile header layout */
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    /* Logo on left */
    .site-branding {
        flex: 1;
        min-width: 0;
    }
    
    /* Hamburger on far right */
    .mobile-menu-toggle {
        flex: 0 0 auto;
        margin-left: 15px;
        z-index: 1001;
    }
    
    /* Hide navigation items (they slide in from side) */
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E67C35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

/* ===== Comparison Table ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
    background-color: var(--light-gray);
}

.check-icon {
    color: var(--success-green);
    font-weight: bold;
}

.cross-icon {
    color: var(--error-red);
    font-weight: bold;
}

/* ===== FAQ Section ===== */
.faq-item {
    background: var(--white);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

/* ===== Call-to-Action ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0;
    border-radius: 12px;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: var(--spacing-xs) 0;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ===== Responsive Design ===== */

/* Desktop Logo Spacing */
@media (min-width: 769px) {
    .site-branding {
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .header-inner {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.highlight { background-color: #FFF9C4; padding: 2px 6px; border-radius: 3px; }


/* ===================================================================
   MOBILE LANDSCAPE FIXES FOR BASE THEME
   Applied to all non-premium pages
   =================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Base hero section */
    .hero {
        padding: 25px 0 !important;
        min-height: auto !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        margin-bottom: 12px !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 16px !important;
    }
    
    /* Section spacing */
    .section {
        padding: 25px 0 !important;
    }
    
    .section-alt {
        padding: 25px 0 !important;
    }
    
    /* Container adjustments */
    .container,
    .container-wide {
        padding: 0 16px !important;
    }
    
    /* Card grids - 2 columns */
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin: 20px 0 !important;
    }
    
    /* Individual cards */
    .card {
        padding: 16px !important;
    }
    
    .card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .card p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Tables */
    .comparison-table {
        font-size: 0.8rem !important;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px !important;
    }
    
    /* FAQ items */
    .faq-item {
        padding: 12px 16px !important;
        margin-bottom: 10px !important;
    }
    
    .faq-question {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }
    
    .faq-answer {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* CTA sections */
    .cta-section {
        padding: 25px 0 !important;
        margin: 20px 0 !important;
        border-radius: 8px !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }
    
    .cta-section p {
        font-size: 0.95rem !important;
        margin-bottom: 16px !important;
    }
    
    /* Footer */
    .site-footer {
        padding: 25px 0 15px !important;
    }
    
    .footer-grid {
        gap: 20px !important;
        margin-bottom: 20px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-column h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .footer-column a {
        padding: 4px 0 !important;
        font-size: 0.85rem !important;
    }
    
    .footer-bottom {
        padding-top: 12px !important;
        font-size: 0.8rem !important;
    }
}

/* Very small phones in landscape */
@media screen and (max-height: 414px) and (orientation: landscape) {
    
    /* Even more compact */
    .hero {
        padding: 20px 0 !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .section {
        padding: 20px 0 !important;
    }
    
    /* Single column grids */
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Minimal buttons */
    .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================
   iOS SAFARI FIXES
   ============================================ */

/* Prevent iOS zoom on input focus (requires 16px minimum) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* iOS button fixes - ensure touch events work */
button,
.btn,
a.btn,
input[type="submit"],
input[type="button"],
[role="button"] {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

/* Click-to-call links - iOS Safari fix */
a[href^="tel:"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    text-decoration: none;
}

/* iOS iframe scrolling fix */
.form-wrapper {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

.form-wrapper iframe {
    min-height: 900px !important;
    height: 900px !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
    overflow: auto !important;
}

/* iOS Safari specific iframe fix */
@supports (-webkit-touch-callout: none) {
    .form-wrapper {
        -webkit-overflow-scrolling: touch !important;
        overflow: scroll !important;
    }
    
    .form-wrapper iframe {
        pointer-events: auto !important;
        touch-action: auto !important;
    }
}

/* iOS momentum scrolling for all scrollable areas */
.scrollable,
.overflow-auto,
.overflow-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Fix iOS 100vh issue (address bar) */
@supports (-webkit-touch-callout: none) {
    .hero-premium,
    .full-height {
        min-height: -webkit-fill-available;
    }
}

/* iOS Safari table horizontal scroll fix */
.comparison-table-wrapper {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* iOS sticky positioning fix */
.site-header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Fix iOS Safari flex issues */
@supports (-webkit-touch-callout: none) {
    .hero-cta-buttons,
    .cta-buttons,
    .btn-group {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* iOS Safari select dropdown fix */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Prevent iOS callout on long-press */
img,
a {
    -webkit-touch-callout: none;
}

/* Allow callout for tel links (so users can copy number) */
a[href^="tel:"] {
    -webkit-touch-callout: default;
}

/* iOS focus state fix */
*:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure buttons are fully clickable on iOS */
.btn,
button,
a.cta-button,
.mobile-menu-toggle {
    position: relative;
    z-index: 1;
}

/* iOS Safari calculator input fix */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2B4C7E;
    cursor: pointer;
}

/* ============================================
   COMPARISON TABLE TOOLTIPS
   ============================================ */

.tooltip-trigger {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tooltip-trigger::after {
    content: "ⓘ";
    font-size: 0.85rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover::after {
    color: #2B4C7E;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    width: 280px;
    padding: 12px 15px;
    background: #1e293b;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip-text::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile tooltip adjustments */
@media (max-width: 768px) {
    .tooltip-text {
        width: 220px;
        font-size: 0.8rem;
        left: -10px;
    }
    
    .tooltip-trigger::after {
        font-size: 0.8rem;
    }
}

/* Tooltip for sub-items (living benefits) */
.tooltip-trigger-sub {
    position: relative;
    cursor: help;
}

.tooltip-trigger-sub .tooltip-text {
    left: 30px;
}

/* ============================================
   BOOKING MODAL - FULL SCREEN OVERLAY
   ============================================ */

/* Trigger Button */
.booking-trigger-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.booking-modal-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2B4C7E 0%, #4169B5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 76, 126, 0.3);
}

.booking-modal-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 76, 126, 0.4);
}

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

.booking-modal-trigger svg {
    stroke: white;
}

.booking-hint {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Modal Overlay */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    flex-direction: column;
}

.booking-modal.active {
    display: flex;
}

/* Modal Header */
.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2B4C7E 0%, #4169B5 100%);
    color: white;
    flex-shrink: 0;
}

.booking-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.booking-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.booking-modal-close svg {
    stroke: white;
}

/* Modal Content */
.booking-modal-content {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.booking-modal-content iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .booking-modal-trigger {
        padding: 18px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }
    
    .booking-modal-header {
        padding: 12px 15px;
    }
    
    .booking-modal-header h3 {
        font-size: 1rem;
    }
    
    .booking-modal-close {
        width: 36px;
        height: 36px;
    }
}

/* ===== HERO HEADING COLOR FIX =====
   Ensures h1/h2 are always white on dark hero backgrounds.
   Overrides global h1 { color: var(--dark-navy) } which can
   cascade over inline <style> blocks in page templates.
   ================================================================ */
.hero h1, .hero h2,
.pillar-hero h1, .pillar-hero h2,
.hub-hero h1, .hub-hero h2,
.children-hero h1, .children-hero h2,
.compliant-hero h1, .compliant-hero h2,
.about-hero h1, .about-hero h2,
.contact-page-hero h1, .contact-page-hero h2,
.mortgage-hero h1, .mortgage-hero h2,
.quote-page-hero h1, .quote-page-hero h2 {
    color: #fff !important;
}


/* ===== STICKY MOBILE CTA BAR (GLOBAL) =====
   Shows Call + Quote buttons fixed at bottom on mobile.
   ============================================ */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-mobile-cta .sticky-cta-buttons {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.sticky-mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.sticky-mobile-cta .sticky-call-btn {
    background: #22c55e;
    color: white;
}

.sticky-mobile-cta .sticky-form-btn {
    background: linear-gradient(135deg, #ff8c42 0%, #e67c35 100%);
    color: white;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }

    /* Prevent content from hiding behind sticky bar */
    .site-footer {
        padding-bottom: 70px;
    }

    /* Hide the floating phone circle since sticky bar replaces it */
    .mobile-floating-phone {
        display: none !important;
    }
}
/* ===== GLOBAL MOBILE RESPONSIVENESS FIX =====
   Overrides inline styles on templates that have
   no responsive CSS (16+ page templates affected).
   ============================================== */
@media (max-width: 768px) {

    /* Prevent horizontal scroll on all pages */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    article, main, .site-main,
    .page-shell, .compliant-container,
    .elementor-content-area {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Hero sections - reduce padding and font sizes */
    article > div > header,
    .pillar-hero,
    .hub-hero,
    .hero,
    .children-hero,
    .compliant-hero,
    .about-hero,
    section[style*="padding: 80px"],
    section[style*="padding: 60px 40px"],
    header[style*="padding: 80px"] {
        padding: 30px 18px !important;
        border-radius: 12px !important;
    }

    /* Large headings */
    h1,
    h1[style*="font-size: 3"],
    h1[style*="font-size: 2.8"],
    p[style*="font-size: 3.75rem"] {
        font-size: 1.8rem !important;
        letter-spacing: 0 !important;
        word-break: break-word !important;
    }

    h2,
    h2[style*="font-size: 2.5"],
    h2[style*="font-size: 2.3"],
    h2[style*="font-size: 2"] {
        font-size: 1.4rem !important;
    }

    /* VS text in comparison heroes */
    .vs-text,
    span[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }

    .hero-comparison-title,
    p.hero-comparison-title {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }

    /* Content sections - reduce padding */
    section[style*="padding: 60px"],
    section[style*="padding: 50px"],
    section[style*="padding: 80px"],
    section[style*="margin: 80px"],
    section[style*="margin: 60px"],
    div[style*="padding: 60px"],
    div[style*="padding: 50px 40px"],
    div[style*="padding: 50px 50px"] {
        padding: 25px 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    section[style*="margin: 80px 0"],
    section[style*="margin: 60px 0"] {
        margin: 30px 0 !important;
    }

    /* Tables - force horizontal scroll */
    .table-wrapper,
    div[style*="box-shadow"][style*="border-radius"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }

    table {
        min-width: 600px;
    }

    table th,
    table td,
    th[style*="padding: 20px"],
    td[style*="padding: 20px"] {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }

    table th[style*="font-size"],
    th[style*="font-size: 1.1rem"] {
        font-size: 0.85rem !important;
    }

    /* Calculator section */
    #calculator,
    section[id="calculator"] {
        padding: 30px 15px !important;
        margin: 20px 0 !important;
    }

    .calculator-widget,
    div[style*="calculator"] {
        padding: 25px 15px !important;
    }

    /* Grid layouts - stack single column */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns: repeat(2"],
    .comparison-links,
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Flex layouts - wrap on mobile */
    div[style*="display: flex"][style*="gap: 30px"],
    div[style*="display: flex"][style*="gap: 20px"],
    div[style*="display: flex"][style*="justify-content: center"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    /* CTA buttons in content - full width on mobile */
    a[style*="padding: 20px 50px"],
    a[style*="padding: 18px 45px"],
    a[style*="padding: 15px 40px"] {
        padding: 14px 20px !important;
        font-size: 1rem !important;
        display: block !important;
        text-align: center !important;
    }

    /* Stats and trust bars */
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 30px"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 0.8rem !important;
    }

    /* Image containers */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Pill / badge elements */
    .pill {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }

    /* FAQ sections */
    .faq dt,
    dt[style*="font-weight"] {
        font-size: 1rem !important;
    }

    /* Card elements with large padding */
    div[style*="padding: 40px"],
    div[style*="padding: 35px"],
    div[style*="padding: 45px"] {
        padding: 20px 15px !important;
    }

    /* Max-width containers - prevent overflow */
    div[style*="max-width: 900px"],
    div[style*="max-width: 800px"],
    div[style*="max-width: 1200px"] {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Body text readability */
    p[style*="font-size: 1.15rem"],
    p[style*="font-size: 1.2rem"],
    p[style*="font-size: 1.25rem"],
    p[style*="font-size: 1.3rem"] {
        font-size: 1rem !important;
    }

    /* Rounded corners - smaller on mobile */
    section[style*="border-radius: 20px"],
    div[style*="border-radius: 20px"],
    header[style*="border-radius: 20px"] {
        border-radius: 12px !important;
    }

} /* end @media max-width: 768px */
