/* Monteburniano — single-property site
   Palette: "Forest & Verdigris" — deep forest ink, sage bone light, verdigris accent.
   Typography: Playfair Display (display/serif) + Work Sans (body/UI). */

/* Self-hosted fonts (latin subset) — no third-party font CDN, so visitor
   IP addresses are never sent to Google on page load (GDPR-relevant for
   an EU-facing site). See assets/fonts/local-fonts.css for the source. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/work-sans-variable.woff2') format('woff2');
}

:root {
  --ink: #14201a;
  --forest: #1f3327;
  --forest-2: #263f30;
  --bone: #eef1e9;
  --bone-2: #e3e8db;
  --white: #fbfcfa;
  --stone: #6f766a;
  --stone-soft: #97a08f;
  --accent: #2f6f62;
  --accent-2: #3d8877;
  --line: rgba(20, 32, 26, 0.12);
  --line-soft: rgba(20, 32, 26, 0.07);

  --bg: var(--bone);
  --bg-alt: var(--white);
  --surface-dark: var(--forest);
  --text: var(--ink);
  --text-soft: var(--stone);
  --text-on-dark: var(--bone);
  --text-on-dark-soft: var(--stone-soft);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --radius: 2px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1713;
    --bg-alt: #142019;
    --text: #eef1e9;
    --text-soft: #9aa393;
    --line: rgba(238, 241, 233, 0.14);
    --line-soft: rgba(238, 241, 233, 0.08);
    --surface-dark: #0a100c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.lede {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 46ch;
  line-height: 1.7;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(238, 241, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
@media (prefers-color-scheme: dark) {
  .nav.is-scrolled { background: rgba(15, 23, 19, 0.88); }
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  transition: color 0.4s ease;
}
.nav:not(.is-scrolled) .brand,
.nav:not(.is-scrolled) .navlinks a,
.nav:not(.is-scrolled) .langswitch a {
  color: var(--white);
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.navlinks {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.navlinks a {
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.4s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.navlinks a:hover { opacity: 0.7; }
.navcluster { display: flex; align-items: center; gap: 1.75rem; }
.langswitch { display: flex; gap: 0.5rem; font-size: 0.85rem; }
.langswitch a {
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.langswitch a.is-active { opacity: 1; font-weight: 600; }
.navtoggle { display: none; }

/* Mobile menu overlay: always fixed and off-screen by default, regardless of
   viewport width, so it never intrudes on the desktop layout. Only its
   trigger (navtoggle) and the desktop navlinks are gated by the breakpoint. */
.mobilemenu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--forest);
  display: flex; flex-direction: column; justify-content: center;
  gap: 2rem; padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.mobilemenu.is-open { transform: translateY(0); }
.mobilemenu a { color: var(--bone); font-family: var(--serif); font-size: 1.6rem; }
.mobilemenu .langswitch a { color: var(--stone-soft); font-family: var(--sans); font-size: 1rem; }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .navtoggle {
    display: block;
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px;
    position: relative;
  }
  .navtoggle span, .navtoggle span::before, .navtoggle span::after {
    position: absolute; left: 8px; right: 8px; height: 1.5px;
    background: currentColor; content: ''; transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav:not(.is-scrolled) .navtoggle { color: var(--white); }
  .navtoggle span { top: 19px; }
  .navtoggle span::before { top: -7px; }
  .navtoggle span::after { top: 7px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,19,0.35) 0%, rgba(15,23,19,0.15) 32%, rgba(15,23,19,0.78) 100%);
}
.hero__content {
  position: relative;
  color: var(--white);
  padding-top: clamp(5rem, 14vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  width: 100%;
}
.hero__content .wrap { max-width: 880px; margin: 0; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  color: var(--white);
  max-width: 680px;
}
.hero__sub {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(238, 241, 233, 0.88);
  max-width: 42ch;
  line-height: 1.6;
}
.hero__cta { margin-top: 1.9rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost {
  background: transparent;
  border-color: rgba(251, 252, 250, 0.55);
  color: var(--white);
}
.btn--ghost:hover { border-color: rgba(251, 252, 250, 0.9); background: rgba(251,252,250,0.08); }
.btn--dark {
  background: var(--forest);
  color: var(--bone);
}
.btn--dark:hover { background: var(--ink); }

/* ---------- Stat strip ---------- */
.statstrip {
  background: var(--forest);
  color: var(--bone);
}
.statstrip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}
.stat { border-left: 1px solid rgba(238,241,233,0.18); padding-left: 1.4rem; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--white); }
.stat__label { font-size: 0.82rem; color: var(--stone-soft); margin-top: 0.35rem; letter-spacing: 0.02em; }
@media (max-width: 800px) {
  .statstrip .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ---------- Section shell ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--surface-dark); color: var(--bone); }
.section--dark .lede { color: var(--stone-soft); }
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: block;
}
.section__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section__head .lede { margin-top: 0.9rem; }

