/* ==========================================================================
   North Maple Foods – site styles
   ========================================================================== */

/* ---------- Theme ---------- */

:root {
  --bg: #f7f5f0;
  --bg-alt: #efebe2;
  --surface: #fff;
  --ink: #142033;
  --muted: #5d6676;
  --line: #e4dfd4;
  --spruce: #1f3558;
  --spruce-deep: #14243d;
  --spruce-ink: #f4f6fa;
  --wheat: #d9a441;
  --wheat-soft: #f6e7c8;
  --wheat-ink: #2a1d05;
  --maple: #c0392b;
  --maple-ink: #fff;
  --btn: #1f3558;
  --btn-ink: #fff;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgb(20 32 51 / 6%), 0 2px 8px rgb(20 32 51 / 4%);
  --shadow: 0 2px 6px rgb(20 32 51 / 5%), 0 12px 32px rgb(20 32 51 / 8%);
  --shadow-l: 0 24px 60px rgb(20 32 51 / 18%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --font-sans: manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: newsreader, georgia, "Times New Roman", serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10192a;
    --bg-alt: #152036;
    --surface: #1a2539;
    --ink: #e9edf4;
    --muted: #a0aabb;
    --line: #2a3750;
    --spruce: #1b2c4a;
    --spruce-deep: #0c1424;
    --wheat-soft: #33291a;
    --maple: #e0685c;
    --maple-ink: #1a0908;
    --btn: #e9edf4;
    --btn-ink: #10192a;
    --shadow-s: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 12px 32px rgb(0 0 0 / 35%);

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0 0;
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #a6741a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentcolor;
}

.eyebrow--light {
  color: var(--wheat);
}

.sub {
  max-width: 40em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.fine--spaced {
  margin-top: 12px;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wheat-soft);
  color: #8a5f12;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid var(--btn);
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s,
    border-color 0.25s;
}

.btn:hover {
  box-shadow: 0 8px 20px rgb(20 32 51 / 18%);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn--wheat {
  border-color: var(--wheat);
  background: var(--wheat);
  color: var(--wheat-ink);
}

.btn--wheat::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.btn--wheat:hover::after {
  transform: translateX(3px);
}

.btn--ghost {
  border-color: rgb(244 246 250 / 40%);
  background: rgb(255 255 255 / 6%);
  color: var(--spruce-ink);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgb(244 246 250 / 70%);
  background: rgb(255 255 255 / 12%);
}

.btn--small {
  align-self: flex-start;
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  color: var(--spruce-ink);
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgb(20 36 61 / 88%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 8%),
    0 10px 30px rgb(0 0 0 / 12%);
  backdrop-filter: saturate(160%) blur(14px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--spruce-ink);
  font-size: 1.45rem;
  text-decoration: none;
}

.logo__mark {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("../images/maple-leaf.svg") center / 58% no-repeat,
    linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75% 100%);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 25%);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links > a,
.dropdown__toggle {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--spruce-ink);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}

.nav__links > a:hover,
.dropdown__toggle:hover {
  background: rgb(255 255 255 / 10%);
  opacity: 1;
}

.nav__links > a[aria-current="page"],
.dropdown.is-current > .dropdown__toggle {
  background: rgb(255 255 255 / 14%);
  opacity: 1;
}

.nav__links > .nav__cta {
  margin-left: 8px;
  background: var(--wheat);
  color: var(--wheat-ink);
  font-weight: 600;
  opacity: 1;
}

.nav__links > .nav__cta:hover,
.nav__links > .nav__cta[aria-current="page"] {
  background: #e6b55a;
}

.nav__burger {
  display: none;
  padding: 9px 16px;
  border: 1px solid rgb(244 246 250 / 35%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: var(--spruce-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.dropdown__toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.dropdown.is-open .dropdown__toggle::after {
  transform: translateY(1px) rotate(-135deg);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.2s;
}

.dropdown.is-open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown__menu a:hover,
.dropdown__menu a[aria-current="page"] {
  background: var(--bg);
}

.dropdown__menu small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--spruce-deep);
  color: var(--spruce-ink);
}

/* The farmland photo, kept faint so it sits behind the text */
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/hero-field.jpg") center 70% / cover no-repeat;
  opacity: 0.5;
  transform: scale(1.08);
  animation: hero-drift 24s var(--ease) forwards;
}

