/* UnionConnect Developer Theme - Custom CSS */

/* Prevent horizontal scroll - full-width blocks using 100vw can exceed viewport on mobile.
 * Use clip (not hidden) so it doesn't create a scroll container that breaks position:sticky. */
html, body {
    overflow-x: clip;
}

/* Sticky header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Nav links */
.ast-primary-header .menu-item > .menu-link {
    background: none;
    border-radius: 0;
    padding: 0.4rem 0.9rem !important;
    margin: 0 0.1rem;
    transition: color 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a3a5c !important;
    box-shadow: none;
    border-bottom: 2px solid transparent;
}

/* Sign In button - subtle outlined style */
.ast-primary-header .menu-item-442 > .menu-link {
    border: 1.5px solid #1a3a5c;
    border-radius: 4px;
    padding: 0.3rem 1rem !important;
    border-bottom-width: 1.5px;
    color: #1a3a5c !important;
}

.ast-primary-header .menu-item-442 > .menu-link:hover {
    background: #1a3a5c;
    color: #fff !important;
    border-color: #1a3a5c;
}

.ast-primary-header .menu-item > .menu-link:hover {
    color: #1a3a5c !important;
    background-color: rgba(212, 146, 11, 0.15);
    border-radius: 6px;
    border-bottom-color: transparent;
}

.ast-primary-header .current-menu-item > .menu-link,
.ast-primary-header .current_page_parent > .menu-link {
    color: #d4920b !important;
    background-color: rgba(212, 146, 11, 0.1);
    border-radius: 6px;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* Hide default page title (pages use hero sections instead, single posts keep theirs) */
.page .entry-title {
    display: none !important;
}

/* Site title + tagline: hidden (baked into logo lockup image) */
.site-header .ast-site-identity .ast-site-title-wrap {
    display: none;
}

/* Hide Astra below-header area (creates unwanted gradient gap) */
.ast-below-header-wrap {
    display: none !important;
}

/* --- Hero / full-width layout fixes ---
 *
 * ROOT CAUSE: Astra uses two container modes:
 *   - ast-page-builder-template (pages): no container padding, no #primary margin
 *   - ast-plain-container (blog/single): .ast-container gets 20px side padding,
 *     #primary gets ~68px margin-top
 *
 * Pages work because their heroes are inside .entry-content where WordPress
 * applies alignfull breakout CSS. Blog/single heroes are PHP-injected into
 * #primary directly, so they need explicit breakout styles.
 */

/* 1. Remove Astra's top margin on #primary for blog and single posts */
.blog #primary,
.single #primary {
    margin-top: 0 !important;
}

/* 2. PHP-injected heroes: break out of .ast-container padding to full viewport */
#primary > .uc-animated-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* 3. Blog archive + single post: constrain content to match featured image width */
.blog #main,
.single #main {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Block-editor heroes inside .entry-content (pages) - remove top gap */
.entry-content > .alignfull:first-child,
.entry-content > .wp-block-cover:first-child {
    margin-top: 0 !important;
}

/* --- Essential block styles (replacing wp-block-library for blocks we use) --- */

/* Cover block */
.wp-block-cover {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: clip;
}

.wp-block-cover__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wp-block-cover .has-background-dim.has-background-dim-100 {
    opacity: 1;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Columns block */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
}

/* Buttons block */
.wp-block-buttons.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.wp-block-button__link {
    display: inline-block;
    text-decoration: none;
}

/* Block text alignment (normally in wp-block-library) */
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

/* --- End essential block styles --- */

/* --- Accessibility contrast fixes --- */

/* 1. Hero gold highlight text: the inline-contrast PHP filter darkens #e8a838
 *    to #8B6200 for light backgrounds, but on the dark cover bg it needs to
 *    stay light for adequate contrast (7.6:1 vs 2.9:1). */
.wp-block-cover .has-white-color strong {
    color: #e8a838 !important;
}

/* 2. Accent buttons: bright logo orange with dark text for contrast.
 *    #e8a838 bg + #1a1a2e text = 8.4:1 contrast ratio. */
