:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-soft: #f1efea;
    --text: #171717;
    --muted: #66635d;
    --navy: #071426;
    --navy-soft: #10243a;
    --champagne: #c8a96a;
    --stone: #e8e1d6;
    --radius: 8px;
    --shadow: 0 22px 80px rgba(7, 20, 38, 0.12);
    --container: 1180px;
    --narrow: 780px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0 0 18px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.04;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.9rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 20px;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.container.narrow {
    width: min(100% - 40px, var(--narrow));
}

.section {
    padding: 88px 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 999;
    background: var(--surface);
    padding: 10px 14px;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    background: rgba(250, 248, 243, 0.96);
    box-shadow: 0 12px 30px rgba(7, 20, 38, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    min-width: 190px;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    color: var(--navy);
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-nav {
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--navy);
    font-size: 0.94rem;
}

.nav-menu a {
    padding: 8px 0;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 650;
}

.button.secondary,
.header-cta {
    background: transparent;
    color: var(--navy);
}

.button.secondary.light {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.button-row,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-row.center {
    justify-content: center;
}

.menu-toggle {
    display: none;
}

.hero-video {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(250, 248, 243, 0.86), rgba(250, 248, 243, 0.35)),
        linear-gradient(135deg, #f6f1e8, #d9e1e7 55%, #ffffff);
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
    z-index: 0;
}

.hero-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(250, 248, 243, 0.9), rgba(250, 248, 243, 0.62), rgba(7, 20, 38, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 96px;
}

.hero-content p {
    max-width: 720px;
    color: var(--navy);
    font-size: 1.15rem;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--champagne);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-search {
    width: min(100%, 860px);
    margin-top: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 225, 214, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mock-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--stone);
    background: var(--surface);
    color: var(--text);
    padding: 14px 16px;
    border-radius: var(--radius);
    font: inherit;
}

.mock-search button,
.lead-form button {
    border: 0;
    cursor: pointer;
}

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

.section-heading.split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    color: var(--navy);
    font-weight: 700;
    border-bottom: 1px solid var(--champagne);
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.search-pill {
    border: 1px solid var(--stone);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--navy);
    font-weight: 700;
}

.city-grid,
.article-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.city-card,
.article-card,
.content-card,
.lead-panel {
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    overflow: hidden;
}

.city-card-media,
.image-panel {
    min-height: 190px;
    background:
        linear-gradient(135deg, rgba(7, 20, 38, 0.08), rgba(200, 169, 106, 0.16)),
        linear-gradient(135deg, #dfe8ea, #fff);
}

.city-card-image,
.city-card > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.city-card-body,
.content-card-body,
.article-card {
    padding: 24px;
}

.city-card h2,
.city-card h3 {
    font-size: 1.28rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: normal;
}

.city-card h2 a,
.city-card h3 a {
    color: inherit;
}

.city-card p,
.article-card p {
    color: var(--muted);
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.92rem;
}

.valuation-band,
.final-cta {
    background: var(--navy);
    color: #fff;
}

.valuation-band h2,
.valuation-band h3,
.final-cta h2 {
    color: #fff;
}

.valuation-grid,
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 48px;
    align-items: center;
}

.lead-panel {
    padding: 28px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.lead-panel h3 {
    color: var(--navy);
}

.lead-form {
    display: grid;
    gap: 14px;
}

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

.lead-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.idx-placeholder {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px dashed var(--stone);
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    padding: 36px;
}

.idx-placeholder:has(.boldtrail-frame) {
    display: block;
    border-style: solid;
    padding: 0;
    overflow: hidden;
}

.boldtrail-frame {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
}

.boldtrail-frame-property {
    min-height: 720px;
}

.boldtrail-frame-wide {
    min-height: 300px;
}

.search-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: stretch;
    margin-bottom: 28px;
}

.search-intro-panel > div:first-child {
    max-width: 760px;
}

.search-action-card {
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
}

.search-action-card h3 {
    font-size: 1.35rem;
}

.search-action-card .button-row {
    gap: 10px;
}

.idx-shell {
    overflow: hidden;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.idx-shell-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--stone);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.idx-shell .idx-placeholder {
    border: 0;
    border-radius: 0;
}

.checkbox-group {
    display: grid;
    gap: 10px;
    margin: 2px 0;
    padding: 16px;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
}

.checkbox-group legend {
    padding: 0 6px;
    color: var(--navy);
    font-weight: 750;
}

.checkbox-group label {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.checkbox-group input {
    width: auto;
}

.form-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(23, 94, 67, 0.22);
    border-radius: var(--radius);
    background: rgba(23, 94, 67, 0.08);
    color: #175e43;
    font-weight: 700;
}

.about-band {
    background: var(--surface);
}

.image-panel {
    min-height: 520px;
    border-radius: var(--radius);
}

.profile-panel {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 20, 38, 0.08), rgba(200, 169, 106, 0.16)),
        linear-gradient(135deg, #dfe8ea, #fff);
}

.profile-panel img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
}

.city-authority {
    background: #fff;
}

.city-authority .section-heading > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.guidance-grid {
    margin-top: 22px;
}

.authority-panel,
.faq-item {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
}

.authority-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.authority-panel li + li {
    margin-top: 10px;
}

.authority-panel-wide {
    grid-column: 1 / -1;
}

.city-faq {
    margin-top: 54px;
}

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

.faq-item p {
    color: var(--muted);
}

.check-list {
    margin: 0 0 26px;
    padding-left: 20px;
    color: var(--navy);
}

.final-cta {
    text-align: center;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.78);
}

