:root {
    --h4hub-navy: #06223a;
    --h4hub-rose: #bd4d59;
    --h4hub-rose-dark: #963b47;
    --h4hub-gold: #f6b51b;
    --h4hub-cream: #fff9f4;
    --h4hub-mist: #f2f7f8;
    --h4hub-ink: #17334a;
    --h4hub-muted: #526779;
    --h4hub-line: #dce6ea;
    --h4hub-white: #ffffff;
}

/* Compact family header and refreshed logo. */
#header-grid .builder-item--widget-area-1,
#header-grid .builder-item--widget-area-2 {
    display: none !important;
}

#header-grid .header-main-inner {
    background: var(--h4hub-white);
    border-bottom: 1px solid var(--h4hub-line);
}

#header-grid .header-main-inner .container {
    min-height: 92px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#header-grid .site-logo,
#header-grid .site-logo .brand,
#header-grid .h4hub-logo-link {
    display: inline-flex;
    align-items: center;
}

#header-grid .h4hub-logo {
    display: block;
    width: 245px !important;
    max-width: min(68vw, 245px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}

#header-grid .header-bottom-inner {
    min-height: 44px;
    background: var(--h4hub-rose) !important;
    border: 0 !important;
}

#header-grid .header-bottom-inner .container {
    min-height: 44px;
}

#header-grid .builder-item--custom_html,
#header-grid .builder-item--custom_html .nv-html-content {
    width: 100%;
}

#header-grid .builder-item--custom_html h5 {
    margin: 0 !important;
    color: var(--h4hub-white) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: .015em;
    text-align: center !important;
}

body.page-id-9 main#content {
    background: var(--h4hub-white);
}

body.page-id-9 .container.single-page-container,
body.page-id-9 .container.single-page-container > .row,
body.page-id-9 .nv-single-page-wrap,
body.page-id-9 .nv-content-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.h4hub,
.h4hub * {
    box-sizing: border-box;
}

.h4hub {
    color: var(--h4hub-ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.h4hub a {
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

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

.h4hub-eyebrow {
    margin: 0 0 14px;
    color: var(--h4hub-rose-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.h4hub-hero {
    position: relative;
    padding: clamp(58px, 8vw, 104px) 0 clamp(54px, 7vw, 88px);
    background:
        radial-gradient(circle at 92% 12%, rgba(246, 181, 27, .24), transparent 29%),
        radial-gradient(circle at 8% 88%, rgba(189, 77, 89, .13), transparent 34%),
        linear-gradient(135deg, #fffdfb 0%, #f4f9fa 100%);
    border-bottom: 1px solid var(--h4hub-line);
}

.h4hub-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(38px, 7vw, 88px);
    align-items: center;
}

.h4hub-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--h4hub-navy);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 900;
    line-height: .99;
    letter-spacing: -.045em;
}

.h4hub-hero__lead {
    max-width: 720px;
    margin: 25px 0 0;
    color: var(--h4hub-muted);
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.58;
}

.h4hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.h4hub-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 2px solid var(--h4hub-navy);
    border-radius: 999px;
    background: var(--h4hub-navy);
    color: var(--h4hub-white) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.h4hub-button:hover,
.h4hub-button:focus-visible {
    background: #0b3657;
    box-shadow: 0 10px 24px rgba(6, 34, 58, .18);
    transform: translateY(-1px);
}

.h4hub-button--secondary {
    border-color: rgba(6, 34, 58, .2);
    background: var(--h4hub-white);
    color: var(--h4hub-navy) !important;
}

.h4hub-button--secondary:hover,
.h4hub-button--secondary:focus-visible {
    background: var(--h4hub-cream);
}

.h4hub-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.h4hub-trust-list li {
    padding: 8px 12px;
    border: 1px solid var(--h4hub-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--h4hub-muted);
    font-size: 13px;
    font-weight: 700;
}

.h4hub-hero__visual {
    position: relative;
    min-height: 410px;
}

.h4hub-route-card {
    position: absolute;
    inset: 36px 24px 30px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(6, 34, 58, .12);
    border-radius: 30px;
    background: var(--h4hub-white);
    box-shadow: 0 26px 70px rgba(6, 34, 58, .14);
    transform: rotate(2deg);
}

.h4hub-route-card::before {
    position: absolute;
    width: 210px;
    height: 210px;
    right: -64px;
    bottom: -76px;
    border-radius: 50%;
    background: var(--h4hub-gold);
    content: '';
    opacity: .92;
}

.h4hub-route-card img {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    height: auto;
}

.h4hub-route-card__prompt {
    position: relative;
    z-index: 1;
    max-width: 260px;
    margin: 0;
    color: var(--h4hub-navy);
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 900;
    line-height: 1.12;
}

.h4hub-route-tag {
    position: absolute;
    z-index: 2;
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--h4hub-rose);
    color: var(--h4hub-white);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(6, 34, 58, .18);
}

.h4hub-route-tag--one {
    top: 6px;
    right: 0;
}

.h4hub-route-tag--two {
    right: 5px;
    bottom: 10px;
    background: var(--h4hub-navy);
}

.h4hub-route-tag--three {
    left: 0;
    bottom: 0;
    background: #166f5c;
}

/* The refreshed legal strip replaces Neve's duplicated company-only footer. */
#site-footer {
    display: none !important;
}

.h4hub-section {
    padding: clamp(58px, 7vw, 94px) 0;
}

.h4hub-section--muted {
    background: var(--h4hub-mist);
}

.h4hub-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 34px;
}

