/* Brand's Equipment — shared styles
   Layout: white header with logo, photo hero, three division "doors", white and light-grey bands.
   Colours from the Brand's logo: red, black, green on white.
   The Forestry page (body.forest) switches to the Europe Forestry BC navy/green look. */
:root {
  --red: #C50723;
  --red-dark: #9E061C;
  --black: #231F20;
  --ink: #231F20;
  --green: #93D438;
  --green-ink: #3B7A12;
  --white: #FFFFFF;
  --grey: #F4F4F5;
  --line: #DADADC;
  --muted: #5E5A5C;

  /* Europe Forestry BC */
  --ef-navy: #172D45;
  --ef-deep: #0F2033;
  --ef-green: #5DCF78;
  --ef-light: #C8DFF0;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.lede { font-size: 1.15rem; max-width: 62ch; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.hero .eyebrow { color: var(--green); }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 4px solid var(--red);
  box-shadow: 0 2px 10px rgba(35,31,32,0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--red); }
.brand-sub { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--black); margin-top: 2px; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a {
  white-space: nowrap; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius);
  color: var(--black);
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .nav-call { background: var(--red); color: var(--white); margin-left: 8px; border-radius: var(--radius); }
.nav .nav-call:hover { background: var(--red-dark); color: var(--white); }
.menu-btn {
  display: none; margin-left: auto; background: var(--white); border: 2px solid var(--black);
  color: var(--black); font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-header .wrap { min-height: 72px; }
  .brand img { height: 52px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 4px solid var(--red); box-shadow: 0 10px 20px rgba(35,31,32,0.12);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-call { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 400px) { .brand-name { font-size: 1.4rem; } .brand-sub { font-size: 0.8rem; } }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; padding: 14px 24px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; line-height: 1;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #000; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.1); }
.btn-ef { background: var(--ef-green); color: var(--ef-deep); }
.btn-ef:hover { background: #74DC8C; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); background-color: var(--black);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,18,19,0.55) 0%, rgba(20,18,19,0.22) 38%, rgba(20,18,19,0) 60%);
}
.hero .wrap { position: relative; padding-block: clamp(64px, 11vw, 140px); display: grid; gap: 22px; }
.hero h1 { max-width: 16ch; }
.hero .lede { color: #FFFFFF; }
.hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.6); }
body.forest .hero h1, body.forest .hero .lede, body.forest .hero .eyebrow { text-shadow: none; }
.hero-sm .wrap { padding-block: clamp(48px, 7vw, 88px); }
.hero-sm h1 { max-width: 20ch; }

/* Facts strip */
.facts { background: var(--red); color: var(--white); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 18px; gap: 12px; }
.fact { display: flex; flex-direction: column; }
.fact b { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; }
.fact span { font-size: 0.9rem; opacity: 0.9; }
@media (max-width: 640px) { .facts .wrap { grid-template-columns: 1fr; } .fact { flex-direction: row; align-items: baseline; gap: 10px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.band-grey { background: var(--grey); }
.band-black { background: var(--black); color: #EDEDED; }
.band-black h2, .band-black h3 { color: var(--white); }
.band-black .eyebrow { color: var(--green); }

/* Three doors */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-top: 5px solid var(--red); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(35,31,32,0.14); }
.door-img { aspect-ratio: 16 / 10; background-color: #3A3637; background-size: cover; background-position: center; }
.door-body { display: grid; gap: 10px; padding: 22px 22px 24px; flex: 1; align-content: start; }
.door-tag { font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--red); }
.door-go { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); }
.door-forest { border-top-color: var(--ef-navy); }
.door-forest .door-tag { color: var(--ef-navy); }
.door-forest .door-img { background-color: var(--ef-navy); }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split-img { aspect-ratio: 4 / 3; border-radius: var(--radius); background-color: #3A3637; background-size: cover; background-position: center; }
.split-text { display: grid; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-img { order: -1; } }

/* Wide photo band */
.wide-photo {
  min-height: 340px; background-color: var(--black); background-size: cover; background-position: center;
  position: relative; color: var(--white); display: flex; align-items: flex-end;
}
.wide-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,18,19,0.85), rgba(20,18,19,0.05) 70%); }
.wide-photo .wrap { position: relative; padding-block: 36px; width: 100%; }
.wide-photo p { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; line-height: 1.05; max-width: 22ch; }
.wide-photo p::before { content: ""; display: block; width: 56px; height: 5px; background: var(--green); margin-bottom: 14px; }

