/* ==========================================================================
   Bridger Companies — pages/home.css (faithful reconstruction)
   Rebuilt from the live design tokens and recovered fragments:
     Deep Navy #062038 · Concrete #7D8A8C · Taupe #E3DCD7
     Section light #F8F9FB · Section white #FCFCFC
     Montserrat-* families (Google Montserrat fallback) · 1.313 type scale
     98svh left-aligned hero · grayscale-30% cards · underline-flash CTAs
   To restore the byte-for-byte live stylesheet, replace this file with the
   pages/home.css from your earlier bridger-site.zip.
   ========================================================================== */

:root {
  --navy: #062038;
  --navy-deep: #04162a;
  --concrete: #7d8a8c;
  --taupe: #e3dcd7;
  --oak: #e8e2dd;
  --paper: #fcfcfc;
  --light: #f8f9fb;
  --ink: #3f4e58;
  --fixed-vh: 1vh;
  --maxw: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --font-sb: "Montserrat-SemiBold", "Montserrat", sans-serif;
  --font-md: "Montserrat-Medium", "Montserrat", sans-serif;
  --font-rg: "Montserrat-Regular", "Montserrat", sans-serif;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-rg);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* skip-to-content link: hidden until keyboard focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 22px; text-decoration: none;
}
.skip-link:focus-visible { left: 0; }
body.no-scroll { overflow: hidden; }

.layout-container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gut);
}
.layout-container--hero {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gut);
  display: flex; flex-direction: column; flex: 1;
}
.layout-container--hero .grid { display: flex; flex-direction: column; flex: 1; }

/* focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor; outline-offset: 4px;
}

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

/* hot-linked image fallback */
.img-failed { background: linear-gradient(135deg, #0b2e4c, #062038) !important; }
.img-failed img { visibility: hidden; }

/* ---------- topbar / brand ---------- */

.home-hero__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: clamp(20px, 3vw, 34px);
}
.home-hero__logo { display: inline-flex; align-items: center; }
.home-hero__logo-img { height: clamp(34px, 4vw, 44px); width: auto; }

/* ---------- primary nav ---------- */

.site-nav__nav { display: flex; align-items: center; }

.site-nav__menu--desktop { display: none; }
@media (min-width: 900px) {
  .site-nav__menu--desktop { display: flex; align-items: center; gap: 38px; }
  .site-nav__toggle { display: none; }
}

.site-nav__menu--desktop .site-nav__nav-item { position: relative; }
.site-nav__menu--desktop .site-nav__nav-link {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.813rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88); text-decoration: none;
  padding-block: 8px; position: relative; transition: color 0.25s ease;
}
.site-nav__menu--desktop .site-nav__nav-link:hover { color: #fff; }
.site-nav__menu--desktop .site-nav__nav-link[aria-current="page"] { color: #fff; }
.site-nav__menu--desktop .site-nav__nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(255, 255, 255, 0.7);
}

/* mobile toggle + overlay */
.site-nav__toggle-icon img { display: block; }
.site-nav__overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy);
  padding: clamp(24px, 6vw, 48px);
  overflow-y: auto;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.site-nav__overlay.is-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.site-nav__overlay.is-open { opacity: 1; visibility: visible; }
.site-nav__close { position: absolute; top: 28px; right: 28px; z-index: 2; }
.site-nav__menu { margin-top: clamp(48px, 10vh, 88px); position: relative; z-index: 1; }
.site-nav__menu .site-nav__nav-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sb); font-weight: 600;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  color: #fff; text-decoration: none; padding-block: 10px;
}
.site-nav__menu .site-nav__nav-link[aria-current="page"] { color: var(--taupe); }
.site-nav__tagline-logo {
  margin-top: clamp(32px, 6vh, 56px); height: 72px; width: auto;
  position: relative; z-index: 1;
}
.site-nav__address { margin-top: 18px; position: relative; z-index: 1; }
.site-nav__address a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-size: 0.9rem; line-height: 1.8;
}
@media (min-width: 900px) {
  .site-nav__overlay { display: none; }
}

