/* =========================================================
   DESIGN SYSTEM
========================================================= */

:root {
    --bg: #f4f1ea;
    --surface: #ffffff;
    --surface-soft: #ebe5da;
    --dark: #1c1c19;
    --text: #24241f;
    --muted: #6e6c64;
    --accent: #a47a50;
    --accent-dark: #7e5a37;
    --line: rgba(36, 36, 31, 0.12);
    --white: #ffffff;

    --heading: "Cormorant Garamond", Georgia, serif;
    --body: "Manrope", Arial, sans-serif;

    --container: 1180px;
    --header: 88px;

    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 36px;

    --shadow: 0 28px 80px rgba(35, 31, 25, 0.14);
    --transition: 0.3s ease;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header);
}

body {
    overflow-x: hidden;
    font-family: var(--body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    color: var(--white);
    background: var(--accent);
}

/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 108px 0;
}

.section-head {
    max-width: 860px;
    margin-bottom: 64px;
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-label,
.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.66);
}

.section-head h2,
.tour h2,
.location h2,
.contact h2 {
    font-family: var(--heading);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

.section-intro {
    max-width: 680px;
    margin-top: 22px;
    color: var(--muted);
}

.btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    border-color: rgba(36, 36, 31, 0.28);
}

.btn-secondary:hover {
    color: var(--white);
    background: var(--dark);
    border-color: var(--dark);
}

.btn-light {
    color: var(--dark);
    background: var(--white);
}

.btn-light:hover {
    background: #e9e3d8;
}

.play {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--dark);
    font-size: 8px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(6px);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    background: rgba(248, 246, 241, 0.88);
    border-bottom: 1px solid rgba(36, 36, 31, 0.06);
    backdrop-filter: blur(18px);
}

