/* ============================================================
   Five Valley Residences — client.css
   fivevalleyresidences.com
   ============================================================ */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brown:        #99876e;
  --brown-dark:   #7a6a57;
  --brown-light:  #b5a48a;
  --brown-pale:   #e8e0d5;
  --white:        #ffffff;
  --off-white:    #f8f6f3;
  --light-grey:   #f2f0ed;
  --border:       #e0dbd4;
  --text-dark:    #1e1c1a;
  --text-mid:     #5a5550;
  --text-muted:   #9a9490;
  --sky-blue:     #d6e8f5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s;
}
nav.scrolled .nav-logo { color: var(--text-dark); }
.nav-logo span { font-weight: 600; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover,
nav.scrolled .nav-links a:hover { color: var(--brown); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch { display: flex; gap: 0.75rem; }
.lang-switch a {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
nav.scrolled .lang-switch a { color: var(--text-muted); }
.lang-switch a.active,
.lang-switch a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.6);
}
nav.scrolled .lang-switch a.active,
nav.scrolled .lang-switch a:hover {
  color: var(--brown) !important;
  border-color: var(--brown);
}

.nav-cta {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}
nav.scrolled .nav-cta {
  color: var(--brown-dark);
  border-color: var(--brown-light);
}
nav.scrolled .nav-cta:hover { background: var(--brown-pale); }

/* ── HAMBURGER BUTTON (mobile only) ──────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s;
  transform-origin: center;
}
nav.scrolled .nav-hamburger span { background: var(--text-dark); }

/* Open state — X icon */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ───────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 18, 16, 0.97);
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-drawer.open {
  opacity: 1;
}
.nav-drawer ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
.nav-drawer ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-drawer ul li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.nav-drawer ul a {
  display: block;
  padding: 1.4rem 3rem;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer ul a:hover { color: var(--white); }

.nav-drawer-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.nav-drawer-cta {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.75rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-drawer-cta:hover { background: rgba(255,255,255,0.1); }
.nav-drawer-lang {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.nav-drawer-lang a {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.nav-drawer-lang a.active { color: rgba(255, 255, 255, 0.9); }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

.hero-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #8bbcd8 0%, #b8d4e8 25%, #dceaf5 50%, #d0e4cc 75%, #b8d0b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Real image inside hero fallback */
.hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-fallback svg { opacity: 0.12; }

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Subtle vignette only at top and sides — no heavy bottom gradient */
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 16, 0.18) 0%,
    transparent 35%
  );
  pointer-events: none;
}

/* Frosted glass bar — full width, pinned to hero bottom */
.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  background: rgba(20, 18, 16, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.6rem 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-bar-location {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-bar-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 0.9s 0.5s forwards;
}

.hero-bar-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}
.hero-bar-title span { font-weight: 600; }

.hero-bar-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
  min-width: 200px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

/* Keep the scroll indicator — move it up from the bar */
.hero-scroll {
  position: absolute;
  bottom: 7rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s 1.3s forwards;
}
.hero-scroll span {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2s infinite;
}

/* ── KEY FACTS BAR ────────────────────────────────────────── */
#facts {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
.fact-item {
  text-align: center;
  padding: 2.2rem 1rem;
  border-right: 1px solid var(--border);
}
.fact-item:last-child { border-right: none; }
.fact-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--brown);
  line-height: 1;
  display: block;
}
.fact-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.45rem;
  display: block;
}

/* ── SECTION BASE ─────────────────────────────────────────── */
section { padding: 6rem 4rem; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1.1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}
.section-title em {
  font-style: italic;
  color: var(--brown);
}

.section-body {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  max-width: 540px;
}

/* ── SHARED LAYOUT HELPERS ────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.tall-image {
  height: 560px;
  overflow: hidden;
}
.tall-image img { width: 100%; height: 100%; object-fit: cover; }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
}
.img-placeholder span {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── INTRO ────────────────────────────────────────────────── */
#intro { background: var(--white); }

.intro-img-stack {
  position: relative;
  height: 540px;
}
.img-main {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 60px;
  overflow: hidden;
}
.img-accent {
  position: absolute;
  bottom: 0; right: -1.5rem;
  width: 54%;
  height: 195px;
  overflow: hidden;
  outline: 4px solid var(--white);
}
.img-main img,
.img-accent img { width: 100%; height: 100%; object-fit: cover; }

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.badge {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
  border: 1px solid var(--brown-light);
  padding: 0.38rem 0.85rem;
  background: var(--brown-pale);
}

/* ── SECOND HOME STATUS ───────────────────────────────────── */
#secondhome { background: var(--off-white); }

