/* Mountain Club at Alpine Lakes — design prototype
   Palette: basalt (dark), snow (light), fir, mist, larch (the one accent:
   the gold of the subalpine larches around Leavenworth each October). */
:root {
  --basalt: #1b211e;
  --fir: #2c3a32;
  --snow: #f3f5f2;
  --mist: #c3cbc6;
  --stone: #59635d;
  --larch: #c79a3b;
  --larch-deep: #8a6212;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--snow);
  color: var(--basalt);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }
body.is-locked { overflow: hidden; }
.zoom { all: unset; cursor: zoom-in; display: block; height: 100%; }
.zoom:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; max-width: var(--measure); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--snow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8em 1.5em; border: 1px solid currentColor;
  font: 500 0.95rem/1 var(--body); letter-spacing: 0.02em; text-decoration: none;
  background: transparent; color: inherit; cursor: pointer; border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--snow); color: var(--basalt); border-color: var(--snow); }
.btn-solid, .btn-tour { background: var(--larch); border-color: var(--larch); color: var(--basalt); }
.btn-solid:hover, .btn-tour:hover { background: var(--snow); border-color: var(--snow); }
.text-link { text-decoration: none; border-bottom: 1px solid var(--larch); padding-bottom: 2px; font-weight: 500; }
.text-link:hover { color: var(--larch-deep); }

/* Header: transparent over media, solid once scrolled */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 18px var(--gutter); color: var(--snow);
  transition: background-color .3s, padding .3s;
}
.site-header.is-solid { background: rgba(27, 33, 30, .94); padding-block: 12px; backdrop-filter: blur(6px); }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.wordmark-main { font: 400 1.45rem/1 var(--display); }
.wordmark-sub { font-size: .78rem; letter-spacing: .08em; opacity: .8; margin-top: 4px; }
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a { text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--larch); }
.nav-group { position: relative; }
.nav-sub {
  position: absolute; top: 100%; left: -16px; min-width: 180px; padding: 10px 16px;
  background: rgba(27, 33, 30, .96); display: none; flex-direction: column;
}
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: .55em 1.1em; font: 500 .9rem var(--body); }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--basalt); color: var(--snow);
  padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a:not(.btn) { font: 400 2rem/1.35 var(--display); text-decoration: none; }
.drawer .btn { margin-top: 24px; align-self: flex-start; background: var(--larch); color: var(--basalt); border-color: var(--larch); }
.drawer-contact { color: var(--mist); }

@media (max-width: 900px) {
  .site-nav, .site-header > .btn-tour { display: none; }
  .menu-toggle { display: inline-block; position: relative; z-index: 70; }
  body.menu-open .site-header { background: var(--basalt); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; padding-top: calc(5.5rem + 24px); color: var(--snow); display: flex; align-items: flex-end; overflow: hidden; background: var(--basalt); }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%); }
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 9vh, 96px); max-width: 1100px; }
.hero-copy p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 36rem; margin-top: 1.1rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 9vh, 96px); z-index: 2;
  background: rgba(0,0,0,.25); color: var(--snow); border: 1px solid rgba(243,245,242,.6);
  border-radius: 999px; padding: .5em 1em; font: 500 .85rem var(--body); cursor: pointer;
}
.hero-short { min-height: 78svh; }

