/* Clear Direction Real Estate Portal
   Full legacy-compatible stylesheet
   Replaces: /assets/css/client-portal.css
*/

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: 94%;
    max-width: 1240px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    padding: 10px 14px;
    background: #ffffff;
    color: #0e2f49;
}

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

/* =========================================================
   HEADER
   ========================================================= */

.top-bar {
    background: #0e2f49;
    color: #ffffff;
    font-size: 14px;
}

.top-bar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-contact {
    display: flex;
    align-items: center;
}

.top-contact a {
    margin-left: 24px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.top-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #d9e1e8;
}

.nav-wrap {
    min-height: 92px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 220px;
    color: #0e2f49;
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 70px;
}

.brand-text {
    display: none;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.primary-nav > a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0e2f49;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-nav > a:hover,
.primary-nav > a.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.is-active {
    background: #edf6fb;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(7, 31, 50, 0.16);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: #172033;
    text-decoration: none;
    border-radius: 6px;
}

.nav-dropdown-menu a:hover {
    background: #edf6fb;
    color: #0e2f49;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid #d9e1e8;
    background: #ffffff;
    color: #0e2f49;
    cursor: pointer;
}

/* =========================================================
   SHARED TYPOGRAPHY AND BUTTONS
   ========================================================= */

.eyebrow {
    margin: 0 0 14px;
    color: #6fc4ec;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.button-row,
.hero-actions,
.home-hero-actions,
.path-actions,
.trust-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 12px 12px 0;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 0;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #1f78aa;
    color: #ffffff;
}

.button-primary:hover {
    background: #176892;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.button-text {
    background: transparent;
    color: #ffffff;
}

.button-dark {
    background: #0e2f49;
    color: #ffffff;
}

.button-dark:hover {
    background: #0a2136;
}

.button-outline {
    border-color: #0e2f49;
    background: #ffffff;
    color: #0e2f49;
}

.button-outline:hover {
    background: #edf6fb;
}

/* =========================================================
   PORTAL HOMEPAGE HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(118deg, #0a2136 0%, #0e2f49 56%, #155d88 100%);
}

.home-hero-inner {
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 68px 0;
}

.home-hero-copy {
    width: 52%;
    max-width: 680px;
}

.home-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 76px;
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -2px;
}

.home-hero-lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.7;
}

.home-hero-actions {
    margin-top: 28px;
}

.home-hero-art {
    position: relative;
    width: 44%;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-art svg {
    width: 100%;
    max-width: 620px;
}

.art-label {
    position: absolute;
    right: 5%;
    bottom: 8%;
    padding: 16px 18px;
    border-left: 3px solid #6fc4ec;
    background: rgba(6, 30, 49, 0.70);
}

.art-label span,
.art-label strong {
    display: block;
}

.art-label span {
    color: #6fc4ec;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.art-label strong {
    margin-top: 4px;
    color: #ffffff;
    font-size: 14px;
}

/* =========================================================
   PORTAL HOMEPAGE PATHS
   ========================================================= */

.home-paths {
    padding: 84px 0 96px;
    background: #ffffff;
}

.section-heading {
    max-width: 840px;
    margin-bottom: 42px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.compact-heading h2 {
    margin: 0 0 16px;
    color: #0e2f49;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 1.1;
}

.compact-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: #637181;
    font-size: 18px;
}

.path-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.path-card {
    position: relative;
    width: 48.8%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    padding: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #0e2f49 0%, #15547a 100%);
    box-shadow: 0 24px 60px rgba(7, 31, 50, 0.12);
}

.path-kicker {
    margin: 0 0 14px;
    color: #6fc4ec;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.path-card h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1.08;
}

.path-description {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.path-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.path-links a {
    position: relative;
    width: 50%;
    padding: 8px 12px 8px 20px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.path-links a::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #6fc4ec;
}

.path-links a:hover {
    color: #6fc4ec;
    text-decoration: underline;
}

.path-actions {
    margin-top: auto;
}

/* =========================================================
   PORTAL HOMEPAGE TRUST SECTION
   ========================================================= */

.home-trust {
    padding: 82px 0;
    background: #edf6fb;
}

.trust-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.trust-inner h2 {
    margin: 0;
    color: #0e2f49;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.14;
}

.trust-rule {
    width: 72px;
    height: 3px;
    margin: 30px auto;
    background: #1f78aa;
}

.trust-inner > p:not(.eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: #637181;
    font-size: 18px;
}

.trust-actions {
    justify-content: center;
    margin-top: 28px;
}

/* =========================================================
   BUYER / SELLER INNER-PAGE HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(110deg, #0a2136, #155d88);
}

.hero-inner {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 72px 0;
}

.hero-inner > div {
    width: 58%;
}

.hero h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 64px;
    line-height: 1.06;
    letter-spacing: -2px;
}

.hero-lead {
    max-width: 690px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-card {
    width: 36%;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 45px rgba(7, 31, 50, 0.18);
}

.hero-card h2 {
    margin-top: 0;
    color: #ffffff;
}

.hero-checklist,
.check-list,
.resource-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-checklist li,
.check-list li {
    position: relative;
    margin: 11px 0;
    padding-left: 28px;
}

.hero-checklist li::before,
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6fc4ec;
    font-weight: 900;
}

/* =========================================================
   GENERAL INNER-PAGE SECTIONS
   ========================================================= */

.section {
    padding: 78px 0;
}

.section-soft {
    background: #f6f2e9;
}

.section-dark {
    background: #0a2136;
    color: #ffffff;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: #0e2f49;
    font-size: 46px;
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: #637181;
    font-size: 18px;
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
    color: #ffffff;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -11px;
    margin-right: -11px;
}

.card-grid.two .card,
.card-grid.two .resource-card,
.card-grid.two .portal-card {
    width: 50%;
}

.card,
.resource-card,
.portal-card {
    width: 33.333%;
    padding: 11px;
}

.card > *,
.resource-card > *,
.portal-card > * {
    position: relative;
    z-index: 1;
}

.card,
.resource-card,
.portal-card,
.process-step {
    border: 1px solid #d9e1e8;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(21, 36, 79, 0.06);
}

.card,
.resource-card,
.portal-card {
    margin-bottom: 22px;
    padding: 28px;
}

.card h3,
.resource-card h3,
.portal-card h3 {
    margin: 0 0 10px;
    color: #0e2f49;
    font-size: 21px;
}

.card p,
.resource-card p,
.portal-card p {
    color: #637181;
}

.card a,
.resource-card a {
    color: #0e2f49;
    font-weight: 800;
}

.icon-badge {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(31, 120, 170, 0.14);
    color: #0e2f49;
    font-size: 22px;
}

.process-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    counter-reset: process;
}

.process-step {
    width: 31.6%;
    margin: 10px;
    padding: 30px 26px 26px;
    counter-increment: process;
}

.process-step::before {
    content: counter(process);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #0e2f49;
    color: #ffffff;
    font-weight: 900;
}

.process-step h3 {
    margin: 0 0 8px;
    color: #0e2f49;
}

.process-step p {
    margin: 0;
    color: #637181;
}

.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.split > * {
    width: 47%;
}

.feature-panel {
    padding: 34px;
    background: #0e2f49;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 31, 50, 0.16);
}

.feature-panel h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 26px;
}