.navbar {
    min-height: var(--header);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
    transition:
        min-height var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.navbar.scrolled {
    min-height: 72px;
    background: rgba(244, 241, 234, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-sub {
    margin-top: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.42em;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 26px;
}

.menu a {
    position: relative;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
}

.menu a::after {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    content: "";
    background: var(--accent);
    transition: width var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    color: var(--white);
    background: var(--dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background var(--transition),
        transform var(--transition);
}

.nav-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(36, 36, 31, 0.08);
}

.menu-toggle span {
    width: 20px;
    height: 1px;
    background: var(--dark);
    transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding:
        calc(var(--header) + 52px)
        0
        78px;
    background: linear-gradient(135deg, #f8f6f1, #eee7da);
}

.hero-layout {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 560px);
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.hero-copy {
    max-width: 520px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.eyebrow::before {
    width: 36px;
    height: 1px;
    content: "";
    background: var(--accent);
}

.hero h1 {
    max-width: 520px;
    font-family: var(--heading);
    font-size: clamp(68px, 6.4vw, 104px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.hero h1 em {
    display: block;
    color: var(--accent);
    font-weight: 500;
}

.hero-text {
    max-width: 500px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 14px 20px;
    margin-top: 34px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.hero-benefits li:last-child {
    grid-column: 1 / -1;
}

.hero-benefits span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--accent);
}

.hero-visual {
    position: relative;
    width: 560px;
    max-width: 100%;
    min-width: 0;
    justify-self: end;
}

.hero-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 560px;
    min-height: 560px;
    overflow: hidden;
    border-radius: 38px 38px 150px 38px;
    box-shadow:
        0 32px 70px rgba(35, 31, 25, 0.16),
        0 10px 28px rgba(35, 31, 25, 0.08);
}

.hero-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.hero-frame:hover > img {
    transform: scale(1.02);
}

.hero-outline {
    position: absolute;
    z-index: 1;
    right: -34px;
    bottom: -30px;
    width: 72%;
    height: 68%;
    border: 1px solid rgba(164, 122, 80, 0.42);
    border-radius: 32px 32px 140px 32px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(27, 27, 24, 0.63);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.floating-card-top {
    top: 24px;
    left: 18px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
}

.floating-card small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 9px;
}

.floating-card-top strong {
    font-family: var(--heading);
    font-size: 19px;
}

.floating-card-bottom {
    right: 22px;
    bottom: 26px;
    gap: 12px;
    padding: 12px 16px;
}

.floating-card-bottom > span:last-child {
    display: grid;
}

.round-360 {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--dark);
    background: var(--white);
    font-size: 11px;
    font-weight: 800;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-one {
    top: 18%;
    left: -120px;
    width: 300px;
    height: 300px;
    background: rgba(164, 122, 80, 0.1);
}

.hero-orb-two {
    right: -150px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(164, 122, 80, 0.22);
}

/* =========================================================
   QUICK INFO
========================================================= */

.quick-info {
    background: var(--dark);
}

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

.quick-grid article {
    min-height: 118px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 24px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-grid article:last-child {
    border-right: 0;
}

.quick-number {
    color: var(--accent);
    font-family: var(--heading);
    font-size: 38px;
    font-weight: 600;
}

.quick-grid strong {
    color: var(--white);
    font-size: 13px;
}

.quick-grid p {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

/* =========================================================
   ABOUT
========================================================= */

.about-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.media-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.media-card img {
    min-height: 600px;
    object-fit: cover;
}

.about-copy {
    max-width: 540px;
}

.about-copy .lead {
    margin-bottom: 24px;
    font-family: var(--heading);
    font-size: 30px;
    line-height: 1.25;
}

.about-copy p:not(.lead) {
    margin-bottom: 20px;
    color: var(--muted);
}

.about-copy .text-link {
    margin-top: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 78px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats article {
    padding: 32px 26px;
    border-right: 1px solid var(--line);
}

.stats article:last-child {
    border-right: 0;
}

.stats strong {
    display: block;
    font-family: var(--heading);
    font-size: 48px;
    line-height: 1;
}

.stats span {
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   HOUSES
========================================================= */

.houses {
    background: var(--surface);
}

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

.house-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.house-media {
    position: relative;
    overflow: hidden;
}

.house-media img {
    height: 310px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.house-card:hover .house-media img {
    transform: scale(1.04);
}

.badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(28, 28, 25, 0.82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.house-body {
    padding: 28px;
}

.house-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.house-title h3 {
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 600;
}

.house-title > span {
    margin-top: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.house-body > p {
    min-height: 78px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.features strong,
.features span {
    display: block;
}

.features strong {
    font-size: 13px;
}

.features span {
    color: var(--muted);
    font-size: 10px;
}

/* =========================================================
   TOUR
========================================================= */

.tour {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 50%, rgba(164, 122, 80, 0.35), transparent 35%),
        linear-gradient(120deg, #1b1b18, #352e26);
}

.tour-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.tour-layout > div {
    max-width: 760px;
}

.tour p:not(.section-label) {
    max-width: 650px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   ADVANTAGES
========================================================= */

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--line);
}

.advantage-grid article {
    min-height: 270px;
    padding: 40px;
    background: var(--bg);
    transition: background var(--transition);
}

.advantage-grid article:hover {
    background: var(--surface);
}

.advantage-grid article > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.advantage-grid h3 {
    margin-top: 38px;
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.advantage-grid p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery {
    background: var(--surface);
}

.gallery-grid {
    display: grid;
    min-height: 940px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 14px;
}

.gallery-item {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.94);
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* =========================================================
   LOCATION
========================================================= */

.location-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 78px;
}

.location-copy {
    padding: 26px 0;
}

.location-copy > p:not(.section-label) {
    margin-top: 26px;
    color: var(--muted);
}

.distance-list {
    margin-top: 38px;
    border-top: 1px solid var(--line);
}

.distance-list li {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.distance-list strong {
    color: var(--accent);
}

.map-card {
    min-height: 580px;
    display: grid;
    place-items: center;
    align-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(135deg, #d8d1c4, #eee8dd);
    background-size: 44px 44px, 44px 44px, auto;
    text-align: center;
}

.map-card span {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.map-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
    color: var(--white);
    background: var(--dark);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 96px;
}

.contact-copy > p:not(.section-label) {
    max-width: 540px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.64);
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 48px;
}

.contact-details > div {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-details span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-form {
    padding: 44px;
    border-radius: var(--radius-lg);
    color: var(--text);
    background: var(--surface);
}

.contact-form > label,
.form-row label {
    display: block;
    margin-bottom: 18px;
}

.contact-form label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: 0;
    color: var(--text);
    background: #fbfaf7;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input,
.contact-form select {
    height: 54px;
    padding: 0 15px;
}

.contact-form textarea {
    min-height: 140px;
    padding: 14px 15px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(164, 122, 80, 0.12);
}

.consent {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 11px;
    color: var(--muted);
    font-size: 11px;
}

.consent input {
    width: auto;
    height: auto;
    margin-top: 3px;
    accent-color: var(--accent);
}

.consent span {
    margin: 0 !important;
    font-weight: 400 !important;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
    border: 0;
}

.form-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 76px 0 22px;
    color: rgba(255, 255, 255, 0.68);
    background: #11110f;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    align-items: center;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    color: var(--white);
}

.footer-top > p {
    max-width: 440px;
}

.footer-tour {
    color: var(--white);
    font-weight: 700;
}

.footer-tour:hover {
    color: var(--accent);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    padding: 48px 0;
}

.footer-links > div {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

/* =========================================================
   UTILITIES
========================================================= */

.back-to-top {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    opacity: 0;
    color: var(--white);
    background: var(--dark);
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    width: min(92vw, 1100px);
    max-height: 90vh;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: #111;
    color: var(--white);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.lightbox img {
    max-height: 78vh;
    object-fit: contain;
}

.lightbox p {
    padding: 14px 20px 18px;
}

.lightbox-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.62);
    font-size: 25px;
}
