/*
 * Themes: default = islands (sand/sea).
 * Restore classic: set data-theme="classic" on <body>.
 */
:root,
[data-theme="islands"] {
    --color-page: #e6f2f5;
    --color-surface: #faf6ef;
    --color-surface-soft: #edf6f3;
    --color-primary: #1a7d8c;
    --color-primary-dark: #0d4f5c;
    --color-accent: #e0a15a;
    --color-accent-dark: #c47d35;
    --color-text: #1c353a;
    --color-muted: #5f7478;
    --color-border: #d5cbb8;
    --color-on-primary: #ffffff;
    --shadow-soft: 0 22px 55px rgba(13, 79, 92, 0.14);
    --shadow-card: 0 14px 34px rgba(13, 79, 92, 0.1);
    --bg-glow: rgba(26, 125, 140, 0.16);
    --bg-glow-sea: rgba(26, 125, 140, 0.1);
    --bg-top: #d9eef2;
    --bg-bottom: #f3ebe0;
    --bg-grid: rgba(26, 125, 140, 0.045);
    --header-bg: rgba(250, 246, 239, 0.92);
    --header-border: rgba(213, 203, 184, 0.85);
    --surface-glass: rgba(250, 246, 239, 0.78);
    --surface-glass-strong: rgba(250, 246, 239, 0.9);
    --input-bg: #fffdf8;
    --focus-ring: rgba(224, 161, 90, 0.45);
    --btn-shadow: rgba(26, 125, 140, 0.24);
    --wave-fill-back: rgba(26, 125, 140, 0.14);
    --wave-fill-front: rgba(13, 79, 92, 0.22);
    --section-accent-from: rgba(26, 125, 140, 0.12);
    --section-accent-to: rgba(224, 161, 90, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1160px;
    --font-sans: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: Literata, Georgia, "Times New Roman", serif;
}

[data-theme="classic"] {
    --color-page: #f6fbfa;
    --color-surface: #ffffff;
    --color-surface-soft: #eaf7f4;
    --color-primary: #0f6f6a;
    --color-primary-dark: #084c4a;
    --color-accent: #f49b45;
    --color-accent-dark: #cc7330;
    --color-text: #163331;
    --color-muted: #607573;
    --color-border: #cfe2df;
    --color-on-primary: #ffffff;
    --shadow-soft: 0 22px 55px rgba(8, 76, 74, 0.12);
    --shadow-card: 0 14px 34px rgba(8, 76, 74, 0.09);
    --bg-glow: rgba(244, 155, 69, 0.14);
    --bg-glow-sea: transparent;
    --bg-top: #f7fcfb;
    --bg-bottom: #fff8f0;
    --bg-grid: rgba(15, 111, 106, 0.035);
    --header-bg: rgba(255, 255, 255, 0.82);
    --header-border: rgba(207, 226, 223, 0.8);
    --surface-glass: rgba(255, 255, 255, 0.72);
    --surface-glass-strong: rgba(255, 255, 255, 0.86);
    --input-bg: #fbfffe;
    --focus-ring: rgba(244, 155, 69, 0.45);
    --btn-shadow: rgba(15, 111, 106, 0.22);
    --wave-fill-back: rgba(15, 111, 106, 0.12);
    --wave-fill-front: rgba(15, 111, 106, 0.2);
    --section-accent-from: rgba(15, 111, 106, 0.09);
    --section-accent-to: rgba(244, 155, 69, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, var(--bg-glow), transparent 34rem),
        radial-gradient(circle at 85% 18%, var(--bg-glow-sea), transparent 28rem),
        linear-gradient(180deg, var(--bg-top) 0%, var(--color-page) 44%, var(--bg-bottom) 100%);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1,
h2,
h3,
.section-form__title,
.about-agent__name {
    font-family: var(--font-display);
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.22rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

p {
    margin-top: 0;
    color: var(--color-muted);
}

.container,
.section-shell {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.eyebrow {
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.btn,
form button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
form button:hover {
    transform: translateY(-2px);
}

.btn-primary,
form button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 14px 28px var(--btn-shadow);
    color: var(--color-on-primary);
}

.btn-primary:hover,
form button:hover {
    color: var(--color-on-primary);
    box-shadow: 0 18px 34px var(--btn-shadow);
}

.btn-secondary {
    background: var(--surface-glass);
    border: 1px solid var(--color-border);
    color: var(--color-primary-dark);
}

.site-header {
    backdrop-filter: blur(18px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 78px;
}

.logo {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    max-width: 272px;
}

.logo img {
    display: block;
    height: 82px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.main-nav {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.nav-toggle {
    display: none;
}

.main-nav a,
.agent-contacts__phone {
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.93rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
}

.main-nav a:hover,
.agent-contacts__phone:hover {
    background: var(--color-surface-soft);
    color: var(--color-primary-dark);
}

.agent-contacts {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.agent-contacts__phone {
    background: var(--color-primary);
    color: #ffffff;
    white-space: nowrap;
}

.agent-contacts__phone:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}

.agent-contacts__icon {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    line-height: 0;
    padding: 0;
}

.agent-contacts__icon img {
    border-radius: 50%;
    display: block;
    height: 32px;
    object-fit: cover;
    width: 32px;
}

.agent-contacts__icon[aria-label="MAX"] img {
    border-radius: 8px;
}

#lead,
#about,
#locations,
#projects,
#steps,
#cases,
#mortgage,
#agent,
#faq {
    /* Sticky header (~82px logo) + gap so section top is not hidden */
    scroll-margin-top: 7.25rem;
}

#lead {
    scroll-margin-bottom: 1rem;
}

.hero {
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0 5.5rem;
    position: relative;
}

.hero--cover {
    align-items: flex-end;
    display: flex;
    min-height: min(78vh, 720px);
    padding: 4rem 0 3.5rem;
}

.hero__media {
    inset: 0;
    position: absolute;
    z-index: 0;
}

.hero__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero__shade {
    background:
        linear-gradient(105deg, rgba(12, 28, 32, 0.78) 0%, rgba(12, 28, 32, 0.52) 46%, rgba(12, 28, 32, 0.28) 100%),
        linear-gradient(180deg, rgba(12, 28, 32, 0.18) 0%, rgba(12, 28, 32, 0.48) 100%);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero--cover .hero__content {
    max-width: 40rem;
    position: relative;
    z-index: 1;
}

.hero--cover .eyebrow {
    color: var(--color-accent);
}

.hero--cover h1 {
    color: #fff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero--cover .hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    margin-bottom: 1.65rem;
    max-width: 45rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero__btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.hero__btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.hero__facts {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(min-content, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__facts li {
    align-items: flex-start;
    background: var(--surface-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}

.hero--cover .hero__facts li {
    backdrop-filter: blur(10px);
    background: rgba(250, 246, 239, 0.92);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero__facts strong,
.hero__facts span:not(.fact-icon) {
    display: block;
}

.hero__facts strong {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
    line-height: 1.2;
    white-space: nowrap;
}

.hero__facts .fact-copy > span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.section-shell {
    padding-block: 4.5rem;
}

.section-shell--split,
.final-cta {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
}

.section-heading {
    margin-bottom: 2rem;
    max-width: 760px;
}

.page-focus {
    margin-bottom: 0;
}

.pain-grid,
.faq-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.benefit-card,
.faq-grid article,
.case-card {
    background: var(--surface-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.info-card,
.faq-grid article {
    padding: 1.35rem;
}

.card-number {
    color: var(--color-accent);
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
}

.benefit-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card {
    min-height: 210px;
    padding: 1.45rem;
}

.benefit-card--featured {
    display: grid;
    gap: 1.25rem;
    grid-row: span 2;
    padding: 0.75rem;
}

.benefit-card--featured img {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    object-fit: cover;
    width: 100%;
}

.benefit-card--featured div {
    padding: 0 0.7rem 0.7rem;
}

.section-shell--accent {
    background: linear-gradient(135deg, var(--section-accent-from), var(--section-accent-to));
    border-block: 1px solid var(--color-border);
    max-width: none;
    padding-inline: max(16px, calc((100% - var(--container)) / 2));
    width: 100%;
}

.steps-list {
    counter-reset: step;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps-list li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
}

.steps-list span {
    color: var(--color-accent-dark);
    display: block;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.steps-list strong {
    display: block;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

form {
    margin: 0;
}

.lead-capture {
    background:
        linear-gradient(135deg, var(--surface-glass-strong), var(--color-surface-soft)),
        var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    margin: 4.5rem auto;
    max-width: 720px;
    padding: 1.8rem 1.6rem;
    scroll-margin-top: 7.25rem;
    width: calc(100% - 2rem);
}

.section-form__header {
    margin-bottom: 1.25rem;
}

.section-form__title {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.45rem;
}

.form-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field--full {
    grid-column: 1 / -1;
}

.field-legend {
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.range-field__head {
    align-items: baseline;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.range-field__head .field-legend,
.range-field__head label {
    margin-bottom: 0;
}

.range-field__value {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
}

.range-dual {
    height: 32px;
    position: relative;
}

.range-dual__rail {
    background: var(--color-border);
    border-radius: 999px;
    height: 6px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.range-dual__fill {
    background: var(--color-primary);
    border-radius: inherit;
    height: 100%;
    left: 0;
    position: absolute;
    width: 0;
}

.range-dual__fill--wave {
    background: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 42%, #ffffff);
    height: 12px;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
}

.range-wave {
    animation: heroWaveDrift 5.5s linear infinite;
    display: flex;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 240%;
    will-change: transform;
}

@keyframes heroWaveDrift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.range-wave svg {
    display: block;
    flex: 0 0 50%;
    height: 100%;
    width: 50%;
}

.range-wave path {
    fill: var(--color-primary);
}

.range-wave--front {
    animation-duration: 3.8s;
    animation-direction: reverse;
    bottom: 0;
    height: 80%;
    opacity: 0.92;
    top: auto;
}

.range-wave--front path {
    fill: var(--color-primary-dark);
}

.lead-capture input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    min-height: 32px;
    padding: 0;
    width: 100%;
}

.lead-capture input[type="range"]:focus {
    border: 0;
    box-shadow: none;
}

.range-dual input[type="range"] {
    height: 32px;
    left: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.range-dual input[name="budgetMin"] {
    z-index: 3;
}

.range-dual input[name="budgetMax"] {
    z-index: 4;
}

.range-dual--single input[type="range"] {
    pointer-events: auto;
}

.range-dual input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-primary);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(13, 79, 92, 0.22);
    cursor: pointer;
    height: 22px;
    margin-top: -8px;
    pointer-events: auto;
    width: 22px;
}

.range-dual input[type="range"]::-moz-range-thumb {
    background: var(--color-primary);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(13, 79, 92, 0.22);
    cursor: pointer;
    height: 22px;
    pointer-events: auto;
    width: 22px;
}

.range-dual input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

.range-dual input[type="range"]::-moz-range-track {
    background: transparent;
    height: 6px;
}

.lead-capture input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.field--hp {
    height: 0;
    left: -10000px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 0;
}

.field label {
    color: var(--color-text);
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

input,
select,
textarea {
    background: var(--input-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-text);
    font: inherit;
    min-height: 50px;
    padding: 0.78rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(15, 111, 106, 0.12);
    outline: 0;
}

.field.is-invalid input,
.field.is-invalid select,
input.is-invalid,
select.is-invalid {
    border-color: #c45c3e;
    box-shadow: 0 0 0 4px rgba(196, 92, 62, 0.18);
}

.consent-label.is-invalid {
    color: #a3482f;
    outline: 2px solid rgba(196, 92, 62, 0.45);
    outline-offset: 4px;
    border-radius: 8px;
}

.consent-label {
    align-items: flex-start;
    color: var(--color-muted);
    display: flex;
    font-size: 0.86rem;
    gap: 0.6rem;
    margin: 1rem 0;
}

.consent-label input {
    accent-color: var(--color-primary);
    flex: 0 0 auto;
    margin-top: 0.25rem;
    min-height: auto;
    width: auto;
}

.consent-note {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin: -0.5rem 0 1rem;
}

.form-feedback {
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 1.35rem;
    margin: 0.75rem 0 0;
}

.form-feedback--error {
    color: #a3482f;
}

.image-carousel {
    overflow: hidden;
}

.carousel-track {
    display: grid;
}

.case-card {
    display: none;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
}

.case-card.is-active {
    animation: fadeIn 0.35s ease both;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) 1fr;
}

.case-card img {
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    width: 100%;
}

.case-card div {
    align-self: center;
    padding: 2rem;
}

.case-card span {
    color: var(--color-accent-dark);
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.carousel-controls {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-primary-dark);
    cursor: pointer;
    font-size: 1.35rem;
    height: 44px;
    width: 44px;
}

.carousel-dots {
    display: flex;
    gap: 0.45rem;
}

.carousel-dot {
    background: var(--color-border);
    border-radius: 999px;
    height: 8px;
    transition: background-color 0.2s ease, width 0.2s ease;
    width: 8px;
}

.carousel-dot.is-active {
    background: var(--color-primary);
    width: 26px;
}

.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-cta {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 36px;
    color: #ffffff;
    margin-bottom: 4rem;
    overflow: hidden;
    padding: 1rem 1rem 1rem 2rem;
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow {
    color: #ffffff;
}

.final-cta p {
    opacity: 0.86;
}

.final-cta img {
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.site-footer {
    background: #0b302f;
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
    text-align: left;
}

.site-footer > * {
    max-width: 100%;
}

.site-footer p {
    margin: 0.35rem 0;
}

.site-footer a {
    color: #ffffff;
    font-weight: 700;
}

.footer-layout {
    display: grid;
    gap: 2rem 3rem;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    width: min(var(--container), 100%);
}

.footer-docs {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-docs a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-hub {
    margin-top: 1.75rem;
}

.footer-owner {
    line-height: 1.55;
    margin: 0 0 1rem;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.seo-hub-page {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    line-height: 1.65;
    margin: 2rem auto 4rem;
    max-width: 800px;
    padding: 2rem 2rem 2.5rem;
    text-align: left;
}

.seo-hub-page h1 {
    margin-top: 0;
}

.seo-hub-lead {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.seo-hub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seo-hub-list li {
    border-top: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.seo-hub-list a {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.seo-hub-snippet {
    color: var(--color-muted);
    display: block;
    font-size: 0.92rem;
}

.seo-hub-empty {
    color: var(--color-muted);
}

.seo-hub-groups {
    display: grid;
    gap: 1.75rem;
}

.seo-hub-city h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

.seo-hub-city-main {
    position: relative;
}

.seo-hub-badge {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.55rem;
}

.seo-hub-city-empty {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin: 0.5rem 0 0;
}

.location-crumbs {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 1rem auto 0;
    max-width: var(--container);
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

.location-crumbs a {
    color: var(--color-primary-dark);
}

.location-hero--cover .location-crumbs {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 1.5rem;
    max-width: none;
    padding: 0;
}

.location-hero--cover .location-crumbs a {
    color: rgba(255, 255, 255, 0.92);
}

.location-hero--cover .location-crumbs a:hover {
    color: #fff;
}

.location-hero {
    margin-top: 1rem;
    padding: 1.5rem 0 2rem;
    position: relative;
}

.location-hero--cover {
    isolation: isolate;
    margin-top: 0.75rem;
    min-height: min(78vh, 720px);
    overflow: hidden;
    padding: 3.5rem 0 3.25rem;
}

.location-hero__media {
    inset: 0;
    position: absolute;
    z-index: 0;
}

.location-hero__media > img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.location-hero__shade {
    background:
        linear-gradient(105deg, rgba(12, 28, 32, 0.78) 0%, rgba(12, 28, 32, 0.52) 46%, rgba(12, 28, 32, 0.28) 100%),
        linear-gradient(180deg, rgba(12, 28, 32, 0.2) 0%, rgba(12, 28, 32, 0.45) 100%);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.location-hero--cover .location-hero__content {
    max-width: 52rem;
    position: relative;
    z-index: 1;
}

.location-hero--cover .eyebrow {
    color: var(--color-accent);
}

.location-hero--cover h1 {
    color: #fff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.location-hero--cover .location-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.location-hero__subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0.75rem 0 1.25rem;
}

.location-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-hero__btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.location-hero__btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.location-hero__grid {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.location-hero__visual img {
    border-radius: var(--radius-md);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.location-gallery {
    margin: 0;
    padding: 0;
}

.location-gallery__grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.location-gallery__grid img {
    border-radius: 0;
    display: block;
    height: clamp(280px, 38vw, 520px);
    object-fit: cover;
    width: 100%;
}

.location-gallery__grid--dense img {
    height: clamp(180px, 22vw, 280px);
}

.location-map {
    margin: 0;
    padding: 0;
    position: relative;
}

.location-map__zoom {
    display: flex;
    flex-direction: column;
    left: 12px;
    overflow: hidden;
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.location-map__zoom-btn {
    background: #fff;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
    font: 700 1.35rem/1 var(--font-sans);
    height: 36px;
    padding: 0;
    width: 36px;
}

.location-map__zoom-btn + .location-map__zoom-btn {
    border-top: 1px solid var(--color-border);
}

.location-map__canvas {
    height: 500px;
    width: 100%;
}

.location-map__pin {
    background: var(--color-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    height: 16px;
    transform: translate(-50%, -50%);
    width: 16px;
}

.location-overview {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.location-overview__inner {
    align-items: start;
    display: grid;
    gap: 2.5rem 3rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.location-overview__copy h2 {
    margin-bottom: 1.25rem;
    max-width: 22ch;
}

.location-overview__prose {
    display: grid;
    gap: 1rem;
    max-width: 62ch;
}

.location-overview__prose p {
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0;
}

.location-overview__side {
    margin: 0;
}

.location-overview__side img {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.location-hero__facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(min-content, 1fr));
    list-style: none;
    margin: 1rem 0 1.25rem;
    padding: 0;
}

.location-hero__facts--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-hero__facts--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: auto;
    width: min(100%, calc((100% - 2.25rem) * 0.75 + 1.5rem));
}

.location-hero--cover .location-hero__content:has(.location-hero__facts--four),
.location-hero--cover .location-hero__content:has(.location-hero__facts--three) {
    max-width: min(var(--container), calc(100% - 32px));
}

.location-hero--cover .location-hero__facts li {
    backdrop-filter: blur(10px);
    background: rgba(250, 246, 239, 0.92);
    border-color: rgba(255, 255, 255, 0.35);
}

.location-hero__facts li,
.location-facts__list li {
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
}

.location-hero__facts strong,
.location-facts__list strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: nowrap;
}

.location-hero__facts strong {
    white-space: normal;
}

.location-hero__facts .fact-copy > span,
.location-facts__list .fact-copy > span {
    color: var(--color-muted);
    display: block;
    font-size: 0.88rem;
}

.location-facts__list {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.fact-icon {
    align-items: center;
    background: rgba(26, 125, 140, 0.1);
    border-radius: 10px;
    color: var(--color-primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    margin-top: 0.1rem;
    width: 2.25rem;
}

.fact-icon svg {
    display: block;
    height: 1.15rem;
    width: 1.15rem;
}

.fact-icon--emoji {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2rem;
    line-height: 1;
}

.fact-copy {
    min-width: 0;
}

.location-hero--cover .fact-icon {
    background: rgba(26, 125, 140, 0.14);
}

.location-types__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.location-type-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.location-type-card__meta {
    color: var(--color-muted);
    margin: 0.35rem 0 1rem;
    white-space: nowrap;
}

.locations__empty {
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.locations__note {
    font-size: 1.05rem;
    margin: 1.35rem 0 0.9rem;
    max-width: 46rem;
}

.locations__cta {
    margin-top: 0.5rem;
}

a.location-card {
    color: inherit;
    text-decoration: none;
}

a.location-card.is-current {
    box-shadow: 0 0 0 2px var(--color-primary);
}

@media (max-width: 900px) {
    .location-hero--cover,
    .hero--cover {
        min-height: min(70vh, 620px);
        padding: 2.75rem 0 2.5rem;
    }

    .location-hero__grid,
    .location-facts__list,
    .location-types__grid,
    .location-hero__facts,
    .location-overview__inner {
        grid-template-columns: 1fr;
    }

    .location-hero__facts--three {
        width: 100%;
    }

    .location-gallery__grid img {
        height: clamp(200px, 42vw, 320px);
    }

    .location-overview__side img {
        aspect-ratio: 16 / 10;
        max-height: 320px;
    }

    .location-overview__copy h2 {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .location-gallery__grid {
        grid-template-columns: 1fr;
    }

    .location-gallery__grid img {
        height: clamp(260px, 62vw, 400px);
    }
}

.legal-page {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    line-height: 1.7;
    margin: 2rem auto 4rem;
    max-width: 780px;
    padding: 2rem;
    width: min(780px, calc(100% - 32px));
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.legal-nav a[aria-current="page"] {
    font-weight: 700;
}

.legal-meta {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.legal-page h1 {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.legal-page h2 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
}

.legal-page ul {
    padding-left: 1.2rem;
}

.legal-page li {
    margin: 0.35rem 0;
}

.fade-in {
    animation: fadeIn 0.75s ease both;
}

.slide-up {
    animation: slideUp 0.75s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Locations tabs --- */
.locations__tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.locations__tab {
    background: var(--surface-glass);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 0.55rem 1rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.locations__tab:hover,
.locations__tab.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.locations__panel {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.locations__panel.is-active {
    display: block;
    opacity: 1;
}

.locations__lead {
    margin-bottom: 1rem;
    max-width: 46rem;
}

.locations__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.location-card {
    background: var(--surface-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
    transform: translateY(-2px);
}

.location-card img {
    aspect-ratio: 5 / 3;
    background: var(--color-surface-soft);
    flex: 0 0 auto;
    object-fit: cover;
    width: 100%;
}

.location-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem 0.85rem;
    text-align: center;
}

.location-card h3 {
    font-size: 1.02rem;
    line-height: 1.25;
    margin: 0;
}

.location-card p {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
}

/* --- Mortgage --- */
.mortgage-board {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mortgage-board__card {
    display: flex;
    flex-direction: column;
    min-height: 28rem;
    padding: 1.6rem 1.45rem;
}

.mortgage-board__icon {
    align-self: center;
    display: block;
    height: 5.5rem;
    margin-bottom: 1rem;
    object-fit: contain;
    object-position: center;
    width: auto;
}

.mortgage-board__card h3 {
    margin: 0 0 1rem;
}

.mortgage-board__card p {
    margin: 0 0 0.85rem;
}

.mortgage-board__card ul {
    margin: 0.25rem 0 0;
    padding-left: 1.15rem;
}

.mortgage-board__card li + li {
    margin-top: 0.55rem;
}

.mortgage-section .btn {
    margin-top: 0.5rem;
}

.mortgage-band {
    background:
        linear-gradient(135deg, rgba(26, 125, 140, 0.12), rgba(250, 246, 239, 0.4)),
        var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.mortgage-rates {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.mortgage-rates li {
    background: var(--surface-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
}

.mortgage-rates strong {
    color: var(--color-primary-dark);
    font-size: 1.05rem;
}

.mortgage-rates span {
    color: var(--color-muted);
}

.mortgage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- About agent --- */
.about-agent__grid {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.about-agent__photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-agent__photo img {
    aspect-ratio: 4 / 5;
    background: var(--color-surface-soft);
    height: auto;
    object-fit: cover;
    width: 100%;
}

.about-agent__name {
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.about-agent__role {
    color: var(--color-accent-dark);
    font-weight: 800;
    margin-bottom: 1rem;
}

.about-agent__bio {
    margin-bottom: 1.25rem;
}

.about-agent__facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.about-agent__facts li {
    align-items: flex-start;
    background: var(--surface-glass-strong);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.7rem;
    padding: 0.9rem;
}

.about-agent__facts strong {
    color: var(--color-primary-dark);
    display: block;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.about-agent__facts .fact-copy > span {
    color: var(--color-muted);
    display: block;
    font-size: 0.88rem;
}

.about-agent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.is-visible .info-card:nth-child(1),
.reveal.is-visible .benefit-card:nth-child(1),
.reveal.is-visible .mortgage-grid .info-card:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.is-visible .info-card:nth-child(2),
.reveal.is-visible .benefit-card:nth-child(2),
.reveal.is-visible .mortgage-grid .info-card:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal.is-visible .info-card:nth-child(3),
.reveal.is-visible .benefit-card:nth-child(3),
.reveal.is-visible .mortgage-grid .info-card:nth-child(3) {
    transition-delay: 0.15s;
}

.reveal.is-visible .benefit-card:nth-child(4) {
    transition-delay: 0.2s;
}

.reveal.is-visible .location-card {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* --- Soft CTA pulse --- */
@keyframes softPulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(15, 111, 106, 0.22);
    }
    50% {
        box-shadow: 0 16px 34px rgba(15, 111, 106, 0.34);
    }
}

.btn-pulse {
    animation: softPulse 2.8s ease-in-out 3;
}

/* --- Mobile sticky CTA (docked in layout on mobile, not position:fixed) --- */
.page-shell {
    display: block;
}

.mobile-sticky {
    background: transparent;
    border-top: 0;
    box-sizing: border-box;
    display: none;
    padding: 0.35rem 0.75rem max(0.35rem, env(safe-area-inset-bottom, 0px));
    width: 100%;
}

.mobile-sticky__cta,
.mobile-sticky .btn {
    flex: 0 1 auto;
    min-height: 38px;
    padding-inline: 1rem;
}

.mobile-sticky__cta:hover,
.mobile-sticky__cta:active,
.mobile-sticky .btn:hover,
.mobile-sticky .btn:active {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .fade-in,
    .slide-up,
    .locations__panel,
    .location-card,
    .btn,
    form button {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__wave-track,
    .range-wave {
        animation: none;
    }

    .btn-pulse {
        animation: none;
    }
}

@media (max-width: 1080px) {
    .section-shell--split,
    .final-cta {
        grid-template-columns: 1fr;
    }

    .benefit-layout,
    .mortgage-rates,
    .mortgage-board,
    .steps-list,
    .pain-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .locations__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-docs {
        align-items: center;
    }

    html:has(.page-shell) {
        height: 100%;
        overflow: hidden;
        scroll-behavior: auto;
    }

    body:has(.page-shell) {
        display: flex;
        flex-direction: column;
        font-size: 15px;
        /* svh/100%: stable while URL bar shows/hides (dvh resizes and jitters chrome) */
        height: 100%;
        max-height: 100%;
        height: 100svh;
        max-height: 100svh;
        overflow: hidden;
        padding-bottom: 0;
    }

    body:has(.page-shell)::before {
        display: none;
    }

    body:has(.page-shell) .site-header {
        backdrop-filter: none;
        background: var(--color-surface);
        flex: 0 0 auto;
        position: relative;
        top: auto;
        z-index: 30;
    }

    body:has(.page-shell) .page-shell {
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* Opacity-only reveals: transform during scroll jitters sticky chrome */
    .reveal {
        transform: none;
    }

    .reveal.is-visible {
        transform: none;
    }

    body {
        font-size: 15px;
    }

    .site-header {
        z-index: 30;
    }

    .header-inner {
        align-items: center;
        column-gap: 0.25rem;
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        min-height: 0;
        padding-block: 0.3rem;
        row-gap: 0;
    }

    .nav-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 8px;
        color: var(--color-primary-dark);
        cursor: pointer;
        display: inline-flex;
        flex-shrink: 0;
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
        min-height: 36px;
        min-width: 36px;
        padding: 0.25rem;
    }

    .nav-toggle__icon {
        display: block;
        height: 12px;
        position: relative;
        width: 16px;
    }

    .nav-toggle__icon::before,
    .nav-toggle__icon::after {
        background: currentColor;
        content: "";
        display: block;
        height: 2px;
        left: 0;
        position: absolute;
        right: 0;
        transition: transform 0.2s ease, top 0.2s ease;
    }

    .nav-toggle__icon::before {
        top: 1px;
        box-shadow: 0 4px 0 currentColor;
    }

    .nav-toggle__icon::after {
        top: 9px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
        box-shadow: none;
        top: 5px;
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
        top: 5px;
        transform: rotate(-45deg);
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        max-width: 148px;
    }

    .logo img {
        height: 48px;
    }

    .agent-contacts {
        flex-wrap: nowrap;
        gap: 0.25rem;
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        justify-self: end;
        max-width: 100%;
        min-width: 0;
        width: auto;
    }

    .agent-contacts__phone {
        font-size: 0.72rem;
        max-width: 100%;
        min-height: 34px;
        overflow: hidden;
        padding: 0.3rem 0.5rem;
        text-overflow: ellipsis;
    }

    .agent-contacts__icon img {
        height: 28px;
        width: 28px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        grid-column: 1 / -1;
        grid-row: 2;
        overflow: visible;
        padding: 0.35rem 0 0.1rem;
        width: 100%;
    }

    .site-header.is-nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        align-items: center;
        background: var(--color-surface-soft);
        display: flex;
        flex: 0 0 auto;
        font-size: 0.84rem;
        justify-content: flex-start;
        min-height: 40px;
        padding: 0.45rem 0.75rem;
        white-space: nowrap;
        width: 100%;
    }

    .about-agent__actions {
        width: 100%;
    }

    .about-agent__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .hero--cover {
        min-height: min(68vh, 580px);
        padding: 2.5rem 0 2.25rem;
    }

    .hero__actions {
        width: 100%;
    }

    #lead,
    #about,
    #locations,
    #projects,
    #steps,
    #cases,
    #mortgage,
    #agent,
    #faq {
        /* Header sits above the scroller, not over it */
        scroll-margin-top: 0.75rem;
    }

    .lead-capture {
        scroll-margin-top: 0.75rem;
    }

    #lead {
        scroll-margin-bottom: 5rem;
    }

    .hero__facts,
    .benefit-layout,
    .mortgage-rates,
    .mortgage-board,
    .steps-list,
    .pain-grid,
    .faq-grid,
    .form-grid,
    .about-agent__grid,
    .about-agent__facts,
    .case-card.is-active {
        grid-template-columns: 1fr;
    }

    .locations__grid {
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-card img {
        aspect-ratio: 4 / 3;
    }

    .location-card__body {
        padding: 0.55rem 0.6rem 0.65rem;
    }

    .location-card h3 {
        font-size: 0.92rem;
    }

    .location-card p {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .section-shell {
        padding-block: 2.5rem;
    }

    .final-cta {
        border-radius: 24px;
        box-sizing: border-box;
        margin-block: 2rem;
        margin-inline: auto;
        max-width: calc(100% - 32px);
        min-width: 0;
        overflow-x: clip;
        padding: 0.85rem;
        width: calc(100% - 32px);
    }

    .lead-capture {
        border-radius: 24px;
        margin-block: 2rem;
        max-width: calc(100% - 32px);
        min-width: 0;
        padding: 1.15rem 1rem;
        width: calc(100% - 32px);
    }

    .lead-capture .form-grid,
    .lead-capture .field {
        min-width: 0;
    }

    .lead-capture input,
    .lead-capture select,
    .lead-capture button {
        box-sizing: border-box;
        max-width: 100%;
    }

    .range-field__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .range-field__value {
        text-align: left;
    }

    .lead-capture button {
        width: 100%;
    }

    .case-card div {
        padding: 1rem;
    }

    .case-card img {
        min-height: 240px;
    }

    .final-cta {
        margin-bottom: 2rem;
    }

    .mobile-sticky {
        align-items: center;
        display: flex;
        flex: 0 0 auto;
        justify-content: center;
        padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
        position: relative;
        z-index: 40;
    }

    .mobile-sticky__cta {
        flex: 0 1 200px;
        font-size: 0.82rem;
        min-height: 38px;
        padding: 0.45rem 1rem;
        width: min(200px, calc(100% - 2rem));
    }

    .locations__tab {
        font-size: 0.82rem;
        min-height: 40px;
        padding: 0.4rem 0.75rem;
    }
}

/* —— Error / 404 —— */
.error-page__hero {
    align-items: center;
    display: flex;
    min-height: min(70vh, 640px);
    padding: 4rem 0 5rem;
}

.error-page__inner {
    max-width: 36rem;
}

.error-page__inner .eyebrow {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.error-page__inner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: 0.4rem 0 1rem;
}

.error-page__text {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
