/* New Frontier Poultry
   Direction: a well-run family plant. White and warm stone like a clean processing room,
   charcoal type, a kraft case label as the hero object; the logo gradient appears only in
   the mark and one thin stripe at the top (the truck livery stripe). Light theme by choice. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --gradient-start: #8b2cff;
  --gradient-end: #00c2e0;
  --violet: #6a12c9;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --muted: #5f5b55;
  --paper: #ffffff;
  --stone: #f4f2ee;
  --kraft: #d8c29d;
  --kraft-line: #a88f66;
  --charcoal: #1f1e1c;
  --on-charcoal: #ecebe8;
  --muted-charcoal: #b3afa8;
  --line: #dedad3;
  --line-strong: #8d877e;
  --success: #1b7f4b;
  --danger: #b3261e;

  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;   /* chips */
  --radius-md: 6px;   /* buttons, form fields */
  --radius-lg: 8px;   /* cards, panels, photos, the form */
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink-soft); font-family: var(--font-sans); font-size: 17px; line-height: 28px; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.alt { background: var(--stone); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* type */
.eyebrow { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--muted); }
.spec { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.display { font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.015em; }
.h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.22; letter-spacing: -0.01em; }
.h3 { font-size: 21px; line-height: 29px; }
.lead { font-size: 20px; line-height: 32px; max-width: 32em; color: var(--ink-soft); }
.small { font-size: 15px; line-height: 24px; }
.measure { max-width: 38em; }
.todo { border-bottom: 1px dashed currentColor; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: var(--radius-md); font: 600 16px/20px var(--font-sans); text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); color: var(--paper); border-color: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* header */
body::before { content: ""; display: none; height: 4px; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-soft); }
.brand:hover { color: var(--ink-soft); }
.brand img { width: 46px; height: auto; display: block; }
.wordmark { font-size: 16px; letter-spacing: .12em; line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); }
.wordmark .l { font-weight: 300; }
.wordmark .b { font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .wordmark { display: none; } }