.h4hub-section-heading h2,
.h4hub-company h2,
.h4hub-reminder h2 {
    margin: 0;
    color: var(--h4hub-navy);
    font-size: clamp(33px, 4vw, 50px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.h4hub-section-heading > p,
.h4hub-company__copy > p,
.h4hub-reminder__copy > p {
    margin: 0;
    color: var(--h4hub-muted);
    font-size: 17px;
    line-height: 1.65;
}

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

.h4hub-card {
    position: relative;
    display: flex;
    min-height: 290px;
    flex-direction: column;
    padding: clamp(24px, 3.5vw, 36px);
    overflow: hidden;
    border: 1px solid var(--h4hub-line);
    border-radius: 22px;
    background: var(--h4hub-white);
    box-shadow: 0 10px 34px rgba(6, 34, 58, .06);
}

.h4hub-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--card-accent, var(--h4hub-rose));
    content: '';
}

.h4hub-card__label {
    margin: 0 0 15px;
    color: var(--card-accent-dark, var(--h4hub-rose-dark));
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.h4hub-card h3 {
    margin: 0;
    color: var(--h4hub-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.025em;
}

.h4hub-card p {
    margin: 16px 0 0;
    color: var(--h4hub-muted);
    font-size: 16px;
    line-height: 1.62;
}

.h4hub-card__note {
    font-size: 13px !important;
}

.h4hub-card__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--h4hub-navy) !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none !important;
}

.h4hub-card__link::after {
    content: '→';
    transition: transform .18s ease;
}

.h4hub-card__link:hover::after,
.h4hub-card__link:focus-visible::after {
    transform: translateX(4px);
}

.h4hub-retired {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 24px 28px;
    border: 1px dashed #b9c8ce;
    border-radius: 18px;
    background: #f8fafb;
}

.h4hub-retired__badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #dfe7ea;
    color: #415665;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.h4hub-retired h3,
.h4hub-retired p {
    margin: 0;
}

.h4hub-retired h3 {
    color: var(--h4hub-navy);
    font-size: 20px;
}

.h4hub-retired p {
    margin-top: 5px;
    color: var(--h4hub-muted);
    line-height: 1.5;
}

.h4hub-retired a {
    color: var(--h4hub-navy);
    font-weight: 800;
}

.h4hub-company,
.h4hub-reminder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: center;
}

.h4hub-company__panel,
.h4hub-reminder__panel {
    padding: clamp(25px, 4vw, 40px);
    border-radius: 22px;
    background: var(--h4hub-navy);
    color: var(--h4hub-white);
    box-shadow: 0 18px 50px rgba(6, 34, 58, .16);
}

.h4hub-company__panel p,
.h4hub-company__panel address,
.h4hub-reminder__panel p {
    margin: 0;
    color: #e7f0f4;
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
}

.h4hub-company__panel p + p,
.h4hub-company__panel p + address,
.h4hub-company__panel address + p,
.h4hub-reminder__panel p + p {
    margin-top: 14px;
}

.h4hub-company__panel a,
.h4hub-reminder__panel a {
    color: #ffd676;
}

