:root {
    --navy: #111c28;
    --navy-deep: #041223;
    --gold: #d2a64d;
    --gold-light: #f5ce7e;
    --red: #bb2e2b;
    --cream: #fef5e1;
    --paper: #fffaf0;
    --white: #ffffff;
    --ink-soft: #4f5964;
    --line: #e7dcc5;
    --shadow: 0 18px 55px rgba(17, 28, 40, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: #efe6d6;
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.site-header,
main,
.site-footer {
    width: min(100%, 1560px);
    margin-inline: auto;
}

@media (min-width: 1040px) {
    .site-header,
    main,
    .site-footer {
        width: calc(100% - 48px);
        max-width: 1560px;
    }

    main {
        overflow: hidden;
        border-inline: 1px solid rgba(210, 166, 77, 0.24);
        box-shadow: 0 24px 70px rgba(17, 28, 40, 0.12);
    }
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding: 10px clamp(18px, 5vw, 72px);
    background: rgba(255, 250, 240, 0.94);
    border-bottom: 1px solid rgba(210, 166, 77, 0.28);
    backdrop-filter: blur(14px);
}

.brand img {
    width: 176px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: var(--navy);
    font-weight: 700;
}

.main-nav a,
.header-action {
    text-decoration: none;
}

.main-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"] {
    color: var(--red);
    border-color: var(--gold);
}

.main-nav .nav-login {
    min-height: 40px;
    padding: 8px 16px;
    color: var(--navy-deep);
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-color: var(--gold);
}

.main-nav .nav-login:hover,
.main-nav .nav-login:focus-visible {
    background: var(--gold);
}

.header-action,
.button,
.text-link {
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    color: var(--cream);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 8px;
    font-weight: 800;
}

.header-action:hover,
.header-action:focus-visible {
    color: var(--navy-deep);
    background: var(--gold);
    border-color: var(--gold);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - 84px);
    padding: clamp(78px, 12vh, 132px) clamp(18px, 6vw, 88px);
    color: var(--white);
    background: var(--hero-image) center / cover;
}

.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 35, 0.88), rgba(4, 18, 35, 0.58) 54%, rgba(4, 18, 35, 0.22));
    content: "";
}

.hero::after {
    position: absolute;
    right: clamp(18px, 6vw, 88px);
    bottom: clamp(20px, 5vw, 54px);
    width: min(280px, 32vw);
    height: 5px;
    background: var(--gold);
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.contact-band .eyebrow {
    color: var(--gold-light);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    max-width: 800px;
    font-size: clamp(2.55rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.15rem);
}

h3 {
    font-size: 1.25rem;
}

.hero-lede {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.page-hero {
    min-height: min(760px, calc(100svh - 84px));
}

.page-hero .hero-copy {
    max-width: 860px;
}

.hero-actions,
.contact-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--navy-deep);
    background: var(--gold);
    border: 1px solid var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.button-light {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.button-light:hover,
.button-light:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 26px;
    color: var(--red);
    font-weight: 800;
    text-underline-offset: 5px;
}

.mission-section,
.intro-section,
.process-section,
.about-section,
.homes-section,
.contact-band {
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.page-intro {
    background: var(--paper);
}

.mission-section {
    color: var(--cream);
    background: var(--navy);
}

.mission-section h2 {
    max-width: 980px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.mission-section .eyebrow {
    color: var(--gold-light);
}

.section-text {
    max-width: 820px;
}

.section-text p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.intro-grid,
.process-list,
.founder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.intro-grid article,
.process-list article,
.founder-grid article,
.featured-home {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-grid article,
.process-list article,
.founder-grid article {
    padding: 26px;
}

.intro-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 800;
}

.intro-grid p,
.split-copy p,
.process-list p,
.founder-grid p,
.featured-home p {
    color: var(--ink-soft);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
    background: var(--white);
}

.page-split {
    background: var(--white);
}

.split-section-reverse {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
    background: var(--cream);
}

.split-section-reverse .split-image {
    order: 2;
}

.split-image {
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.split-copy {
    max-width: 600px;
}

.split-copy p {
    margin: 20px 0 0;
    font-size: 1.08rem;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-weight: 700;
}

.check-list li::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 3px;
    content: "";
}

.process-section {
    color: var(--cream);
    background: var(--navy);
}

.process-section .eyebrow {
    color: var(--gold-light);
}

.process-section .section-text {
    max-width: 760px;
}

.process-list article {
    color: var(--navy);
}

.homes-section {
    background: var(--paper);
}

.section-header-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-header-row .button {
    flex: 0 0 auto;
}

.home-property-grid {
    margin-top: 36px;
}

.property-search-section {
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
    background: #f6eddc;
}

.property-search-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.property-search-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 800;
}

.property-search-form span {
    font-size: 0.86rem;
}

.property-search-form input,
.property-search-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.property-search-form input:focus,
.property-search-form select:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(210, 166, 77, 0.28);
}

.property-search-wide {
    grid-column: span 2;
}

.property-search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
    grid-column: span 2;
}