.usp-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.2rem;
}
.usp-point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.usp-point:first-child { border-top: 1px solid var(--border); }

.usp-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brown-light);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: right;
  padding-top: 0.1rem;
}
.usp-text strong {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.usp-text p {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ── RESIDENCES & GALLERY ─────────────────────────────────── */
#residences { background: var(--white); }

#gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 2.5rem 0 0.5rem;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  /* Extend gallery beyond section-inner max-width on desktop */
  margin-left: calc((100vw - 1200px) / -2);
  margin-right: calc((100vw - 1200px) / -2);
  padding-left: calc((100vw - 1200px) / 2);
  padding-right: calc((100vw - 1200px) / 2);
}
@media (max-width: 1200px) {
  #gallery {
    margin-left: -4rem;
    margin-right: -4rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
#gallery::-webkit-scrollbar { display: none; }

.gallery-item {
  flex-shrink: 0;
  width: 420px;
  height: 340px;
  overflow: hidden;
  border-radius: 0;
}
.gallery-item:first-child { width: 580px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .img-placeholder { height: 100%; }

.specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.spec-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--brown);
}
.spec-desc {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── SKI ──────────────────────────────────────────────────── */
#ski { background: var(--off-white); }

.ski-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.ski-areas {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.ski-area {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.ski-area:first-child { border-top: 1px solid var(--border); }

/* Right column — name and detail stacked */
.ski-area-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ski-time {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--brown);
  text-align: right;
  line-height: 1;
}

/* ski-name / ski-detail used in block HTML output */
.ski-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
}
.ski-detail {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── LOCATION ─────────────────────────────────────────────── */
#location { background: var(--white); }

.location-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}
.location-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--brown-light);
}

/* ── LIFESTYLE ────────────────────────────────────────────── */
#lifestyle { background: var(--light-grey); }

.seasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.season-card {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.season-card .img-placeholder { height: 100%; }
.season-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.season-card:hover img { transform: scale(1.04); }

/* Gradient + label overlay on each season card */
.season-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.65) 0%, transparent 55%);
  pointer-events: none;
}
.season-label {
  position: absolute;
  bottom: 1.8rem;
  left: 2rem;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ── ACCESSIBILITY ────────────────────────────────────────── */
#access { background: var(--white); }

.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.access-cities {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.access-city {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.access-city:first-child { border-top: 1px solid var(--border); }

.city-name {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.city-time {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brown);
}
.access-note {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-top: 1.8rem;
}
.access-map {
  height: 460px;
  overflow: hidden;
  background: var(--sky-blue);
}
.access-map img { width: 100%; height: 100%; object-fit: cover; }

/* ── FLOOR PLANS ──────────────────────────────────────────── */
#floorplans { background: var(--off-white); }

.floorplans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  margin-top: 3rem;
}

.fp-card {
  display: flex;
  flex-direction: column;
}

.fp-desc {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.4rem;
}

.fp-specs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fp-unit {
  position: relative;
}

.fp-unit--sold {
  overflow: hidden;
}

.fp-unit--sold::after {
  content: 'SOLD';
  position: absolute;
  right: -20px;
  bottom: 6px;
  width: 76px;
  background: var(--brown);
  color: var(--white);
  font-size: 0.38rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
  transform: rotate(-45deg);
}

.fp-unit-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 0.65rem;
}

.fp-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fp-specs li {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
}

.fp-specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brown-light);
  font-size: 0.6rem;
  top: 0.15rem;
}

.fp-image {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.fp-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.fp-image:hover img { transform: scale(1.02); }

/* ── FLOORPLAN LIGHTBOX ───────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(14, 12, 10, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.visible .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── CONTACT ──────────────────────────────────────────────── */
#contact {
  position: relative;
  z-index: 2;
  background: transparent;
  text-align: center;
}
#contact .section-inner { max-width: 620px; }
#contact .section-body {
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-top: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.72rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--brown); }

.form-field textarea {
  height: 90px;
  resize: vertical;
}
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2399876e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--brown);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  align-self: center;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--brown-dark); }

.privacy-note {
  font-size: 0.63rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.7;
}
.privacy-note a {
  color: var(--brown);
  text-decoration: none;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  position: relative;
  background: #99876e;
  /* No overflow:hidden — mountains bleed upward over the page intentionally */
}

/* Mountains SVG — anchored to footer bottom, bleeds upward over the brown bg */
.footer-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.10;
  z-index: 1;
  line-height: 0;
}
.footer-mountains img {
  width: 100%;
  height: auto;
  display: block;
}

/* All footer content sits above the mountain illustration */
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 2;
}

