/* scroll text fade (js/scrolltext.js) */
.sf { transition: opacity .35s cubic-bezier(0.2,0,0,1); will-change: opacity; }
/* timeline mock cards — driven continuously by scroll (js/scrolltext.js) */
.mock-anim { will-change: transform, opacity; transform-origin: center 60%; }

/* =============================================================
   arbusteo — site vitrine
   Built on the M3 arbusteo design tokens (colors_and_type.css).
   This sheet adds the marketing palette + bespoke section layouts.
   ============================================================= */

:root {
  /* Marketing palette — exact seeds from the brief */
  --green-deep:   #2E5D34;   /* CTA / final band / strong titles */
  --green-title:  #3b4c21;   /* hero + section H2 */
  --green-dark:   #536437;   /* card labels */
  --olive:        #7B8E5C;   /* primary seed */
  --olive-light:  #d5eab0;   /* soft fills, pastilles */
  --sage:         #A8B98C;   /* secondary */
  --ocre:         #855100;   /* tertiary accent */
  --ocre-light:   #ffb866;   /* warm highlight */
  --ocre-bg:      #fcefdc;   /* very light clay surface */
  --cream:        #EEEDDB;   /* parchment surface */
  --cream-light:  #fbfae8;   /* near-white cream */
  --paper:        #ffffff;
  --ink:          #2b2e22;   /* body text */
  --ink-soft:     #5d614f;   /* secondary text, gris-vert */
  --line:         #e2e3d2;   /* hairline dividers on cream */

  --shadow-1: 0 1px 2px rgba(40,50,20,.06), 0 1px 3px rgba(40,50,20,.10);
  --shadow-2: 0 2px 6px rgba(40,50,20,.07), 0 8px 24px rgba(40,50,20,.08);
  --shadow-3: 0 10px 30px rgba(40,50,20,.10), 0 4px 10px rgba(40,50,20,.06);

  --r-card: 28px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-dec: cubic-bezier(0.05, 0.7, 0.1, 1);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: "Roboto Flex", "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* keep the wordmark lowercase no matter what */
.no-caps { text-transform: none !important; }

/* ---------- Layout helpers --------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; overflow: hidden; }
.section--cream { background: var(--cream); }
.section--cream-light { background: var(--cream-light); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--olive);
}
.h2 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--green-title);
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .lead { margin: 18px auto 0; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: .2px;
  border-radius: 999px; border: 0; cursor: pointer;
  padding: 0 28px; height: 56px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn-primary { background: var(--green-deep); color: var(--cream-light); box-shadow: var(--shadow-2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); background: #28522e; }
.btn-tonal {
  background: transparent; color: var(--green-dark);
  border: 1.5px solid var(--olive); height: 56px;
}
.btn-tonal:hover { background: rgba(123,142,92,.10); }
.btn-ocre { background: var(--ocre-light); color: #3a2400; box-shadow: var(--shadow-2); }
.btn-ocre:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); background: #ffc77e; }
.btn-cream { background: var(--cream-light); color: var(--green-deep); box-shadow: var(--shadow-2); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn-sm { height: 44px; font-size: 15px; padding: 0 22px; }
.btn-block { width: 100%; }

/* ---------- Decorative foliage (filigrane) ----------------------------- */
.leaf {
  position: absolute; pointer-events: none; z-index: 0;
  color: var(--olive); opacity: .07;
}
.leaf svg { width: 100%; height: 100%; }
.section > .wrap { position: relative; z-index: 1; }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px; display: flex; align-items: center;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251,250,232,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 14px rgba(40,50,20,.05);
}
.nav { display: flex; align-items: center; gap: 24px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 26px; height: 26px; }
.brand .word {
  font-weight: 500; font-size: 22px; letter-spacing: .3px;
  color: var(--green-title); line-height: 1;
}
.brand .word::first-letter { text-transform: none; }

