/* ===== Heritage Farms Canada — Stylesheet ===== */

:root {
  --green-900: #1f3a24;
  --green-800: #2c4f33;
  --green-700: #386b3f;
  --green-600: #4b8552;
  --green-500: #6aa370;
  --green-50:  #eef5ee;
  --cream:     #faf6ef;
  --beige:     #f0e7d4;
  --gold:      #c79b3a;
  --gold-dark: #a37d22;
  --brown-900: #2b1d10;
  --brown-700: #4a3520;
  --brown-500: #7a5a36;
  --text:      #2b2b2b;
  --muted:     #6b6b6b;
  --line:      #e3dccd;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(43, 29, 16, 0.06);
  --shadow-md: 0 12px 32px rgba(43, 29, 16, 0.12);
  --max:       1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text); }

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

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

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  transition: transform .2s;
}
.brand:hover .brand-logo { transform: scale(1.03); }

.brand-logo-footer {
  height: 90px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--brown-700);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.site-nav a:hover { color: var(--green-800); }
.site-nav a.active { color: var(--green-800); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}
.site-nav .nav-cta {
  background: var(--green-800);
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
}
.site-nav .nav-cta:hover { background: var(--green-900); color: var(--white); }
.site-nav .nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-900);
  transition: transform .2s, opacity .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
  line-height: 1;
}
.btn-primary {
  background: var(--green-800);
  color: var(--cream);
  border-color: var(--green-800);
}
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: var(--cream); }
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--cream);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: var(--white); }
.btn-large { padding: 16px 28px; font-size: 1rem; }

/* ===== Eyebrow & section heads ===== */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--gold); }

.lede {
  font-size: 1.15rem;
  color: var(--brown-700);
  max-width: 640px;
  margin-bottom: 28px;
}
.lede-light { color: rgba(250,246,239,0.92); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(31,58,36,0.6), rgba(122,90,54,0.35)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(31,58,36,0.55) 100%);
}
.hero-inner {
  position: relative;
  padding: 120px 24px;
  max-width: 880px;
}
.hero h1 {
  color: var(--cream);
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero .lede { color: rgba(250,246,239,0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Page hero (smaller) ===== */
.page-hero {
  position: relative;
  color: var(--cream);
  padding: 110px 0 90px;
  background: var(--green-800);
}
.page-hero h1 { color: var(--cream); }
.page-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,58,36,0.72), rgba(74,53,32,0.5));
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero-about {
  background:
    url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.page-hero-products {
  background:
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.page-hero-careers {
  background:
    url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  padding-bottom: 110px;
}
.page-hero-contact {
  background:
    url("https://images.unsplash.com/photo-1500076656116-558758c991c1?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

/* ===== Section utilities ===== */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); }
.center { text-align: center; }

/* ===== Grids ===== */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Feature strip ===== */
.feature {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Two-col ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-text h2 { margin-bottom: 18px; }
.two-col-media {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.image-card {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}
.image-card-1 { background-image: url("https://images.unsplash.com/photo-1605000797499-95a51c5269ae?auto=format&fit=crop&w=900&q=80"); }
.image-card-2 { background-image: url("https://images.unsplash.com/photo-1574943320219-553eb213f72d?auto=format&fit=crop&w=900&q=80"); margin-top: 32px; }
.image-card-market {
  background-image: url("https://images.unsplash.com/photo-1488459716781-31db52582fe9?auto=format&fit=crop&w=1200&q=80");
  aspect-ratio: 4/3;
  grid-column: 1 / -1;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.card-img-dairy   { background-image: url("https://images.unsplash.com/photo-1563636619-e9143da7973b?auto=format&fit=crop&w=900&q=80"); }
.card-img-poultry { background-image: url("https://images.unsplash.com/photo-1569597967185-cd6120712154?auto=format&fit=crop&w=900&q=80"); }
.card-img-produce { background-image: url("https://images.unsplash.com/photo-1518843875459-f738682238a6?auto=format&fit=crop&w=900&q=80"); }
.card-img-fruit   { background-image: url("https://images.unsplash.com/photo-1502741338009-cac2772e18bc?auto=format&fit=crop&w=900&q=80"); }
.card-img-grain   { background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=900&q=80"); }
.card-img-meat    { background-image: url("https://images.unsplash.com/photo-1602491674275-316d95560fb5?auto=format&fit=crop&w=900&q=80"); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); margin: 0; }

/* ===== Hire banner ===== */
.hire-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: var(--cream);
  padding: 64px 0;
}
.hire-banner h2 { color: var(--cream); }
.hire-banner p { color: rgba(250,246,239,0.9); margin-bottom: 0; max-width: 540px; }
.hire-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ===== Values / stats ===== */
.value-card {
  background: var(--cream);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
}
.value-card .feature-icon { font-size: 2.5rem; }

.stats { text-align: center; }
.stat {
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: var(--green-800);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-label { color: var(--muted); font-size: .92rem; text-transform: uppercase; letter-spacing: 1.5px; }

.prose-grid h3 { color: var(--green-800); margin-bottom: 8px; }
.prose-grid p { color: var(--muted); }

/* ===== Careers page ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-tile {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.info-label {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.info-value { color: var(--text); font-weight: 500; font-size: .98rem; line-height: 1.4; }

.positions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.position {
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green-700);
  font-weight: 500;
  color: var(--brown-700);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s;
}
.position:hover {
  transform: translateX(3px);
  border-left-color: var(--gold);
}

.detail-card {
  background: var(--cream);
  padding: 28px 22px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
}
.detail-card h4 { margin: 8px 0; color: var(--green-800); }
.detail-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.benefits-grid { gap: 24px; }
.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.benefit-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.benefit h4 { margin: 0 0 4px; color: var(--green-800); }
.benefit p { margin: 0; color: var(--muted); font-size: .93rem; }

.responsibilities, .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.responsibilities li, .check-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .98rem;
}
.responsibilities li::before, .check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--green-700);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.check-list-large li { font-size: 1.02rem; padding: 16px 16px 16px 48px; }

/* ===== Apply section ===== */
.apply-section { background: var(--green-900); color: var(--cream); }
.apply-section h2 { color: var(--cream); }
.apply-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 48px;
  border-radius: var(--radius);
  max-width: 940px;
  margin: 0 auto;
}
.apply-card h3 { color: var(--cream); margin-top: 12px; }
.apply-card p { color: rgba(250,246,239,0.85); }

.apply-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}
.apply-method {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 18px;
  border-radius: var(--radius-sm);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .2s;
}
a.apply-method:hover { background: rgba(255,255,255,0.12); }
.apply-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-700);
  border-radius: 10px;
  flex-shrink: 0;
}
.apply-label {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.apply-value { color: var(--cream); font-weight: 500; line-height: 1.3; }

.apply-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 36px 0 28px;
}

/* ===== Forms ===== */
.apply-form { display: grid; gap: 16px; }
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(250,246,239,0.8);
}
.contact-form label { color: var(--brown-700); }
.apply-form input,
.apply-form select,
.apply-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  transition: border-color .2s, background .2s;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}
.apply-form option {
  color: var(--text);
  background: var(--white);
  font-weight: 500;
}
.apply-form select { color: var(--cream); }
.apply-form select:invalid { color: rgba(250,246,239,0.55); }
.contact-form select { color: var(--text); }
.contact-form option { color: var(--text); background: var(--white); }
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green-700);
  background: var(--white);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note { font-size: .78rem; color: rgba(250,246,239,0.55); margin: 0; text-transform: none; letter-spacing: 0; }