.feature-panel p {
    color: rgba(255, 255, 255, 0.80);
}

.calculator {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.form-field {
    width: 50%;
    padding: 8px;
}

.form-field.full {
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #0e2f49;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #c9cfda;
    background: #ffffff;
}

.calculator-result {
    width: 100%;
    margin: 8px;
    padding: 20px;
    background: #f6f2e9;
}

.calculator-result strong {
    display: block;
    color: #0e2f49;
    font-size: 29px;
}

.cta-band {
    padding: 52px 0;
    color: #ffffff;
    background: linear-gradient(110deg, #0e2f49, #0a2136);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-inner h2 {
    margin: 0 0 6px;
    color: #ffffff;
}

.cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background: linear-gradient(120deg, #0a2136, #0e2f49);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.breadcrumbs a {
    color: inherit;
}

.resource-section {
    scroll-margin-top: 125px;
}

.resource-list li {
    position: relative;
    margin: 8px 0;
    padding-left: 18px;
}

.resource-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f78aa;
    font-weight: 900;
}

.notice {
    padding: 18px 20px;
    border-left: 5px solid #1f78aa;
    background: #f6f2e9;
}

/* =========================================================
   DASHBOARDS
   ========================================================= */

.dashboard-intro {
    padding: 58px 0 32px;
    background: #f6f2e9;
}

.dashboard-intro .section-heading {
    margin-bottom: 0;
}

.dashboard-content {
    padding: 28px 0 84px;
    background: #f6f2e9;
}

.locked-panel {
    max-width: 880px;
    margin: 0 auto;
    padding: 46px 42px;
    border: 1px solid #d9e1e8;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 31, 50, 0.12);
    text-align: center;
}

.locked-panel h2 {
    margin: 20px 0 14px;
    color: #0e2f49;
    font-size: 36px;
}

.locked-panel p {
    max-width: 700px;
    margin: 0 auto 26px;
    color: #637181;
    font-size: 17px;
}

.lock-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f6f2e9;
    color: #0e2f49;
    font-size: 32px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #176b43;
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */

.comparison-wrap {
    overflow-x: auto;
    border: 1px solid #d9e1e8;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 31, 50, 0.12);
}

.comparison-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 18px;
    border-bottom: 1px solid #d9e1e8;
    text-align: left;
}