.wp-block-button__link.has-accent-background-color {
    background-color: #e8a838 !important;
    color: #1a1a2e !important;
}

.wp-block-button__link.has-accent-background-color:hover {
    background-color: #1a3a5c !important;
    color: #fff !important;
}

/* --- End accessibility contrast fixes --- */

/* Hero section - animated gradient */
.wp-block-cover > .wp-block-cover__background.has-primary-background-color {
    background: #1b2a4a !important;
    overflow: hidden;
}

.wp-block-cover > .wp-block-cover__background.has-primary-background-color::before,
.wp-block-cover > .wp-block-cover__background.has-primary-background-color::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.wp-block-cover > .wp-block-cover__background.has-primary-background-color::before {
    background: #e8a838;
    top: -20%;
    left: -20%;
    animation: uc-home-glow-1 14s ease-in-out infinite alternate;
}

.wp-block-cover > .wp-block-cover__background.has-primary-background-color::after {
    background: #111;
    bottom: -20%;
    right: -20%;
    animation: uc-home-glow-2 18s ease-in-out infinite alternate;
}

@keyframes uc-home-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(60%, 20%) scale(1.15); }
    40% { transform: translate(80%, 60%) scale(0.9); }
    60% { transform: translate(40%, 80%) scale(1.1); }
    80% { transform: translate(20%, 50%) scale(0.95); }
    100% { transform: translate(70%, 70%) scale(1.05); }
}

@keyframes uc-home-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(-50%, -40%) scale(1.1); }
    40% { transform: translate(-70%, -10%) scale(0.9); }
    60% { transform: translate(-30%, -60%) scale(1.15); }
    80% { transform: translate(-60%, -30%) scale(0.95); }
    100% { transform: translate(-40%, -70%) scale(1.05); }
}

/* Inner page blobs use the shorter animation */
@keyframes uc-glow-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40%, 10%) scale(1.1); }
    66% { transform: translate(20%, 30%) scale(0.9); }
    100% { transform: translate(50%, 25%) scale(1.05); }
}

@keyframes uc-glow-2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20%, -30%) scale(1.15); }
    66% { transform: translate(-40%, -10%) scale(0.95); }
    100% { transform: translate(-35%, -25%) scale(1.1); }
}

.uc-hero {
    position: relative;
    overflow: hidden;
}

/* Animated hero for inner pages (wp-block-group based) */
.uc-animated-hero {
    position: relative;
    overflow: hidden;
}

.uc-animated-hero::before,
.uc-animated-hero::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
}

.uc-animated-hero::before {
    background: #e8a838;
    top: -10%;
    left: -10%;
    animation: uc-glow-1 8s ease-in-out infinite alternate;
}

.uc-animated-hero::after {
    background: #111;
    bottom: -10%;
    right: -10%;
    animation: uc-glow-2 10s ease-in-out infinite alternate;
}

.uc-animated-hero > * {
    position: relative;
    z-index: 2;
}

.uc-hero-content {
    position: relative;
    z-index: 2;
}

/* iPhone Frame */
.uc-iphone {
    position: relative;
    width: 350px;
    height: 714px;
    margin: 0 auto;
    background: transparent;
}

.uc-iphone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1d1d1f;
    border-radius: 48px;
    padding: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 1px 1px rgba(255,255,255,0.05);
}

.uc-iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Dynamic Island */
.uc-iphone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 24px;
    background: #1d1d1f;
    border-radius: 20px;
    z-index: 10;
}

/* Screenshot Carousel */
.uc-phone-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Feature cards */
.uc-feature-card {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 2rem;
}

.uc-feature-card h3 {
    color: #1b2a4a;
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid #e2e5ea;
}

.uc-feature-card p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Logo marquee */
.uc-logo-marquee {
    --marquee-h: 80px;
    --sprite-w: 2304px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: var(--marquee-h);
}

.uc-logo-marquee::before,
.uc-logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.uc-logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--wp--preset--color--light, #f5f5f5), transparent);
}

.uc-logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--wp--preset--color--light, #f5f5f5), transparent);
}