.property-search-actions .button {
    width: 100%;
    min-height: 46px;
    padding-block: 10px;
}

.button-outline {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--gold);
}

.button-outline:hover,
.button-outline:focus-visible {
    background: var(--gold-light);
}

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

.property-card,
.property-empty {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.property-card {
    overflow: hidden;
}

.property-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--navy);
    color: inherit;
    text-decoration: none;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    padding: 6px 10px;
    color: var(--cream);
    background: var(--red);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.property-card-body,
.property-empty {
    padding: 22px;
}

.property-card-meta,
.property-stats,
.property-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-card-meta span,
.property-stats span,
.property-price-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.property-card h3 {
    margin-top: 14px;
}

.property-card h3 a {
    color: inherit;
    text-decoration: none;
}

.property-card h3 a:hover,
.property-card h3 a:focus-visible {
    color: var(--red);
}

.property-location {
    margin: 10px 0 0;
    color: var(--red);
    font-weight: 800;
}

.property-address,
.property-description {
    color: var(--ink-soft);
}

.property-address {
    margin: 2px 0 0;
}

.property-stats {
    margin-top: 14px;
}

.property-price-row {
    align-items: center;
    margin-top: 16px;
}

.property-price-row strong {
    margin-right: 2px;
    font-size: 1.35rem;
}

.property-description {
    margin: 14px 0 0;
}

.property-empty {
    margin-top: 28px;
}

.property-profile-section {
    padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 88px);
    background: var(--paper);
}

.property-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: start;
}

