/* Colors pulled from the cabin and its setting: forest green, dark log wood, red tin roof. */
:root {
  --wood: #2b1e17;
  --wood-2: #3d2b21;
  --rust: #b8492e;
  --rust-dark: #9a3a23;
  --cream: #f6f1e8;
  --sand: #ebe2d3;
  --forest: #1f3a2c;   /* main page background */
  --forest-2: #172e22; /* gallery background */
  --copper: #e8996f;   /* small labels on green */
  --ink: var(--cream);
  --muted: #bccab9;
  --line: rgba(246,241,232,.16);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: #3f5e4c var(--forest-2); }
::selection { background: var(--rust); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
body { font-family: var(--sans); color: var(--ink); background: var(--forest); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .02em; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; border: 1.5px solid transparent; cursor: pointer; }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--rust); color: #fff; }
.btn-solid:hover { background: var(--rust-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: #fff; color: var(--wood); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 20px max(16px, calc((100% - 1200px) / 2)); color: #fff; transition: background .35s, color .35s, padding .35s, box-shadow .35s; }
.nav.solid { background: rgba(31,58,44,.9); backdrop-filter: blur(12px); color: var(--cream); padding-block: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--serif); font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-photos { font-weight: 600; font-size: .92rem; position: relative; }
.nav-photos::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-photos:hover::after { transform: scaleX(1); }
.nav .short { display: none; }
.brand, .nav .btn { white-space: nowrap; }
.nav { gap: 16px; }
.nav-links { flex: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; background: center 40% / cover no-repeat; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,8,.45) 0%, rgba(20,12,8,0) 30%, rgba(20,12,8,.2) 55%, rgba(24,44,33,.92) 96%, var(--forest) 100%); }
.hero-content { position: relative; width: min(1200px, 100% - 32px); margin: 0 auto; padding-bottom: clamp(72px, 12vh, 140px); }
.hero-content > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-title { font-size: clamp(3.6rem, 12vw, 6rem); line-height: .92; margin: 14px 0 22px; text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.hero-sub { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { position: absolute; right: max(16px, calc((100% - 1200px) / 2)); bottom: 40px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Intro */
.intro { padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.intro-heading { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.intro-body p { font-size: 1.12rem; color: var(--muted); }
.intro-body p + p { margin-top: 1.1em; }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; /* one row, however many facts */ margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.fact { padding: 28px 8px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; }
.fact dd { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.fact dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Ticker */
.ticker { background: var(--wood); color: var(--cream); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); padding: 0 28px; white-space: nowrap; }
.ticker i { flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Features */
.features { padding: clamp(80px, 11vw, 140px) 0; display: grid; gap: clamp(80px, 11vw, 150px); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.feature.flip .feature-img { order: 2; }
.feature-img { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-body h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 18px; }
.feature-body p:last-child { color: var(--muted); font-size: 1.08rem; max-width: 30rem; }

/* Amenities */
.amenities { background: var(--wood); color: var(--cream); padding: clamp(80px, 11vw, 140px) 0; }
.amenities .section-head h2 { max-width: 16ch; }
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.amenity-col h3 { font-size: 1.6rem; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(246,241,232,.18); }
.amenity-col ul { list-style: none; display: grid; gap: 12px; }
.amenity-col li { position: relative; padding-left: 22px; color: rgba(246,241,232,.82); }
.amenity-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }

/* Gallery */
.gallery-section { background: var(--forest-2); padding: clamp(80px, 11vw, 140px) 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.g-item { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; border-radius: 4px; background: var(--forest); }
.g-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(6n+4), .g-item:nth-child(6n+5), .g-item:nth-child(6n+6) { grid-column: span 2; }
.gallery { grid-auto-flow: dense; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.05); opacity: .9; }
.g-item:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

/* Good to know */
.faq { padding: clamp(80px, 11vw, 140px) 0; }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 90px); }
.faq-item { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-item dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px; }
.faq-item dd { color: var(--muted); max-width: 34rem; }

/* CTA */
.cta { position: relative; color: #fff; padding: clamp(110px, 16vw, 200px) 0; overflow: hidden; }
.cta-img { position: absolute; inset: 0; background: center / cover no-repeat; }
/* Fixed backgrounds break on iPad/iPhone Safari (the photo gets blown up), so only use them with a real mouse */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) { .cta-img { background-attachment: fixed; } }
/* 17, 23… photos: stretch the last one across the row so there is no empty cell */
@media (min-width: 901px) { .g-item:nth-child(6n+5):last-child { grid-column: 1 / -1; } }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,8,.85), rgba(20,12,8,.35)); }
.cta-content { position: relative; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 20px; }
.cta-address { font-weight: 700; font-size: 1.15rem; }
.cta-text { max-width: 32rem; opacity: .85; margin-top: 8px; }

/* Footer */
.footer { background: var(--wood); color: var(--cream); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer .muted { color: rgba(246,241,232,.55); font-size: .9rem; }
.footer a:hover { color: #f3d9c4; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,10,7,.95); display: flex; align-items: center; justify-content: center; animation: fade .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: min(1200px, 100% - 140px); text-align: center; }
.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: rgba(255,255,255,.75); margin-top: 14px; font-size: .9rem; }
.lightbox button { position: absolute; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Scroll reveal: only sections below the fold at load get the .pre state */
.reveal { transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(32px); }
.reveal.pre.in { opacity: 1; transform: none; }

/* Hero title letters rise in one by one */
.hero-content > .hero-title { opacity: 1; transform: none; animation: none; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); animation: rise .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * 45ms); }
.hero-sub { animation-delay: .6s !important; }
.hero-actions { animation-delay: .75s !important; }

/* Feature photos wipe open as they arrive; parallax inside */
.feature-img { clip-path: inset(0 0 0 0 round 6px); transition: clip-path 1.4s var(--ease); }
.feature.pre .feature-img { clip-path: inset(12% 12% 12% 12% round 6px); }
.feature.pre.in .feature-img { clip-path: inset(0 0 0 0 round 6px); }
.feature-img img { height: calc(100% + 80px); margin-top: -40px; }
.feature-body > * { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.feature.pre .feature-body > * { opacity: 0; transform: translateY(20px); }
.feature.pre.in .feature-body > * { opacity: 1; transform: none; }
.feature.pre.in .feature-body > :nth-child(2) { transition-delay: .12s; }
.feature.reveal { transform: none; opacity: 1; }

/* Gallery tiles scale up gently */
.g-item.reveal.pre { transform: translateY(24px) scale(.96); }
.g-item.reveal.pre.in { transform: none; }

/* Buttons: arrow nudge + soft lift */
.btn-solid { box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(0,0,0,.6); }
.btn-arrow { width: 16px; height: 16px; margin-left: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn-solid:hover .btn-arrow { transform: translateX(4px); }

/* Subtle film grain for warmth */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Tablet */
@media (max-width: 900px) {
  .intro-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-img { order: 0; }
  .facts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .fact:nth-child(4) { border-left: 0; padding-left: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-list { grid-template-columns: 1fr; }
  .g-item:nth-child(6n+4), .g-item:nth-child(6n+5) { grid-column: span 1; }
}

/* Phone */
@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav .full { display: none; }
  .nav .short { display: inline; }
  .nav .btn-arrow { display: none; }
  .brand { font-size: 1.15rem; min-width: 0; line-height: 1.15; white-space: normal; text-wrap: balance; } /* long names wrap to two lines */
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { border-left: 0; padding-left: 8px; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .gallery { grid-auto-rows: 140px; gap: 8px; }
  .lightbox figure { max-width: calc(100% - 24px); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-content > * { opacity: 1; transform: none; }
}