/* Ensure footer is tall enough for the full SVG + content */
footer { padding-bottom: 0; }

.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  padding: 3.5rem 4rem 1.5rem;
}

/* Right column — push footer-links to the right edge */
.footer-inner > div:last-child {
  display: flex;
  justify-content: flex-end;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.footer-logo span {
  font-weight: 600;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.45rem;
}

/* Pure International logo */
.footer-pure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.pure-logo-img {
  width: 80px;
  height: auto;
  display: block;
}
.pure-logo-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.5;
}
.pure-logo-text small {
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
}
.footer-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* Bottom bar — sits above the mountain SVG shapes */
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.57rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer-lang { display: flex; gap: 0.75rem; }
.footer-lang a {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-lang a.active,
.footer-lang a:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── UTILITY MODIFIERS ────────────────────────────────────── */

/* Fact number — smaller variant for two-line text */
.fact-num--small {
  font-size: 1.3rem;
  padding-top: 0.5rem;
  line-height: 1.25;
}

/* Section label / title / body centred variants */
.section-label--center { display: block; text-align: center; }
.section-title--center { text-align: center; }
.section-body--center  { max-width: 100%; text-align: center; margin: 0 auto; }
.section-body--mt      { margin-top: 1rem; }
.section-body--mt-lg   { margin-top: 1.8rem; }
.section-body--italic  { font-style: italic; }
.section-body--muted   { color: var(--text-muted); }

/* Centred section header block */
.section-header-centered {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* Reveal delay helpers (replaces inline transition-delay) */
.reveal--delayed { transition-delay: 0.2s; }
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* Tall image height variants */
.tall-image--ski      { height: 520px; }
.tall-image--location { height: 560px; }

/* Image placeholder colour variants */
.img-placeholder--sky    { background: var(--sky-blue); }
.img-placeholder--blue   { background: #dce8f2; }
.img-placeholder--sand   { background: var(--brown-pale); }
.img-placeholder--cool   { background: #e8eef4; }
.img-placeholder--warm   { background: #f0ede8; }
.img-placeholder--ice    { background: #e8f0f5; }
.img-placeholder--ski    { background: linear-gradient(180deg, #8bbcd8 0%, #aacce0 30%, #cce0f0 55%, #e0f0f8 75%, #d8ecf4 100%); }
.img-placeholder--alpine { background: linear-gradient(160deg, #c8d8b8, #8aaa70); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50%       { transform: scaleY(0.5); opacity: 0.25; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }

  /* Hide desktop nav items, show hamburger */
  .nav-links,
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile drawer visible when JS adds .open */
  .nav-drawer { display: flex; pointer-events: none; }
  .nav-drawer.open { pointer-events: all; }

  section { padding: 4rem 1.5rem; }
  #ski { padding: 4rem 1.5rem; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-item:nth-child(2) { border-right: none; }

  .two-col,
  .ski-layout,
  .location-layout,
  .access-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .intro-img-stack { height: 320px; }
  .tall-image,
  .access-map { height: 300px; }

  .ski-layout .tall-image { order: -1; }

  .seasons-grid { grid-template-columns: 1fr; }
  .floorplans-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Gallery bleeds to viewport edges on mobile */
  #gallery {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .gallery-item { width: 78vw; height: 240px; }
  .gallery-item:first-child { width: 88vw; }

  .season-card { height: 260px; }

  .footer-inner {
    padding: 2.5rem 1.5rem 1.5rem;
    grid-template-columns: 1fr;
  }
  .footer-inner > div:last-child { justify-content: flex-start; }
  .footer-pure { align-items: flex-start; }
  .footer-bottom {
    padding: 1rem 1.5rem 1.5rem;
  }

  .hero-bar {
    padding: 1.2rem 1.5rem;
    gap: 0.75rem;
  }
  .hero-bar-divider { display: none; }
  .hero-bar-location { width: 100%; }
  .hero-bar-title { font-size: 1rem; white-space: normal; }
  .hero-bar-tagline { font-size: 0.82rem; min-width: 0; width: 100%; }
  .hero-scroll { bottom: 7.5rem; right: 1.5rem; }
}

/* ── ENQUIRY MESSAGES ─────────────────────────────────────────────────────── */
.enquiry-msg {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid;
}
.enquiry-msg--success {
  color: #3a6b3a;
  background: #f0f7f0;
  border-color: #b8d8b8;
}
.enquiry-msg--error {
  color: #7a3a3a;
  background: #fdf4f4;
  border-color: #e8b8b8;
}
.enquiry-msg--error a {
  color: var(--brown);
  text-decoration: none;
}