.property-profile-main {
    min-width: 0;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.property-gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.property-gallery-item.is-featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.property-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.property-gallery-item:hover img,
.property-gallery-item:focus-visible img {
    transform: scale(1.035);
}

.property-profile-summary,
.property-cta-panel,
.property-detail-stats article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.property-profile-summary {
    margin-top: 18px;
    padding: clamp(22px, 4vw, 34px);
}

.property-cta-panel {
    position: sticky;
    top: 108px;
    padding: 24px;
}

.property-back-link {
    margin: 0 0 22px;
}

.property-profile-summary h1 {
    max-width: 680px;
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.property-profile-location,
.property-profile-description p,
.property-cta-panel p {
    margin: 14px 0 0;
    color: var(--ink-soft);
}

.property-profile-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.property-profile-price strong {
    color: var(--navy-deep);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.property-profile-price span {
    display: inline-flex;
    padding: 6px 10px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 800;
}

.property-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.property-detail-stats article {
    min-height: 96px;
    padding: 15px;
    box-shadow: none;
}

.property-detail-stats span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.property-detail-stats strong {
    display: block;
    margin-top: 8px;
    color: var(--navy-deep);
    font-size: 1.12rem;
}

.property-profile-description {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.property-profile-description h2 {
    font-size: 1.25rem;
}

.property-cta-panel .button {
    width: 100%;
    margin-top: 22px;
}

.property-empty p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.seller-lead-section {
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
    background: #f6eddc;
}

.seller-lead-form {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin-top: 34px;
    padding: clamp(20px, 4vw, 30px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

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

.seller-lead-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 800;
}

.seller-lead-form label span {
    font-size: 0.86rem;
}

.seller-lead-form input,
.seller-lead-form select,
.seller-lead-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.seller-lead-form textarea {
    resize: vertical;
}

.seller-lead-form input:focus,
.seller-lead-form select:focus,
.seller-lead-form textarea:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(210, 166, 77, 0.28);
}

.seller-lead-form .button {
    width: fit-content;
    cursor: pointer;
}

.form-notice {
    max-width: 980px;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.form-notice.success {
    color: #255c36;
    background: #eef8ef;
    border-color: #b7ddbf;
}

.form-notice.error {
    color: #8b1f1d;
    background: #fff0ef;
    border-color: #e7b8b5;
}

.about-section {
    background: var(--white);
}

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

.founder-grid article {
    box-shadow: none;
}

.founder-role {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.support-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.support-list span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--navy-deep);
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 800;
}

.featured-home {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 36px;
    overflow: hidden;
}

.featured-home img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.featured-home div {
    padding: 28px 32px 28px 0;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    padding: 6px 10px;
    color: var(--cream);
    background: var(--red);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.contact-band {
    justify-content: space-between;
    color: var(--cream);
    background: var(--navy-deep);
}

.contact-band div {
    max-width: 690px;
}

.contact-band h2 {
    color: var(--white);
}

.contact-band p:not(.eyebrow) {
    margin: 16px 0 0;
    color: rgba(254, 245, 225, 0.84);
}

.auth-main {
    background: var(--paper);
}

.login-section {
    display: grid;
    min-height: calc(100svh - 84px);
    padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
    place-items: center;
}

.login-card {
    width: min(100%, 480px);
    padding: clamp(28px, 5vw, 42px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: clamp(2.1rem, 6vw, 3.25rem);
}

.login-lede {
    margin: 14px 0 0;
    color: var(--ink-soft);
}

.login-alert {
    margin: 18px 0 0;
    padding: 10px 12px;
    color: var(--cream);
    background: var(--red);
    border-radius: 8px;
    font-weight: 800;
}

.login-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.login-form label {
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.login-form input:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(210, 166, 77, 0.28);
}

.login-form .button {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 6vw, 88px);
    color: var(--cream);
    background: var(--navy);
}

.site-footer img {
    width: 138px;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

.site-footer p {
    margin: 0;
    color: rgba(254, 245, 225, 0.82);
}

@media (max-width: 920px) {
    .site-header {
        position: static;
        justify-content: center;
    }

    .header-action {
        display: none;
    }

    .intro-grid,
    .process-list,
    .founder-grid,
    .split-section,
    .split-section-reverse,
    .featured-home,
    .property-search-form,
    .property-grid,
    .property-profile-grid,
    .property-detail-stats,
    .property-gallery,
    .form-row,
    .form-row-three {
        grid-template-columns: 1fr;
    }

    .property-gallery-item.is-featured {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .property-cta-panel {
        position: static;
    }

    .property-search-wide,
    .property-search-actions {
        grid-column: auto;
    }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .split-section-reverse .split-image {
        order: 0;
    }

    .featured-home div {
        padding: 0 24px 26px;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        gap: 12px;
        min-height: 0;
    }

    .brand img {
        width: 158px;
    }

    .main-nav {
        justify-content: flex-start;
        gap: 4px 16px;
        font-size: 0.95rem;
    }

    .hero {
        min-height: 78svh;
        padding-top: 58px;
    }

    .hero::before {
        background: rgba(4, 18, 35, 0.72);
    }

    .hero::after {
        width: 140px;
    }

    .hero-lede {
        font-size: 1.08rem;
    }

    .button {
        width: 100%;
    }

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

    .split-image,
    .split-image img {
        min-height: 300px;
    }
}