/* ---------- hero ---------- */

.home-hero {
  position: relative;
  min-height: calc(var(--fixed-vh, 1vh) * 98);
  min-height: 98svh;
  display: flex; flex-direction: column;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.home-hero__bg { position: absolute; inset: 0; margin: 0; z-index: 0; }
.home-hero__bg-img {
  width: 100%; height: 112%; object-fit: cover;
  will-change: transform;
}
/* looping hero video (home) — sits on a poster background painted on the figure */
.home-hero__bg-video {
  width: 100%; height: 112%; object-fit: cover;
  will-change: transform;
}
.home-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    rgba(4, 22, 42, 0.62) 0%,
    rgba(4, 22, 42, 0.28) 40%,
    rgba(4, 22, 42, 0.55) 100%);
}
.home-hero__content {
  margin-top: auto;
  padding-bottom: clamp(96px, 16vh, 168px);
  max-width: 720px;
}
.home-hero__eyebrow {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.813rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}
.home-hero__title {
  font-family: var(--font-sb); font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.06; letter-spacing: 0;
  color: #fff;
}
.home-hero__subtitle {
  font-family: var(--font-md); font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.313rem);
  line-height: 1.6; color: rgba(255, 255, 255, 0.88);
  max-width: 560px; margin-top: 22px;
}

/* hero scroll CTA (underline flash, per the live stylesheet) */
.home-hero__scrollbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.home-hero__scroll-cta {
  max-width: var(--maxw); margin-inline: auto; padding: 18px var(--gut);
}
.home-hero__scroll-label,
.home-hero__cta {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #fcfcfc; cursor: pointer;
  position: relative; display: inline-block; padding-bottom: 5px;
}
@keyframes underline-flash {
  0% { width: 0; }
  100% { width: 100%; }
}
.home-hero__scroll-label::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background-color: #fcfcfc;
  transition: width 0.25s ease;
}
@media (min-width: 744px) {
  .home-hero__scroll-label::after { width: 0; height: 2px; }
  .home-hero__scroll-label:hover::after,
  .home-hero__scroll-label:focus-visible::after {
    animation: underline-flash 0.8s ease forwards;
  }
}
/* the scroll CTA sits in a sibling stacking context that can paint over the
   mobile overlay menu — hide it while the menu is open (body gets .no-scroll) */
body.no-scroll .home-hero__scrollbar { visibility: hidden; }

/* inner-page heroes are shorter */
.page-hero {
  min-height: calc(var(--fixed-vh, 1vh) * 72);
  min-height: 72svh;
}
.page-hero .home-hero__content { padding-bottom: clamp(72px, 12vh, 128px); }

/* ---------- sections ---------- */

.section { position: relative; }
.section--full-bleed { width: 100%; }
.section--full-bleed-primary { background-color: var(--navy); color: #fff; }

.section__title {
  font-family: var(--font-sb); font-weight: 600;
  font-size: clamp(1.724rem, 3.4vw, 2.263rem);
  line-height: 1.15; color: var(--navy);
  margin-bottom: 26px;
}
.section--full-bleed-primary .section__title { color: #fff; }
.section__body {
  font-family: var(--font-md); font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75; color: var(--ink);
  max-width: 760px;
}
.section--full-bleed-primary .section__body { color: rgba(255, 255, 255, 0.86); }

/* underline-flash CTA (navy + light variants) */
.u-cta {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.813rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); text-decoration: none;
  display: inline-block; position: relative;
  padding-bottom: 7px; margin-top: 30px;
}
.u-cta::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transition: width 0.25s ease;
}
@media (min-width: 744px) {
  .u-cta::after { width: 0; height: 2px; }
  .u-cta:hover::after, .u-cta:focus-visible::after {
    animation: underline-flash 0.8s ease forwards;
  }
}
.u-cta--light { color: #fcfcfc; }

/* about-us: tall navy section with the faint texture (per the live stylesheet) */
.section__about-us {
  position: relative;
  display: flex; align-items: center; flex-direction: column; justify-content: center;
  min-height: 100vh;
  padding-block: clamp(140px, 24vh, 400px);
  width: 100%;
  background-color: #062038;
}
.section__about-us::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../../img/home/about-us-bg.png");
  background-size: 250% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.0175;
}
@media (min-width: 744px) {
  .section__about-us::before { background-size: 100% auto; }
}
.section__about-us .layout-container { position: relative; z-index: 1; }
.section__about-us .section__content {
  max-width: 820px; margin-inline: auto; text-align: center;
}
.section__about-us .section__body { margin-inline: auto; }

