/* ==========================================================================
   Base / Theme — warm editorial palette
   ========================================================================== */
:root {
  --bg: #faf6f0;
  --bg-alt: #f1e9dd;
  --text: #2b2420;
  --text-muted: #7a6f63;
  --border: rgba(43,36,32,0.12);
  --accent-1: #c1663b;
  --accent-2: #8a9a5b;
  --accent-3: #d4a24c;
  --card-bg: #ffffff;
  --nav-bg: rgba(250,246,240,0.78);
  --shadow: 0 24px 64px rgba(43,36,32,0.12);
  --font-serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --dur: 1s;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1a1512;
  --bg-alt: #221b16;
  --text: #f3ece1;
  --text-muted: #b3a696;
  --border: rgba(255,255,255,0.1);
  --card-bg: #241d18;
  --nav-bg: rgba(26,21,18,0.72);
  --shadow: 0 24px 64px rgba(0,0,0,0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1512;
    --bg-alt: #221b16;
    --text: #f3ece1;
    --text-muted: #b3a696;
    --border: rgba(255,255,255,0.1);
    --card-bg: #241d18;
    --nav-bg: rgba(26,21,18,0.72);
    --shadow: 0 24px 64px rgba(0,0,0,0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4, blockquote { font-family: var(--font-serif); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent-1); color: #fff; }

/* ==========================================================================
   Progress bar / Nav
   ========================================================================== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-2));
  z-index: 1000;
  transition: width .1s linear;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em;
  color: #fff;
  transition: color .4s var(--ease);
}
.nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex; gap: 32px; flex: 1; justify-content: center;
  font-size: 0.88rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  transition: color .4s var(--ease);
}
.nav.scrolled .nav-links { color: var(--text-muted); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  background: #fff; color: #2b2420;
  padding: 10px 20px; border-radius: 2px; white-space: nowrap;
  transition: transform .3s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.nav.scrolled .nav-cta { background: var(--accent-1); color: #fff; }
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s var(--ease); }
.nav.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; padding: 8px 24px 20px; gap: 4px; background: var(--nav-bg); border-top: 1px solid var(--border); }
.nav-mobile a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.nav-mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Shared helpers
   ========================================================================== */
.eyebrow {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-1); margin: 0 0 18px;
}
.eyebrow--light { color: var(--accent-3); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.15; margin: 0;
}
.section-head { max-width: 1240px; margin: 0 auto 60px; padding: 0 24px; }
.section-head-center { max-width: 640px; margin: 0 auto 56px; padding: 0 24px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 2px; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform .35s var(--ease), background .35s var(--ease), opacity .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); transform: translateY(-3px); }
.btn-ghost--light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost--light:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Hero — full bleed, Ken Burns
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: -6%;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-photo--sunset {
  background:
    linear-gradient(180deg, rgba(61,32,20,0.05) 0%, rgba(40,20,30,0.25) 55%, rgba(20,12,20,0.55) 100%),
    url("https://images.unsplash.com/photo-1771518667308-65113b49c29d?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}
@keyframes kenburns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.12) translateY(-1.5%); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,14,0.25) 0%, rgba(10,8,14,0.05) 32%, rgba(10,8,14,0.1) 60%, rgba(10,8,14,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 140px 24px 40px; color: #fff; }
.hero-title {
  display: flex; flex-direction: column; gap: 2px;
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; margin: 4px 0 30px;
}
.hero-title--accent {
  font-style: italic;
  background: linear-gradient(100deg, #ffe3ad, var(--accent-3) 60%, #f3c77c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 520px; margin: 0 auto 40px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; color: rgba(255,255,255,0.88); font-family: var(--font-sans); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: relative; z-index: 2; margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.scroll-hint-line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-hint-line::after {
  content: ""; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: #fff; animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================================
   About — editorial split
   ========================================================================== */
.about { max-width: 1240px; margin: 0 auto; padding: 140px 24px; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about-photo {
  margin: 0; aspect-ratio: 3/4; border-radius: 4px;
  background-image: url("https://images.unsplash.com/photo-1759223198981-661cadbbff36?q=80&w=1000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}
.about-quote {
  font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.45;
  margin: 0 0 28px; color: var(--text);
}
.about-text { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; max-width: 540px; margin: 0 0 40px; }
.about-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.about-stats > div { padding-top: 16px; border-top: 1px solid var(--border); min-width: 100px; }
.about-stats .num { display: block; font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; }
.about-stats .label { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   Rooms — bento grid
   ========================================================================== */
.rooms { max-width: 1240px; margin: 0 auto; padding: 100px 24px; }
.rooms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room-card { grid-column: span 2; cursor: pointer; }
.room-card--large { grid-column: span 2; }
.room-photo {
  aspect-ratio: 5/4; border-radius: 4px; overflow: hidden; position: relative;
  transition: transform .6s var(--ease);
}
.room-card:hover .room-photo { transform: scale(1.02); }
.room-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .5s var(--ease); }
.room-card:hover .room-photo::after { background: rgba(0,0,0,0.05); }
.room-photo { background-size: cover; background-position: center; }
.room-photo--1 { background-image: url("https://images.unsplash.com/photo-1721369483526-62f48a00b949?q=75&w=900&auto=format&fit=crop"); }
.room-photo--2 { background-image: url("https://images.unsplash.com/photo-1752051273638-8fe11bfaa10b?q=75&w=900&auto=format&fit=crop"); }
.room-photo--3 { background-image: url("https://images.unsplash.com/photo-1678266587841-ca65ff1b5b1d?q=75&w=900&auto=format&fit=crop"); }
.room-photo--4 { background-image: url("https://images.unsplash.com/photo-1758448756167-88dc934c58e4?q=75&w=900&auto=format&fit=crop"); }
.room-info { padding: 20px 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.room-info h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.room-info p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.88rem; flex-basis: 100%; }
.room-price { font-size: 0.85rem; color: var(--accent-1); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .room-card, .room-card--large { grid-column: span 2; }
}

/* ==========================================================================
   Experience — parallax full bleed
   ========================================================================== */
.experience {
  position: relative; min-height: 90vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.parallax-layer { position: absolute; left: 0; right: 0; top: -35%; height: 170%; will-change: transform; }
.parallax-layer--1 {
  background:
    linear-gradient(200deg, rgba(20,20,30,0.35), rgba(10,8,14,0.55)),
    url("https://images.unsplash.com/photo-1756680967373-c3205a8a8b31?q=75&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}
.parallax-layer--2 {
  background:
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(212,162,76,0.25), transparent 60%),
    radial-gradient(ellipse 50% 30% at 75% 60%, rgba(193,102,59,0.25), transparent 60%);
}
.experience-copy { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; color: #fff; }
.experience-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 20px; }
.experience-text { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.7; margin: 0 auto; max-width: 520px; font-family: var(--font-sans); }

/* ==========================================================================
   Story — alternating editorial spreads
   ========================================================================== */
.story { max-width: 1240px; margin: 0 auto; padding: 100px 24px; }
.story-row {
  display: flex; align-items: center; gap: 72px;
  padding: 64px 0; border-top: 1px solid var(--border);
}
.story-row:first-child { border-top: none; }
.story-row--reverse { flex-direction: row-reverse; }
.story-media { flex: 1 1 45%; aspect-ratio: 4/3; border-radius: 4px; }
.story-media { background-size: cover; background-position: center; }
.story-media--1 { background-image: url("https://images.unsplash.com/photo-1773158097622-3ca6544e55b2?q=75&w=1000&auto=format&fit=crop"); }
.story-media--2 { background-image: url("https://images.unsplash.com/photo-1751651054985-7dc01c37369c?q=75&w=1000&auto=format&fit=crop"); }
.story-media--3 { background-image: url("https://images.unsplash.com/photo-1743658849022-f8874e7a106d?q=75&w=1000&auto=format&fit=crop"); }
.story-copy { flex: 1 1 55%; }
.story-index { display: block; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 14px; }
.story-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; margin: 0 0 16px; }
.story-copy p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; max-width: 480px; margin: 0; }

@media (max-width: 800px) {
  .story-row, .story-row--reverse { flex-direction: column; gap: 28px; align-items: stretch; }
}

/* ==========================================================================
   Amenities — numbered list
   ========================================================================== */
.amenities { max-width: 1240px; margin: 0 auto; padding: 100px 24px; }
.amenities-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.amenity-item { padding: 40px 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.amenity-num { display: block; font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--accent-1); margin-bottom: 18px; }
.amenity-item h4 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 600; display: inline-block; position: relative; }
.amenity-item h4::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.amenity-item:hover h4::after { transform: scaleX(1); }
.amenity-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 800px) {
  .amenities-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials — crossfade carousel
   ========================================================================== */
.testimonials { max-width: 900px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.testimonial-stage { position: relative; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.testimonial {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.5; margin: 0;
  opacity: 0; transition: opacity .8s var(--ease);
  pointer-events: none;
}
.testimonial.active { opacity: 1; pointer-events: auto; }
.testimonial cite { display: block; margin-top: 24px; font-style: normal; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.02em; }
.testimonial-dots { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease); }
.dot.active { background: var(--accent-1); transform: scale(1.3); }

/* ==========================================================================
   Location
   ========================================================================== */
.location { max-width: 1240px; margin: 0 auto; padding: 100px 24px; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.location-text { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0 0 20px; }
.location-map {
  position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden;
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--border) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.map-pin { position: absolute; top: 42%; left: 55%; }
.map-pin span {
  position: relative; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-1);
}
.map-pin span::before, .map-pin span::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-1);
  animation: pinPulse 2.4s ease-out infinite;
}
.map-pin span::after { animation-delay: 1.2s; }
@keyframes pinPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Booking form
   ========================================================================== */
.booking { max-width: 900px; margin: 0 auto; padding: 100px 24px 140px; }
.booking-form {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: end;
  padding: 40px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg);
}
.booking-field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 160px; }
.booking-field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.booking-field input, .booking-field select {
  border: none; border-bottom: 1px solid var(--border); background: transparent;
  padding: 8px 2px; font-size: 1rem; color: var(--text); font-family: var(--font-sans);
  transition: border-color .3s var(--ease);
}
.booking-field input:focus, .booking-field select:focus { outline: none; border-color: var(--accent-1); }
.booking-submit { flex: 1 1 200px; }
.booking-confirm {
  max-height: 0; overflow: hidden; opacity: 0; text-align: center; margin: 0;
  color: var(--accent-2); font-size: 0.95rem; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease);
}
.booking-confirm.show { max-height: 60px; opacity: 1; margin-top: 24px; }

@media (max-width: 600px) {
  .booking-form { padding: 28px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 80px 24px 0; }
.footer-grid {
  max-width: 1240px; margin: 0 auto; padding-bottom: 60px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-logo { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; max-width: 280px; margin: 0; }
.footer-col h5 { margin: 0 0 18px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-1); }
.newsletter-form { display: flex; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.newsletter-form input { flex: 1; border: none; background: transparent; font-size: 0.92rem; color: var(--text); font-family: var(--font-sans); padding: 4px 0; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { background: none; border: none; color: var(--accent-1); font-size: 1.1rem; cursor: pointer; }

.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 24px 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem;
}
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-alt); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); }
.theme-icon { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-3)); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo, .scroll-hint-line::after, .map-pin span::before, .map-pin span::after { animation: none; }
  .parallax-layer { transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
