/* =====================================================
   SPIRARE DOURO — Stylesheet
   Forest & Earth · Cormorant Garamond + Jost
   ===================================================== */

/* ─ Custom Properties ─────────────────────────────── */
:root {
  --c-bg:      oklch(94.5% 0.015 82);
  --c-ink:     oklch(22%   0.035 143);
  --c-ink-50:  oklch(48%   0.032 143);
  --c-sage:    oklch(57%   0.085 148);
  --c-sand:    oklch(74%   0.042 77);
  --c-cream:   oklch(97.5% 0.007 82);
  --c-rule:    oklch(87%   0.016 82);

  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Jost', system-ui, sans-serif;

  --nav-h: 68px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─ Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  text-wrap: pretty;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
em { font-style: italic; }
strong { font-weight: 400; }

/* ─ Layout ────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}
.container--narrow {
  max-width: 740px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.rule {
  width: 48px;
  height: 1px;
  background: var(--c-sage);
  margin-block: 28px;
}

/* ─ Typography ────────────────────────────────────── */
.t-kicker {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
}
.t-h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
}
.t-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-ink-50);
}
.t-lead p + p { margin-top: 18px; }

/* ─ Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 40px;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  background: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn:hover { background: var(--c-ink); color: var(--c-cream); }
.btn--fill { background: var(--c-ink); color: var(--c-cream); }
.btn--fill:hover { background: var(--c-sage); border-color: var(--c-sage); }
.btn--ghost {
  border-color: oklch(97.5% 0.007 82 / 0.55);
  color: var(--c-cream);
}
.btn--ghost:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }

/* ─ Navigation ────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 52px);
  transition: background 0.55s var(--ease), border-color 0.55s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid {
  background: oklch(97.5% 0.007 82 / 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--c-rule);
}
.nav__logo {
  font-family: var(--f-serif);
  font-size: 17px;
  letter-spacing: 0.22em;
  font-weight: 300;
  color: var(--c-cream);
  transition: color 0.4s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav--solid .nav__logo { color: var(--c-ink); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}
.nav__links a {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(97.5% 0.007 82 / 0.85);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav--solid .nav__links a { color: var(--c-ink-50); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.32s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--c-cream); }
.nav--solid .nav__links a[aria-current="page"] { color: var(--c-ink); }

.nav__reserve {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid oklch(97.5% 0.007 82 / 0.55);
  padding: 9px 22px;
  color: var(--c-cream);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav--solid .nav__reserve { border-color: var(--c-ink); color: var(--c-ink); }
.nav__reserve:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.nav--solid .nav__reserve:hover { background: var(--c-ink); color: var(--c-cream); }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--c-cream);
  transition: background 0.3s, transform 0.35s var(--ease), opacity 0.25s;
}
.nav--solid .nav__burger span { background: var(--c-ink); }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--c-ink);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease);
}
.nav__drawer.open { opacity: 1; pointer-events: auto; }
.nav__drawer a {
  font-family: var(--f-serif);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--c-cream);
  transition: color 0.2s;
}
.nav__drawer a:hover { color: var(--c-sand); }
.nav__drawer-reserve {
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid oklch(97.5% 0.007 82 / 0.35);
  padding: 12px 32px;
  color: var(--c-cream);
  transition: background 0.3s, color 0.3s;
}
.nav__drawer-reserve:hover { background: var(--c-cream); color: var(--c-ink); }

@media (max-width: 768px) {
  .nav__links, .nav__reserve { display: none; }
  .nav__burger { display: flex; }
}

/* ─ Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -18% 0;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    oklch(15% 0.03 145 / 0.55) 0%,
    oklch(12% 0.03 145 / 0.35) 45%,
    oklch(8%  0.02 145 / 0.80) 100%
  );
}
/* Hero body — always visible; subtle entrance via page-root transition */
.hero__body {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-cream);
  padding-inline: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero__pre { color: oklch(90% 0.01 82 / 0.8); }
.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(58px, 16vw, 148px);
  font-weight: 200;
  letter-spacing: 0.13em;
  line-height: 0.88;
}
.hero__tagline {
  font-family: var(--f-serif);
  font-size: clamp(17px, 2.5vw, 24px);
  font-style: italic;
  font-weight: 300;
  opacity: 0.88;
  margin-top: 4px;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-cream);
  opacity: 0.5;
  z-index: 2;
}
.hero__scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--c-cream), transparent);
  transform-origin: top center;
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: scaleY(1); opacity: 0.8; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ─ Intro ─────────────────────────────────────────── */
.intro { padding-block: clamp(72px, 12vw, 148px); }

/* ─ Pillars (three feature cards, dark bg) ────────── */
.pillars { background: var(--c-ink); }
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(400px, 55vw, 560px);
  cursor: default;
}
.pillar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.pillar:hover .pillar__img { opacity: 0.48; transform: scale(1.05); }
.pillar__inner {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--c-cream);
}
.pillar__num {
  color: var(--c-sage);
  margin-bottom: auto;
}
.pillar__foot { margin-top: auto; }
.pillar__line {
  width: 0;
  height: 1px;
  background: var(--c-sage);
  margin-bottom: 20px;
  transition: width 0.55s var(--ease);
}
.pillar:hover .pillar__line { width: 36px; }
.pillar__title {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 12px;
}
.pillar__body {
  font-size: 14px;
  line-height: 1.75;
  color: oklch(78% 0.012 82);
  max-width: 280px;
}

