/* =========================================================
   Rewild — built from Figma file "Rewild web page" (node 1:62)
   Colors, type and spacing values are taken directly from the
   Figma design tokens / layout. All imagery lives in /assets.
   ========================================================= */

:root {
  --ivory: #fbf6f3;
  --graphite: #231f20;
  --soft-yellow: #deda88;
  --umber: #4f3d31;
  --lilac: #c8b0f9;
  --olive: #5b7468;
  --line-icon: #ccd2e3;

  --content-max: 1440px;
  --side-pad: 60px;
  --section-pad-y: 100px;

  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-label: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--side-pad);
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.eyebrow-line {
  position: relative;
  padding-top: 24px;
  margin-bottom: 40px;
  display: block;
}
.eyebrow-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  border-top: 1px solid currentColor;
  opacity: 0.35;
}

.display-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- image assets ---------- */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-arrow { width: 24px; height: 24px; }
.wordmark { width: 203px; height: auto; }
.symbol { width: 32px; height: 32px; }
.illustration { width: 200px; height: 200px; object-fit: contain; flex-shrink: 0; }
/* Figma "Gradient Group 1" (node 1:235), real vector art, inlined.
   Each layered wave band drifts side-to-side and bobs slightly, each on
   its own timing, so the whole stack reads like waves rolling behind
   the headline rather than a single static image. */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wave {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}
.wave-1 { animation: wave-roll-a 12s ease-in-out infinite; }
.wave-2 { animation: wave-roll-b 15s ease-in-out infinite; animation-delay: -4s; }
.wave-3 { animation: wave-roll-a 13s ease-in-out infinite; animation-delay: -9s; }
.wave-4 { animation: wave-roll-b 17s ease-in-out infinite; animation-delay: -14s; }
.wave-5 { animation: wave-roll-a 19s ease-in-out infinite; animation-delay: -6s; }