.final-cta .button.secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.site-footer {
    background: #050d18;
    color: rgba(255, 255, 255, 0.76);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-brand,
.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.footer-brokerage-logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
    margin-top: 22px;
}

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

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.86rem;
}

.entry-content,
.content-entry {
    font-size: 1.05rem;
}

.lead-copy {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 1.16rem;
    line-height: 1.75;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 700;
}

.detail-hero {
    padding: 150px 0 70px;
    background: linear-gradient(135deg, #ffffff, var(--bg));
}

.lead-page-hero {
    padding: 160px 0 88px;
    background:
        linear-gradient(135deg, rgba(250, 248, 243, 0.96), rgba(255, 255, 255, 0.82)),
        linear-gradient(135deg, #f3eee6, #dce8ef 70%, #ffffff);
}

.contact-hero {
    background:
        linear-gradient(135deg, rgba(250, 248, 243, 0.98), rgba(255, 255, 255, 0.86)),
        linear-gradient(135deg, #f7f4ee, #e3edf0 65%, #ffffff);
}

.sell-hero,
.search-hero,
.about-hero {
    background:
        linear-gradient(135deg, rgba(250, 248, 243, 0.98), rgba(255, 255, 255, 0.8)),
        linear-gradient(135deg, #ffffff, #e6eef1 70%, #f5efe5);
}

.lead-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    gap: 48px;
    align-items: center;
}

.lead-page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
}

.lead-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.lead-card h2 {
    font-size: 2.1rem;
}

.about-portrait {
    min-height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(7, 20, 38, 0.08), rgba(200, 169, 106, 0.16)),
        linear-gradient(135deg, #dfe8ea, #fff);
}

.about-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center top;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: start;
}

.about-story-grid p {
    color: var(--muted);
}

.about-stats-panel {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 112px;
}

.about-stats-panel div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
}

.about-stats-panel span {
    color: var(--muted);
}

.about-stats-panel strong {
    color: var(--navy);
}

.button-row.stacked {
    display: grid;
    grid-template-columns: 1fr;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.process-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.process-grid article {
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 28px;
}

.process-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 750;
}

.process-grid h2 {
    font-size: 1.65rem;
}

.valuation-form-section {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
}

.valuation-form-section h2 {
    color: #fff;
}

.valuation-request-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
    align-items: start;
}

.valuation-request-copy {
    position: sticky;
    top: 110px;
}

.valuation-request-panel {
    padding: clamp(28px, 4vw, 42px);
}

.valuation-request-panel .lead-form {
    gap: 18px;
}

.valuation-request-panel .checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.valuation-request-panel .checkbox-group legend {
    grid-column: 1 / -1;
}

.seller-markets {
    background: var(--surface);
}

.search-page-search {
    margin-top: 8px;
}

.hub-grid {
    grid-template-columns: repeat(3, 1fr);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 52px;
    align-items: start;
}

.content-layout .content-entry {
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 54px);
}

.content-layout .entry-content h2 {
    margin-top: 36px;
    font-size: 2.1rem;
}

.content-layout .entry-content h3 {
    margin-top: 28px;
}

.content-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 112px;
}

.sidebar-panel {
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-panel h2 {
    font-size: 1.65rem;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.detail-hero p {
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-hero-image {
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 20, 38, 0.08), rgba(200, 169, 106, 0.18)),
        linear-gradient(135deg, #e5eef1, #ffffff);
    box-shadow: var(--shadow);
}

.detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-intro {
    padding-top: 50px;
}

.detail-idx {
    background: var(--surface);
}

.search-paths.compact {
    padding-top: 66px;
}

.stats-panel {
    display: grid;
    gap: 14px;
}

.stats-panel div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--stone);
    border-radius: var(--radius);
}

.stats-panel span {
    color: var(--muted);
}

.stats-panel strong {
    color: var(--navy);
}

.entry-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 18px 0 28px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 76px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid var(--stone);
        background: var(--surface);
        border-radius: var(--radius);
        padding: 10px 14px;
    }

    .primary-nav {
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        display: none;
        margin: 0;
        background: var(--surface);
        border: 1px solid var(--stone);
        border-radius: var(--radius);
        padding: 18px;
        box-shadow: var(--shadow);
    }

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

    .nav-menu {
        display: grid;
        gap: 12px;
    }

    .header-cta {
        display: none;
    }

    .hero-video {
        min-height: 680px;
    }

    .pill-grid,
    .city-grid,
    .article-grid,
    .card-grid,
    .authority-grid,
    .faq-list,
    .valuation-grid,
    .valuation-request-layout,
    .about-grid,
    .about-story-grid,
    .detail-hero-grid,
    .lead-page-grid,
    .process-grid,
    .process-grid.four,
    .hub-grid,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .about-stats-panel {
        position: static;
    }

    .search-intro-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container,
    .container.narrow {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 62px 0;
    }

    .hero-video {
        min-height: 720px;
    }

    h1 {
        font-size: 3.1rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    .mock-search {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .valuation-request-copy {
        position: static;
    }

    .valuation-request-panel .checkbox-group {
        grid-template-columns: 1fr;
    }

    .idx-shell-bar {
        display: grid;
    }

    .section-heading.split {
        display: block;
    }

    .pill-grid,
    .city-grid,
    .article-grid,
    .card-grid,
    .authority-grid,
    .faq-list,
    .valuation-grid,
    .valuation-request-layout,
    .about-grid,
    .about-story-grid,
    .detail-hero-grid,
    .lead-page-grid,
    .process-grid,
    .process-grid.four,
    .hub-grid,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding-top: 124px;
    }

    .lead-page-hero {
        padding-top: 124px;
    }

    .image-panel {
        min-height: 320px;
    }
}
