/* WUC Solutions Hub — page-solutions-hub.php
   Token namespace: --sol-*
   Scoped under .wuc-sol-page on body */

.wuc-sol-page {
	--sol-bg-base: #FFFFFF;
	--sol-bg-subtle: #F8FAFC;
	--sol-bg-trust: #0A2540;
	--sol-ink-primary: #0F172A;
	--sol-ink-secondary: #475569;
	--sol-ink-muted: #64748B;
	--sol-ink-inverse: #FFFFFF;
	--sol-line-hairline: #E2E8F0;
	--sol-line-strong: #CBD5E1;
	--sol-accent: #0052B8;
	--sol-accent-deep: #003F92;
	--sol-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--sol-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sol-sp-2: 8px; --sol-sp-3: 12px; --sol-sp-4: 16px; --sol-sp-5: 24px;
	--sol-sp-6: 32px; --sol-sp-7: 48px; --sol-sp-8: 64px; --sol-sp-9: 96px;
	--sol-r-2: 8px; --sol-r-3: 12px;
	--sol-container: 1240px;
	font-family: var(--sol-sans);
	color: var(--sol-ink-primary);
	background: var(--sol-bg-base);
	-webkit-font-smoothing: antialiased;
}

.wuc-sol-page *, .wuc-sol-page *::before, .wuc-sol-page *::after { box-sizing: border-box; }
.wuc-sol-page a { color: inherit; text-decoration: none; }

.wuc-sol-page .sol-skip { position: absolute; left: -9999px; top: 0; background: var(--sol-bg-trust); color: var(--sol-ink-inverse); padding: var(--sol-sp-3) var(--sol-sp-5); font-family: var(--sol-mono); font-size: 13px; z-index: 9999; }
.wuc-sol-page .sol-skip:focus { left: var(--sol-sp-4); top: var(--sol-sp-4); }

.wuc-sol-page .sol-container { max-width: var(--sol-container); margin: 0 auto; padding-inline: var(--sol-sp-5); }
@media (min-width: 768px) { .wuc-sol-page .sol-container { padding-inline: var(--sol-sp-7); } }

.wuc-sol-page .sol-kicker {
	font-family: var(--sol-mono); font-size: 13px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--sol-accent);
	margin: 0 0 var(--sol-sp-4); display: inline-flex; align-items: center; gap: var(--sol-sp-2);
}
.wuc-sol-page .sol-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.wuc-sol-page .sol-section { padding-block: clamp(56px, 7vw, 96px); border-block-end: 1px solid var(--sol-line-hairline); }
.wuc-sol-page .sol-section-h { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; margin: 0 0 var(--sol-sp-7); max-width: 26ch; }

/* HERO */
.wuc-sol-page .sol-hero {
	padding-block: clamp(80px, 10vw, 144px);
	background: radial-gradient(1200px 600px at 100% 0%, rgba(0,82,184,0.06), transparent 60%), var(--sol-bg-base);
	border-bottom: 1px solid var(--sol-line-hairline);
}
.wuc-sol-page .sol-hero-h1 {
	font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.026em;
	line-height: 1.05; margin: 0 0 var(--sol-sp-5); max-width: 22ch;
}
.wuc-sol-page .sol-hero-sub { font-size: 18px; color: var(--sol-ink-secondary); line-height: 1.55; max-width: 60ch; margin: 0 0 var(--sol-sp-7); }
.wuc-sol-page .sol-hero-cta { display: flex; flex-wrap: wrap; gap: var(--sol-sp-3); }

/* BUTTONS */
.wuc-sol-page .sol-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: var(--sol-sp-2); padding: 14px 24px; font-size: 16px; font-weight: 700;
	letter-spacing: -0.005em; border-radius: var(--sol-r-2);
	border: 1px solid transparent; cursor: pointer; line-height: 1;
	transition: transform 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.wuc-sol-page .sol-btn svg { width: 14px; height: 14px; transition: transform 120ms ease; }