/* ─ Booking ───────────────────────────────────────── */
.booking { padding-block: clamp(72px, 12vw, 148px); text-align: center; }
.booking__sub {
  color: var(--c-ink-50);
  margin-top: 12px;
  margin-bottom: 52px;
  font-size: 15px;
  font-style: italic;
  font-family: var(--f-serif);
}
.booking__panel {
  max-width: 860px;
  margin-inline: auto;
}
.booking__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-rule);
  margin-bottom: 32px;
  border: 1px solid var(--c-rule);
}
@media (min-width: 560px) {
  .booking__fields { grid-template-columns: 1fr 1fr 1fr; }
}
.booking__field {
  background: var(--c-cream);
  padding: 18px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking__field label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ink-50);
}
.booking__field .value {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 300;
}
.booking__note {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-50);
  margin-bottom: 24px;
}

/* ─ Page header (sub-pages) ───────────────────────── */
.page-hdr {
  position: relative;
  height: 72svh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
}
.page-hdr__bg {
  position: absolute;
  inset: -14% 0;
  background-size: cover;
  background-position: center 35%;
  will-change: transform;
}
.page-hdr__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, oklch(18% 0.03 145 / 0.15) 0%, oklch(12% 0.03 145 / 0.72) 100%);
}
.page-hdr__body {
  position: relative;
  z-index: 2;
  color: var(--c-cream);
  padding-inline: clamp(20px, 5vw, 64px);
  padding-block-end: clamp(40px, 6vw, 72px);
  width: 100%;
}
.page-hdr__kicker { color: oklch(78% 0.012 82 / 0.85); margin-bottom: 16px; }
.page-hdr__title {
  font-family: var(--f-serif);
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 200;
  line-height: 1.0;
}

/* ─ Experiences grid ──────────────────────────────── */
.experiences-section { padding-block: clamp(60px, 10vw, 120px); }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
}
.exp-item {
  background: var(--c-bg);
  display: grid;
  grid-template-columns: 1fr;
}
.exp-item__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.exp-item__text {
  padding: clamp(28px, 4.5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.exp-item__num {
  font-family: var(--f-serif);
  font-size: 52px;
  font-weight: 200;
  color: var(--c-rule);
  line-height: 1;
}
.exp-item__title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 300;
}
.exp-item__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-ink-50);
}

@media (min-width: 720px) {
  .exp-item {
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
  }
  .exp-item__img { aspect-ratio: auto; height: 100%; }
  .exp-item:nth-child(even) .exp-item__img { order: 2; }
  .exp-item:nth-child(even) .exp-item__text { order: 1; }
}

/* ─ Pull quote ────────────────────────────────────── */
.pull-quote {
  background: var(--c-ink);
  padding-block: clamp(72px, 12vw, 140px);
  text-align: center;
}
.pull-quote p {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3.8vw, 40px);
  font-weight: 200;
  font-style: italic;
  color: var(--c-cream);
  line-height: 1.45;
  max-width: 740px;
  margin-inline: auto;
  padding-inline: 28px;
}
.pull-quote cite {
  display: block;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-style: normal;
  color: oklch(58% 0.03 82);
  margin-top: 28px;
  font-family: var(--f-sans);
}

/* ─ Valley page ───────────────────────────────────── */
.valley-body { padding-block: clamp(72px, 12vw, 148px); }
.valley-lead {
  font-family: var(--f-serif);
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--c-ink);
  margin-bottom: 32px;
}
.valley-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-block: 36px;
  border-block: 1px solid var(--c-rule);
  margin-block: 40px;
}
.coord-item { display: flex; flex-direction: column; gap: 5px; }
.coord-label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-ink-50);
}
.coord-value {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 300;
}

.arriving-section {
  background: var(--c-cream);
  padding-block: clamp(72px, 12vw, 120px);
}
.arriving-title {
  font-family: var(--f-serif);
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 300;
  margin-bottom: 24px;
}
.arriving-body {
  font-size: 16px;
  color: var(--c-ink-50);
  line-height: 1.85;
}

.seasons-section { padding-block: clamp(72px, 12vw, 120px); }
.seasons-title {
  font-family: var(--f-serif);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 300;
  margin-bottom: 48px;
}
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
}
@media (min-width: 720px) {
  .seasons-grid { grid-template-columns: repeat(4, 1fr); }
}
.season-card {
  background: var(--c-bg);
  padding: clamp(24px, 4vw, 40px);
}
.season-card__name {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 6px;
}
.season-card__range {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-bottom: 14px;
  font-family: var(--f-sans);
}
.season-card__body { font-size: 13px; color: var(--c-ink-50); line-height: 1.8; }

/* Map placeholder */
.map-block {
  width: 100%;
  height: 340px;
  background: var(--c-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--c-ink-50);
}
.map-block p {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--f-sans);
}

/* ─ Footer ────────────────────────────────────────── */
.footer {
  background: var(--c-ink);
  color: oklch(62% 0.02 143);
  padding-block: clamp(56px, 8vw, 80px);
  padding-inline: clamp(20px, 5vw, 64px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1280px;
  margin-inline: auto;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(35% 0.03 143);
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__logo {
  font-family: var(--f-serif);
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--c-cream);
  font-weight: 300;
}
.footer__tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 14px;
  margin-top: 8px;
}
.footer__nav { display: flex; flex-direction: column; gap: 16px; }
.footer__nav a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--c-cream); }
.footer__info { font-size: 14px; line-height: 2.1; font-style: normal; }
.footer__info a:hover { color: var(--c-cream); transition: color 0.2s; }
.footer__bottom {
  max-width: 1280px;
  margin-inline: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  opacity: 0.65;
}

/* ─ Animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.78s var(--ease), transform 0.78s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.22s; }
[data-delay="3"] { transition-delay: 0.32s; }

#page-root { transition: opacity 0.35s ease; }

.page-loading {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-loading span {
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-ink-50);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
