/**
 * TopLine Footer and CTA Sections
 * Exact styles from the preview site: https://topline-password.onrender.com/topline-updates/
 */

:root {
    /* TopLine brand colors */
    --red: #d52330;
    --red-light: #E85A64;
    --red-dark: #A91C26;
    --navy: #0d2333;
    --navy-light: #1a3d52;
    --navy-mid: #0f3449;
    --teal: #2fa3a2;
    --teal-light: #5dc9c8;
    --teal-dark: #248a89;
    --yellow: #FDBA23;
    --yellow-dark: #e0a51f;
    --cream: #FDFCFB;
    --cream-dark: #F5F3F0;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-50-light: #F0F0F0;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(13,35,51,0.04);
    --shadow-sm: 0 2px 4px rgba(13,35,51,0.04), 0 1px 2px rgba(13,35,51,0.02);
    --shadow-md: 0 4px 12px rgba(13,35,51,0.06), 0 2px 4px rgba(13,35,51,0.03);
    --shadow-lg: 0 12px 32px rgba(13,35,51,0.08), 0 4px 12px rgba(13,35,51,0.04);
    --shadow-xl: 0 24px 48px rgba(13,35,51,0.10), 0 8px 24px rgba(13,35,51,0.05);

    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    --space-1: 4.4px;
    --space-2: 8.8px;
    --space-3: 13px;
    --space-4: 18px;
    --space-5: 22px;
    --space-6: 26px;
    --space-8: 35px;
    --space-10: 44px;
    --space-12: 53px;
    --space-16: 70px;
    --space-20: 88px;
    --space-24: 106px;
}

/* ━━━ BUTTONS ━━━ */
.topline-footer-sections .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 18px 31px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-transform: none;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.topline-footer-sections .btn svg { 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0; 
    transition: transform 0.2s var(--ease); 
}

.topline-footer-sections .btn:hover svg { 
    transform: translateX(2px); 
}

.topline-footer-sections .btn-red { 
    background: var(--red); 
    color: var(--white); 
}

.topline-footer-sections .btn-red:hover { 
    background: #C01E2A; 
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(213,35,48,0.25); 
}

.topline-footer-sections .btn-teal { 
    background: var(--teal); 
    color: var(--white); 
}

.topline-footer-sections .btn-teal:hover { 
    background: var(--teal-dark); 
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(47,163,162,0.35); 
}

.topline-footer-sections .btn-outline {
    background: var(--white);
    border: none;
    color: var(--navy);
    transition: all 0.2s var(--ease);
}

.topline-footer-sections .btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-xl);
}

.topline-footer-sections .btn-lg {
    padding: 18px 35px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* ━━━ FOUNDATION SECTION ━━━ */
.topline-footer-sections .foundation-section {
    padding: var(--space-16) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    border-top: 1px solid var(--gray-200);
    position: relative;
}

.topline-footer-sections .foundation-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.05fr);
    gap: var(--space-12);
    align-items: center;
}

.topline-footer-sections .foundation-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.35;
    margin-bottom: var(--space-3);
}

.topline-footer-sections .foundation-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: var(--space-6);
}

.topline-footer-sections .foundation-content > p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: var(--space-6);
    max-width: 520px;
}

.topline-footer-sections .foundation-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8) var(--space-6);
    justify-content: stretch;
    align-items: stretch;
    min-width: 0;
}

.topline-footer-sections .foundation-stat {
    position: relative;
    text-align: left;
    padding: var(--space-2) 0 var(--space-2) calc(var(--space-5) + 5px);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.topline-footer-sections .foundation-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0;
    background: linear-gradient(
        180deg,
        var(--teal) 0%,
        var(--teal) 30%,
        var(--yellow) 30%,
        var(--yellow) 100%
    );
}

.topline-footer-sections .foundation-stat-value {
    display: block;
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.topline-footer-sections .foundation-stat-label {
    display: block;
    position: relative;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .topline-footer-sections .foundation-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .topline-footer-sections .foundation-content > p {
        max-width: 100%;
    }
    .topline-footer-sections .foundation-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        gap: var(--space-6);
    }
    .topline-footer-sections .foundation-stat {
        text-align: left;
        padding: var(--space-2) 0 var(--space-2) calc(var(--space-5) + 5px);
    }
    .topline-footer-sections .foundation-stat::before {
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        transform: none;
        border-radius: 0;
    }
}

/* ━━━ BOTTOM CTA SECTION ━━━ */
.topline-footer-sections .bottom-cta {
    position: relative;
    padding: var(--space-16) 0 var(--space-24);
    margin-top: 0;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
}

.topline-footer-sections .bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2026/04/TopLine-Line-Art.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    filter: brightness(0) invert(0.75);
    pointer-events: none;
    z-index: 0;
}

.topline-footer-sections .bottom-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    text-align: center;
    position: relative;
    z-index: 1;
}

.topline-footer-sections .bottom-cta-tagline {
    display: none;
}

