:root {
    --ink: #0f172a;
    --muted: #475569;
    --line: #dbe3ef;
    --soft: #f4f7fb;
    --white: #ffffff;
    --blue: #1d4ed8;
    --blue-dark: #153e9f;
    --green: #0f766e;
    --gold: #b45309;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 1000;
    background: var(--ink);
    color: var(--white);
    padding: 10px 14px;
}

.skip-link:focus {
    left: 8px;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex !important;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 10px;
    font-weight: 900;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 19px;
    letter-spacing: 0;
}

.brand-text span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.brand-logo,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 48px;
    object-fit: contain;
}

.primary-nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.menu,
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.menu > li {
    position: relative;
}

.menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    white-space: nowrap;
}

.menu a:hover,
.menu a:focus {
    color: var(--blue);
    background: #eef4ff;
}

.menu .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 260px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .sub-menu .sub-menu {
    left: calc(100% + 10px);
    top: -10px;
}

.menu .sub-menu a {
    justify-content: space-between;
    min-height: 38px;
    padding: 9px 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.header-cta,
.button,
.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.header-cta,
.button.primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.24);
}

.header-cta {
    flex: 0 0 auto;
    padding-inline: 15px;
}

.header-cta:hover,
.button.primary:hover {
    background: var(--blue-dark);
}

.button.secondary {
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
}

.button.light {
    color: var(--ink);
    background: var(--white);
    box-shadow: none;
}

.nav-toggle-input,
.nav-toggle {
    display: none;
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 52%, #f8fafc 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 56px;
    align-items: center;
    min-height: 680px;
    padding: 82px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.07;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(44px, 7vw, 78px);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: 24px;
}

.hero-lede {
    max-width: 670px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-checks {
    display: grid;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink);
    font-weight: 750;
}

.hero-checks li {
    display: flex;
    gap: 10px;
}

.hero-checks li::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--green);
}

.hero-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(219, 227, 239, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.signal-card,
.service-card,
.post-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.signal-card {
    padding: 22px;
}

.signal-card span,
.card-kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-card strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.15;
}

.signal-card p,
.service-card p,
.section-heading p,
.split p,
.cta-inner p {
    color: var(--muted);
}

.section {
    padding: 86px 0;
}