/* hero */
.hero { padding-block: 64px 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .hero { padding-block: 96px; } }
.hero-copy { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero photo (truck); falls back to the logo on stone until the photo is added */
.hero-media { margin: 0; position: relative; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; max-width: 100%; background: var(--stone); overflow: hidden; }
.hero-media picture, .hero-media picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { display: none; }
.hero-media.is-empty .hero-fallback { display: block; position: absolute; inset: 0; margin: auto; width: 62%; height: auto; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
@media (max-width: 959px) { .hero-media { aspect-ratio: 16 / 10; } }

/* section heads */
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 46em; }

/* capabilities */
.caps { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cap { border-radius: var(--radius-lg); background: var(--stone); padding: 28px 24px 32px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--ink); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.step { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.step .num { font-size: 15px; font-weight: 600; color: var(--muted); }
.step .spec { font-size: 19px; line-height: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); }

/* serve */
.serve { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .serve { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.who li { display: grid; gap: 4px 24px; grid-template-columns: minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .who li { grid-template-columns: 180px minmax(0, 1fr); } }
.who strong { color: var(--ink); font-weight: 600; }

/* quality */
.quality { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q { border-radius: var(--radius-lg); background: var(--paper); padding: 24px; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); }

/* about */
.about { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.about-copy { display: grid; gap: 16px; max-width: 38em; }
.about-copy .h3 { font-weight: 400; font-size: 24px; line-height: 34px; }

/* contact */
.contact { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.details { display: grid; gap: 26px; align-content: start; }
.detail { display: grid; gap: 4px; }
.detail .value { color: var(--ink); font-size: 19px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail .value a { text-decoration: none; }
.detail .value a:hover { text-decoration: underline; }
.detail address { font-style: normal; color: var(--ink-soft); }

.form { background: var(--paper); border: 1px solid var(--line); padding: 28px 20px; display: grid; gap: 20px; border-radius: var(--radius-lg); }
@media (min-width: 600px) { .form { padding: 40px; } }
.row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 11px 12px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.status { font-size: 15px; line-height: 22px; font-weight: 600; min-height: 22px; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--charcoal); color: var(--muted-charcoal); padding-block: 56px 40px; }
.site-footer .wordmark { color: var(--on-charcoal); }
.foot { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .foot { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } }
.foot address { font-style: normal; }
.foot a { color: var(--on-charcoal); }
.foot a:hover { color: var(--on-charcoal); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.site-footer .spec { color: var(--on-charcoal); }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3a3835; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .legal.spec { color: var(--muted-charcoal); font-weight: 400; }

/* cuts */
.cuts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cuts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cuts li { border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 16px 18px; font-weight: 600; color: var(--ink); }
.cuts li:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* certification links */
.verify { margin-top: 40px; display: grid; gap: 14px; }
.verify-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .verify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.org { border-radius: var(--radius-lg); display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--stone); border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); min-width: 0; }
.org:hover { border-color: var(--ink); color: var(--ink-soft); }
.org-logo { flex: 0 0 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.org-logo img { width: 88px; height: 88px; object-fit: contain; }
.org-logo.empty::after { content: "IFANCC"; }
.org-logo.empty, .org-name { font-weight: 600; letter-spacing: .06em; color: var(--ink); font-size: 22px; }
.org-text { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 22px; }
.org-text strong { color: var(--ink); }
.org-text strong::after { content: " \2197"; font-weight: 400; color: var(--muted); }
@media (max-width: 420px) { .org { flex-direction: column; align-items: flex-start; } .org-logo { flex-basis: auto; width: 96px; } }

/* freshness: two routes drawn as lines with stops */
.routes { display: grid; gap: 40px; }
.route { display: grid; gap: 20px; }
.route-name { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.route-other .route-name { color: var(--muted); }
.line { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.line li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: start; align-content: start; }
.line li > :not(.node) { grid-column: 2; }
.line .node { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); position: relative; z-index: 1; }
.line .node svg { width: 24px; height: 24px; }
.line strong { color: var(--ink); font-weight: 600; font-size: 18px; line-height: 26px; padding-top: 4px; }
.line .stop-note { font-size: 15px; line-height: 22px; color: var(--muted); }
.line li.end .node { background: var(--ink); color: var(--paper); }
/* connecting line (vertical on phones) */
.line::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end)); }
.route-other .line { gap: 14px; }
.route-other .line::before { width: 0; left: 26px; background: none; border-left: 2px dashed var(--line-strong); }
.route-other .node { width: 52px; height: 40px; border: 0; background: transparent; }
.route-other .node::before { content: ""; position: absolute; inset: 0 6px; border-radius: 50%; background: var(--stone); border: 1.5px solid var(--line-strong); z-index: -1; }
.route-other .node svg { width: 20px; height: 20px; color: var(--muted); }
.route-other strong { font-weight: 400; color: var(--ink-soft); font-size: 16px; padding-top: 8px; }
@media (min-width: 900px) {
  .routes { gap: 48px; }
  .line { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
  .line li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; justify-items: start; }
  .line li > :not(.node) { grid-column: 1; }
  .line .node { grid-row: auto; margin-bottom: 10px; }
  .line::before { left: 26px; right: calc((100% - 16px * (var(--n) - 1)) / var(--n) - 26px); top: 24px; bottom: auto; width: auto; height: 4px; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
  .route-other .line::before { left: 26px; top: 19px; height: 0; width: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .route-other .node { width: 40px; height: 40px; margin-left: 6px; }
  .route-other .node::before { inset: 0; }
  .route-other strong { padding-top: 0; font-size: 15px; }
}

.detail .value.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 24px; font-size: 17px; line-height: 26px; }
.detail .value.hours span:nth-child(odd) { font-weight: 400; color: var(--ink-soft); }

/* sister company band */
.sister { border-radius: var(--radius-lg); margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.sister-text { display: grid; gap: 8px; max-width: 46em; min-width: 0; }
.sister .h3 { font-weight: 600; color: var(--ink); }

/* company switcher: identical bar on both sites, current site marked */
.family { background: var(--charcoal); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)) 1; }
.family .wrap { display: flex; gap: 4px; min-height: 36px; align-items: stretch; overflow-x: auto; }
.family-link { display: inline-flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted-charcoal); text-decoration: none; white-space: nowrap; }
.family-link:first-child { margin-left: -14px; }
.family-link:hover { color: var(--on-charcoal); }
.family-link.is-current { color: var(--on-charcoal); background: rgba(255,255,255,.08); }
.family-link .short { display: none; }
@media (max-width: 600px) { .family-link .full { display: none; } .family-link .short { display: inline; } }

/* back to top: appears after scrolling down a screen and a half */
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--violet); border-color: var(--violet); }
.to-top svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .to-top { right: 24px; bottom: 24px; } }
@media print { .to-top { display: none; } }

/* main menu: all sections; below 1100px a Menu button opens them as a list */
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; font: 600 15px/1 var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1180px) { .nav-links { gap: 20px; } }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 420px) { .nav-toggle span { display: none; } }
@media (min-width: 861px) and (max-width: 1100px) {
  .nav.is-short .nav-toggle { display: none; }
  .nav.is-short .nav-links { display: flex; position: static; flex-direction: row; align-items: center; gap: 20px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav.is-short .nav-links a { padding: 0; font-size: 15px; border: 0; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .nav { gap: 8px; }
  .nav .btn { padding-inline: 12px; font-size: 14px; }
  .nav-toggle { flex-shrink: 0; padding: 8px 10px; }
  .brand { min-width: 0; flex-shrink: 1; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle path { transition: none; } }
