/* ==========================================================
   Villa Prana — styles
   Palette taken from the logo: sage green, warm cream, wood
   ========================================================== */
:root {
  --cream: #faf7ef;
  --sand: #efe8da;
  --sage: #6f8466;
  --sage-dark: #4c5c45;
  --forest: #2f3a2c;
  --wood: #b5733f;
  --ink: #2b2a26;
  --muted: #6b675e;
  --line: #ddd5c4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- language switching ---------- */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; color: var(--forest); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .75rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: 1rem;
  display: block;
}
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.5; color: var(--forest); }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--sage-dark); }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 400;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-solid:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-ghost { color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: rgba(250, 247, 239, .96);
  color: var(--forest);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--line);
}
.wordmark { font-family: var(--display); letter-spacing: .22em; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a.link { text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.nav a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang-switch {
  display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden;
  font-size: .72rem; letter-spacing: .12em;
}
.lang-switch button {
  background: none; border: 0; color: inherit; padding: .35rem .7rem; cursor: pointer; font: inherit;
}
.lang-switch button[aria-pressed="true"] { background: currentColor; }
.lang-switch button[aria-pressed="true"] span { color: var(--forest); }
.site-header:not(.scrolled) .lang-switch button[aria-pressed="true"] span { color: var(--forest); }
.site-header.scrolled .lang-switch button[aria-pressed="true"] span { color: var(--cream); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: .3rem; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  color: #fff; padding: 7rem 1.25rem 5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 22s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20,28,18,.38) 0%, rgba(20,28,18,0) 65%),
    linear-gradient(180deg, rgba(20,28,18,.5) 0%, rgba(20,28,18,.28) 40%, rgba(20,28,18,.6) 100%);
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-logo { width: min(300px, 62vw); margin: 0 auto 1.8rem; filter: drop-shadow(0 0 1px rgba(255,255,255,.6)) drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 400; margin-bottom: .2em; }
.hero h1 em { display: block; font-size: 1.25em; }
.hero .actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; opacity: .8; animation: bob 2.4s infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- mantra strip ---------- */
.mantra {
  background: var(--forest); color: var(--cream); padding: 1.5rem 0; text-align: center;
  font-family: var(--display); letter-spacing: .3em; font-size: clamp(.8rem, 1.6vw, 1rem);
}
.mantra span + span::before { content: "·"; margin: 0 1.1em; color: var(--sage); }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media .inset {
  position: absolute; width: 46%; aspect-ratio: 1; right: -8%; bottom: -10%;
  border: 8px solid var(--cream); border-radius: var(--radius); object-fit: cover;
}
.split.reverse .split-media .inset { right: auto; left: -8%; }

/* ---------- facts ---------- */
.facts { background: var(--sand); padding: 3rem 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.facts li { display: flex; flex-direction: column; align-items: center; gap: .55rem; font-size: .92rem; color: var(--forest); }
.facts svg { width: 34px; height: 34px; stroke: var(--sage); fill: none; stroke-width: 1.3; }
.facts strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; line-height: 1.1; }

/* ---------- slow-down trio ---------- */
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- full-bleed morning ---------- */
.fullbleed {
  position: relative; color: #fff; min-height: 85vh; display: flex; align-items: center;
  overflow: hidden;
}
.fullbleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fullbleed::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,32,22,.75), rgba(25,32,22,.15) 70%); }
.fullbleed .text { max-width: 560px; }
.fullbleed h2, .fullbleed .eyebrow { color: #fff; }
.fullbleed .quote { color: #e9efe2; }

/* ---------- rooms ---------- */
.rooms-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; height: clamp(420px, 60vw, 640px); }
.rooms-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.rooms-grid img:first-child { grid-row: span 2; }
.rooms-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; }

/* ---------- explore ---------- */
.explore { background: var(--forest); color: var(--cream); }
.explore h2, .explore h3 { color: var(--cream); }
.explore .eyebrow { color: #a9bb9f; }
.explore .aerial { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: var(--radius); margin: 3rem 0; }
.activities { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.activities li { border: 1px solid rgba(250,247,239,.35); border-radius: 999px; padding: .35rem 1rem; font-size: .88rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #223; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75); }
.small { font-size: .85rem; opacity: .75; }

/* ---------- day timeline ---------- */
.day { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.day::before { content: ""; position: absolute; left: 7.5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.day li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.4rem; padding: 1.1rem 0; position: relative; }
.day li::before {
  content: ""; position: absolute; left: calc(7.5rem - 5px); top: 1.75rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--sage);
}
.day .when { font-family: var(--display); font-size: .78rem; letter-spacing: .2em; color: var(--sage); padding-top: .45rem; text-align: right; padding-right: 1.4rem; }
.day p { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--forest); }

/* ---------- gallery ---------- */
.gallery { background: var(--sand); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.gallery-grid button:hover img { transform: scale(1.05); }
.gallery-grid button.wide { grid-column: span 2; }
.gallery-grid button.wide img { aspect-ratio: 2 / 1; height: 100%; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,22,16,.94);
  display: none; align-items: center; justify-content: center; padding: 3rem 4rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: var(--radius); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 1rem; line-height: 1; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .5rem; top: 50%; translate: 0 -50%; }

/* ---------- spirit ---------- */
.spirit { text-align: center; }
.spirit .container { max-width: 760px; }
.spirit img { width: 120px; margin: 0 auto 2rem; }
.spirit .mantra-big { font-family: var(--display); letter-spacing: .2em; color: var(--sage); font-size: clamp(1rem, 2vw, 1.3rem); margin: 2rem 0 0; }

/* ---------- contact ---------- */
.contact { position: relative; color: #fff; text-align: center; overflow: hidden; }
.contact > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28,36,25,.62); }
.contact h2, .contact .eyebrow { color: #fff; }
.contact .container { max-width: 680px; }
.contact .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- footer ---------- */
footer { background: var(--forest); color: rgba(250,247,239,.75); padding: 2.5rem 0; font-size: .85rem; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer .wordmark { color: var(--cream); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: var(--cream); color: var(--forest); padding: 2rem 2.4rem;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
  }
  .nav.open { transform: none; }
  .nav a.link { font-size: 1rem; }
  .nav .lang-switch button[aria-pressed="true"] span { color: var(--cream) !important; }
  .menu-toggle { position: relative; z-index: 60; }
  .site-header.menu-open { color: var(--forest); }
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .trio { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .split, .rooms-text { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { margin-bottom: 2.5rem; }
  .split-media .inset { right: 0; bottom: -8%; width: 42%; }
  .split.reverse .split-media .inset { left: 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr 1fr; height: 640px; }
  .rooms-grid img:first-child { grid-column: span 2; grid-row: auto; }
  .day::before { left: .45rem; }
  .day li { grid-template-columns: 1fr; gap: .3rem; padding-left: 2rem; }
  .day li::before { left: 0; top: 1.25rem; }
  .day .when { text-align: left; padding: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .explore .aerial { aspect-ratio: 4 / 3; }
  .lightbox { padding: 3rem .5rem; }
  .fullbleed::after { background: rgba(25,32,22,.6); }
}