.section-tight {
    padding: 28px 0;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric-strip div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.metric-strip strong {
    display: block;
    color: var(--blue);
    font-size: 30px;
    line-height: 1;
}

.metric-strip span {
    color: var(--muted);
    font-weight: 750;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p:last-child {
    font-size: 18px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 250px;
    padding: 28px;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #b9c8ff;
    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-top: 12px;
}

.service-card h3 a {
    text-decoration: none;
}

.contrast-band {
    color: var(--white);
    background: #0f172a;
}

.contrast-band h2,
.contrast-band .eyebrow {
    color: var(--white);
}

.contrast-band p {
    color: #dbeafe;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, .75fr);
    gap: 54px;
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list div {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.feature-list strong {
    display: block;
    color: var(--white);
    font-size: 20px;
}

.feature-list span {
    color: #dbeafe;
}

.industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industry-list a {
    padding: 11px 14px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.industry-list a:hover {
    color: var(--blue);
    background: #eef4ff;
    border-color: #b9c8ff;
}

.cta-band {
    color: var(--white);
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
}

.cta-band h2,
.cta-band .eyebrow,
.cta-band p {
    color: var(--white);
}

.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.page-hero {
    padding: 76px 0 52px;
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 19px;
}

.page-content {
    padding: 64px 0 92px;
}

.content-shell {
    max-width: 1020px;
}

.content-shell > *:first-child {
    margin-top: 0;
}

.content-shell .abe-content-intro {
    margin: 0 0 34px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.content-shell .abe-content-kicker {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-shell .abe-content-intro h2 {
    max-width: 840px;
    margin-top: 0;
    font-size: clamp(34px, 4vw, 52px);
}

.content-shell .abe-content-intro p:last-child {
    max-width: 820px;
    margin-bottom: 0;
    font-size: 20px;
}

.content-shell h2 {
    margin-top: 34px;
    font-size: clamp(28px, 3vw, 38px);
}

.content-shell h3 {
    margin-top: 26px;
}

.content-shell p,
.content-shell li {
    color: var(--muted);
    font-size: 18px;
}

.content-shell a {
    color: var(--blue);
    font-weight: 800;
}

.content-shell .wp-block-buttons {
    margin-top: 24px;
}

.content-shell .abe-msp-section,
.content-shell .wp-block-group {
    margin: 30px 0;
}

.content-shell .abe-msp-section > h2 {
    margin-bottom: 18px;
}

.content-shell .abe-msp-grid,
.content-shell .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.content-shell .abe-msp-card,
.content-shell .wp-block-column {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.content-shell .abe-msp-card h3 {
    margin-top: 0;
    font-size: 22px;
}

.content-shell .abe-content-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-shell .abe-content-list li {
    position: relative;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.content-shell .abe-content-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
}

.content-shell .abe-msp-final {
    margin-top: 34px;
    padding: 28px;
    color: var(--white);
    border-radius: 14px;
    background: #0f172a;
}

.content-shell .abe-msp-final h2 {
    margin-top: 0;
    color: var(--white);
}

.content-shell .abe-msp-final p {
    color: #dbeafe;
}

.abe-msp-form {
    display: grid;
    gap: 10px;
    max-width: 760px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.abe-msp-form label {
    display: grid;
    gap: 4px;
    color: var(--ink);
    font-weight: 850;
    line-height: 1.25;
}

.abe-msp-form br {
    display: none;
}

.abe-msp-form input,
.abe-msp-form textarea,
.abe-msp-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b8c4d6;
    border-radius: 8px;
    font: inherit;
}

.abe-msp-form textarea {
    min-height: 126px;
}

.abe-msp-form button {
    justify-self: start;
    min-height: 48px;
    padding: 12px 20px;
    color: var(--white);
    background: var(--blue);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    padding: 26px;
}

.post-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.site-footer {
    color: #dbeafe;
    background: #0b1220;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, .5fr) minmax(180px, .5fr);
    gap: 42px;
    padding: 62px 0 34px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer h2 {
    color: var(--white);
    font-size: 18px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #dbeafe;
    text-decoration: none;
}

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

.footer-cta {
    margin-top: 16px;
    color: #0b1220 !important;
    background: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b6c4d8;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .header-inner {
        display: grid !important;
        grid-template-columns: auto auto auto;
        gap: 14px;
    }

    .nav-toggle {
        display: grid;
        justify-self: end;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 11px;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
    }

    .nav-toggle span {
        height: 2px;
        background: var(--ink);
    }

    .primary-nav {
        display: none;
        grid-column: 1 / -1;
        justify-self: stretch;
        padding-bottom: 16px;
    }

    .nav-toggle-input:checked ~ .primary-nav {
        display: block;
    }

    .menu {
        display: grid;
        gap: 4px;
    }

    .menu a {
        white-space: normal;
    }

    .menu .sub-menu,
    .menu .sub-menu .sub-menu {
        position: static;
        min-width: 0;
        margin: 4px 0 8px 14px;
        padding: 6px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 10px;
    }

    .header-cta {
        justify-self: end;
    }

    .hero-grid,
    .split,
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: 0;
        padding: 68px 0;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand-text span {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hero-grid,
    .section,
    .page-content {
        padding-block: 52px;
    }

    h1 {
        font-size: 43px;
    }

    .hero-lede {
        font-size: 18px;
    }

    .card-grid,
    .metric-strip,
    .content-shell .abe-msp-grid,
    .content-shell .wp-block-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .metric-strip div,
    .service-card {
        min-height: auto;
    }

    .footer-bottom {
        display: grid;
    }
}