/* Sections */
.section { padding: clamp(72px, 12vw, 160px) var(--gutter); }
.section-dark { background: var(--basalt); color: var(--snow); }
.section-dark p { color: #dfe4e0; }
.wrap { max-width: 1320px; margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head p { margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Statement: the mountain's numbers set as a sentence */
.statement { max-width: 1100px; }
.statement p { font: 400 clamp(1.7rem, 3.6vw, 3rem)/1.25 var(--display); max-width: none; margin: 0; }
.statement p + p { margin-top: 1.4rem; font: 400 1.1rem/1.65 var(--body); max-width: var(--measure); color: var(--stone); }

/* Seasons: the one signature moment */
.seasons { position: relative; min-height: 100svh; color: var(--snow); overflow: hidden; background: var(--basalt); display: flex; align-items: flex-end; }
.season-media { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.season-media.is-active { opacity: 1; }
.season-media video, .season-media img { width: 100%; height: 100%; object-fit: cover; }
.seasons::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.seasons-inner { position: relative; z-index: 1; padding: 120px var(--gutter) clamp(48px, 9vh, 96px); width: 100%; }
.season-switch { display: inline-flex; border: 1px solid rgba(243,245,242,.7); border-radius: 999px; padding: 4px; margin-bottom: 2rem; }
.season-switch button {
  background: none; border: 0; color: var(--snow); font: 500 1rem var(--body); padding: .6em 1.4em; border-radius: 999px; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.season-switch button[aria-pressed="true"] { background: var(--snow); color: var(--basalt); }
.season-panel[hidden] { display: none; }
.season-panel h2 { max-width: 14ch; }
.season-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 1.1rem 2.5rem; }
.season-list li { border-top: 1px solid rgba(243,245,242,.45); padding-top: .7rem; }
.season-list strong { display: block; font-weight: 500; }
.season-list span { font-size: .92rem; opacity: .85; }
@media (max-width: 600px) { .season-list { grid-template-columns: 1fr; } }

/* Cabins split */
.cabins { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cabin { text-decoration: none; display: block; }
.cabin-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.cabin-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.cabin:hover .cabin-img img { transform: scale(1.03); }
.cabin h3 { margin-top: 1.2rem; }
.cabin p { color: var(--stone); margin: .4rem 0 0; }
@media (max-width: 760px) { .cabins { grid-template-columns: 1fr; } .cabin-img { aspect-ratio: 4 / 3; } }

/* Amenity rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-card { text-decoration: none; }
.rail-card .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--fir); }
.rail-card img { width: 100%; height: 100%; object-fit: cover; }
.rail-card h3 { font-size: 1.45rem; margin-top: 1rem; }
.rail-card p { font-size: .95rem; margin-top: .35rem; color: var(--mist); }
.rail-tag { font-size: .8rem; color: var(--larch); }
.rail-controls { display: flex; gap: 8px; }
.rail-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; font-size: 1.1rem; }

/* Full-bleed band with copy */
.band { position: relative; min-height: 88svh; display: flex; align-items: center; color: var(--snow); overflow: hidden; }
.band > img, .band > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.1) 100%); }
.band-copy { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 760px; }
.band-copy p { font-size: 1.15rem; margin-top: 1.2rem; }

/* Photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 220px); gap: 12px; }
.mosaic button { padding: 0; border: 0; background: var(--mist); overflow: hidden; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.mosaic button:hover img { transform: scale(1.03); }
.m-a { grid-column: span 7; grid-row: span 3; }
.m-b { grid-column: span 5; grid-row: span 2; }
.m-c { grid-column: span 5; grid-row: span 1; }
.m-d { grid-column: span 4; grid-row: span 2; }
.m-e { grid-column: span 4; grid-row: span 2; }
.m-f { grid-column: span 4; grid-row: span 2; }
/* mirrored block for longer mosaics: g sits left, h and i stack right */
.m-g { grid-column: span 5; grid-row: span 3; }
.m-h { grid-column: span 7; grid-row: span 2; }
.m-i { grid-column: span 7; grid-row: span 1; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; grid-auto-flow: dense; }
  .mosaic > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .mosaic > :first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
  .mosaic > .m-g { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* Gallery page: masonry columns keep each photo's own shape */
.gallery-grid { columns: 3 300px; column-gap: 12px; }
.gallery-grid button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--mist); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery-grid img { width: 100%; height: auto; transition: transform 1s ease; }
.gallery-grid button:hover img { transform: scale(1.03); }
.gallery-grid button:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }
.gallery-count { color: var(--stone); font-size: .95rem; margin-top: .6rem; }
.section-dark .gallery-count { color: var(--mist); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,18,16,.96); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(243,245,242,.6); color: var(--snow); border-radius: 999px; padding: .5em 1em; cursor: pointer; font: 500 .9rem var(--body); }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 16px; bottom: 16px; }
.lb-next { right: 16px; bottom: 16px; }