/* Colour wash: keeps text readable and blends the photo into the brand colour */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      100deg,
      rgb(20 36 61 / 90%) 0%,
      rgb(20 36 61 / 62%) 45%,
      rgb(20 36 61 / 15%) 100%
    ),
    linear-gradient(
      180deg,
      rgb(20 36 61 / 50%) 0%,
      transparent 30%,
      transparent 70%,
      rgb(20 36 61 / 60%) 100%
    );
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(88vh, 760px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 120px;
}

.hero h1 {
  max-width: 13em;
}

.hero__intro {
  max-width: 34em;
  margin: 0 0 36px;
  font-size: 1.12rem;
  opacity: 0.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes hero-drift {
  to {
    transform: scale(1);
  }
}

/* ---------- Facts card (overlaps the hero on the home page) ---------- */

.facts-wrap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  list-style: none;
}

.facts li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--radius);
}

.facts__icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--wheat-soft);
  fill: none;
  stroke: #a6741a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.facts b {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ---------- Cards, tiles and steps ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card,
.tile,
.steps li,
.stats > div,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

.card,
.tile {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s;
}

.card:hover,
.tile:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card__media {
  height: 190px;
  overflow: hidden;
}

.card__image {
  height: 100%;
  background-color: var(--line);
  background-position: center;
  background-size: cover;
  transition: transform 0.8s var(--ease);
}

.card:hover .card__image {
  transform: scale(1.06);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 4px 0 0;
  padding: 14px;
  border-radius: var(--radius-s);
  background: var(--bg);
  font-size: 0.88rem;
}

.card dt {
  color: var(--muted);
}

.card dd {
  margin: 0;
  font-weight: 600;
}

.card__actions {
  display: flex;
  margin-top: auto;
  padding-top: 8px;
}

.card__actions .btn {
  flex: 1;
  padding: 11px 18px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.tile h3 {
  margin: 0;
  font-size: 1.3rem;
}

.tile p {
  flex: 1;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.tile--link {
  color: inherit;
  text-decoration: none;
}

.tiles--feature .tile {
  min-height: 250px;
  padding: 30px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--wheat-soft) 0%, transparent 55%),
    var(--surface);
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--spruce);
  font-size: 0.92rem;
  font-weight: 700;
}

.tile__more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.tile--link:hover .tile__more::after {
  transform: translateX(4px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 26px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.22rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.steps__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--spruce-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 88px;
  padding: 48px;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--spruce-deep);
  color: var(--spruce-ink);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 36 61 / 95%) 30%, rgb(20 36 61 / 55%)),
    url("../images/hero-field.jpg") center 75% / cover no-repeat;
}

.band h2 {
  margin: 0 0 6px;
}

.band p {
  max-width: 36em;
  margin: 0;
  opacity: 0.82;
}

.band--soft {
  margin-top: 0;
}

/* ---------- Content layouts ---------- */

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

.prose p {
  max-width: 38em;
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .lede {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.35;
}

.stats {
  display: grid;
  gap: 14px;
}

.stats > div {
  position: relative;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
}

.stats > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--wheat);
}

.stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.stats span {
  color: var(--muted);
  font-size: 0.93rem;
}

.panel {
  padding: 32px;
}

.panel h2 {
  margin-bottom: 4px;
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.panel--note {
  border-color: transparent;
  background: var(--wheat-soft);
  box-shadow: none;
}

.panel--note p {
  max-width: 44em;
  margin: 0;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 34px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wheat-soft);
}

.ticks li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #a6741a;
  border-left: 2px solid #a6741a;
  transform: rotate(-45deg);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-s);
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

td:first-child {
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background: var(--bg);
}

th {
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 44px;
  max-width: 820px;
}

.faq__group {
  display: grid;
  gap: 10px;
}

.faq__group h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}

.faq details:hover,
.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  transform: translateY(-50%);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s;
}

.faq details[open] summary::after {
  background: var(--wheat-soft);
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  animation: fade-up 0.35s var(--ease);
}

/* ---------- Contact form ---------- */

.contact {
  display: grid;
  gap: 28px;
}

.info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  margin: 24px 0;
  padding: 20px;
  border-radius: var(--radius-s);
  background: var(--bg);
  font-size: 0.95rem;
}

.info dt {
  color: var(--muted);
}

.info dd {
  margin: 0;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cfc6b5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wheat);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 4px rgb(217 164 65 / 22%);
}

