:root {
    --ink: #17130f;
    --muted: #6f665c;
    --paper: #fbf7ef;
    --panel: #fffaf1;
    --line: rgba(70, 53, 35, 0.15);
    --terracotta: #b65b35;
    --terracotta-dark: #79351f;
    --olive: #283b2d;
    --gold: #d9a65f;
    --cream: #fff4de;
    --shadow: 0 24px 70px rgba(48, 34, 20, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(217, 166, 95, 0.24), transparent 26rem),
        linear-gradient(180deg, #fffaf2 0%, #f4eadb 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

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

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

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    backdrop-filter: blur(18px);
}

.nav-frame {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.86);
    padding: 10px 12px 10px 16px;
    box-shadow: 0 18px 45px rgba(48, 34, 20, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--olive);
    color: var(--gold);
    font-family: "Fraunces", serif;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: rgba(182, 91, 53, 0.1);
    color: var(--terracotta-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 999px;
    background: var(--olive);
    color: white;
    padding: 11px 16px;
    font-weight: 900;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 0.92rem;
    font-weight: 950;
    transition: 0.2s ease;
}

.button {
    border: 1px solid var(--terracotta);
    background: var(--terracotta);
    color: white;
    box-shadow: 0 14px 34px rgba(182, 91, 53, 0.24);
}

.button:hover {
    transform: translateY(-1px);
    background: var(--terracotta-dark);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
}

.hero {
    padding: 54px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 28px;
    align-items: stretch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    padding: 8px 12px;
    color: var(--terracotta-dark);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--terracotta);
}

h1,
h2,
.display {
    font-family: "Fraunces", serif;
    letter-spacing: -0.055em;
}

h1 {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: clamp(3rem, 8vw, 7.2rem);
    line-height: 0.9;
}

.hero-copy {
    max-width: 650px;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 42px;
    background: var(--olive);
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    opacity: 0.88;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(20, 18, 13, 0.82));
}

.hero-floating {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 250, 241, 0.9);
    padding: 20px;
    backdrop-filter: blur(16px);
}

.hero-floating strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 950;
}

.hero-floating span {
    color: var(--muted);
    font-weight: 800;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    padding: 18px;
}

.stat strong {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 2.15rem;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 850;
}

.section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 0.95;
}

.section-heading p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

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

.property-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(255, 250, 241, 0.78);
    box-shadow: 0 16px 44px rgba(48, 34, 20, 0.08);
    transition: 0.25s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.property-media {
    position: relative;
    aspect-ratio: 1.18 / 1;
    overflow: hidden;
}

.property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-media img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.92);
    padding: 8px 11px;
    color: var(--terracotta-dark);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-status {
    right: 14px;
    left: auto;
    background: rgba(122, 51, 30, 0.92);
    color: #fffaf1;
}

.property-body {
    padding: 20px;
}

.property-body h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.18;
}

.property-meta,
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.property-meta span,
.features span {
    border-radius: 999px;
    background: rgba(40, 59, 45, 0.08);
    padding: 8px 10px;
    color: var(--olive);
    font-size: 0.78rem;
    font-weight: 900;
}

.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.price-line strong {
    color: var(--terracotta-dark);
    font-size: 1rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(255, 250, 241, 0.82);
    padding: 28px;
    box-shadow: 0 18px 52px rgba(48, 34, 20, 0.08);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 26px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    padding: 14px 15px;
    color: var(--ink);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.gallery {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.gallery img {
    width: 100%;
    height: 260px;
    border-radius: 28px;
    object-fit: cover;
}

.gallery img:first-child {
    height: 536px;
}

.detail-title {
    margin: 28px 0 0;
    font-size: clamp(2.7rem, 6vw, 6rem);
    line-height: 0.93;
}

.alert {
    margin-bottom: 18px;
    border-radius: 22px;
    padding: 15px 18px;
    font-weight: 850;
}

.alert-success {
    border: 1px solid rgba(30, 123, 77, 0.25);
    background: rgba(30, 123, 77, 0.1);
    color: #185f3c;
}

.alert-error {
    border: 1px solid rgba(182, 52, 52, 0.22);
    background: rgba(182, 52, 52, 0.09);
    color: #8c2424;
}

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

.service-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.5);
    padding: 22px;
}

.service-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.site-footer {
    margin-top: 70px;
    background: var(--olive);
    color: white;
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 28px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h3 {
    margin-top: 0;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .gallery {
        grid-template-columns: 1fr;
    }

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

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

    .hero-card,
    .hero-card img {
        min-height: 460px;
    }

    .gallery img,
    .gallery img:first-child {
        height: 320px;
    }
}

@media (max-width: 760px) {
    .nav-links {
        position: fixed;
        top: 78px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 26px;
        background: rgba(255, 250, 241, 0.96);
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .nav-actions .button {
        display: none;
    }

    .stats,
    .property-grid,
    .service-grid,
    .footer-grid,
    .filters,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    h1 {
        font-size: clamp(3rem, 17vw, 4.4rem);
    }
}