.h4hub-reminder {
    padding: clamp(32px, 5vw, 55px);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff0eb 0%, #fffaf3 62%, #f3faf8 100%);
    border: 1px solid rgba(189, 77, 89, .18);
}

.h4hub-reminder__panel {
    background: var(--h4hub-white);
    color: var(--h4hub-navy);
    border: 1px solid var(--h4hub-line);
    box-shadow: 0 16px 44px rgba(6, 34, 58, .1);
}

.h4hub-reminder__panel p {
    color: var(--h4hub-muted);
}

.h4hub-reminder__panel a {
    color: var(--h4hub-rose-dark);
}

.h4hub-reminder__panel .h4hub-button {
    margin-top: 18px;
}

.h4hub-reminder-notice {
    margin: 14px 0 0 !important;
    color: #536674 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.h4hub-reminder-notice a {
    color: #913844 !important;
    font-weight: 700;
}

.h4hub-legal-strip {
    width: 100%;
    padding: 19px 20px;
    border-top: 1px solid #203c52;
    background: var(--h4hub-navy);
    color: #e9f1f4;
    font-family: Arial, Helvetica, sans-serif;
}

.h4hub-legal-strip__inner {
    display: flex;
    width: min(1180px, 100%);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
}

.h4hub-legal-strip p {
    margin: 0;
    color: #e9f1f4;
    font-size: 13px;
    line-height: 1.5;
}

.h4hub-legal-strip__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
}

.h4hub-legal-strip a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-underline-offset: 3px;
}

.h4hub-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(46px, 7vw, 86px) 0;
    color: var(--h4hub-ink);
    font-family: Arial, Helvetica, sans-serif;
}

.h4hub-page--wide {
    width: min(1100px, calc(100% - 40px));
}

.h4hub-page h1 {
    margin: 0 0 18px;
    color: var(--h4hub-navy);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.04em;
}

.h4hub-page h2 {
    margin: 38px 0 12px;
    color: var(--h4hub-navy);
    font-size: clamp(25px, 3.5vw, 34px);
    font-weight: 900;
}

.h4hub-page p,
.h4hub-page li {
    color: var(--h4hub-muted);
    font-size: 16px;
    line-height: 1.7;
}

.h4hub-page a {
    color: var(--h4hub-rose-dark);
    font-weight: 700;
}

.h4hub-page__lede {
    color: var(--h4hub-ink) !important;
    font-size: 20px !important;
}

@media (max-width: 860px) {
    .h4hub-hero__grid,
    .h4hub-section-heading,
    .h4hub-company,
    .h4hub-reminder {
        grid-template-columns: 1fr;
    }

    .h4hub-hero__visual {
        min-height: 330px;
    }

    .h4hub-route-card {
        inset: 22px 18px 20px;
    }

    .h4hub-section-heading {
        align-items: start;
    }

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

    .h4hub-card {
        min-height: 250px;
    }

    .h4hub-retired {
        grid-template-columns: auto 1fr;
    }

    .h4hub-retired > a {
        grid-column: 2;
    }

    .h4hub-legal-strip__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .h4hub-legal-strip__links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    #header-grid .header-main-inner .container {
        min-height: 78px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    #header-grid .h4hub-logo {
        width: 200px !important;
        max-height: none !important;
    }

    #header-grid .header-bottom-inner,
    #header-grid .header-bottom-inner .container {
        min-height: 40px;
    }

    #header-grid .builder-item--custom_html h5 {
        font-size: 13px !important;
    }

    .h4hub-shell,
    .h4hub-page {
        width: min(100% - 28px, 1180px);
    }

    .h4hub-hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .h4hub-actions,
    .h4hub-button {
        width: 100%;
    }

    .h4hub-hero__visual {
        min-height: 300px;
    }

    .h4hub-route-card {
        inset: 18px 8px 18px;
        padding: 25px;
        border-radius: 22px;
    }

    .h4hub-route-tag {
        padding: 8px 11px;
        font-size: 11px;
    }

    .h4hub-card,
    .h4hub-reminder {
        padding: 23px;
        border-radius: 18px;
    }

    .h4hub-retired {
        grid-template-columns: 1fr;
        padding: 21px;
    }

    .h4hub-retired > a {
        grid-column: 1;
    }

    .h4hub-legal-strip {
        padding: 18px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h4hub-button,
    .h4hub-card__link::after {
        transition: none;
    }
}