.required {
  color: var(--maple);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.chips label {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chips span {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.chips span:hover {
  border-color: var(--wheat);
}

.chips input:checked + span {
  border-color: var(--spruce);
  background: var(--spruce);
  color: var(--spruce-ink);
}

.chips input:focus-visible + span {
  outline: 3px solid var(--wheat);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.status {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: var(--spruce);
  color: var(--spruce-ink);
  animation: fade-up 0.4s var(--ease);
}

.status--error {
  background: var(--maple);
  color: var(--maple-ink);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 100px;
  padding: 64px 0 32px;
  background: var(--spruce-deep);
  color: var(--spruce-ink);
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer .logo {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer h2 {
  margin: 0 0 12px;
  color: var(--wheat);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--spruce-ink);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
}

.footer p {
  max-width: 22em;
  margin: 0;
  opacity: 0.7;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(244 246 250 / 12%);
  opacity: 0.6;
}

/* ---------- Page switching (only when JavaScript runs) ---------- */

main.wrap {
  min-height: 50vh;
}

.js .view:not(.is-active) {
  display: none;
}

.js .view.is-active {
  animation: fade-up 0.5s var(--ease);
}

.js body:not([data-page="home"]) .hero__actions,
.js body:not([data-page="home"]) .facts-wrap {
  display: none;
}

/* Inner pages: a shorter hero with the photo even fainter */
.js body:not([data-page="home"]) .hero__body {
  min-height: 0;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 64px;
}

.js body:not([data-page="home"]) .hero__image {
  opacity: 0.32;
}

.js body:not([data-page="home"]) .hero h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.js body:not([data-page="home"]) .hero__intro {
  margin: 0;
  font-size: 1.05rem;
}

.js body:not([data-page="home"]) main > .view > section:first-child,
.js body:not([data-page="home"]) main > section.view {
  padding-top: 64px;
}

/* Scroll reveal: items fade up as they come into view */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Opening animation ---------- */

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
  background: var(--spruce-deep);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s;
}

.loader.is-out {
  opacity: 0;
  visibility: hidden;
}

.loader .logo {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  opacity: 0;
  animation: fade-in 0.8s 0.1s forwards;
}

.loader__dots {
  display: flex;
  gap: 14px;
}

.loader__dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow:
    inset -3px -3px 4px rgb(0 0 0 / 35%),
    inset 2px 2px 3px rgb(255 255 255 / 25%);
  opacity: 0;
  transform: translateY(-30px) scale(0.6);
  animation: drop-in 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}

.loader__dots span:nth-child(1) {
  background: #5f7aa8;
  animation-delay: 0.25s;
}

.loader__dots span:nth-child(2) {
  background: #7d95bd;
  animation-delay: 0.35s;
}

.loader__dots span:nth-child(3) {
  background: #9fb2d1;
  animation-delay: 0.45s;
}

.loader__dots span:nth-child(4) {
  background: #e6c27a;
  animation-delay: 0.55s;
}

.loader__dots span:nth-child(5) {
  background: #d9a441;
  animation-delay: 0.65s;
}

.loader__dots span:nth-child(6) {
  background: #d4453a;
  animation-delay: 0.75s;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes drop-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: 0.15s;
}

.rise--2 {
  transition-delay: 0.27s;
}

.rise--3 {
  transition-delay: 0.39s;
}

.rise--4 {
  transition-delay: 0.51s;
}

.js body:not(.is-ready) .rise {
  opacity: 0;
  transform: translateY(24px);
}

/* ---------- Responsive ---------- */

@media (width >= 560px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width >= 900px) {
  .split {
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
  }

  .contact {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }

  .panel--sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

@media (width <= 980px) {
  .nav__burger {
    display: inline-block;
  }

  .nav__links {
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-l);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links > a,
  .dropdown__toggle {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    color: var(--ink);
    text-align: left;
    opacity: 1;
  }

  .dropdown__toggle {
    justify-content: space-between;
  }

  .nav__links > a:hover,
  .dropdown__toggle:hover,
  .nav__links > a[aria-current="page"],
  .dropdown.is-current > .dropdown__toggle {
    background: var(--bg);
  }

  .nav__links > .nav__cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .dropdown__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.is-open .dropdown__menu {
    display: block;
  }

  .band {
    padding: 36px 28px;
  }
}

@media (width <= 600px) {
  section {
    padding-top: 64px;
  }

  .hero__body {
    min-height: 0;
    padding-bottom: 104px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts li {
    padding: 10px 12px;
  }

  .panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .loader {
    display: none;
  }

  .hero__image {
    transform: none;
  }

  .js body:not(.is-ready) .rise,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 404 page ---------- */

.not-found .hero__body {
  min-height: 100vh;
  padding-bottom: 72px;
}
