:root {
    --bg: #f6f4ef;
    --bg-soft: #f1eee7;
    --white: #ffffff;
    --text: #2e392f;
    --muted: #647268;
    --brand: #3f5a45;
    --brand-dark: #334938;
    --line: #d8ddd4;
    --shadow: 0 16px 30px rgba(46, 57, 47, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0 0 0.5rem;
    line-height: 1.1;
    font-family: "Cormorant Garamond", serif;
    color: var(--text);
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(1150px, 92vw);
    margin-inline: auto;
}

.section {
    padding: 4.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-family: "Inter", sans-serif;
    color: var(--muted);
}

.muted {
    background: var(--bg-soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 244, 239, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.brand-mark {
    font-size: 1.6rem;
    color: var(--brand);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    letter-spacing: 0.1em;
    font-size: 1rem;
}

.brand-text small {
    margin-top: 0.35rem;
    font-size: 0.67rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-size: 0.83rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--brand);
}

.primary-nav a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 40px;
    height: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span:not(.sr-only) {
    width: 25px;
    height: 2px;
    background: var(--brand);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero {
    padding: 2rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.kicker {
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-content p {
    max-width: 50ch;
    color: #445146;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.hero-image-wrap {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
}

.hero-image-wrap img,
.carousel-image {
    height: 100%;
    object-fit: cover;
}

.carousel {
    position: relative;
    outline: none;
}

.carousel:focus-visible {
    box-shadow: 0 0 0 3px rgba(63, 90, 69, 0.35), var(--shadow);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.55);
}

.carousel-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.carousel-control.prev {
    left: 0.8rem;
}

.carousel-control.next {
    right: 0.8rem;
}

.carousel-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    padding: 0.72rem 1.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    border-color: #b8c1b4;
    color: var(--text);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.housing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.housing-card {
    background: var(--white);
    border: 1px solid #e5e8df;
    box-shadow: var(--shadow);
}

.housing-card > img {
    height: 250px;
    object-fit: cover;
}

.housing-media {
    height: 250px;
    border-bottom: 1px solid #e5e8df;
}

.housing-media .carousel-image {
    height: 100%;
}

.card-body {
    padding: 1.4rem;
}

.facts {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
}

.facts strong {
    display: block;
    color: var(--text);
}

.split {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split img,
.split-media {
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    min-height: 320px;
}

.split img,
.split-media .carousel-image {
    object-fit: cover;
}

.list {
    margin: 0;
    padding-left: 1.1rem;
}

.sales-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.3rem;
    align-items: stretch;
}

.sales-copy {
    background: #efeee8;
    border: 1px solid #dde3d6;
    padding: 1.4rem;
}

.sales-gallery {
    min-height: 360px;
    border-radius: 0.7rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sales-gallery img {
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.farmshop-details {
    margin-top: 1.2rem;
    background: var(--white);
    border: 1px solid #dde3d6;
    padding: 1.25rem;
}

.farmshop-details h3,
.farmshop-details h4 {
    margin-bottom: 0.6rem;
}

.farmshop-list {
    margin-bottom: 1rem;
}

.prices {
    text-align: center;
}

.price-grid {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.price-grid article {
    background: var(--white);
    border: 1px solid #e3e7de;
    padding: 1.25rem;
}

.price {
    color: var(--brand);
    font-weight: 600;
}

.contact-area {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-form {
    background: var(--white);
    border: 1px solid #dce2d8;
    padding: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-row {
    margin-bottom: 0.9rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    border: 1px solid #c9d2c6;
    background: #fcfcf9;
    padding: 0.68rem 0.8rem;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid #8fa696;
    border-color: #8fa696;
}

.form-status {
    margin: 0.7rem 0 0;
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--brand);
}

.gallery {
    padding-bottom: 3.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f2f0ea;
    padding: 1.3rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    text-align: center;
}

.footer-grid p {
    margin: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .split,
    .sales-layout,
    .contact-layout,
    .price-grid,
    .housing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sales-gallery {
        min-height: 280px;
    }

    .sales-gallery img {
        min-height: 280px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: rgba(246, 244, 239, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.4rem 1rem 1rem;
        display: none;
    }

    .primary-nav.open {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .hero {
        padding-top: 1.2rem;
    }

    .hero-image-wrap {
        min-height: 320px;
    }

    .section {
        padding: 3.3rem 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