.wuc-sol-page .sol-btn:hover svg { transform: translateX(2px); }
.wuc-sol-page .sol-btn-primary {
	background: var(--sol-accent); color: var(--sol-ink-inverse); border-color: var(--sol-accent);
}
.wuc-sol-page .sol-btn-primary:hover, .wuc-sol-page .sol-btn-primary:focus {
	background: var(--sol-accent-deep); border-color: var(--sol-accent-deep); color: var(--sol-ink-inverse);
	transform: translateY(-1px);
}
.wuc-sol-page .sol-btn-secondary {
	background: var(--sol-bg-base); color: var(--sol-accent); border-color: var(--sol-line-strong); font-weight: 600;
}
.wuc-sol-page .sol-btn-secondary:hover, .wuc-sol-page .sol-btn-secondary:focus {
	color: var(--sol-accent-deep); border-color: var(--sol-accent-deep); transform: translateY(-1px);
}
.wuc-sol-page .sol-btn-inverse {
	background: var(--sol-ink-inverse); color: var(--sol-bg-trust); font-weight: 700;
}
.wuc-sol-page .sol-btn-inverse:hover, .wuc-sol-page .sol-btn-inverse:focus {
	background: #E5E7EB; color: var(--sol-bg-trust); transform: translateY(-1px);
}

/* GRID */
.wuc-sol-page .sol-grid {
	display: grid; grid-template-columns: 1fr; gap: 1px;
	background: var(--sol-line-hairline);
	border: 1px solid var(--sol-line-hairline);
	border-radius: var(--sol-r-3); overflow: hidden;
}
@media (min-width: 768px) { .wuc-sol-page .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wuc-sol-page .sol-grid { grid-template-columns: repeat(3, 1fr); } }

.wuc-sol-page .sol-card {
	background: var(--sol-bg-base); padding: var(--sol-sp-7);
	display: flex; flex-direction: column; gap: var(--sol-sp-3);
	color: inherit; transition: background 160ms ease;
}
.wuc-sol-page .sol-card:hover { background: var(--sol-bg-subtle); }

.wuc-sol-page .sol-card-pill {
	align-self: flex-start; display: inline-flex; align-items: center;
	padding: 5px 12px; border: 1px solid var(--sol-line-hairline);
	border-left: 4px solid var(--sol-accent); border-radius: 0 999px 999px 0;
	font-family: var(--sol-mono); font-size: 12px; font-weight: 500;
	letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--sol-ink-secondary); background: var(--sol-bg-base);
}

.wuc-sol-page .sol-card-title {
	font-size: 22px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25;
	color: var(--sol-ink-primary); margin: var(--sol-sp-2) 0 0;
}
.wuc-sol-page .sol-card-desc { font-size: 15px; color: var(--sol-ink-secondary); line-height: 1.55; margin: 0; }
.wuc-sol-page .sol-card-link {
	font-size: 14px; font-weight: 500; color: var(--sol-accent);
	margin-top: auto; padding-top: var(--sol-sp-3);
	display: inline-flex; align-items: center; gap: var(--sol-sp-2);
	transition: gap 120ms ease;
}
.wuc-sol-page .sol-card-link svg { width: 12px; height: 12px; }
.wuc-sol-page .sol-card:hover .sol-card-link { gap: var(--sol-sp-3); }

/* FINAL CTA */
.wuc-sol-page .sol-final {
	padding-block: clamp(80px, 10vw, 144px);
	background: radial-gradient(800px 400px at 0% 100%, rgba(0,82,184,0.18), transparent 60%), var(--sol-bg-trust);
	color: var(--sol-ink-inverse);
}
.wuc-sol-page .sol-final-h { font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; margin: 0 0 var(--sol-sp-5); max-width: 22ch; color: var(--sol-ink-inverse); }
.wuc-sol-page .sol-final-sub { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.55; max-width: 56ch; margin: 0 0 var(--sol-sp-7); }
.wuc-sol-page .sol-final-cta { display: flex; flex-wrap: wrap; gap: var(--sol-sp-3); }
.wuc-sol-page .sol-final .sol-kicker { color: rgba(255,255,255,0.7); }