/* ===== Closing banner ===== */
.closing-banner {
  background: var(--beige);
  padding: 60px 0;
}
.closing-banner h2 {
  font-size: 1.6rem;
  font-style: italic;
  max-width: 900px;
  margin: 0 auto;
  color: var(--brown-900);
}

/* ===== Contact page ===== */
.contact-blocks { display: grid; gap: 22px; margin-top: 28px; }
.contact-block-label {
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.contact-block-value { color: var(--text); font-size: 1rem; }

.map-placeholder {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--cream);
  padding: 60px 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.map-pin { font-size: 3rem; }
.map-placeholder h3 { color: var(--cream); margin-bottom: 6px; }
.map-placeholder p { color: rgba(250,246,239,0.85); margin-bottom: 16px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-900);
  color: rgba(250,246,239,0.85);
  padding: 60px 0 24px;
}
.brand-footer { display: inline-block; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: var(--cream); margin-bottom: 14px; font-family: 'Inter', sans-serif; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer p { color: rgba(250,246,239,0.85); }
.site-footer a { color: rgba(250,246,239,0.85); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: .85rem;
}
.footer-bottom p { color: rgba(250,246,239,0.65); margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .positions-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .apply-methods { grid-template-columns: 1fr; }
  .apply-card { padding: 32px 24px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .brand-logo { height: 48px; }
  .brand-logo-footer { height: 76px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { display: inline-block; align-self: flex-start; margin-top: 8px; }
  .hero { min-height: 70vh; }
  .hero-inner { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .positions-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .responsibilities, .check-list { grid-template-columns: 1fr; }
  .hire-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .closing-banner h2 { font-size: 1.25rem; }
  .image-card-2 { margin-top: 0; }
}

@media (max-width: 440px) {
  .positions-grid { grid-template-columns: 1fr; }
  .map-placeholder { padding: 36px 24px; }
}
