/* ==========================================================================
   Fieldreams Canada — main stylesheet
   ========================================================================== */

:root {
  --green: #006C2F;
  --green-deep: #00783E;
  --green-hover: #004E22;
  --lime: #A9D046;
  --lime-pale: #E7EEB0;
  --green-support: #29902F;
  --leaf: #70B616;
  --footer: #063D25;
  --charcoal: #17211B;
  --body: #34413A;
  --muted: #66736B;
  --bg-grey: #F4F7F3;
  --bg-soft: #EDF5EA;
  --offwhite: #FAFBF8;
  --white: #FFFFFF;
  --border: #DCE5DC;
  --overlay: rgba(4, 39, 24, 0.70);

  --maxw: 1200px;
  --radius-card: 14px;
  --radius-btn: 9px;
  --shadow-sm: 0 1px 2px rgba(6, 61, 37, .05), 0 6px 20px rgba(6, 61, 37, .05);
  --shadow-md: 0 2px 6px rgba(6, 61, 37, .06), 0 18px 44px rgba(6, 61, 37, .09);
  --font: "Manrope", "Inter", Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

h1, h2, h3, h4 {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.9rem); line-height: 1.16; }
h3 { font-size: 1.24rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

section { padding: 104px 0; }
@media (max-width: 1023px) { section { padding: 80px 0; } }
@media (max-width: 767px)  { section { padding: 62px 0; } }

.bg-white { background: var(--white); }
.bg-grey  { background: var(--bg-grey); }
.bg-soft  { background: var(--bg-soft); }
.bg-dark  { background: var(--footer); color: #DCE7DC; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .lead { color: #C8D5CC; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.bg-dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--lime); vertical-align: middle; margin-right: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.75; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: .97rem; font-weight: 700; line-height: 1;
  padding: 16px 28px; border-radius: var(--radius-btn);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--green); color: var(--green); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--green-hover); }
.btn-on-dark { background: #fff; color: var(--green); }
.btn-on-dark:hover { background: var(--lime-pale); color: var(--green-hover); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 12px 20px; font-size: .9rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--green);
}
.link-arrow span.arw { transition: transform .22s ease; }
.link-arrow:hover span.arw { transform: translateX(4px); }
.bg-dark .link-arrow { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, padding .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 18px rgba(6,61,37,.06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 24px; max-width: var(--maxw); margin: 0 auto;
  transition: padding .25s ease;
}
.site-header.scrolled .header-inner { padding: 11px 24px; }
.brand img { height: 46px; width: auto; transition: height .25s ease; }
.site-header.scrolled .brand img { height: 38px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { list-style: none; position: relative; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list li { list-style: none; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: .95rem; font-weight: 600; color: var(--body);
  background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 8px;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--green); }
.nav-link[aria-current="page"] { color: var(--green); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--lime);
}
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s ease; }
.has-dropdown[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-2px,-2px); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 310px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: .93rem; font-weight: 600; color: var(--body);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--green); }