.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--green-deep); background: rgba(123,142,92,.10); }
.nav-links a.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--olive); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* login link — quiet text action sitting before the primary CTA */
.login-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--green-deep);
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.login-link .material-symbols-outlined { font-size: 19px; }
.login-link:hover { background: rgba(123,142,92,.12); color: var(--green-title); }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.lang .material-symbols-outlined { font-size: 18px; opacity: .7; }
.lang button {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--ink-soft); padding: 2px 2px; transition: color .2s var(--ease);
}
.lang button.on { color: var(--green-deep); font-weight: 700; }
.lang .sep { width: 1px; height: 14px; background: var(--outline, #bdbfb4); display: inline-block; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--green-title); }

/* mobile menu */
.mobile-menu { display: none; }

@media (max-width: 1360px) {
  .nav-links { display: none; }
  .nav-actions .lang { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }

  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: var(--cream-light); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu .mm-inner { padding: 16px var(--gutter) 28px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-menu a {
    padding: 14px 8px; font-size: 17px; font-weight: 500; color: var(--green-title);
    border-bottom: 1px solid var(--line);
  }
  /* footer block: vertical button stack, primary CTA first */
  .mobile-menu .mm-foot {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 10px; margin-top: 22px;
  }
  .mobile-menu .mm-foot .btn { width: 100%; }
  .mobile-menu a.btn-primary { color: var(--cream-light); }
  .mobile-menu a.mm-login {
    border-bottom: 0; color: var(--green-deep);
  }
  .mobile-menu a.mm-login:hover { background: rgba(123,142,92,.10); }
  .mobile-menu .mm-lang {
    display: inline-flex; justify-content: center; align-items: center;
    gap: 10px; margin-top: 6px; padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu .mm-lang button { font-size: 15px; padding: 6px 8px; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; padding-top: 132px; padding-bottom: clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(213,234,176,.45), transparent 60%),
    var(--cream-light);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-weight: 700; letter-spacing: -1.2px;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02;
  color: var(--green-title); text-wrap: balance;
}
.hero-sub {
  margin-top: 22px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5;
  color: var(--ink-soft); max-width: 30ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-link-down {
  display: inline-flex; align-items: center; gap: 6px;
}

/* hero product preview */
.preview {
  position: relative; aspect-ratio: 5 / 4.4; width: 100%;
  background: var(--paper); border-radius: var(--r-card);
  box-shadow: var(--shadow-3); border: 1px solid var(--line);
  overflow: hidden;
}
.preview-top {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--cream-light);
}
.preview-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.preview-top .ttl { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.preview-top .spacer { flex: 1; }
.preview-top .chip-mini {
  font-size: 11px; font-weight: 600; color: var(--green-dark);
  background: var(--olive-light); padding: 3px 10px; border-radius: 999px;
}

/* stylised estate map */
.estate-map { position: absolute; inset: 51px 0 0 0; background:
   linear-gradient(180deg, #f4f6e9, #eef2df); overflow: hidden; }
.estate-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-pin {
  position: absolute; width: 30px; height: 30px; transform: translate(-50%,-50%);
  display: grid; place-items: center;
}
.map-pin .pin-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-deep); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.map-pin.is-active .pin-dot { background: var(--ocre); }
.map-pin .pulse {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ocre); opacity: .6;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%{transform:scale(.6);opacity:.6} 100%{transform:scale(1.8);opacity:0} }
@media (prefers-reduced-motion: reduce){ .map-pin .pulse{ animation: none; } }

/* element fiche card popping from a pin */
.fiche {
  position: absolute; right: 16px; bottom: 16px; width: 56%;
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-3);
  border: 1px solid var(--line); overflow: hidden;
}
.fiche-illu {
  height: 84px; background: linear-gradient(160deg, #e7efd2, #d5eab0);
  display: grid; place-items: center; position: relative;
}
.fiche-illu .material-symbols-outlined { font-size: 52px; color: var(--olive); }
.fiche-body { padding: 12px 14px 14px; }
.fiche-name { font-size: 15px; font-weight: 600; color: var(--green-title); }
.fiche-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.attr {
  font-size: 11px; font-weight: 500; color: var(--ink-soft);
  background: var(--cream); border-radius: 999px; padding: 3px 9px;
}
.state-pill {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 11px;
  font-size: 11px; font-weight: 700; color: #2c5a32;
  background: #dff0d4; padding: 4px 10px; border-radius: 999px;
}
.state-pill .d { width: 7px; height: 7px; border-radius: 50%; background: #4f9a57; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
  .preview { max-width: 460px; margin: 8px auto 0; }
}

/* =============================================================
   shared card primitive
   ============================================================= */
.card {
  background: var(--paper); border-radius: var(--r-card);
  box-shadow: var(--shadow-2); border: 1px solid var(--line);
  padding: 28px;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--olive-light); color: var(--green-dark); margin-bottom: 18px;
}
.card-icon .material-symbols-outlined { font-size: 28px; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--green-dark); letter-spacing: -.2px; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* reveal on scroll — transform-only so content is NEVER hidden (screenshot/throttled-iframe safe);
   it simply rises into place in a live browser. */
.reveal-on .reveal { transform: translateY(22px); transition: transform .7s var(--ease-dec); }
.reveal-on .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal-on .reveal { transform: none; transition: none; } }
