/* ============================================================
   STAYA RÉSIDENCES — Shared site palette, typography, utilities
   Burgundy + Champagne — May 2026
   ============================================================ */

:root {
  /* Brand */
  --burgundy: #75162D;
  --dark-maroon: #560B18;
  --deep-wine: #3B010B;
  --champagne: #F2E5C6;
  --sand-gold: #F2D9A0;

  /* Surfaces */
  --paper: #FBF8F0;
  --paper-2: #F6F0E0;
  --line: rgba(117, 22, 45, 0.14);
  --line-strong: rgba(117, 22, 45, 0.32);
  --ink: #2A0A12;
  --ink-mid: rgba(42, 10, 18, 0.62);
  --ink-low: rgba(42, 10, 18, 0.40);

  /* Type */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'DM Sans', system-ui, sans-serif;

  /* Rhythm */
  --pad-x: clamp(28px, 5vw, 80px);
  --pad-y: clamp(80px, 10vw, 140px);

  /* Shadows */
  --shadow-soft: 0 1px 0 rgba(117, 22, 45, 0.08), 0 20px 56px -28px rgba(40, 10, 18, 0.20);
  --shadow-card: 0 1px 0 rgba(117, 22, 45, 0.10), 0 28px 64px -24px rgba(40, 10, 18, 0.30);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-weight: 400; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--burgundy); color: var(--champagne); }

/* ── Typography primitives ─────────────────────────────────── */
.eyebrow {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow.with-rule::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
}
.display {
  font-family: var(--serif); font-weight: 300; line-height: 0.96;
  letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; }
.lead {
  font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7;
  color: var(--ink-mid); max-width: 56ch; font-weight: 300;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; font-weight: 500;
  padding: 16px 28px; border-radius: 2px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--burgundy); color: var(--champagne); }
.btn-primary:hover { background: var(--dark-maroon); }
.btn-ghost { background: transparent; color: var(--burgundy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--burgundy); color: var(--champagne); border-color: var(--burgundy); }
.btn-ghost-light { background: transparent; color: var(--champagne); border-color: rgba(242, 229, 198, 0.35); }
.btn-ghost-light:hover { background: var(--champagne); color: var(--deep-wine); border-color: var(--champagne); }

/* ── i18n: show only active language ────────────────────────── */
html[data-lang="fr"] [lang="en"],
html[data-lang="en"] [lang="fr"] { display: none !important; }

/* ── Top nav (shared shell, overridden per-direction) ───────── */
.lang-toggle {
  display: inline-flex; align-items: center; font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  gap: 6px; opacity: 0.8;
}
.lang-toggle button {
  background: none; border: none; padding: 4px 6px; color: inherit;
  letter-spacing: inherit; font-weight: 500; opacity: 0.55;
  cursor: pointer; transition: opacity .2s;
}
.lang-toggle button.active { opacity: 1; }
.lang-toggle button:hover { opacity: 1; }
.lang-toggle .sep { opacity: 0.4; }

/* ── Reveal-on-scroll (CSS-only, opacity/translate) ─────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Decorative star ───────────────────────────────────────── */
.star { display: inline-block; font-size: 0.6em; vertical-align: middle; opacity: 0.7; }

/* ── Form ───────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 500;
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 14px; padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--burgundy);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ── Utility ────────────────────────────────────────────────── */
.no-wrap { white-space: nowrap; }
.tag-line {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--burgundy);
}
