/* ══════════════════════════════════════════════════════════════════
   Hero — pixel-perfect build of Figma node 42:156 (hiking-website-design).
   Geometry is authored at the design's native 1432×742 and scaled to fit
   the viewport as one unit, so every value below can be checked against
   Figma directly.

   Future home is a WordPress theme: markup stays semantic, styles live
   in this separate sheet, and no framework is assumed.
   ══════════════════════════════════════════════════════════════════ */

:root{
  --ink-nav:      #2c2c2c;   /* header text on a light photo            */
  --btn-ink:      #572a0d;   /* label inside the white pill             */
  --card-glass:   rgba(30, 16, 6, 0.49);
  --divider:      rgba(255, 255, 255, 0.46);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* set by hero.js: stage scale + adaptive header state */
  --s: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Preview page backdrop (dashboard chrome, not part of the design) ── */

html, body {
  min-height: 100%;
  background: linear-gradient(180deg, #0a1219 0%, #1e2a35 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 120px;
}

/* ── The stage: exact Figma frame ─────────────────────────────────── */

.stage-scaler {
  width: min(100%, calc(1432px * var(--s)));
  height: calc(742px * var(--s));
}

.stage {
  width: 1432px;
  height: 742px;
  transform: scale(var(--s));
  transform-origin: top left;
  position: relative;
  background: #ffffff;
  border-radius: 21px;
  overflow: hidden;
}

/* ── Photo conveyor ───────────────────────────────────────────────────
   One endless strip drifting right-to-left behind the pinned interface.
   Each card keeps the full 726px height, its own width, radius and
   bottom shade; the 8px gaps show the white frame — exactly the Figma
   frame, set in motion. Cards are built by hero.js from its PHOTOS list. */

.conveyor {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 1416px;
  height: 726px;
  overflow: hidden;
  /* The window itself is rounded like the cards, so a card crossing the
     frame edge is clipped on a curve, not a straight cut. clip-path
     duplicates the radius because WebKit lets transformed children
     escape a border-radius clip. */
  border-radius: 12px;
  clip-path: inset(0 round 12px);
}

.conveyor__track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}

.conveyor__card {
  position: relative;
  flex: none;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.conveyor__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Per-card contrast gradient; stops come from Figma via hero.js. */
.conveyor__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Header: logo + nav, adaptive to the photo beneath ────────────── */

.brand {
  position: absolute;
  left: 45px;
  top: 41px;
  width: 146px;
  height: 42px;
  padding-bottom: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand img {
  width: 145.359px;
  height: 36px;
  display: block;
  transition: filter 400ms ease;
}

.nav {
  position: absolute;
  left: 231px;
  top: 53px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  text-decoration: none;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-nav);
  white-space: nowrap;
  transition: color 400ms ease;
}

.nav__chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

/* Exported leaf is 11.2×6.2 inside a 20×20 icon box — both preserved. */
.nav__chevron img {
  width: 11.2px;
  height: 6.2px;
  display: block;
  transition: filter 400ms ease;
}

/* Dark photo under the header → header goes light. */
.stage.ui-light .nav__item { color: #ffffff; }
.stage.ui-light .brand img,
.stage.ui-light .nav__chevron img { filter: brightness(0) invert(1); }

/* ── Glass card ───────────────────────────────────────────────────── */

.card {
  position: absolute;
  left: 16px;
  top: 468px;
  width: 466px;
  padding: 24px;
  border-radius: 8px;
  background: var(--card-glass);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #ffffff;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__eyebrow {
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  opacity: 0.6;
}

.card__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.card__sub {
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
}

.card__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  background: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: var(--btn-ink);
  white-space: nowrap;
}

.link-underlined {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

.link-underlined::after {
  content: "";
  width: 33px;
  height: 1px;
  background: #ffffff;
}

/* ── Stats + certification badges (over the right panel) ──────────── */

.stats {
  position: absolute;
  left: 863px;   /* 8 + 806 + 8 gap + 41 panel-local */
  top: 635px;    /* 8 + 627 panel-local              */
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  /* invisible on the photos, but keeps the white figures legible for the
     moment an 8px frame gap drifts underneath them */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}

.stat__num {
  font-weight: 400;
  font-size: 40px;
  line-height: normal;
}

.stat__label {
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
}

.stats__divider {
  align-self: stretch;
  width: 1px;
  background: var(--divider);
}

.badges {
  display: flex;
  align-items: center;
}

.badges img {
  width: 64px;
  height: 64px;
  display: block;
}

.badges img:first-child {
  border-radius: 50%;
  margin-right: -5.714px;
  position: relative;
}

/* ── Motion preferences ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .brand img, .nav__chevron img, .nav__item { transition: none !important; }
}
