:root {
    --site-max-width: 1080px;
    --site-laptop-width: 1000px;
    --text-max-width: 680px;
    --desktop-padding: 32px;
    --tablet-padding: 24px;
    --mobile-padding: 16px;
    --section-space: 112px;
    --tablet-section: 88px;
    --mobile-section: 64px;
    --hero-height: 760px;
    --hero-overlay: 0.24;
    --hero-align: left;
    --hero-image-position: center center;
    --primary: #1f4d45;
    --accent: #c98d47;
    --surface: #f5f1ea;
    --ink: #16211f;
    --muted: #65736c;
    --line: rgba(22, 33, 31, 0.11);
    --soft-shadow: 0 24px 60px rgba(17, 31, 29, 0.12);
    --house-columns: 3;
    --card-ratio: 4 / 3;
    --video-max-width: 920px;
    --video-ratio: 16 / 9;
    --gallery-columns: 4;
    --gallery-gap: 16px;
    --about-left: 1.2fr;
    --about-right: 0.8fr;
    --about-image-width: 44%;
    --about-image-position: center center;
    --reveal-transform-duration: 900ms;
    --reveal-opacity-duration: 760ms;
    --reveal-opacity-start: 0.18;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(201, 141, 71, 0.15), transparent 32%),
        linear-gradient(180deg, #faf8f3 0%, #ffffff 28%, #f7f5ef 100%);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

iframe,
video {
    width: 100%;
    border: 0;
}

.container {
    width: min(calc(100% - (var(--desktop-padding) * 2)), var(--site-max-width));
    margin: 0 auto;
}

.section {
    padding: var(--section-space) 0;
}

.surface-section {
    background: linear-gradient(180deg, rgba(245, 241, 234, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.section-kicker,
.meta-label {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent);
}

h1,
h2,
h3,
.page-title,
.brand-wordmark {
    font-family: 'Fraunces', Georgia, serif;
}

h1,
.page-title {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.section-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.lead {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(22, 33, 31, 0.82);
}

.rich-text,
.section-copy {
    max-width: var(--text-max-width);
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(250, 248, 243, 0.84);
    border-bottom: 1px solid rgba(22, 33, 31, 0.08);
}

.nav-shell {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 58px;
    width: auto;
}

.brand-wordmark {
    font-size: 1.5rem;
    font-weight: 600;
}

.primary-nav {
    margin-left: auto;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--muted);
}

.menu a:hover,
.menu .current-menu-item a {
    color: var(--ink);
}

.burger {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 18px var(--mobile-padding) 24px;
    background: rgba(250, 248, 243, 0.98);
    border-bottom: 1px solid rgba(22, 33, 31, 0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
}

.mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu .menu {
    flex-direction: column;
    gap: 12px;
}

.hero-section {
    position: relative;
    min-height: min(100vh, var(--hero-height));
    padding-top: 72px;
    overflow: clip;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(16, 35, 32, 0.72), rgba(18, 29, 38, 0.42)),
        var(--hero-image, linear-gradient(135deg, #29453d, #d9c7b6));
    background-size: cover;
    background-position: var(--hero-image-position);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 17, 15, calc(var(--hero-overlay) + 0.1)) 0%, rgba(8, 17, 15, var(--hero-overlay)) 100%);
    z-index: 1;
}

.hero-backdrop {
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fbf8f3 100%);
    z-index: 2;
}

.hero-shell {
    position: relative;
    z-index: 3;
    min-height: calc(min(100vh, var(--hero-height)) - 72px);
    display: grid;
    grid-template-columns: 1.2fr minmax(280px, 360px);
    gap: 42px;
    align-items: end;
}

.hero-copy {
    align-self: center;
    text-align: var(--hero-align);
    color: #fffaf2;
}

.hero-copy .lead,
.hero-copy .section-kicker {
    color: rgba(255, 250, 242, 0.88);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.hero-panel {
    align-self: end;
}

.hero-panel-card,
.house-card,
.info-card,
.search-card,
.contact-map,
.about-media,
.video-shell,
.single-house-specs {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: var(--soft-shadow);
    border-radius: 28px;
}

.hero-panel-card {
    padding: 26px;
    backdrop-filter: blur(10px);
}

.meta-value {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.meta-note {
    margin: 16px 0 0;
    color: rgba(255, 250, 242, 0.78);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, var(--text-max-width));
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.about-shell,
.contact-shell {
    display: grid;
    grid-template-columns: var(--about-left) var(--about-right);
    gap: 32px;
    align-items: stretch;
}

.about-media,
.contact-map {
    overflow: hidden;
}

.about-media img,
.contact-map iframe,
.single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-media img {
    min-height: 100%;
    object-position: var(--about-image-position);
}

.house-grid {
    display: grid;
    grid-template-columns: repeat(var(--house-columns), minmax(0, 1fr));
    gap: 22px;
}

.house-card {
    overflow: hidden;
}

.house-card-media {
    display: block;
    aspect-ratio: var(--card-ratio);
    background: #d7ded9;
}

.house-card-media img,
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-card-body {
    padding: 22px;
}

.house-card-body h3,
.house-card-body h2,
.search-card h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.house-card-body p,
.gallery-empty,
.search-card p {
    margin: 0;
    color: var(--muted);
}

.house-meta-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.house-meta-row {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
}

.house-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.price-pill,
.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31, 77, 69, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
}

.video-shell {
    width: min(100%, var(--video-max-width));
    margin: 0 auto;
    padding: 12px;
}

.video-shell iframe,
.video-shell video,
.video-shell .wp-video,
.video-shell .wp-video-shortcode,
.video-shell .wp-video-shortcode video {
    display: block;
    width: 100%;
    aspect-ratio: var(--video-ratio);
    border-radius: 20px;
}

.video-placeholder,
.media-placeholder,
.map-placeholder,
.gallery-empty {
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(31, 77, 69, 0.1), rgba(201, 141, 71, 0.12));
    color: var(--muted);
    border-radius: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
    gap: var(--gallery-gap);
}

.gallery-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: #dde3de;
    cursor: pointer;
}

.contact-copy,
.single-house-content,
.info-card,
.prose-shell,
.search-card {
    max-width: var(--text-max-width);
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.contact-list a,
.contact-list p {
    margin: 0;
}

.contact-map,
.contact-map iframe {
    min-height: 420px;
}

.site-footer {
    padding: 26px 0 52px;
    color: var(--muted);
}

.footer-shell {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.page-shell {
    min-height: 50vh;
}

.page-title {
    margin-bottom: 20px;
}

.search-card,
.info-card,
.single-house-specs {
    padding: 24px;
}

.single-house-shell {
    display: grid;
    gap: 28px;
}

.single-house-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 28px;
    align-items: start;
}

.single-house-specs {
    display: grid;
    gap: 14px;
}

.single-house-specs span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.single-house-specs strong {
    font-size: 1.05rem;
}

.single-hero-image,
.single-hero-image img {
    min-height: 440px;
    border-radius: 30px;
    overflow: hidden;
}

.single-house-actions {
    display: flex;
    justify-content: flex-start;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(8, 13, 12, 0.92);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.skip-to-content {
    position: absolute;
    left: 0;
    top: -100px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
}

.skip-to-content:focus {
    top: 0;
}

.sheet-reveal {
    opacity: var(--reveal-opacity-start);
    transform: translateY(44px);
    transition:
        opacity var(--reveal-opacity-duration) ease,
        transform var(--reveal-transform-duration) cubic-bezier(0.2, 0.9, 0.25, 1);
}

.sheet-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .container {
        width: min(calc(100% - 56px), var(--site-laptop-width));
    }

    .section {
        padding: calc(var(--section-space) - 8px) 0;
    }

    .house-grid {
        grid-template-columns: repeat(min(3, var(--house-columns)), minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        width: calc(100% - (var(--tablet-padding) * 2));
    }

    .section {
        padding: var(--tablet-section) 0;
    }

    .hero-shell,
    .about-shell,
    .contact-shell,
    .single-house-header,
    .section-head {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        min-height: auto;
        padding: 84px 0 30px;
    }

    .hero-panel {
        max-width: 420px;
    }

    .house-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .container {
        width: calc(100% - (var(--mobile-padding) * 2));
    }

    .section {
        padding: var(--mobile-section) 0;
    }

    .primary-nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero-section {
        min-height: auto;
    }

    h1,
    .page-title {
        font-size: clamp(2.5rem, 14vw, 3.8rem);
    }

    .button-row,
    .house-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .price-pill,
    .filter-pill {
        width: 100%;
        justify-content: center;
    }

    .house-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-map,
    .contact-map iframe,
    .single-hero-image,
    .single-hero-image img {
        min-height: 280px;
    }

    .lightbox {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