.topline-footer-sections .bottom-cta h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: var(--space-5);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.topline-footer-sections .bottom-cta p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.topline-footer-sections .bottom-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ━━━ FOOTER ━━━ */
.topline-footer-sections footer,
.topline-footer-sections .site-footer {
    background: var(--navy);
    padding: var(--space-16) 0 var(--space-10);
    overflow-x: visible;
    overflow-y: visible;
}

.topline-footer-sections .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    overflow: visible;
}

.topline-footer-sections .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: visible;
}

.topline-footer-sections .footer-brand {
    max-width: 280px;
}

.topline-footer-sections .footer-logo {
    display: inline-block;
    margin-bottom: var(--space-5);
}

.topline-footer-sections .footer-logo img {
    height: 40px;
    width: auto;
}

.topline-footer-sections .footer-brand > p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.topline-footer-sections .footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.topline-footer-sections .footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

.topline-footer-sections .footer-contact a:hover {
    color: var(--teal-light);
}

.topline-footer-sections .footer-contact a svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
    flex-shrink: 0;
}

.topline-footer-sections .footer-address {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-top: var(--space-3);
    line-height: 1.5;
}

.topline-footer-sections .footer-nmls {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-top: var(--space-2);
    line-height: 1.5;
}

.topline-footer-sections .footer-nmls strong {
    font-weight: 700;
    color: #ffffff;
}

.topline-footer-sections .footer-nav h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: var(--space-5);
    font-size: 15px;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
}

.topline-footer-sections .footer-nav a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: var(--space-3);
    transition: color 0.2s var(--ease);
}

.topline-footer-sections .footer-nav a:hover {
    color: var(--white);
}

.topline-footer-sections .footer-legal-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: var(--space-5) var(--space-8);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: visible;
}

.topline-footer-sections .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-self: center;
    gap: var(--space-6);
}

.topline-footer-sections .footer-legal-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.topline-footer-sections .footer-legal-links a:hover { 
    color: var(--white); 
}

.topline-footer-sections .footer-compliance-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-left: auto;
    align-self: center;
    overflow: visible;
    padding: 0;
    --compliance-logo-h: 48px;
    --compliance-logo-max-w: 200px;
}

.topline-footer-sections .compliance-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
    transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}

.topline-footer-sections .footer-compliance-logos .compliance-badge {
    flex-shrink: 0;
    height: var(--compliance-logo-h);
    max-width: min(var(--compliance-logo-max-w), 100%);
    min-width: 0;
}

.topline-footer-sections .footer-compliance-logos .compliance-badge:hover,
.topline-footer-sections .footer-compliance-logos .compliance-badge:focus-within {
    z-index: 200;
    transform: scale(4);
    transform-origin: center center;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: reduce) {
    .topline-footer-sections .footer-compliance-logos .compliance-badge,
    .topline-footer-sections .footer-compliance-logos .compliance-badge:hover,
    .topline-footer-sections .footer-compliance-logos .compliance-badge:focus-within {
        transition-duration: 0.01ms;
    }
    .topline-footer-sections .footer-compliance-logos .compliance-badge:hover,
    .topline-footer-sections .footer-compliance-logos .compliance-badge:focus-within {
        transform: none;
    }
}

.topline-footer-sections .compliance-badge svg {
    color: var(--teal);
    flex-shrink: 0;
}

.topline-footer-sections .footer-compliance-logos .compliance-badge img {
    display: block;
    flex-shrink: 0;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.topline-footer-sections .compliance-badge--bbb a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 100%;
    line-height: 0;
    border-radius: var(--radius-sm);
}

.topline-footer-sections .compliance-badge--bbb a:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 3px;
}

.topline-footer-sections .footer-bottom {
    padding-top: var(--space-10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.topline-footer-sections .footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.topline-footer-sections .footer-socials {
    display: flex;
    gap: var(--space-3);
}

.topline-footer-sections .footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s var(--ease);
}

.topline-footer-sections .footer-socials a:hover {
    background: var(--red);
    transform: translateY(-3px);
}

.topline-footer-sections .footer-socials a svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .topline-footer-sections .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    .topline-footer-sections .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .topline-footer-sections .footer-top {
        grid-template-columns: 1fr;
    }
    .topline-footer-sections .footer-brand {
        grid-column: span 1;
    }
    .topline-footer-sections .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile: 2x2 grid for compliance logos, left-aligned */
    .topline-footer-sections .footer-compliance-logos {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: var(--space-5) var(--space-6);
        justify-content: start;
        margin-left: 0;
        margin-right: auto;
    }
    
    /* Disable the large hover effect on mobile */
    .topline-footer-sections .footer-compliance-logos .compliance-badge:hover,
    .topline-footer-sections .footer-compliance-logos .compliance-badge:focus-within {
        transform: none;
        filter: none;
    }
}

/* ━━━ TRUST BAR ━━━ */
.topline-footer-sections .trust-bar {
    background: var(--navy);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.topline-footer-sections .trust-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.topline-footer-sections .trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
}

.topline-footer-sections .trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

/* ━━━ VISUALLY HIDDEN ━━━ */
.topline-footer-sections .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