.comparison-table th {
    background: #0e2f49;
    color: #ffffff;
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
    text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 56px 0 20px;
    background: #0b2750;
    color: rgba(255, 255, 255, 0.86);
}

.footer-main {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    width: 22%;
}

.footer-company {
    width: 28%;
}

.footer-column h2,
.footer-column h3 {
    margin: 0 0 15px;
    color: #ffffff;
}

.footer-column h2 {
    font-size: 22px;
}

.footer-column h3 {
    font-size: 16px;
}

.footer-column p {
    margin: 0 0 14px;
    font-size: 14px;
}

.footer-company p {
    max-width: 320px;
}

.footer-column a {
    display: block;
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-column a:hover,
.footer-legal-links a:hover {
    color: #6fc4ec;
}

.footer-license {
    margin-top: 44px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    text-align: center;
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0 12px;
}

.footer-legal-links a {
    margin: 4px 10px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-accessibility {
    padding-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.footer-accessibility p {
    margin: 4px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .home-hero h1 {
        font-size: 62px;
    }

    .path-card h3 {
        font-size: 42px;
    }

    .footer-main {
        flex-wrap: wrap;
    }

    .footer-column,
    .footer-company {
        width: 48%;
        margin-bottom: 30px;
    }
}

@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .nav-wrap {
        min-height: 78px;
    }

    .brand img {
        max-width: 155px;
        max-height: 60px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        margin-left: 0;
        padding: 14px 20px 22px;
        background: #ffffff;
        border-bottom: 1px solid #d9e1e8;
        box-shadow: 0 18px 45px rgba(7, 31, 50, 0.16);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav > a,
    .nav-dropdown-toggle {
        display: block;
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        width: auto;
        margin: 4px 0 8px 14px;
        border: 0;
        box-shadow: none;
        background: #edf6fb;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .home-hero-inner,
    .hero-inner,
    .split,
    .cta-inner {
        display: block;
    }

    .home-hero-copy,
    .home-hero-art,
    .hero-inner > div,
    .hero-card,
    .split > * {
        width: 100%;
    }

    .home-hero-art {
        min-height: 340px;
        margin-top: 30px;
    }

    .path-grid {
        display: block;
    }

    .path-card {
        width: 100%;
        min-height: 0;
        margin-bottom: 28px;
    }

    .card,
    .resource-card,
    .portal-card,
    .card-grid.two .card,
    .card-grid.two .resource-card,
    .card-grid.two .portal-card {
        width: 50%;
    }

    .process-step {
        width: 47%;
    }

    .cta-inner > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        width: 92%;
    }

    .home-hero-inner {
        min-height: 0;
        padding: 56px 0;
    }

    .home-hero h1 {
        font-size: 48px;
    }

    .home-hero-art {
        display: none;
    }

    .home-paths {
        padding: 64px 0 72px;
    }

    .compact-heading h2 {
        font-size: 40px;
    }

    .path-card {
        padding: 30px 24px;
    }

    .path-card h3 {
        font-size: 38px;
    }

    .path-links a {
        width: 100%;
    }

    .button {
        width: 100%;
        margin-right: 0;
    }

    .trust-inner h2 {
        font-size: 38px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 44px;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .card,
    .resource-card,
    .portal-card,
    .card-grid.two .card,
    .card-grid.two .resource-card,
    .card-grid.two .portal-card,
    .process-step,
    .form-field {
        width: 100%;
    }

    .footer-column,
    .footer-company {
        width: 100%;
    }

    .footer-legal-links {
        display: block;
    }

    .footer-legal-links a {
        display: block;
        margin: 8px 0;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-bottom: 8px;
    }

    .locked-panel {
        padding: 32px 22px;
    }
}


/* =========================================================
   2026-09-02 PORTAL REFINEMENT
   ========================================================= */
:root{
    --cdre-navy:#071b4d;
    --cdre-blue:#0f52ba;
    --cdre-gold:#c9a227;
    --cdre-ink:#172033;
    --cdre-muted:#637083;
    --cdre-line:#dce5f0;
    --cdre-soft:#f5f8fc;
    --cdre-white:#ffffff;
    --cdre-shadow:0 18px 45px rgba(7,27,77,.10);
}
body{
    color:var(--cdre-ink);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:#fff;
}
.container{
    width:min(1220px,calc(100% - 36px));
    max-width:none;
}
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.97);
    border-bottom:1px solid var(--cdre-line);
    box-shadow:0 5px 18px rgba(7,27,77,.035);
    backdrop-filter:blur(12px);
}
.top-bar{display:none!important}
.nav-wrap{min-height:82px;gap:22px}
.brand{min-width:190px}
.brand img{
    width:auto;
    height:54px;
    max-width:245px;
    max-height:54px;
    object-fit:contain;
}
.primary-nav{gap:4px}
.primary-nav > a,
.nav-dropdown-toggle{
    min-height:44px;
    margin-left:0;
    padding:10px 12px;
    border-radius:999px;
    color:#28364a;
    font-size:14px;
    font-weight:800;
}
.primary-nav > a:hover,
.primary-nav > a.is-active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.is-active{
    background:#edf4ff;
    color:var(--cdre-blue);
}
.nav-dropdown-menu{
    width:292px;
    padding:10px;
    border:1px solid var(--cdre-line);
    border-radius:16px;
    box-shadow:0 18px 45px rgba(7,27,77,.14);
}
.nav-dropdown-menu a{border-radius:10px}
.nav-dropdown-menu a:hover{
    background:#edf4ff;
    color:var(--cdre-blue);
}
.nav-phone{
    color:var(--cdre-navy)!important;
    white-space:nowrap;
}
.nav-search{
    background:var(--cdre-blue)!important;
    color:#fff!important;
    padding:11px 17px!important;
    box-shadow:0 8px 20px rgba(15,82,186,.18);
}
.nav-search:hover{
    background:#0c489f!important;
    color:#fff!important;
}
.eyebrow,.section-kicker{color:var(--cdre-gold)}
.hero h1,.page-hero h1,.home-hero h1,.compact-heading h2,.section-heading h2,.trust-inner h2{
    font-family:Georgia,"Times New Roman",serif;
    color:var(--cdre-navy);
    letter-spacing:-.6px;
}
.hero h1,.page-hero h1,.home-hero h1{color:#fff}
.section-heading p,.compact-heading p:not(.eyebrow),.card p,.resource-card p,.portal-card p,.process-step p{
    color:var(--cdre-muted);
}
.button{
    min-height:50px;
    padding:13px 22px;
    border-radius:999px;
    text-transform:none;
    box-shadow:0 8px 20px rgba(15,82,186,.14);
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.button:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(15,82,186,.22);
}
.button-primary{background:var(--cdre-blue)}
.button-primary:hover{background:#0c489f}
.button-dark{background:var(--cdre-navy)}
.button-outline{
    border-color:var(--cdre-blue);
    color:var(--cdre-blue);
    background:#fff;
}
.hero{
    background:radial-gradient(circle at 85% 10%,rgba(30,99,201,.52),transparent 32%),linear-gradient(135deg,#06163f,#0a2a6d 58%,#123d91);
}
.hero-inner{
    min-height:510px;
    padding:66px 0;
}
.hero h1,.page-hero h1{font-size:clamp(48px,5.5vw,72px)}
.hero-card{
    border-radius:24px;
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
}
.section{padding:68px 0}
.section-soft{background:var(--cdre-soft)}
.section-heading{margin-bottom:34px}
.process-step,.card,.resource-card,.portal-card{
    border:1px solid var(--cdre-line);
    border-radius:20px;
    box-shadow:var(--cdre-shadow);
}
.process-step{padding:28px 26px 26px}
.process-step::before{background:var(--cdre-navy)}
.icon-badge{
    border-radius:13px;
    background:#edf4ff;
    color:var(--cdre-blue);
}
.feature-panel{
    border-radius:24px;
    background:linear-gradient(145deg,#06163f,#0b2e6e);
}
.calculator-result{
    border-radius:16px;
    background:#f7f9fd;
}
.form-field input,.form-field select,.form-field textarea{
    border:1px solid #cbd7e7;
    border-radius:12px;
}
.site-footer{
    padding:56px 0 20px;
    background:#06163f;
}
.footer-main{gap:30px}
.footer-column h2,.footer-column h3{color:#fff}
.footer-column a{color:#cfd9ef}
.footer-column a:hover,.footer-legal-links a:hover{color:#fff}
.footer-license{
    font-weight:800;
    color:#fff;
}
.footer-legal-links a{
    letter-spacing:.04em;
    text-transform:none;
}
.footer-accessibility{color:rgba(255,255,255,.70)}
@media(max-width:1050px){
    .nav-phone{display:none!important}
}
@media(max-width:900px){
    .nav-wrap{min-height:70px}
    .brand img{
        height:48px;
        max-height:48px;
        max-width:215px;
    }
    .menu-toggle{
        display:inline-flex;
        align-items:center;
        gap:8px;
        margin-left:auto;
        border:0;
        border-radius:12px;
        color:var(--cdre-navy);
        font-weight:800;
    }
    .primary-nav{
        top:70px;
        padding:8px 20px 16px;
        max-height:calc(100vh - 70px);
        overflow-y:auto;
    }
    .primary-nav > a,.nav-dropdown-toggle{
        padding:14px 4px;
        border-bottom:1px solid var(--cdre-line);
        border-radius:0;
        font-size:16px;
    }
    .nav-search{
        display:block!important;
        margin-top:10px!important;
        border-bottom:0!important;
        border-radius:999px!important;
        text-align:center!important;
    }
    .nav-dropdown-menu{
        margin:4px 0 10px;
        padding:6px 10px;
        border-radius:12px;
        background:#f5f8fc;
    }
}
@media(max-width:640px){
    .container{width:calc(100% - 28px)}
    .hero-inner{
        min-height:0;
        padding:52px 0;
    }
    .hero h1,.page-hero h1{font-size:clamp(40px,12vw,54px)}
    .section{padding:54px 0}
    .footer-main{display:block}
    .footer-column,.footer-company{
        width:100%;
        margin-bottom:28px;
    }
}

/* =========================================================
   2026-09-02 CDRE PORTAL HEADER BRAND ALIGNMENT
   ========================================================= */
.site-header{
    background:#fff !important;
    border-bottom:1px solid #dce5f0 !important;
    box-shadow:0 5px 18px rgba(7,27,77,.035) !important;
}
.nav-wrap{
    min-height:88px !important;
}
.portal-brand{
    display:flex !important;
    align-items:center !important;
    min-width:255px !important;
    padding:0 !important;
    margin-right:auto !important;
}
.portal-brand-logo{
    display:block !important;
    width:auto !important;
    height:62px !important;
    max-width:285px !important;
    max-height:62px !important;
    object-fit:contain !important;
}
.portal-brand-fallback{
    display:none;
    color:#071b4d;
    font-family:Georgia,"Times New Roman",serif;
    font-size:22px;
    font-weight:700;
}
.portal-brand-logo:not([src]),
.portal-brand-logo[src=""]{
    display:none !important;
}
.portal-brand-logo:not([src]) + .portal-brand-fallback,
.portal-brand-logo[src=""] + .portal-brand-fallback{
    display:block;
}

/* Navigation matches the brokerage site: clean text, no pale pill */
.primary-nav{
    gap:2px !important;
    align-items:center !important;
}
.primary-nav > a,
.nav-dropdown-toggle{
    position:relative !important;
    min-height:44px !important;
    padding:10px 11px !important;
    background:transparent !important;
    border-radius:0 !important;
    color:#172033 !important;
    font-size:14px !important;
    font-weight:800 !important;
    box-shadow:none !important;
}
.primary-nav > a:hover,
.nav-dropdown-toggle:hover{
    background:transparent !important;
    color:#0f52ba !important;
}
.primary-nav > a.is-active,
.nav-dropdown-toggle.is-active{
    background:transparent !important;
    color:#071b4d !important;
}
.primary-nav > a.is-active::after,
.nav-dropdown-toggle.is-active::after{
    content:"";
    position:absolute;
    left:11px;
    right:11px;
    bottom:4px;
    height:3px;
    border-radius:3px;
    background:#c9a227;
}
.nav-phone{
    color:#071b4d !important;
    font-size:16px !important;
    font-weight:900 !important;
    white-space:nowrap !important;
}
.nav-search{
    min-height:48px !important;
    padding:12px 19px !important;
    border-radius:999px !important;
    background:#0f52ba !important;
    color:#fff !important;
    box-shadow:0 8px 20px rgba(15,82,186,.18) !important;
}
.nav-search:hover{
    background:#0c489f !important;
    color:#fff !important;
}

/* Dropdowns keep portal utility, but use the same CDRE visual system */
.nav-dropdown-menu{
    border:1px solid #dce5f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 18px 45px rgba(7,27,77,.14) !important;
}
.nav-dropdown-menu a{
    color:#172033 !important;
    border-radius:10px !important;
}
.nav-dropdown-menu a:hover{
    background:#edf4ff !important;
    color:#0f52ba !important;
}

@media(max-width:1050px){
    .portal-brand{
        min-width:220px !important;
    }
    .portal-brand-logo{
        height:56px !important;
        max-width:250px !important;
    }
}
@media(max-width:900px){
    .nav-wrap{
        min-height:76px !important;
    }
    .portal-brand{
        min-width:0 !important;
        max-width:230px !important;
    }
    .portal-brand-logo{
        height:50px !important;
        max-width:220px !important;
    }
    .primary-nav{
        top:76px !important;
    }
    .primary-nav > a,
    .nav-dropdown-toggle{
        border-bottom:1px solid #dce5f0 !important;
        padding:14px 4px !important;
    }
    .primary-nav > a.is-active::after,
    .nav-dropdown-toggle.is-active::after{
        display:none !important;
    }
    .nav-search{
        margin-top:10px !important;
        border-bottom:0 !important;
        border-radius:999px !important;
        text-align:center !important;
    }
}
@media(max-width:520px){
    .portal-brand-logo{
        height:44px !important;
        max-width:190px !important;
    }
    .portal-brand{
        max-width:195px !important;
    }
}