.uc-logo-track {
    display: flex;
    gap: 0;
    width: max-content;
    height: var(--marquee-h);
    animation: uc-marquee 30s linear infinite;
    will-change: transform;
}

.uc-logo-track:hover {
    animation-play-state: paused;
}

.uc-logo-track img {
    display: block;
    height: var(--marquee-h);
    width: var(--sprite-w);
    flex: 0 0 var(--sprite-w);
    opacity: 0.85;
}

@keyframes uc-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(var(--sprite-w) * -1)); }
}

/* Steps / How it works */
.uc-step {
    text-align: center;
    padding: 1.5rem;
}

.uc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Testimonial */
.uc-testimonial {
    border-left: 4px solid var(--wp--preset--color--accent);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
}

.uc-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    font-size: 1rem;
    color: var(--wp--preset--color--primary);
}

/* CTA section */
.uc-cta-section {
    text-align: center;
}

.uc-cta-section .wp-block-button__link {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Pricing table */
.uc-pricing-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.uc-pricing-card.featured {
    border: 3px solid var(--wp--preset--color--accent);
    transform: scale(1.03);
}

.uc-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wp--preset--color--primary);
    line-height: 1;
}

.uc-price-period {
    font-size: 1rem;
    color: var(--wp--preset--color--muted);
    font-weight: 400;
}