.header-cta { display: inline-flex; }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; background: none;
    border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--charcoal); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 76px 0 0 0; display: block; background: #fff;
    padding: 18px 24px 48px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-list { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 17px 4px; font-size: 1.06rem; }
  .nav-link[aria-current="page"]::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    border: 0; box-shadow: none; padding: 0 0 12px 4px; min-width: 0;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 12px 10px; color: var(--muted); }
  .mobile-cta { display: block; margin-top: 28px; }
  .mobile-cta .btn { width: 100%; }
}
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(4,39,24,.92) 0%, rgba(4,39,24,.80) 45%, rgba(4,39,24,.48) 100%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 148px 24px 128px; }
.hero-copy { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero .hero-intro { font-size: 1.2rem; color: #E4EFE3; max-width: 640px; }
.hero .hero-support {
  font-size: 1rem; color: #C8D5CC; max-width: 620px;
  border-left: 3px solid var(--lime); padding-left: 20px; margin-top: 26px;
}
@media (max-width: 767px) { .hero-inner { padding: 92px 24px 78px; } .hero .hero-intro { font-size: 1.06rem; } }

/* Page hero (interior) */
.page-hero { position: relative; color: #fff; padding: 0; isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4,39,24,.93) 0%, rgba(4,39,24,.82) 52%, rgba(4,39,24,.58) 100%);
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 118px 24px 100px; }
.page-hero h1 { color: #fff; max-width: 900px; font-size: clamp(1.95rem, 3.6vw, 3.35rem); }
.page-hero .lead { color: #DCE7DC; max-width: 720px; }
@media (max-width: 767px) { .page-hero-inner { padding: 76px 24px 66px; } }

.breadcrumb { font-size: .84rem; color: #B9CBBD; margin-bottom: 22px; }
.breadcrumb a { color: #DCE7DC; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span { padding: 0 8px; opacity: .6; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C3D8C4; }
.card p { color: var(--muted); font-size: .98rem; }
.card h3 { margin-bottom: 12px; }
.card .link-arrow { margin-top: 18px; }
.bg-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.bg-dark .card p { color: #C8D5CC; }

.card-media { overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.card-media .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media:hover .thumb img { transform: scale(1.04); }
.card-media .card-body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.card-media .card-body p { color: var(--muted); font-size: .98rem; }
.card-media .link-arrow { margin-top: auto; padding-top: 20px; }

.numbered { counter-reset: step; }
.pillar { border-top: 2px solid var(--border); padding-top: 26px; }
.pillar .num {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  color: var(--green); background: var(--bg-soft); border-radius: 6px; padding: 5px 10px; margin-bottom: 16px;
}
.bg-dark .pillar { border-top-color: rgba(255,255,255,.18); }
.bg-dark .pillar .num { color: var(--footer); background: var(--lime); }
.pillar p { color: var(--muted); font-size: .98rem; }
.bg-dark .pillar p { color: #C8D5CC; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 68px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-card); object-fit: cover; aspect-ratio: 4 / 3; }
.split-media.tall img { aspect-ratio: 3 / 4; }
.split-media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 118px; height: 118px;
  border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); border-radius: 0 0 0 14px;
}
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split-media.tall img { aspect-ratio: 4 / 3; }
}

/* Feature list */
.tick-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick-list.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .tick-list.cols-2 { grid-template-columns: 1fr; } }
.tick-list li { position: relative; padding-left: 30px; font-size: .99rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px;
  background: var(--lime); border-radius: 2px; transform: rotate(45deg);
}
.bg-dark .tick-list li { color: #DCE7DC; }

/* Band / CTA */
.cta-band { background: var(--footer); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-band p { color: #C8D5CC; max-width: 700px; margin-left: auto; margin-right: auto; font-size: 1.08rem; }
.cta-band .btn-group { justify-content: center; }

.notice {
  border-left: 3px solid var(--lime); background: var(--bg-grey);
  padding: 28px 30px; border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--muted);
}
.notice strong { color: var(--charcoal); display: block; margin-bottom: 8px; font-size: 1rem; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.stat-strip div { padding: 32px; border-right: 1px solid var(--border); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip .k { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 8px; }
@media (max-width: 767px) { .stat-strip { grid-template-columns: 1fr; } .stat-strip div { border-right: 0; border-bottom: 1px solid var(--border); } }

.topic-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); background: var(--bg-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}

.image-band { position: relative; height: 380px; }
.image-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .image-band { height: 240px; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img { border-radius: var(--radius-card); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--charcoal); }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--body);
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,108,47,.12);
}
.field textarea { min-height: 168px; resize: vertical; }
.field .error-msg { font-size: .84rem; color: #8A2A16; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #8A2A16; }
.field.invalid .error-msg { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; grid-column: 1 / -1; font-size: .93rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; padding: 18px 22px; border-radius: 10px; margin-bottom: 26px; font-size: .96rem; }
.form-alert.show { display: block; }
.form-alert.success { background: var(--bg-soft); border-left: 3px solid var(--green); color: var(--charcoal); }
.form-alert.error { background: #FBEFEC; border-left: 3px solid #8A2A16; color: #6B2211; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }

.contact-layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 60px; align-items: start; }
@media (max-width: 1023px) { .contact-layout { grid-template-columns: 1fr; gap: 46px; } }
.contact-panel { background: var(--bg-grey); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 34px 32px; }
.contact-panel dl { margin: 0; }
.contact-panel dt { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-top: 22px; }
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd { margin: 6px 0 0; font-size: 1rem; color: var(--charcoal); font-weight: 600; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 46px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 76px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 46px; }
@media (max-width: 1023px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 38px; } }
@media (max-width: 600px)  { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { width: 132px; height: auto; margin-bottom: 22px; }
.footer-brand p { color: #C8D5CC; font-size: .95rem; max-width: 330px; }
.footer-col h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span { color: #C8D5CC; font-size: .95rem; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 62px; border-top: 1px solid rgba(255,255,255,.14); padding: 26px 0 34px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  font-size: .87rem; color: #C8D5CC;
}
.footer-bottom a { color: #C8D5CC; }
.footer-bottom a:hover { color: var(--lime); }
.footer-bottom .group-line { color: var(--lime); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
