/* ————— Las Tres Casitas ————— */

:root {
  --cream: #f6f1e7;
  --cream-deep: #efe7d8;
  --ink: #22301f;
  --palm: #1e3a2f;
  --palm-soft: #2d4f40;
  --sand: #c9a86a;
  --sand-soft: #d8c39a;
  --white: #fdfbf6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

h1 { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

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

/* ————— Photo fallbacks ————— */
.ph { position: relative; overflow: hidden; background: var(--cream-deep); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-fallback::before {
  content: "";
  position: absolute; inset: 0;
}
.ph[data-tone="sea"].ph-fallback::before    { background: linear-gradient(165deg, #7db8b0 0%, #3f7f7a 55%, #1e3a2f 100%); }
.ph[data-tone="sand"].ph-fallback::before   { background: linear-gradient(165deg, #e8d7b5 0%, #c9a86a 60%, #8a6f3e 100%); }
.ph[data-tone="stone"].ph-fallback::before  { background: linear-gradient(165deg, #d8cfc0 0%, #a89a83 60%, #6d604c 100%); }
.ph[data-tone="forest"].ph-fallback::before { background: linear-gradient(165deg, #4e7a5e 0%, #2d4f40 55%, #16281f 100%); }
.ph[data-tone="river"].ph-fallback::before  { background: linear-gradient(165deg, #9ec7bd 0%, #4f8579 55%, #24443c 100%); }
.ph[data-tone="villa"].ph-fallback::before  { background: linear-gradient(165deg, #e3d3b4 0%, #b09468 55%, #6e5636 100%); }
.ph[data-tone="palm"].ph-fallback::before   { background: linear-gradient(165deg, #c3ce9d 0%, #7c9367 55%, #3c5233 100%); }

/* ————— Navigation ————— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  color: var(--white);
}
.nav.solid {
  background: rgba(246, 241, 231, 0.96);
  box-shadow: 0 1px 0 rgba(34, 48, 31, 0.08);
  color: var(--ink);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav-brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; line-height: 1.25; }
.nav-brand-main { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.06em; }
.nav-brand-sub { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.75; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a {
  color: inherit; text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav-links a:hover { border-color: currentColor; }
.nav-cta {
  color: inherit; text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 0.55rem 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav.solid .nav-cta:hover { background: var(--palm); color: var(--white); border-color: var(--palm); }
.nav:not(.solid) .nav-cta:hover { background: var(--white); color: var(--ink); }
.nav-toggle { display: none; }

/* ————— Hero ————— */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,24,0.42) 0%, rgba(20,30,24,0.18) 45%, rgba(20,30,24,0.55) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 1.5rem; }
.hero-content .eyebrow { color: var(--sand-soft); }
.hero-line { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-style: italic; margin: 1.6rem 0 2.4rem; opacity: 0.95; }
.btn-ghost {
  display: inline-block; color: var(--white); text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid rgba(253,251,246,0.8); padding: 0.9rem 2.4rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.hero-scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span {
  display: block; width: 1px; height: 56px;
  background: rgba(253,251,246,0.7);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ————— Statement ————— */
.statement { padding: clamp(5rem, 12vw, 9rem) 1.5rem; text-align: center; }
.statement-text {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300; line-height: 1.6; max-width: 46ch; margin: 0 auto;
}
.statement-text em { color: var(--palm-soft); }
.statement-rule { width: 56px; height: 1px; background: var(--sand); margin: 3rem auto 0; }

/* ————— Split sections ————— */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1400px; margin: 0 auto;
}
.split-media { aspect-ratio: 4 / 5; }
.split-media img { position: absolute; inset: 0; }
.split-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem 1.4rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(20,30,24,0.6));
  color: var(--white); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.split-reverse .split-media { order: 2; }
.split-body p { margin-bottom: 1.2rem; max-width: 54ch; }
.fact-list { list-style: none; margin-top: 1.8rem; border-top: 1px solid rgba(34,48,31,0.15); }
.fact-list li {
  padding: 0.75rem 0; border-bottom: 1px solid rgba(34,48,31,0.15);
  font-size: 0.85rem; letter-spacing: 0.08em;
}

/* ————— Bands ————— */
.band { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.5rem, 6vw, 6rem); max-width: 1500px; margin: 0 auto; }
.band-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); }
.band-lede { font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.band-dark {
  max-width: none; background: var(--palm); color: var(--cream);
}
.band-dark .band-head { color: var(--cream); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.card { aspect-ratio: auto; background: transparent; }
.card img { aspect-ratio: 4 / 3; width: 100%; position: relative; }
.card.ph-fallback::before { aspect-ratio: 4 / 3; position: relative; display: block; inset: auto; }
.card figcaption { padding: 1.3rem 0 0; font-size: 0.92rem; }
.card figcaption strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; margin-bottom: 0.4rem; letter-spacing: 0.02em;
}

/* ————— Full-bleed band ————— */
.bleed { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--white); }
.bleed-media { position: absolute; inset: 0; }
.bleed-media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 25, 0.45); }
.bleed-content { position: relative; z-index: 2; max-width: 640px; padding: 5rem clamp(1.5rem, 8vw, 8rem); }
.bleed-content .eyebrow { color: var(--sand-soft); }
.bleed-content p { font-size: 1.05rem; }

/* ————— Experiences ————— */
.exp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
  max-width: 1200px; margin: 0 auto;
}
.exp { border-top: 1px solid rgba(246,241,231,0.25); padding-top: 1.4rem; }
.exp-num { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--sand-soft); }
.exp h3 { margin-top: 0.6rem; color: var(--white); }
.exp p { font-size: 0.92rem; opacity: 0.85; }

/* ————— Casitas ————— */
.casita figcaption { display: flex; flex-direction: column; gap: 0.45rem; }
.casita-meta { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--palm-soft); }
.casita-rate {
  margin-top: 0.5rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(34,48,31,0.15);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand);
}

/* ————— Rates ————— */
.rate-rows { margin: 1.6rem 0 0.8rem; border-top: 1px solid rgba(34,48,31,0.2); max-width: 30rem; }
.rate-row {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(34,48,31,0.2);
  font-size: 0.9rem; letter-spacing: 0.06em;
}
.rate-row span:last-child { font-family: var(--serif); font-size: 1.15rem; }
.rate-note { font-size: 0.78rem; letter-spacing: 0.08em; opacity: 0.7; }

/* ————— Reserve ————— */
.reserve { background: var(--cream-deep); padding: clamp(4rem, 9vw, 7.5rem) 1.5rem; }
.reserve-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.reserve-form { margin-top: 2.5rem; text-align: left; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.reserve-form label {
  display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.2rem;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--palm-soft);
}
.reserve-form input, .reserve-form select, .reserve-form textarea {
  font-family: var(--sans); font-weight: 300; font-size: 0.95rem;
  color: var(--ink); background: var(--white);
  border: 1px solid rgba(34,48,31,0.2); padding: 0.8rem 1rem;
  outline: none; transition: border-color 0.3s ease; border-radius: 0;
}
.reserve-form input:focus, .reserve-form select:focus, .reserve-form textarea:focus { border-color: var(--sand); }
.btn-solid {
  display: block; width: 100%; cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream); background: var(--palm); border: 1px solid var(--palm);
  padding: 1rem 2rem; transition: background 0.3s ease, color 0.3s ease;
}
.btn-solid:hover { background: transparent; color: var(--palm); }
.reserve-alt { margin-top: 1.6rem; font-size: 0.85rem; }
.reserve-alt a { color: var(--palm); }

/* ————— Footer ————— */
.footer { background: var(--palm); color: var(--cream); text-align: center; padding: 3.5rem 1.5rem 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.8rem; }
.footer-brand .nav-brand-main { font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-bottom: 2rem; }
.footer-links a { color: inherit; text-decoration: none; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.85; }
.footer-links a:hover { opacity: 1; }
.footer-fine { font-size: 0.68rem; letter-spacing: 0.1em; opacity: 0.55; }

/* ————— Responsive ————— */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    background: var(--palm); color: var(--cream);
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; z-index: 99; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px; z-index: 101;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: currentColor; transition: transform 0.3s ease; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .exp-grid { grid-template-columns: 1fr; }
}