/* Pricing card feature list: left-align text, center the block */
.uc-pricing-card .wp-block-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.uc-pricing-card .wp-block-list li {
    text-align: left;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

/* WPForms contact form */
.wpforms-container .wpforms-form .wpforms-field-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
    margin-bottom: 0.35rem;
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
    border: 2px solid #e2e5ea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafbfc;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
    border-color: var(--wp--preset--color--accent, #e8a838);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
    background: #fff;
}

.wpforms-container .wpforms-form textarea {
    min-height: 120px;
}

.wpforms-container .wpforms-form .wpforms-field-sublabel {
    font-size: 0.8rem;
    color: #888;
}

.wpforms-container .wpforms-form button[type="submit"].wpforms-submit {
    background: linear-gradient(135deg, #e8a838, #d4872a) !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
}

.wpforms-container .wpforms-form button[type="submit"].wpforms-submit:hover {
    background: linear-gradient(135deg, #d4872a, #c07020) !important;
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.45);
    transform: translateY(-1px);
}

/* Inquiry form (AFT CT landing page) - mirrors WPForms styling */
.uc-inquiry-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
    margin-bottom: 0.35rem;
}

.uc-inquiry-form .uc-form-group {
    margin-bottom: 1.25rem;
}

.uc-inquiry-form input[type="text"],
.uc-inquiry-form input[type="email"],
.uc-inquiry-form input[type="tel"] {
    width: 100%;
    border: 2px solid #e2e5ea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.uc-inquiry-form input:focus {
    border-color: var(--wp--preset--color--accent, #e8a838);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
    background: #fff;
}

.uc-inquiry-form .uc-submit-btn {
    background: linear-gradient(135deg, #e8a838, #d4872a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
    width: 100%;
}

.uc-inquiry-form .uc-submit-btn:hover {
    background: linear-gradient(135deg, #d4872a, #c07020);
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.45);
    transform: translateY(-1px);
}

.uc-inquiry-form .uc-submit-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.uc-inquiry-form .status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.uc-inquiry-form .status-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.uc-inquiry-form .status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Finger tap animation - triggered by JS before each slide */
.uc-finger-overlay.uc-tap {
    animation: finger-tap 0.4s ease-in-out;
}

@keyframes finger-tap {
    0% { transform: translateY(0); }
    40% { transform: translateY(-14px); }
    65% { transform: translateY(2px); }
    85% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Links in dark sections (hero, CTA) - exclude buttons */
.uc-animated-hero a:not(.wp-element-button),
.wp-block-cover a:not(.wp-element-button),
.uc-cta-section a:not(.wp-element-button) {
    color: #e8a838 !important;
    text-decoration: underline;
}

.uc-animated-hero a:not(.wp-element-button):hover,
.wp-block-cover a:not(.wp-element-button):hover,
.uc-cta-section a:not(.wp-element-button):hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Footer */
.uc-footer {
    font-size: 0.9rem;
}

.uc-footer a {
    color: var(--wp--preset--color--accent-light);
}

.uc-footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 782px) {
    /* Stack ALL block columns vertically on mobile (replaces wp-block-library responsive) */
    .wp-block-columns {
        flex-direction: column !important;
    }

    .wp-block-column {
        flex-basis: auto !important;
        width: 100% !important;
    }

    /* Hero H1: tame the inline 3.25rem to something mobile-friendly */
    .wp-block-cover h1.wp-block-heading {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    /* Hero paragraph and buttons: center on mobile */
    .wp-block-cover .wp-block-column p {
        text-align: center !important;
        font-size: 1.05rem !important;
    }

    .wp-block-cover .wp-block-buttons {
        justify-content: center !important;
    }

    /* Phone mockup: center below text, smaller */
    .uc-iphone {
        width: 240px;
        height: 489px;
        margin: 1.5rem auto 0;
    }

    .uc-iphone-frame {
        border-radius: 40px;
        padding: 9px;
    }

    .uc-iphone-screen {
        border-radius: 31px;
    }

    .uc-iphone-island {
        width: 70px;
        height: 20px;
        top: 9px;
    }

    /* Finger overlay: reposition for stacked layout */
    .uc-finger-overlay {
        bottom: -20% !important;
        right: -15% !important;
        width: 80% !important;
    }

    /* Hero cover: reduce min-height, let content determine height */
    .wp-block-cover.alignfull {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .uc-logo-marquee {
        --marquee-h: 60px;
        --sprite-w: 1728px;
    }

    .uc-pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .wp-block-cover h1.wp-block-heading {
        font-size: 1.85rem !important;
    }

    .uc-animated-hero h1 {
        font-size: 2rem !important;
    }

    .uc-iphone {
        width: 200px;
        height: 408px;
    }

    .uc-iphone-frame {
        border-radius: 34px;
        padding: 7px;
    }

    .uc-iphone-screen {
        border-radius: 27px;
    }

    .uc-iphone-island {
        width: 58px;
        height: 17px;
        top: 7px;
    }
}

/* Mobile menu trigger: compact hamburger + MENU label, vertically centered */
.site-header .ast-button-wrap .menu-toggle {
    padding: 6px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

.site-header .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon {
    display: flex !important;
    align-items: center !important;
    line-height: 0 !important;
}

.site-header .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.site-header .ast-button-wrap .menu-toggle .mobile-menu-wrap {
    display: flex !important;
    align-items: center !important;
    margin-left: 0 !important;
}

.site-header .ast-button-wrap .menu-toggle .mobile-menu-wrap .mobile-menu {
    writing-mode: horizontal-tb;
    display: inline;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1 !important;
}

/* Remove focus outline on hamburger button (shows as dotted border on mobile) */
.site-header .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-minimal {
    outline: none;
    border: none;
    box-shadow: none;
}

.site-header .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-minimal:focus,
.site-header .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-minimal:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ===== Mobile Slide-Out Menu ===== */

/* Drawer: override Astra's opacity fade (JS handles close animation instead).
 * pointer-events:none prevents closed drawer from blocking page interaction. */
.ast-mobile-popup-drawer {
    opacity: 1 !important;
    pointer-events: none;
}

.ast-mobile-popup-drawer.active {
    pointer-events: auto;
}

/* Overlay backdrop */
.ast-mobile-popup-drawer .ast-mobile-popup-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    transition: opacity 0.3s ease !important;
}

/* Inner panel: slide in from right - snappy but noticeable.
 * Astra sets opacity:0 and its own fade transition on the inner panel,
 * which masks the slide. We force opacity:1 and our own transform transition. */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 300px !important;
    max-width: 85vw !important;
    background: #1b2a4a !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    opacity: 1 !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    display: flex !important;
    flex-direction: column !important;
}

.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
    transform: translateX(0) !important;
}

/* Panel header: close button - compact, no background mismatch */
.ast-mobile-popup-drawer .ast-mobile-popup-header {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1rem 0.25rem !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header button {
    color: rgba(255, 255, 255, 0.5) !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 0;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header button:focus,
.ast-mobile-popup-drawer .ast-mobile-popup-header button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.ast-mobile-popup-drawer .ast-mobile-popup-header button:hover {
    color: #fff !important;
}

.ast-mobile-popup-header svg {
    width: 20px;
    height: 20px;
}

/* Gold accent bar at top of panel */
.ast-mobile-popup-drawer .ast-mobile-popup-inner::before {
    content: '';
    display: block;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #e8a838, #d4872a, transparent);
}

/* Menu content area */
.ast-mobile-popup-content {
    padding: 0.25rem 0 2.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Override Astra's center alignment */
.ast-mobile-popup-drawer.content-align-center .ast-mobile-popup-content .main-header-menu {
    text-align: left !important;
}

.ast-mobile-popup-content .main-header-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill Astra's excessive padding/margin on menu items */
.ast-mobile-popup-content .main-header-menu .menu-item {
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
    transform: translateX(20px);
    animation: uc-menu-slide-in 0.3s ease forwards;
}

.ast-mobile-popup-drawer:not(.active) .main-header-menu .menu-item {
    opacity: 0;
    transform: translateX(20px);
    animation: none;
}

/* Staggered entrance */
.ast-mobile-popup-content .menu-item:nth-child(1) { animation-delay: 0.05s; }
.ast-mobile-popup-content .menu-item:nth-child(2) { animation-delay: 0.10s; }
.ast-mobile-popup-content .menu-item:nth-child(3) { animation-delay: 0.15s; }
.ast-mobile-popup-content .menu-item:nth-child(4) { animation-delay: 0.20s; }
.ast-mobile-popup-content .menu-item:nth-child(5) { animation-delay: 0.25s; }
.ast-mobile-popup-content .menu-item:nth-child(6) { animation-delay: 0.30s; }
.ast-mobile-popup-content .menu-item:nth-child(7) { animation-delay: 0.35s; }

@keyframes uc-menu-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu links - compact, consistent padding */
.ast-mobile-popup-content .main-header-menu .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.85rem 1.25rem 0.85rem 1.5rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    line-height: 1.3 !important;
}

.ast-mobile-popup-content .main-header-menu .menu-item > .menu-link:hover,
.ast-mobile-popup-content .main-header-menu .menu-item > .menu-link:active {
    background: rgba(232, 168, 56, 0.1);
    color: #e8a838 !important;
    border-left-color: #e8a838;
    padding-left: 1.75rem !important;
}

/* Current page */
.ast-mobile-popup-content .main-header-menu .current-menu-item > .menu-link,
.ast-mobile-popup-content .main-header-menu .current_page_parent > .menu-link {
    color: #e8a838 !important;
    border-left-color: #e8a838;
    background: rgba(232, 168, 56, 0.08);
}

/* Sign In button - special treatment */
.ast-mobile-popup-content .main-header-menu .menu-item:last-child {
    margin: 0 !important;
    padding: 0.75rem 2rem 0 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ast-mobile-popup-content .main-header-menu .menu-item:last-child > .menu-link {
    text-align: center !important;
    border: 1.5px solid rgba(232, 168, 56, 0.5) !important;
    border-radius: 6px;
    padding: 0.7rem 1.25rem !important;
    color: #e8a838 !important;
    box-sizing: border-box !important;
}

.ast-mobile-popup-content .main-header-menu .menu-item:last-child > .menu-link:hover {
    background: rgba(232, 168, 56, 0.15);
    border-color: #e8a838 !important;
    padding-left: 1.25rem !important;
}

/* Prevent body scroll when menu is open */
body.ast-popup-nav-open {
    overflow: hidden;
}

/* ===== Proposal page styles ===== */
.uc-proposal {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.uc-proposal h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e8a838;
}

.uc-proposal h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1b2a4a;
    margin: 2rem 0 0.75rem;
}

.uc-proposal p {
    margin-bottom: 1rem;
}

/* Hero */
.uc-proposal-hero {
    background: #1b2a4a;
    color: #fff;
    padding: 4rem 2.5rem;
    border-radius: 12px;
    margin: 0 -1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.uc-proposal-hero::before,
.uc-proposal-hero::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.uc-proposal-hero::before {
    background: #e8a838;
    top: -20%;
    left: -20%;
    animation: uc-glow-1 8s ease-in-out infinite alternate;
}

.uc-proposal-hero::after {
    background: #111;
    bottom: -20%;
    right: -20%;
    animation: uc-glow-2 10s ease-in-out infinite alternate;
}

.uc-proposal-hero > * {
    position: relative;
    z-index: 2;
}

.uc-proposal-hero h1 {
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}

.uc-proposal-hero h1 strong {
    color: #e8a838;
    font-weight: 400;
}

.uc-proposal-hero .subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.uc-proposal-hero .byline {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1.5rem;
}

/* Callout boxes */
.uc-proposal .callout {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .callout-proof {
    background: #edf7ed;
    border: 1px solid #c3e6c3;
}

.uc-proposal .callout-value {
    background: #fff8e6;
    border: 1px solid #f0dca8;
}

.uc-proposal .callout-info {
    background: #f0f4f8;
    border: 1px solid #d0dbe8;
}

.uc-proposal .callout strong {
    color: #1b2a4a;
}

/* Stats row */
.uc-proposal .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.uc-proposal .stat {
    background: #f8f9fb;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e5ea;
}

.uc-proposal .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #e8a838;
    display: block;
    line-height: 1;
}

.uc-proposal .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

/* Feature cards grid */
.uc-proposal .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.uc-proposal .feature-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e2e5ea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 0 0 0.5rem;
}

.uc-proposal .feature-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Two-column layout */
.uc-proposal .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.uc-proposal .col-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e5ea;
}

.uc-proposal .col-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8a838;
    margin: 0 0 0.75rem;
}

/* Pricing table */
.uc-proposal .pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.uc-proposal .pricing-table th {
    background: #1b2a4a;
    color: #fff;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.uc-proposal .pricing-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.uc-proposal .pricing-table tr:last-child td {
    border-bottom: none;
}

.uc-proposal .pricing-table tr:nth-child(even) {
    background: #f8f9fb;
}

.uc-proposal .pricing-table td strong {
    color: #1b2a4a;
}

/* Timeline steps */
.uc-proposal .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.uc-proposal .step {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #e2e5ea;
}

.uc-proposal .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8a838;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.uc-proposal .step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 0 0 0.5rem;
}

.uc-proposal .step p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Personnel bios */
.uc-proposal .bio {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e5ea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.uc-proposal .bio h3 {
    color: #e8a838;
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.uc-proposal .bio .role {
    font-weight: 600;
    color: #1b2a4a;
    margin-bottom: 0.75rem;
    display: block;
}

.uc-proposal .bio p {
    font-size: 0.95rem;
}

/* Contact section */
.uc-proposal .contact-section {
    background: #1b2a4a;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem -1.5rem 0;
}

.uc-proposal .contact-section h2 {
    color: #fff;
    border-bottom-color: #e8a838;
    margin-top: 0;
}

.uc-proposal .contact-section p {
    opacity: 0.9;
}

.uc-proposal .contact-section a {
    color: #e8a838;
    text-decoration: none;
}

.uc-proposal .contact-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.uc-proposal .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.uc-proposal .contact-card {
    background: rgba(255,255,255,0.08);
    padding: 1.25rem;
    border-radius: 8px;
}

.uc-proposal .contact-card strong {
    color: #e8a838;
}

/* Proposal responsive */
@media (max-width: 768px) {
    .uc-proposal-hero {
        padding: 2.5rem 1.5rem;
        margin: 0 -1rem 2rem;
    }
    .uc-proposal-hero h1 {
        font-size: 2rem;
    }
    .uc-proposal .stats-row,
    .uc-proposal .features-grid,
    .uc-proposal .two-col,
    .uc-proposal .steps,
    .uc-proposal .contact-grid {
        grid-template-columns: 1fr;
    }
    .uc-proposal .contact-section {
        margin: 2rem -1rem 0;
        padding: 2rem 1.25rem;
    }
}
