/* ==========================================================================
   Glacier Lodge & Suites — design system
   Modern alpine-lodge: deep glacier blues, snow whites, a warm cedar accent.
   Built to look good with very little photography, since almost none exists.
   ========================================================================== */

:root {
  /* Core palette */
  --ink:        #0f1d2b;   /* near-black navy, body text */
  --ink-soft:   #46586a;   /* secondary text */
  --glacier-900:#102a3c;
  --glacier-700:#17475f;
  --glacier-500:#2c7a9b;   /* primary accent */
  --glacier-300:#7db6cd;
  --glacier-100:#dcecf3;
  --snow:       #f6f9fb;
  --paper:      #ffffff;
  --cedar:      #b9743f;   /* warm counterpoint to all the blue */
  --cedar-soft: #f3e6da;
  --line:       #dbe4ea;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15,29,43,.06), 0 2px 8px rgba(15,29,43,.05);
  --shadow-md: 0 4px 12px rgba(15,29,43,.08), 0 12px 32px rgba(15,29,43,.08);
  --shadow-lg: 0 12px 40px rgba(15,29,43,.14);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--glacier-700); text-underline-offset: 3px; }
a:hover { color: var(--glacier-500); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .45rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ utilities -- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: .75rem; left: .75rem; z-index: 999;
  background: var(--paper); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 8px; box-shadow: var(--shadow-md);
}
:focus-visible { outline: 3px solid var(--glacier-500); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--glacier-500);
  margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-snow { background: var(--snow); }