/* our story / how we work (Trailhead-style two-column) */
.section__our-story { background: var(--paper); padding-block: clamp(88px, 12vw, 160px); }
.our-story__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
@media (max-width: 860px) {
  .our-story__grid { grid-template-columns: 1fr; }
}
.our-story__eyebrow {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--concrete); margin-bottom: 14px;
}
.our-story__body p + p { margin-top: 22px; }

.how-we-work {
  background: var(--oak);
  padding: clamp(28px, 4vw, 48px);
}
.how-we-work__title {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 1.313rem; color: var(--navy);
  margin-bottom: clamp(22px, 3vw, 30px);
}
.how-we-work__item {
  border-left: 3px solid var(--brand-yellow, #e9b826);
  padding-left: 18px;
}
.how-we-work__item + .how-we-work__item { margin-top: clamp(20px, 3vw, 28px); }
.how-we-work__item h3 {
  font-family: var(--font-sb); font-weight: 600;
  font-size: 1.02rem; color: var(--navy);
  margin: 0 0 6px;
}
.how-we-work__item p {
  font-family: var(--font-md); font-weight: 500;
  font-size: 0.92rem; line-height: 1.65;
  color: var(--ink); margin: 0;
}

/* ---------- headshot gallery ---------- */

.headshot-card {
  flex: 0 0 clamp(240px, 26vw, 300px); scroll-snap-align: start;
  background: var(--paper);
}
.headshot-card img {
  width: 100%; aspect-ratio: 363 / 300; object-fit: cover;
  background: var(--navy);
}
.headshot-card__info-container { padding: 16px 2px 0; }
.headshot-gallery__card-name {
  font-family: var(--font-sb); font-weight: 600; font-size: 1.05rem;
  color: var(--navy);
}
.headshot-gallery__card-title {
  font-family: var(--font-md); font-weight: 500; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--concrete); margin-top: 5px;
}

/* ---------- footer ----------
   Compact single-band footer (Braemont-style height/format, Bridger tokens):
   brand + address left, nav row + icon buttons right, slim copyright line. */

.site-footer { background: var(--navy); color: #fff; }
.site-footer__layout-container {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(36px, 5vw, 56px) var(--gut) clamp(18px, 2.5vw, 26px);
}
.site-footer__main {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 28px 48px;
  padding-bottom: clamp(24px, 3.5vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__brand { height: 44px; width: auto; }
.site-footer__address { margin-top: 16px; }
.site-footer__address a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-size: 0.85rem; line-height: 1.75;
}
.site-footer__address a:hover { color: #fff; }
.site-footer__right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 20px; margin-left: auto;
}
.site-footer__menu {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end;
}
.site-footer__menu a {
  font-family: var(--font-sb); font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  transition: color 0.25s ease;
}
.site-footer__menu a:hover { color: #fff; }
.site-footer__icons { display: flex; gap: 12px; }
.site-footer__icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.site-footer__icon svg { width: 15px; height: 15px; display: block; }
.site-footer__icon:hover, .site-footer__icon:focus-visible {
  background: #fff; color: var(--navy); border-color: #fff;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: clamp(14px, 2vw, 20px);
}
.site-footer__copyright { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.site-footer__privacy {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); text-decoration: none;
}
.site-footer__privacy:hover { color: #fff; }
@media (max-width: 743px) {
  .site-footer__right { align-items: flex-start; margin-left: 0; }
  .site-footer__menu { justify-content: flex-start; }
}
