/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5f1e6;
  --bg-2:      #e9e1cd;
  --paper:     #fffdf8;
  --ink:       #1c1f1a;
  --ink-soft:  #2b2e26;
  --ink-mute:  #6f7364;
  --accent:    #4a6741;
  --accent-2:  #b5652f;
  --accent-soft: rgba(74,103,65,.13);
  --whatsapp:  #25D366;
  --line:      rgba(28,31,26,.13);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-style: italic; font-weight: 500; margin-top: .6rem; }
.section-head p { color: var(--ink-mute); margin-top: 1rem; font-size: 1.05rem; }
.rooms-policy {
  display: inline-block; margin-top: 1.1rem !important; padding: .6rem 1rem;
  background: var(--accent-soft); color: var(--accent) !important;
  border-radius: 10px; font-size: .88rem !important; font-weight: 500;
}
.section-head.center { margin-inline: auto; text-align: center; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(28,31,26,.08), 0 1px 3px rgba(28,31,26,.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(28,31,26,.16), 0 10px 20px rgba(74,103,65,.18); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 14px 30px rgba(28,31,26,.1); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-small { padding: .68rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background-color .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.nav-logo strong { font-style: normal; font-weight: 600; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link { position: relative; font-size: .92rem; font-weight: 500; padding-block: .25rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav.is-scrolled {
  background: rgba(245,241,230,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28,31,26,.08);
  padding-block: .75rem;
}
.nav-burger {
  display: flex; flex-direction: column; gap: 5px; width: 26px; padding: .4rem;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile.is-open { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; font-style: italic; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-2); }
.hero-bg .photo-slot { width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-bg img.ambient-on { animation: ambientZoom 30s ease-in-out infinite; }
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.08) translate3d(0,0,0); }
  50%      { transform: scale(1.16) translate3d(-1%,-1%,0); }
}
.hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,31,26,.15) 0%, rgba(28,31,26,.1) 40%, rgba(28,31,26,.72) 100%);
}
.hero-inner { position: relative; padding-block: clamp(6rem, 14vw, 9rem) clamp(3rem, 7vw, 4.5rem); width: 100%; color: var(--paper); }
.hero-meta { display: flex; align-items: center; gap: .5rem; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; opacity: .92; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(74,103,65,.35); }
.hero-title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 500; max-width: 16ch; text-wrap: balance; color: var(--paper); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-title em { font-style: italic; color: #d9e6cf; }
.hero-sub { font-family: var(--sans); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin-top: 1.3rem; opacity: .92; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); opacity: .75;
}
.hero-scroll-cue span { width: 1px; height: 26px; background: currentColor; animation: scrollCue 2s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* =============================================================
   7. Photo slot (robust image placeholder)
   ============================================================= */
.photo-slot {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--paper) 65%);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft), filter .55s; }
.photo-slot.is-missing img { display: none; }
.photo-slot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 20% 0%, rgba(74,103,65,.14), transparent 60%);
  pointer-events: none;
}
.photo-slot .photo-fallback {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: var(--ink-mute); text-align: center; padding: 1rem;
}
.photo-slot.is-missing .photo-fallback { display: flex; }
.photo-slot .photo-fallback svg { width: 34px; height: 34px; opacity: .55; }
.photo-slot .photo-fallback span { font-size: .78rem; letter-spacing: .04em; }

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; gap: 2.5rem; }
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--accent); line-height: 1; }
.manifesto-text p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink-soft); font-weight: 300; line-height: 1.5; }
.manifesto-text p + p { margin-top: 1.2rem; }
@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 140px 1fr; align-items: start; }
}

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee-wrap { background: var(--accent); color: var(--paper); padding-block: 1.1rem; }
.marquee { overflow: hidden; position: relative; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.marquee-track .sep { font-style: normal; opacity: .55; }

/* =============================================================
   10. Rooms grid
   ============================================================= */
.rooms { background: var(--bg); }
.rooms-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.room-card {
  background: var(--paper); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.room-card:hover { box-shadow: 0 40px 70px -30px rgba(74,103,65,.35), 0 20px 40px -20px rgba(28,31,26,.25); }
.room-card .photo-slot { aspect-ratio: 4/3; }
.room-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.room-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.room-num { font-family: var(--sans); font-size: .75rem; color: var(--ink-mute); letter-spacing: .1em; }
.room-name { font-size: 1.4rem; font-style: italic; font-weight: 500; margin-top: .15rem; }
.room-specs { list-style: none; padding: 0; margin: .9rem 0 1.1rem; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; color: var(--ink-soft); }
.room-specs li { display: flex; align-items: center; gap: .55rem; }
.room-specs svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.room-price { font-size: .82rem; color: var(--ink-mute); }
.room-price strong { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-style: normal; }
.sofa-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; padding: .25rem .6rem; border-radius: 100px; background: var(--accent-soft); color: var(--accent); }
.sofa-badge.no { background: rgba(28,31,26,.06); color: var(--ink-mute); }

@media (min-width: 640px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rooms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .rooms-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   11. Gallery
   ============================================================= */
.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery-grid .photo-slot { border-radius: 18px; aspect-ratio: 4/3; }
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 1rem; }
  .gallery-grid .photo-slot:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .gallery-grid .photo-slot:nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .photo-slot:nth-child(3) { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .photo-slot:nth-child(4) { grid-column: span 3; grid-row: span 1; }
  .gallery-grid .photo-slot:nth-child(5) { grid-column: span 3; grid-row: span 1; }
  .gallery-grid .photo-slot { aspect-ratio: auto; }
}

/* =============================================================
   12. Activities
   ============================================================= */
.activities { background: var(--bg); }
.activities-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.activity-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; background: var(--paper); border-radius: 16px; border: 1px solid var(--line);
}
.activity-card .name { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.activity-card .distance { font-size: .85rem; color: var(--ink-mute); white-space: nowrap; }
@media (min-width: 720px) { .activities-grid { grid-template-columns: repeat(2, 1fr); } }

.amenities-note { display: flex; flex-wrap: wrap; gap: .6rem; }
.amenity-chip { font-size: .82rem; padding: .5rem .95rem; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* =============================================================
   13. Testimonials
   ============================================================= */
.testimonials { background: var(--accent); color: var(--paper); }
.testimonials .section-head h2 { color: var(--paper); }
.testimonials .section-head p { color: rgba(255,255,255,.75); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.testimonial-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 1.6rem; backdrop-filter: blur(6px); }
.testimonial-stars { color: #f0c869; letter-spacing: .1em; font-size: .95rem; margin-bottom: .7rem; }
.testimonial-text { font-size: .97rem; line-height: 1.6; opacity: .95; }
.testimonial-name { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }

/* =============================================================
   14. Booking form
   ============================================================= */
.booking { background: var(--paper); position: relative; overflow: hidden; }
.booking::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(50% 50% at 50% 30%, rgba(74,103,65,.14), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.booking-wrap { display: grid; gap: 2.5rem; position: relative; }
.booking-form { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.field { position: relative; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.form-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.form-note { font-size: .8rem; color: var(--ink-mute); }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
}
.form-row + .form-row { margin-top: 1.1rem; }

.booking-info { display: flex; flex-direction: column; gap: 1.3rem; }
.booking-info-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.booking-info-card h3 { font-size: 1.15rem; font-style: italic; margin-bottom: .5rem; }
.booking-info-card p { font-size: .92rem; color: var(--ink-mute); }

.noscript-banner { background: #fff4e0; border: 1px solid #e8c98a; color: #6b4d10; padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: .9rem; }

@media (min-width: 1024px) { .booking-wrap { grid-template-columns: 1.4fr 1fr; } }

/* =============================================================
   15. Location
   ============================================================= */
.location { background: var(--bg); }
.location-grid { display: grid; gap: 2rem; }
.location-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-info h3 { font-size: 1.6rem; font-style: italic; margin-bottom: .8rem; }
.location-info p { color: var(--ink-mute); margin-bottom: 1rem; }
.location-info .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,253,248,.75); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--paper); margin-bottom: .8rem; }
.footer-col h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,253,248,.5); margin-bottom: .9rem; }
.footer-col p, .footer-col a { font-size: .92rem; display: block; margin-bottom: .5rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; padding-top: 1.8rem; border-top: 1px solid rgba(255,253,248,.12); font-size: .8rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* =============================================================
   17. Floating WhatsApp
   ============================================================= */
.float-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .4s var(--ease-bounce);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; }

/* =============================================================
   18. Reveal on scroll
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   19. Responsive type scale tweaks
   ============================================================= */
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   20. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img.ambient-on { animation: none; }
  .hero-scroll-cue span { animation: none; }
}