/* Page intro (inner pages) */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; }
.intro p { font-size: 1.15rem; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* Model listings */
.models { display: grid; gap: clamp(56px, 8vw, 110px); }
.model { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.model:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.model:nth-child(even) .model-img { order: 2; }
.model-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.model-img img { width: 100%; height: 100%; object-fit: cover; }
.model-tier { color: var(--stone); font-size: .95rem; margin-bottom: .4rem; }
.model-specs { list-style: none; padding: 0; margin: 1.2rem 0; border-top: 1px solid var(--mist); }
.model-specs li { padding: .55rem 0; border-bottom: 1px solid var(--mist); }
.model-price { font: 400 1.7rem/1.2 var(--display); margin: 1.2rem 0 .2rem; }
.model-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1rem; }
@media (max-width: 800px) { .model, .model:nth-child(even) { grid-template-columns: 1fr; } .model:nth-child(even) .model-img { order: 0; } }

/* Amenities page: alternating feature rows */
.feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 130px); }
.feature:nth-of-type(even) { grid-template-columns: 1fr 1.5fr; }
.feature:nth-of-type(even) .feature-media { order: 2; }
.feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fir); }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-season { color: var(--larch-deep); font-size: .9rem; font-weight: 500; margin-bottom: .6rem; }
.section-dark .feature-season { color: var(--larch); }
.feature h3 { margin-bottom: .8rem; }
@media (max-width: 800px) { .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; } .feature:nth-of-type(even) .feature-media { order: 0; } }

/* Maps */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.map-card { margin: 0; }
.map-card.wide { grid-column: 1 / -1; }
.map-card button { padding: 0; border: 0; background: var(--mist); cursor: zoom-in; width: 100%; }
.map-card img { width: 100%; height: auto; }
.map-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; flex-wrap: wrap; }
.map-card figcaption strong { font-weight: 500; }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } }

/* Drive times */
.times { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--mist); }
.times div { padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--mist); }
.times strong { display: block; font: 400 1.9rem/1.1 var(--display); margin-bottom: .3rem; }
.times span { color: var(--stone); font-size: .95rem; }
@media (max-width: 800px) { .times { grid-template-columns: 1fr 1fr; } }

/* Tour form */
.tour { position: relative; color: var(--snow); background: var(--basalt); overflow: hidden; }
.tour-media { position: absolute; inset: 0; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.tour-inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.tour-intro p { color: #e3e7e4; font-size: 1.1rem; margin-top: 1.2rem; }
.tour-contact a { color: var(--larch); }
.tour-form { display: grid; gap: 18px; background: rgba(27,33,30,.78); padding: clamp(20px, 3vw, 36px); backdrop-filter: blur(4px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tour-form label { display: grid; gap: 6px; font-size: .9rem; color: #dfe4e0; }
.tour-form input:not([type=checkbox]), .tour-form select, .tour-form textarea {
  font: 400 1rem var(--body); color: var(--snow); background: rgba(243,245,242,.06);
  border: 0; border-bottom: 1px solid rgba(243,245,242,.5); padding: .65em .2em; border-radius: 0; width: 100%;
}
.tour-form select option { color: var(--basalt); }
.tour-form input:focus, .tour-form select:focus, .tour-form textarea:focus { outline: none; border-bottom-color: var(--larch); background: rgba(243,245,242,.1); }
.tour-form [aria-invalid="true"] { border-bottom-color: #e8a28f; }
.tour-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tour-form legend { font-size: .9rem; color: #dfe4e0; margin-bottom: 8px; }
.chip { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; border: 1px solid rgba(243,245,242,.45); border-radius: 999px; padding: .45em 1em; cursor: pointer; }
.chip:has(input:checked) { background: var(--snow); color: var(--basalt); border-color: var(--snow); }
.chip input { accent-color: var(--larch); margin: 0; }
.chip:has(input:focus-visible) { outline: 2px solid var(--larch); outline-offset: 2px; }
.tour-form .btn-solid { justify-self: start; padding: 1em 2em; }
.form-note { margin: 0; min-height: 1.4em; color: var(--larch); }
@media (max-width: 860px) { .tour-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #121614; color: var(--mist); padding: 56px var(--gutter) 28px; font-size: .95rem; }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-inner p { margin: 0 0 .3rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--snow); }
.footer-inner nav { display: flex; flex-direction: column; gap: .3rem; }
.footer-name { font: 400 1.4rem/1.2 var(--display); color: var(--snow); }
.footer-fine { max-width: 1320px; margin: 40px auto 0; font-size: .8rem; color: #8f9993; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Small screens: keep the video control clear of the hero buttons,
   keep the Close button above the open drawer, and darken season text backdrops */
@media (max-width: 900px) {
  body.menu-open .site-header { z-index: 61; }
}
@media (max-width: 700px) {
  .video-toggle { bottom: auto; top: 84px; }
  .hero { padding-top: calc(84px + 2.6rem + 24px); }
  .seasons::after { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.7) 100%); }
}