/* Forestry tie-in band (Europe Forestry BC look) */
.ef-band { background: var(--ef-navy); color: var(--ef-light); border-top: 4px solid var(--ef-green); }
.ef-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.ef-band .wrap > * { min-width: 0; }
.ef-band h2, .ef-band h3 { color: var(--white); }
.ef-band .eyebrow { color: var(--ef-green); }
.ef-img { aspect-ratio: 16 / 10; border-radius: var(--radius); background-color: var(--ef-deep); background-size: cover; background-position: center; }
@media (max-width: 860px) { .ef-band .wrap { grid-template-columns: 1fr; } }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 3px; background: var(--red); }
.ef-band .ticks li::before, body.forest .ticks li::before { background: var(--ef-green); }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols-2 { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; color: var(--ink); }
.panel h3 { color: var(--black); }
a.panel { text-decoration: none; transition: border-color .15s ease; }
a.panel:hover { border-color: var(--red); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--red); }
.step::before { counter-increment: step; content: "Step " counter(step); font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; color: var(--green-ink); }
.step h3 { font-size: 1.5rem; }

/* Equipment brand rows */
.lines { display: grid; gap: 20px; }
.line-row {
  display: grid; grid-template-columns: 280px 1fr; background: var(--white);
  border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px;
}
.line-row > * { min-width: 0; }
.line-img { background-color: #3A3637; background-size: cover; background-position: center; min-height: 200px; }
.line-body { padding: 24px 26px; display: grid; gap: 12px; align-content: start; }
.line-origin { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.line-makes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.line-makes li { font-size: 0.86rem; background: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.line-body .btn { justify-self: start; font-size: 1.05rem; padding: 11px 18px; }
@media (max-width: 760px) { .line-row { grid-template-columns: 1fr; } .line-img { min-height: 160px; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { text-decoration: none; font-size: 0.92rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.jump a:hover { background: rgba(255,255,255,0.12); }

/* ---------- Forestry page: Europe Forestry BC look ---------- */
body.forest main { background: var(--ef-navy); color: var(--ef-light); }
body.forest main h1, body.forest main h2, body.forest main h3 { color: var(--white); }
body.forest .eyebrow { color: var(--ef-green); }
body.forest .hero { background-color: var(--ef-deep); }
body.forest .hero::before { background: linear-gradient(100deg, rgba(15,32,51,0.94) 0%, rgba(15,32,51,0.72) 50%, rgba(15,32,51,0.25) 100%); }
body.forest .band-deep { background: var(--ef-deep); }
body.forest .wide-photo { background-color: var(--ef-deep); }
body.forest .wide-photo::before { background: linear-gradient(0deg, rgba(15,32,51,0.88), rgba(15,32,51,0.05) 70%); }
body.forest .wide-photo p::before { background: var(--ef-green); }
.ef-panel { background: var(--ef-deep); border: 1px solid rgba(200,223,240,0.18); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.ef-panel .info-label { color: var(--ef-green); }
.ef-panel .info-value { color: var(--white); }

.table-scroll { overflow-x: auto; border: 1px solid rgba(200,223,240,0.2); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.98rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid rgba(200,223,240,0.14); }
th { font-family: var(--display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; color: var(--ef-light); background: rgba(0,0,0,0.18); }
td { font-variant-numeric: tabular-nums; color: var(--white); }
td:first-child { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ef-green); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 22px; }
.info-item { display: grid; gap: 2px; }
.info-label { font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--red); }
.info-value { font-size: 1.2rem; font-weight: 600; }
.info-value a { text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.info-link { margin-top: 6px; color: var(--green-ink); font-weight: 600; }
.hours { border-collapse: collapse; width: auto; min-width: 0; }
.hours td { padding: 2px 18px 2px 0; border: 0; font-family: var(--body); font-size: 1.1rem; font-weight: 600; color: inherit; background: none; white-space: normal; }

.form { background: var(--grey); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #BDB9BB; border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-done { background: #EEF8E2; border: 1px solid #B9DE8C; color: #2C5A0C; border-radius: var(--radius); padding: 16px; font-weight: 500; }
.form-warn { background: #FCEBEE; border: 1px solid #EBB2BB; color: var(--red-dark); }
.form-forest { background: #EAF3FB; border: 1px solid #BFD6EA; color: var(--ef-navy); border-radius: var(--radius); padding: 14px 16px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #BDB8BA; font-size: 0.95rem; border-top: 5px solid var(--red); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.site-footer .wrap > * { min-width: 0; }
.site-footer h3 { font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: #EDEDED; }
.site-footer a:hover { color: var(--green); }
.foot-brand img { height: 72px; width: auto; background: var(--white); padding: 6px; border-radius: var(--radius); }
.foot-brand p { margin-top: 14px; max-width: 36ch; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.12); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Phone bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--black);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; height: 62px; text-decoration: none;
    font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white);
  }
  .mobile-bar a + a { background: var(--red); }
}

/* Privacy page text column */
.prose{max-width:68ch}
.prose h2{margin-top:clamp(1.5rem,1.2rem + 1.5vw,2.5rem)}
.prose h2:first-child{margin-top:0}
.prose p{margin-top:.75rem}
.prose .muted{opacity:.75;font-size:.9em}
.foot-base a{color:inherit}
