/* National Foods Packaging — site styles
   Palette and type are the single source of truth. Change here, not inline. */

:root {
  --ink: #042c53;
  --navy: #0c447c;
  --blue: #185fa5;
  --blue-link: #12518f;
  --pale: #e6f1fb;
  --bone: #f5f4f0;
  --paper: #ffffff;
  --text: #22221f;
  --muted: #56554f;
  --line: #d9d7cf;
  --line-soft: #e8e6df;
  --amber: #b3760f;

  --wrap: 1120px;
  --gut: 24px;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

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

a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

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

/* ---------- masthead ---------- */

.masthead {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark { display: flex; align-items: center; }
.wordmark img { height: 80px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.nav a[aria-current="page"] { border-bottom: 2px solid var(--blue); padding-bottom: 2px; }

.nav .tel {
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
  background: var(--blue);
  padding: 7px 13px;
  border-radius: 3px;
  white-space: nowrap;
}
.nav .tel:hover { background: #1d6fbd; text-decoration: none; }

/* ---------- hero ---------- */

.hero { background: var(--navy); color: #fff; padding: 46px 0 40px; text-align: center; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ec8ef;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 20em;
}

.hero p {
  font-size: 17px;
  line-height: 1.62;
  color: #cfe3f7;
  margin: 0 auto 26px;
  max-width: 44em;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-solid { background: #fff; color: var(--ink); }
.btn-solid:hover { background: var(--pale); }

.btn-ghost { border-color: #4b93da; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1d6fbd; }

/* quote card in hero */
.hero-card {
  background: #fff;
  color: var(--text);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}
.hero-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.hero-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.55;
}
.hero-card .btn { display: block; text-align: center; }

/* ---------- capability strip ---------- */

.strip {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 20px 18px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.stat span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- sections ---------- */

.section { padding: 52px 0; }
.section-tint { background: var(--bone); }
.section-line { border-top: 1px solid var(--line); }

.section-head { margin: 0 auto 28px; max-width: 62ch; text-align: center; }
.section-head h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

.lede { font-size: 17px; line-height: 1.65; max-width: 66ch; }

.prose { max-width: 68ch; margin: 0 auto; text-align: center; }
.prose ul {
  display: table;      /* shrink-wrap so the centered list keeps aligned bullets */
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 30px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- line cards ---------- */

/* Three columns is deliberate; auto-fit would leave dead cells at wider
   viewports. Card count varies as lines change — a short last row is fine. */
.lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.line-card { background: var(--paper); padding: 22px 20px; text-align: center; }
/* Five cards in a three-column grid leave a blank cell; the last card
   spans two columns so every row fills. Revisit if the card count changes. */
.line-card:last-child { grid-column: span 2; }
.line-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}
.line-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.line-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- catalog ---------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.filters button {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 3px;
  cursor: pointer;
}
.filters button:hover { border-color: var(--blue); color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.catalog-wrap { overflow-x: auto; }

table.catalog {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.catalog caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 12px;
}
table.catalog th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: var(--bone);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.catalog td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.catalog tbody tr:hover { background: #fafaf7; }
table.catalog .item { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
table.catalog .name { font-weight: 500; color: var(--ink); }
table.catalog .pack { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.catalog .rev { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
table.catalog .spec { white-space: nowrap; }
table.catalog .spec a { font-size: 13.5px; font-weight: 500; }
table.catalog .spec .none { color: var(--muted); font-size: 13px; }

.empty {
  padding: 30px 14px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--navy);
  background: var(--pale);
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- trust row ---------- */

/* Explicit three columns: six cards make two full rows. auto-fit gave four
   columns at desktop width, leaving a lopsided 4+2 split. */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trust div {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
}
.trust b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.trust span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- certification logos ---------- */

.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cert-logos img { height: 44px; width: auto; }

/* ---------- brands ---------- */

.brands {
  margin-top: 34px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  text-align: center;
}
.brands-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-logos img { height: 52px; width: auto; }
.brands-note {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 0;
}
.carried-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.carried-tags .tag { font-size: 13px; padding: 5px 12px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  text-align: center;
}

/* form fields stay left-aligned — centered labels over full-width inputs
   read badly; the intro above the form still centers via .contact-grid */
form.enquiry { text-align: left; }

dl.details { margin: 0; }
dl.details dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
}
dl.details dt:first-child { margin-top: 0; }
dl.details dd { margin: 5px 0 0; font-size: 16px; line-height: 1.55; }

form.enquiry { display: block; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(24, 95, 165, 0.18);
  outline-offset: 0;
}
form.enquiry button { border: 0; cursor: pointer; font-family: var(--sans); }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #b8d5f0;
  padding: 34px 0 26px;
  font-size: 14px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  text-align: center;
}
.footer b { display: block; color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.footer a { color: #b8d5f0; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12.5px;
  color: #85b7eb;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  /* keep three footer columns: three blocks in two columns split 2+1 */
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 560px) {
  .lines { grid-template-columns: minmax(0, 1fr); }
  .line-card:last-child { grid-column: auto; }  /* span 2 would overflow a 1-col grid */
  .trust { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { letter-spacing: 0.08em; font-size: 10.5px; }
  .section { padding: 38px 0; }
  .hero { padding: 34px 0 32px; }
  .masthead .wrap { min-height: 0; }
  .wordmark img { height: 64px; }
  .nav { gap: 16px; width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .masthead, .footer, .filters, .actions, .hero-card { display: none; }
  body { color: #000; }
  .hero, .strip, .section-tint { background: #fff; color: #000; }
  .hero h1, .hero p, .eyebrow { color: #000; }
}