/* ---------- Split (story) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.is-reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.is-reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); }
.split__body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 1.1rem; }
.split__body p + p { margin-top: 1rem; }
.split__body p { color: var(--text-soft); line-height: 1.75; }
@media (max-width: 860px) {
  .split, .split.is-reverse { grid-template-columns: 1fr; }
  .split.is-reverse .split__media { order: 0; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.9rem;
}
.gallery a { overflow: hidden; border-radius: var(--radius); position: relative; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.gallery a:hover img { transform: scale(1.045); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Two visions ---------- */
.visions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.vision {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vision__media { aspect-ratio: 4/3; overflow: hidden; }
.vision__media img { width: 100%; height: 100%; object-fit: cover; }
.vision__body { padding: clamp(1.5rem, 3vw, 2.2rem); flex: 1; display: flex; flex-direction: column; }
.vision__tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
.vision__body h3 { margin-top: 0.6rem; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.vision__body p { margin-top: 0.8rem; color: var(--text-soft); line-height: 1.7; flex: 1; }
.vision__figures { display: flex; gap: 1.6rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.vision__figures div span { display: block; }
.vision__figures .n { font-family: var(--serif); font-size: 1.15rem; }
.vision__figures .l { font-size: 0.75rem; color: var(--text-soft); }
.visions__note { text-align: center; margin-top: 1.8rem; font-size: 0.9rem; color: var(--text-soft); }
@media (max-width: 860px) { .visions { grid-template-columns: 1fr; } }

/* ---------- Fact clusters ---------- */
.clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.cluster__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.cluster__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.95rem; }
.cluster__row .k { color: var(--text-soft); }
.cluster__row .v { text-align: right; font-weight: 500; }
@media (max-width: 860px) { .clusters { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.distances {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem;
  margin-top: 1.6rem;
}
.distances div { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.distances .v { color: var(--text-soft); }

/* ---------- Price / CTA band ---------- */
.priceband {
  background: var(--forest);
  color: var(--bone);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.priceband__amount { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--white); }
.priceband__note { margin-top: 0.6rem; color: var(--stone-soft); font-size: 0.92rem; max-width: 42ch; line-height: 1.6; }
.priceband__actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
@media (max-width: 860px) { .priceband { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.85rem; color: var(--text-soft); }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 98, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.consent input { margin-top: 0.2rem; }
.formnote { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.9rem; }
.contactcard { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--bg-alt); }
.contactcard h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.contactcard .row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contactcard .row .k { color: var(--text-soft); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--stone-soft); padding: 3.2rem 0 2rem; font-size: 0.88rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer__brand { font-family: var(--serif); color: var(--bone); font-size: 1.1rem; margin-bottom: 0.6rem; }
.footer__col a { display: block; margin-bottom: 0.5rem; color: var(--stone-soft); transition: color 0.2s; }
.footer__col a:hover { color: var(--bone); }
.footer__bottom { border-top: 1px solid rgba(238,241,233,0.1); margin-top: 2.4rem; padding-top: 1.4rem; text-align: center; font-size: 0.78rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Render pair (day/night aerial renderings) ---------- */
.rendergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.rendergrid a, .rendergrid__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 10 / 7; }
.rendergrid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.rendergrid a:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .rendergrid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 12, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(238,241,233,0.1); border: 1px solid rgba(238,241,233,0.3);
  color: var(--bone); cursor: pointer; font-size: 1.3rem;
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.tag-list { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tag { font-size: 0.78rem; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); }

/* Utility classes replacing inline style="" attributes, so the pages can
   run under a strict style-src CSP with no 'unsafe-inline'. */
.clusters--stacked { grid-template-columns: 1fr; margin-top: 1.5rem; gap: 1rem; }
.img-rounded { border-radius: var(--radius); }
.img-rounded-mb { border-radius: var(--radius); margin-bottom: 1.5rem; }
.lede-note { margin-top: 1.2rem; font-size: 0.9rem; }
.link-underline { text-decoration: underline; }
.footer__col--brand { max-width: 280px; }

/* ---------- Land block (map + text) ---------- */
.landblock { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.landblock img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.landblock h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 0.9rem; }
.landblock p { color: var(--text-soft); line-height: 1.75; max-width: 56ch; }
@media (max-width: 700px) { .landblock { grid-template-columns: 1fr; } .landblock img { max-width: 320px; } }

/* ---------- Technical dossier page ---------- */
.docpage { max-width: 640px; margin: 0 auto; padding: 4rem 1.5rem; color: var(--text); }
.docpage h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.docpage .lede { margin-bottom: 2rem; }
.doclist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.docback { margin-top: 2.5rem; }

.rendergrid > a:only-child { grid-column: 1 / -1; max-width: 640px; }

.videoblock { margin-top: 3rem; max-width: 960px; margin-left: auto; margin-right: auto; }
.videoblock h3 { margin-bottom: 0.4rem; }
.videoblock video { width: 100%; aspect-ratio: 16 / 9; display: block; margin-top: 1rem; border-radius: var(--radius); background: #000; }

.rendergrid + .rendergrid { margin-top: 1rem; }