/* --------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.6rem; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--glacier-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--glacier-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--glacier-500); color: var(--glacier-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

/* Over a dark hero the header starts transparent and inverts to white text. */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.home .site-header:not(.is-scrolled) { color: #fff; }
.home .site-header:not(.is-scrolled) .brand,
.home .site-header:not(.is-scrolled) .primary-nav > ul a { color: #fff; }
.home .site-header:not(.is-scrolled) .nav-toggle-bars span { background: #fff; }
.home .site-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

/* The brand lockup is the company's existing logo — a badge PNG that already
   contains the words "Glacier Lodge & Suites", so no text wordmark sits beside
   it. The source is only 186x100, so it is never displayed taller than 48px:
   at 2x that is 96 device pixels, just inside the native 100 and therefore
   still sharp. Going larger visibly softens it. Replace logo.png with a
   higher-resolution original and these caps can be raised. */
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { width: auto; height: 48px; flex: none; }
.brand-sub {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .72; padding-left: .85rem; border-left: 1px solid currentColor;
  align-self: center;
}
@media (max-width: 560px) {
  .brand-logo { height: 42px; }
  .brand-sub { display: none; }   /* the logo alone carries the brand on narrow screens */
}

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav > ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul a {
  position: relative; text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 500; padding-block: .35rem;
}
.primary-nav > ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.primary-nav > ul a:hover::after, .primary-nav > ul a.is-current::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: inherit; }
.nav-toggle-bars { display: block; width: 24px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bars span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.75rem; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul a { display: block; padding: .95rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .primary-nav > ul a::after { display: none; }
  .nav-cta { margin-top: 1.1rem; }
  /* Header is in-flow here, so the hero no longer needs to clear a fixed bar. */
  .hero-inner { padding-top: 3.5rem; }
  .hero { min-height: min(86vh, 720px); }
  /* On mobile the home header is an opaque white bar from the start, so the
     white-on-dark-hero treatment must be undone. These need the same
     :not(.is-scrolled) specificity as the rules they override, or the brand
     text stays white-on-white and vanishes. */
  .home .site-header { position: sticky; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); }
  .home .site-header:not(.is-scrolled),
  .home .site-header:not(.is-scrolled) .brand { color: var(--ink); }
  .home .site-header:not(.is-scrolled) .nav-toggle-bars span { background: var(--ink); }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative; display: grid; align-items: end;
  min-height: min(92vh, 860px); padding: 0; overflow: hidden;
  background: var(--glacier-900);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Two-layer scrim. The vertical pass keeps the header and the stats strip
   legible; the diagonal pass darkens the left column specifically, because the
   headline and lede sit over bright snow and were washing out there. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,22,34,.82) 0%, rgba(8,22,34,.55) 42%, rgba(8,22,34,.12) 78%),
    linear-gradient(180deg, rgba(8,22,34,.55) 0%, rgba(8,22,34,.18) 30%, rgba(8,22,34,.80) 100%);
}
.hero-inner { position: relative; padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 9rem; color: #fff; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.hero .eyebrow { color: var(--glacier-300); }
.hero-lede { color: rgba(255,255,255,.9); font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 52ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.5rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-fact strong {
  display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: #fff;
}
.hero-fact span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- cards -- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--glacier-300); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: var(--glacier-100); color: var(--glacier-700);
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; text-decoration: none; }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* Amenity list — compact, icon-led */
.amenities { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.amenities li { display: flex; align-items: flex-start; gap: .75rem; }
.amenities svg { width: 20px; height: 20px; flex: none; margin-top: .28rem; color: var(--glacier-500); }

/* ------------------------------------------------------------ split band -- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ------------------------------------------------------- feature panel -- */
/* Key-facts panel used opposite body copy in a split. Carries a section on its
   own where a photograph would otherwise sit. */
.feature-panel {
  background: linear-gradient(150deg, var(--glacier-900), var(--glacier-700));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.feature-panel::after {
  content: ""; position: absolute; right: -18%; top: -28%; width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(125,182,205,.3), transparent 68%);
}
.feature-panel > * { position: relative; }
.feature-panel-title {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--glacier-300); margin-bottom: 1.5rem;
}
.feature-list { margin: 0; display: grid; gap: 1.15rem; }
.feature-list > div { padding-bottom: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.feature-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.feature-list dt {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--glacier-300); margin-bottom: .3rem;
}
.feature-list dd { margin: 0; font-size: 1.02rem; color: #fff; line-height: 1.45; }

/* ------------------------------------------------------------- seasons -- */
.season-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.season-card {
  border-radius: var(--radius-lg); padding: 1.85rem;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}
.season-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.season-card svg { width: 32px; height: 32px; margin-bottom: 1rem; }
.season-card h3 { margin-bottom: .35rem; }
.season-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.season-winter { background: linear-gradient(160deg, var(--glacier-100), #f4fafc); border-color: var(--glacier-300); }
.season-winter svg { color: var(--glacier-500); }
.season-summer { background: linear-gradient(160deg, var(--cedar-soft), #fdf7f1); border-color: #e4cdb6; }
.season-summer svg { color: var(--cedar); }

/* ------------------------------------------------------------- CTA band -- */
.cta-band {
  background: linear-gradient(135deg, var(--glacier-900) 0%, var(--glacier-700) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(125,182,205,.28), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }

/* ---------------------------------------------------------- page header -- */
.page-head {
  background: linear-gradient(160deg, var(--glacier-900), var(--glacier-700));
  color: #fff; padding-block: clamp(4.5rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
}
.page-head h1 { color: #fff; }
.page-head .lede { color: rgba(255,255,255,.85); }
.page-head .eyebrow { color: var(--glacier-300); }

/* ------------------------------------------------------------- contact -- */
.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row svg { width: 22px; height: 22px; color: var(--glacier-500); flex: none; margin-top: .25rem; }
.contact-row dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .15rem; }
.contact-row dd { margin: 0; font-size: 1.1rem; font-weight: 500; }
.contact-row dd a { text-decoration: none; }

/* map */
.map-frame { border: 0; width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* steps / directions */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-bottom: 1.5rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--glacier-100); color: var(--glacier-700);
  display: grid; place-items: center; font-weight: 600; font-family: var(--display);
}

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--glacier-900); color: rgba(255,255,255,.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0; }
.site-footer .muted { color: rgba(255,255,255,.6); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-logo { width: auto; height: 50px; margin-bottom: 1rem; }  /* see .brand-logo note on sizing */
.footer-head { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glacier-300); margin-bottom: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