/* two alternating easing shapes so adjacent bands don't move in lockstep */
@keyframes wave-roll-a {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(4%, -3.5%); }
  50%  { transform: translate(-2%, 4%); }
  75%  { transform: translate(-4.5%, -1.5%); }
  100% { transform: translate(0, 0); }
}
@keyframes wave-roll-b {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4.5%, 3%); }
  50%  { transform: translate(3%, -4.5%); }
  75%  { transform: translate(4%, 2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

.logo-nav { height: 36px; width: auto; }
.call-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band { width: 100%; height: auto; }
.graphic-2 { width: 100%; height: auto; margin: -60px 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--side-pad);
  max-width: var(--content-max);
  margin: 0 auto;
}
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 40px; font-weight: 500; font-size: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
}
.btn-dark { background: var(--graphite); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--lilac);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 60px var(--side-pad) 100px;
  color: #fff;
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 100px;
  max-width: 203px;
}
.hero-display {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-stretch: condensed;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1.05;
  margin-bottom: 56px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 456px;
  margin-left: auto;
  margin-bottom: 80px;
  font-size: 16px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-feature {
  flex: 1 1 315px;
  max-width: 315px;
  border-left: 1px solid var(--ivory);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
}
.hero-feature-title { font-weight: 700; }

/* ---------- The Call ---------- */
.call {
  position: relative;
  background: var(--soft-yellow);
  color: var(--umber);
  overflow: hidden;
}
.call-inner { position: relative; z-index: 1; }
.call-content { display: flex; flex-direction: column; gap: 48px; max-width: 650px; }
.call-lead { display: flex; flex-direction: column; gap: 20px; }
.call-body { display: flex; flex-direction: column; gap: 20px; }
.call-body-lg { font-size: 24px; line-height: 1.5; }
.call-body p:not(.call-body-lg) { font-size: 16px; line-height: 1.5; max-width: 536px; }
.call-close {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ---------- The Paths ---------- */
.paths { background: var(--olive); color: var(--ivory); }
.paths-heading { margin-bottom: 40px; max-width: 1319px; }
.paths-intro { font-size: 24px; line-height: 1.5; margin-top: 16px; font-family: var(--font-sans); }
.path-columns { display: flex; gap: 20px; flex-wrap: wrap; }
.path-card {
  background: var(--ivory);
  color: var(--umber);
  border-radius: 8px;
  box-shadow: 4px 4px 6px rgba(0,0,0,0.05);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.path-card-wide { flex: 1 1 650px; }
.path-card-flex { flex: 1 1 400px; }
.path-kicker { font-family: var(--font-sans); font-weight: 600; font-size: 14px; }
.path-title { font-family: var(--font-sans); font-weight: 700; font-size: 24px; }
.path-desc { font-size: 16px; line-height: 1.5; }
.path-best { font-family: var(--font-serif); font-style: italic; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(79,61,49,0.25); margin-top: 4px; }
.path-links { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.path-link { font-weight: 600; font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--umber); align-self: flex-start; }

/* ---------- Who It's For ---------- */
.who { background: var(--umber); color: var(--ivory); }
.who-rows { display: flex; flex-direction: column; }
.who-row {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  gap: 20px;
  align-items: start;
  padding: 20px 0 40px;
  border-bottom: 0.5px solid var(--ivory);
}
.who-label {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.who-text { display: flex; flex-direction: column; gap: 20px; }
.who-text-lg { font-size: 22px; font-weight: 500; line-height: 1.5; }
.who-text p:not(.who-text-lg) { font-size: 16px; line-height: 1.5; max-width: 650px; }

/* ---------- The Nine Codes ---------- */
.codes { background: var(--ivory); color: var(--umber); }
.codes-eyebrow { color: var(--umber); }
.codes-heading { text-align: center; margin-bottom: 40px; }
.codes-sub { font-family: var(--font-sans); font-size: 24px; margin-top: 16px; }
.codes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.code-card {
  background: var(--soft-yellow);
  color: var(--graphite);
  border-radius: 6px;
  box-shadow: 4px 4px 6px rgba(0,0,0,0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 188px;
}
.code-card-lilac { background: var(--lilac); }
.code-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 24px; line-height: 1.3; }
.code-card p { font-size: 16px; line-height: 1.45; }

/* ---------- Close + Contact ---------- */
.close { background: var(--soft-yellow); color: var(--graphite); }
.close-statement {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: 1320px;
}
.close-columns { display: flex; gap: 32px; flex-wrap: wrap; }
.close-card { flex: 1 1 400px; padding: 32px 12px; display: flex; flex-direction: column; gap: 16px; }
.close-kicker { font-family: var(--font-sans); font-weight: 600; font-size: 20px; text-align: center; }
.close-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory);
}
.close-card-alt .close-row { background: transparent; border-bottom: 1px solid var(--graphite); }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: var(--ivory); }
.footer-inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 100px; }
.footer-top { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 60px; font-weight: 500; flex-wrap: wrap; }
.footer-nav { font-size: 20px; line-height: 1.4; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.footer-col-title { font-size: 20px; }
.footer-col-text { font-size: 16px; line-height: 1.5; opacity: 0.8; }
.footer-address { font-weight: 500; font-size: 16px; line-height: 1.5; opacity: 0.8; max-width: 315px; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-meta { display: flex; align-items: center; gap: 40px; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section-pad-y: 64px; --side-pad: 24px; }
  .who-row { grid-template-columns: 1fr; }
  .illustration { width: 120px; height: 120px; }
  .codes-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { margin-left: 0; }
  .hero-display { justify-content: flex-start; gap: 16px 24px; }
  .footer-top { gap: 40px; }
}
@media (max-width: 620px) {
  .codes-grid { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; gap: 16px; align-items: flex-start; }
  .nav-right { flex-direction: column; align-items: flex-start; gap: 16px; }
}