/* THEME RESET — keep theme/Elementor wrappers from clipping */
body.page-template-page-solutions-hub .site-content,
body.page-template-page-solutions-hub .ast-container,
body.page-template-page-solutions-hub .entry-content,
body.page-template-page-solutions-hub .elementor-section-wrap { padding: 0 !important; max-width: none !important; }
body.page-template-page-solutions-hub .entry-header,
body.page-template-page-solutions-hub .page-title,
body.page-template-page-solutions-hub .entry-title { display: none !important; }

/* ===== MOBILE OVERFLOW RESCUE — added 2026-05-09 (sweep) =====
   Generic [class*=...] selectors so it works for any page-prefix variant. */
@media (max-width: 768px) {
    [class*="-trust-row"],
    [class*="-trust-strip"],
    [class*="-badge-row"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    [class*="-trust-cell"],
    [class*="-badge-cell"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    button[class*="-faq-q"],
    button[class*="-faq-q"] > span,
    [class*="-faq-question"],
    [class*="-faq-question"] > span {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto;
    }
    [class*="-matrix-wrap"],
    [class*="-table-wrap"],
    [class*="-compare-wrap"] {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    [class*="-matrix"]:not([class*="-wrap"]),
    [class*="-compare-table"] {
        min-width: 600px;
        max-width: none;
    }
    [class*="-hero"],
    [class*="-hero"] * {
        max-width: 100vw;
    }
    [class*="-stats-row"],
    [class*="-metric-row"],
    [class*="-kpi-row"] {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    [class*="-stat-cell"],
    [class*="-metric-cell"],
    [class*="-kpi-cell"] {
        flex: 1 1 calc(50% - 16px) !important;
        min-width: 0 !important;
    }
    [class*="-pillar-grid"],
    [class*="-feature-grid"],
    [class*="-card-grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    img, picture, svg, video, iframe {
        max-width: 100%;
        height: auto;
    }
    html, body {
        max-width: 100vw;
        overflow-x: clip;
    }
}
@media (max-width: 480px) {
    [class*="-trust-cell"] { font-size: 14px; }
    button[class*="-faq-q"] { padding: 14px 16px; }
    [class*="-stat-cell"],
    [class*="-metric-cell"],
    [class*="-kpi-cell"] {
        flex: 1 1 100% !important;
    }
}
/* ===== end MOBILE OVERFLOW RESCUE ===== */

/* ===== MOBILE OVERFLOW RESCUE v2 — added 2026-05-09 =====
   Supplements v1. Targets residuals discovered via DOM probe:
   - tables with hardcoded min-width that exceed viewport (e.g., .cio-matrix 880px)
   - exit-intent banners and notification overlays with fixed pixel widths
   - reCAPTCHA badge oversize on narrow phones */
@media (max-width: 768px) {
    /* Tables: any matrix/compare table becomes a self-scrolling block */
    table[class*="-matrix"],
    table[class*="-compare"],
    [class*="-matrix"]:not([class*="-wrap"]),
    [class*="-compare-table"] {
        display: block !important;
        overflow-x: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }
    /* Inner table layout preserved while parent is overflow-scrollable */
    table[class*="-matrix"] thead,
    table[class*="-matrix"] tbody,
    table[class*="-matrix"] tr {
        display: table-row-group;
    }
    table[class*="-matrix"] thead { display: table-header-group; }
    table[class*="-matrix"] tr { display: table-row; }

    /* Exit banners / popup asides: fit narrow viewport */
    aside[id*="exit"],
    aside[class*="exit"],
    [id*="-exit-banner"],
    [class*="-exit-banner"],
    [id*="-popup"],
    [class*="-popup-card"] {
        max-width: calc(100vw - 32px) !important;
        width: auto !important;
        left: 16px !important;
        right: 16px !important;
    }

    /* Generic table protection — last-resort catch-all */
    table {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* reCAPTCHA badge — shrink so it doesn't dominate the corner */
    .grecaptcha-badge {
        transform: scale(0.75);
        transform-origin: bottom right;
    }

    /* Tighter exit-banner padding on small phones */
    aside[id*="exit"],
    [class*="-exit-banner"] {
        padding: 16px !important;
    }
}
/* ===== end MOBILE OVERFLOW RESCUE v2 ===== */
