/* ============================================================
   BELED POULTRY design tokens (v2)
   A working-catalog aesthetic: warm paper neutrals, farm green,
   a Franklin-gothic-descended display face. Light-first; the
   subject is equipment and food safety, not software.
   ============================================================ */
:root {
  --green:       #1E8A3C;
  --green-dark:  #146429;
  --green-bright:#00A73E;   /* exact brand mark green, badges/logo only */
  --green-tint:  #EAF5EC;
  --amber:       #C97A24;
  --amber-tint:  #FBF0E1;
  --ink:         #23241E;
  --ink-soft:    #4B4F45;
  --steel:       #6C7268;
  --paper:       #FBFAF5;
  --paper-2:     #F2F0E6;
  --paper-3:     #EAE7D9;
  --white:       #FFFFFF;
  --line:        #E1DDCC;

  --bg:          var(--paper);
  --bg-raised:   var(--white);
  --bg-sunken:   var(--paper-2);
  --text:        var(--ink);
  --text-muted:  var(--steel);
  --accent:      var(--green);
  --accent-dark: var(--green-dark);
  --accent-ink:  #FFFFFF;
  --border:      var(--line);

  --display: "Libre Franklin", "Arial Narrow", Arial, sans-serif;
  --body:    "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1240px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(35,36,30,0.05), 0 8px 24px -12px rgba(35,36,30,0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #1B1D17;
    --bg-raised:   #24261F;
    --bg-sunken:   #17190F;
    --text:        #ECEAE0;
    --text-muted:  #A8AB9C;
    --accent:      #46C86B;
    --accent-dark: #5AD87D;
    --accent-ink:  #0E1A10;
    --border:      #383B30;
    --green-tint:  #1E2A1F;
    --amber-tint:  #2E2413;
  }
}
:root[data-theme="dark"] {
  --bg:          #1B1D17;
  --bg-raised:   #24261F;
  --bg-sunken:   #17190F;
  --text:        #ECEAE0;
  --text-muted:  #A8AB9C;
  --accent:      #46C86B;
  --accent-dark: #5AD87D;
  --accent-ink:  #0E1A10;
  --border:      #383B30;
  --green-tint:  #1E2A1F;
  --amber-tint:  #2E2413;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
table { border-collapse: collapse; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 640px) { .container { padding-inline: 20px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Pill-badge variant (matches the Company page section kickers): a rounded
   chip instead of the underline-dash eyebrow. Opt-in via an extra class so
   the plain .eyebrow used over hero photos elsewhere is untouched. */
.eyebrow-badge {
  display: inline-flex; padding: 7px 16px; border-radius: 999px;
  background: var(--green-tint); color: var(--accent-dark);
  font-family: var(--body); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0; text-transform: none;
}
.eyebrow-badge::before { content: none; }

.section { padding-block: 84px; }
.section.tight { padding-block: 56px; }
.section--tight-top { padding-top: 40px; }
.section-alt { background: var(--bg-sunken); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 16.5px; max-width: 58ch; }
/* Wide variant: let the heading/paragraph spread across the section instead of
   sitting in a narrow left column with empty space beside it. */
.section-head--wide { max-width: none; }
.section-head--wide p { max-width: 92ch; }
@media (max-width: 720px) { .section { padding-block: 56px; } .section--tight-top { padding-top: 32px; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  font-family: var(--body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--bg-raised); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: inline-block;
}
.tag.amber { background: var(--amber-tint); color: var(--amber); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0; line-height: 1.15; color: var(--text); }
.brand-word small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-item > button {
  text-decoration: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: none; border: none;
  display: flex; align-items: center; gap: 6px;
  position: relative;
  transition: color .15s ease;
}
.main-nav > a::after, .nav-item > button::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-nav > a:hover, .nav-item > button:hover, .nav-item.open > button { color: var(--accent-dark); }
.main-nav > a:hover::after, .nav-item > button:hover::after, .nav-item.open > button::after { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-item > button svg { width: 13px; height: 13px; transition: transform .15s ease; }
.nav-item.open > button svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 640px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: none; grid-template-columns: 1fr 1fr; gap: 6px 20px;
  z-index: 50;
}
.nav-item.open .mega-menu { display: grid; }
.mega-menu a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); transition: background .12s ease; }
.mega-menu a:hover { background: var(--green-tint); }
.mega-menu a:hover .mi-num { background: var(--accent); color: #fff; }
.mega-menu .mi-num {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent-dark);
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; transition: background .12s ease, color .12s ease;
}
.mega-menu .mi-title { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.mega-menu .mi-desc { display: block; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }
.mega-menu .mi-all { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.mega-menu .mi-all a { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* Header utility icons (search + email): sit between the nav links and the
   "Request a Quote" button, matching a clean industrial-catalog nav pattern. */
.header-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: none; color: var(--ink-soft);
  text-decoration: none; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--green-tint); }

/* Site search overlay */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(20,22,15,0.55);
  padding: 96px 20px 20px;
  align-items: flex-start; justify-content: center;
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(600px, 100%); background: var(--bg-raised); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.search-box-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search-box-icon { width: 19px; height: 19px; color: var(--text-muted); flex-shrink: 0; }
.search-box-head input {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: var(--body);
  color: var(--text); background: none;
}
.search-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; border: none; background: none;
  color: var(--text-muted); cursor: pointer; flex-shrink: 0;
}
.search-close:hover { color: var(--text); background: var(--bg-sunken); }
.search-close svg { width: 16px; height: 16px; }
.search-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.is-active { background: var(--green-tint); }
.search-results .sr-title { font-weight: 700; font-size: 14.5px; }
.search-results .sr-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.search-results .sr-empty { padding: 16px 12px; color: var(--text-muted); font-size: 13.5px; text-align: center; }

@media (max-width: 1080px) {
  .icon-mail { display: none; }
  .main-nav { position: fixed; inset: 116px 0 0 0; background: var(--bg-raised); flex-direction: column; align-items: stretch; padding: 10px 20px 32px; gap: 0; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .nav-item > button { width: 100%; justify-content: space-between; padding: 16px 6px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 17px; }
  .main-nav > a::after, .nav-item > button::after { display: none; }
  .mega-menu { position: static; transform: none; width: auto; box-shadow: none; border: none; border-bottom: 1px solid var(--border); display: none; grid-template-columns: 1fr; padding: 4px 0 12px; }
  .nav-item.open .mega-menu { display: grid; }
  .header-cta .btn-primary span.full { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: none; border: 1px solid var(--border); border-radius: var(--radius);
    flex-direction: column; gap: 4px;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); }
}

.breadcrumb { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); padding-block: 16px; border-bottom: 1px solid var(--border); }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .current { color: var(--text); }

/* ============================================================
   Hero (home): full-bleed image with text overlaid on the left
   ============================================================ */
.hero { position: relative; padding-block: 0; overflow: hidden; min-height: 86vh; display: flex; align-items: center; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(15,18,10,0.86) 0%, rgba(15,18,10,0.62) 32%, rgba(15,18,10,0.22) 58%, rgba(15,18,10,0.04) 78%);
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; padding: 64px clamp(24px, 6vw, 80px); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: #fff; }
.hero h1 em { color: #8FE3A8; font-style: normal; }
.hero .lede { margin-top: 20px; font-size: 18px; color: #DCDFD1; max-width: 50ch; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
  position: absolute; z-index: 2; bottom: 28px; right: 28px; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.hero-badge .n { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--accent-dark); }
.hero-badge .l { font-size: 12px; color: var(--text-muted); line-height: 1.25; max-width: 15ch; }
@media (max-width: 900px) {
  .hero { min-height: 74vh; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(15,18,10,0.9) 0%, rgba(15,18,10,0.55) 45%, rgba(15,18,10,0.15) 75%, rgba(15,18,10,0.05) 100%); }
  .hero-copy { padding-block: 32px 40px; max-width: 100%; }
  .hero-badge { display: none; }
}

.stat-row { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 56px; }
.stat-row .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.stat-row .stat-cell { background: var(--bg); display: flex; align-items: center; gap: 16px; padding: 22px 20px; transition: background .2s ease; }
.stat-row .stat-cell:hover { background: var(--green-tint); }
.stat-row .stat-icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--green-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease; }
.stat-row .stat-cell:hover .stat-icon-wrap { transform: scale(1.08); }
.stat-row .stat-icon { width: 24px; height: 24px; color: var(--accent-dark); }
.stat-row .num { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--accent-dark); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-row .lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; line-height: 1.3; }
@media (max-width: 700px) { .stat-row .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-row .stat-icon-wrap { width: 44px; height: 44px; } .stat-row .stat-icon { width: 20px; height: 20px; } }

/* Narrow phones: header brand + toggle + CTA can overflow at full size, so compact them. */
@media (max-width: 420px) {
  .site-header .container { gap: 10px; }
  .brand { gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .brand-word { font-size: 14px; }
  .brand-word small { display: none; }
  .header-cta { gap: 6px; }
  .header-cta .btn-primary { padding: 9px 12px; font-size: 13px; }
  .icon-btn { width: 32px; height: 32px; }
  .icon-btn svg { width: 14px; height: 14px; }
}

/* ============================================================
   Category tiles (home + products overview)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  aspect-ratio: 4/5; display: flex; align-items: flex-end; border: 1px solid var(--border);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,15,0.86) 0%, rgba(20,22,15,0.15) 55%, rgba(20,22,15,0) 75%); }
.cat-card .cc-body { position: relative; z-index: 1; padding: 18px; color: #fff; }
.cat-card .cc-count { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #C9E8CE; text-transform: uppercase; }
.cat-card h3 { font-size: 18px; margin-top: 4px; color: #fff; }
.cat-card .cc-arrow { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; z-index: 1; }
.cat-card .cc-arrow svg { width: 15px; height: 15px; color: #fff; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat-card { aspect-ratio: 1/1; } }

/* Wide landscape variant for production-floor photo pairs (e.g. "Inside The Factory"):
   the default 4/5 portrait ratio makes a 2-up landscape photo pair look oversized. */
.cat-card--wide { aspect-ratio: 16/10; }
@media (max-width: 700px) { .cat-card--wide { aspect-ratio: 4/3; } }
@media (max-width: 520px) { .cat-card--wide { aspect-ratio: 4/3; } }

/* Compact variant for the 8-tile product category grid: a slight trim off
   the full-width default (not the small, tightly-capped squares this used
   to be), so tiles read close to their original size. */
.cat-grid--compact { max-width: 1180px; margin-inline: auto; }
.cat-grid--compact .cat-card { aspect-ratio: 4/5; }
@media (max-width: 520px) { .cat-grid--compact .cat-card { aspect-ratio: 1/1; } }

/* ============================================================
   Why us / process strip
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.why-cell { background: var(--bg-raised); padding: 28px 26px; }
.why-cell .wi { width: 34px; height: 34px; color: var(--accent-dark); margin-bottom: 16px; }
.why-cell h3 { font-family: var(--body); font-weight: 700; font-size: 17px; }
.why-cell p { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Testimonial / quote band
   ============================================================ */
.quote-band { background: var(--ink); color: var(--paper); }
.quote-band .container { padding-block: 64px; max-width: 820px; text-align: left; }
.quote-band .qmark { font-family: var(--display); font-size: 60px; color: var(--accent); line-height: .5; }
.quote-band p.qtext { font-family: var(--display); font-weight: 600; font-size: clamp(20px,2.6vw,28px); margin-top: 18px; line-height: 1.35; }
.quote-band .qsource { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; color: #B9C4B4; text-transform: uppercase; letter-spacing: .05em; }

/* ============================================================
   Inquiry process steps (home page)
   ============================================================ */
.process-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.process-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(35,36,30,.06), 0 20px 36px -16px rgba(35,36,30,.28); }
.pc-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: transform .25s ease;
}
.process-card:hover .pc-icon-wrap { transform: scale(1.06); }
.pc-icon { width: 24px; height: 24px; color: var(--accent-dark); }
.pc-step { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.process-card h3 { margin-top: 8px; font-size: 18px; }
.process-card p { margin-top: 10px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--green-tint); border-top: 1px solid var(--border); }
.cta-band .container { padding-block: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px,3vw,32px); }
.cta-band p { color: var(--text-muted); margin-top: 8px; }
@media (max-width: 720px) { .cta-band .container { flex-direction: column; align-items: flex-start; } }

.catalog-band { background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.catalog-band .container { padding-block: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.catalog-band-text { max-width: 620px; }
.catalog-band h2 { font-size: clamp(20px,2.4vw,26px); margin-top: 6px; }
.catalog-band p { color: var(--text-muted); margin-top: 8px; }
@media (max-width: 720px) { .catalog-band .container { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Product listing layout (category pages)
   ============================================================ */
.listing-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.cat-sidebar { position: sticky; top: 100px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
.cat-sidebar h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-sunken); }
.cat-sidebar a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }
.cat-sidebar a:last-child { border-bottom: none; }
.cat-sidebar a:hover { color: var(--accent-dark); background: var(--green-tint); }
.cat-sidebar a.active { color: var(--accent-dark); background: var(--green-tint); box-shadow: inset 3px 0 0 var(--accent); }
.cat-sidebar a .n { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.sidebar-cta { padding: 18px 16px; background: var(--bg-sunken); }
.sidebar-cta p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

.cat-hero { position: relative; min-height: 62vh; display: flex; align-items: center; overflow: hidden; margin-bottom: 40px; background: var(--ink); }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,15,0.5) 0%, rgba(20,22,15,0.78) 35%, rgba(20,22,15,0.78) 65%, rgba(20,22,15,0.5) 100%); z-index: 1; }
.cat-hero-overlay { position: relative; z-index: 2; width: 100%; padding-block: 48px; }
.cat-hero-overlay .eyebrow { color: #C9E8CE; }
.cat-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 12px; color: #fff; max-width: 24ch; }
.cat-hero p { margin-top: 16px; color: #D9DCCF; font-size: 16.5px; max-width: 62ch; }
.cat-hero .chips { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.cat-hero .chips .tag { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(2px); }
@media (max-width: 700px) { .cat-hero { min-height: 50vh; } }
@media (max-width: 980px) { .listing-layout { grid-template-columns: 1fr; } .cat-sidebar { position: static; } }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; text-align: left; display: flex; flex-direction: column; width: 100%; padding: 0;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.p-card:hover { box-shadow: var(--shadow); border-color: var(--border); transform: translateY(-2px); }
.p-card .pc-media { aspect-ratio: 5/4; background: var(--white); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.p-card .pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s ease; }
.p-card:hover .pc-media img { transform: scale(1.05); }
.p-card .pc-code { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10.5px; background: var(--ink); color: var(--paper); padding: 2px 7px; border-radius: 2px; }
.p-card .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h3 { font-family: var(--body); font-size: 15.5px; font-weight: 700; }
.p-card .pc-spec { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.p-card .pc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; } .p-card h3 { font-size: 13.5px; } }

/* ============================================================
   Product modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,25,17,0.6); z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.p-modal {
  background: var(--bg-raised); border-radius: var(--radius); max-width: 860px; width: 100%; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); position: relative;
}
.p-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-sunken); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.p-modal-close svg { width: 16px; height: 16px; }
.p-modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.p-modal-media { background: var(--white); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; }
.p-modal-media img { max-height: 360px; object-fit: contain; }
.pm-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pm-thumb { width: 54px; height: 54px; flex-shrink: 0; padding: 3px; border-radius: 8px; border: 2px solid transparent; background: var(--bg-raised); cursor: pointer; }
.pm-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pm-thumb.active, .pm-thumb:hover { border-color: var(--accent); }
.p-modal-body { padding: 32px 32px 28px; }
.p-modal-body .pc-code { font-family: var(--mono); font-size: 11.5px; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .04em; }
.p-modal-body h2 { font-size: 24px; margin-top: 8px; font-family: var(--body); font-weight: 800; }
.p-modal-body .pm-desc { margin-top: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.pm-specs { margin-top: 20px; border-top: 1px solid var(--border); }
.pm-specs .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pm-specs .row .spec-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--green-tint); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm-specs .row .spec-ic svg { width: 15px; height: 15px; }
.pm-specs .row .k { color: var(--text-muted); flex-shrink: 0; width: 110px; }
.pm-specs .row .v { font-family: var(--mono); font-weight: 600; text-align: right; margin-left: auto; }
.p-modal-body .pm-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .p-modal-grid { grid-template-columns: 1fr; }
  .p-modal { max-height: 92vh; }
  .p-modal-media { border-right: none; border-bottom: 1px solid var(--border); }
  .p-modal-media img { max-height: 240px; }
  .p-modal-body { padding: 24px 20px; }
}

/* ============================================================
   About page
   ============================================================ */
.about-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,15,0.88) 0%, rgba(20,22,15,0.35) 55%, rgba(20,22,15,0.05) 100%); z-index: 1; }
.about-hero-overlay { position: relative; z-index: 2; width: 100%; padding-block: 56px; }
.about-hero-overlay .eyebrow { color: #C9E8CE; }
.about-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 12px; color: #fff; max-width: 20ch; }
.about-hero p { margin-top: 18px; color: #D9DCCF; font-size: 17px; max-width: 60ch; }
@media (max-width: 700px) { .about-hero { min-height: 56vh; } }

.industry-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.industry-stat { border-top: 3px solid var(--accent); padding-top: 16px; }
.industry-stat .is-num { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.industry-stat .is-lbl { margin-top: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.35; }
@media (max-width: 700px) { .industry-stats { grid-template-columns: 1fr; } }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.value-item { display: flex; gap: 20px; align-items: flex-start; }
.value-item .vi-icon-wrap {
  position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: var(--green-tint); display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.value-item:hover .vi-icon-wrap { transform: scale(1.06); }
.value-item .vi-icon { width: 26px; height: 26px; color: var(--accent-dark); }
.value-item .vi-mark {
  position: absolute; bottom: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800;
  font-size: 9.5px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.value-item h3 { font-family: var(--body); font-weight: 700; font-size: 16.5px; }
.value-item p { margin-top: 6px; color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }

/* ============================================================
   About page: alternating text/image story blocks
   ============================================================ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split + .about-split { margin-top: 72px; }
.about-split--rev .about-split-media { order: -1; }
.about-split-kicker {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  background: var(--green-tint); color: var(--accent-dark);
  font-family: var(--body); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0; text-transform: none;
}
.about-split-copy h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 10px; }
.about-split-copy p { margin-top: 14px; color: var(--text-muted); font-size: 16px; max-width: 54ch; }
.about-split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.about-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-split-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.about-split-stats .stat { border-left: 3px solid var(--accent); padding-left: 12px; }
.about-split-stats .stat .n { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--accent-dark); line-height: 1; }
.about-split-stats .stat .l { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; gap: 22px; }
  .about-split--rev .about-split-media { order: 0; }
  .about-split-media { aspect-ratio: 16/10; }
  .about-split + .about-split { margin-top: 48px; }
}

/* ============================================================
   Markets we serve: light band, photo cards, elegant numerals
   ============================================================ */
.market-band { background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.market-band .eyebrow { color: var(--accent-dark); }
.market-band .section-head h2 { color: var(--text); }
.market-band .section-head p { color: var(--text-muted); }
.market-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.market-globe { width: 130px; height: 130px; flex-shrink: 0; opacity: .55; }
.market-globe svg { width: 100%; height: 100%; fill: none; stroke: var(--accent-dark); stroke-width: 1; }

.market-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.market-card {
  background: var(--bg-raised); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.market-card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(35,36,30,.06), 0 20px 36px -16px rgba(35,36,30,.3); }
.mc-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-3); }
.mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.market-card:hover .mc-media img { transform: scale(1.05); }
.mc-num {
  position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); color: var(--accent-dark); font-family: var(--display); font-weight: 800;
  font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.mc-body { padding: 20px 20px 24px; }
.market-card h3 { color: var(--text); font-size: 18px; }
.market-card .mc-note { color: var(--text-muted); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

@media (max-width: 900px) { .market-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .market-grid { grid-template-columns: 1fr; }
  .market-band-head { flex-direction: column; align-items: flex-start; }
  .market-globe { display: none; }
}

.market-regions { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.market-region {
  display: flex; align-items: center; gap: 14px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.market-region h3 { color: var(--text); font-size: 16px; margin: 0; }
.mr-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-sunken);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center;
}
.mr-ic svg { width: 17px; height: 17px; }
.market-stats { margin-top: 32px; }

@media (max-width: 900px) { .market-regions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .market-regions { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ page
   ============================================================ */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-family: var(--body); font-weight: 700; font-size: 16.5px; color: var(--text);
}
.faq-q .plus { font-family: var(--display); font-size: 22px; color: var(--accent-dark); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[data-open="true"] .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 24px; color: var(--text-muted); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.faq-item[data-open="true"] .faq-a { display: block; }
.faq-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.faq-cat-btn { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.faq-cat-btn.active, .faq-cat-btn:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--green-tint); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.contact-card { background: var(--bg-raised); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card .ic { width: 19px; height: 19px; color: var(--accent-dark); flex-shrink: 0; margin-top: 3px; }
.contact-card .k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.contact-card .v { margin-top: 4px; font-size: 15px; font-weight: 600; }
.contact-card a.v { text-decoration: none; }
.contact-card a.v:hover { color: var(--accent-dark); }
.form-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   Generic content helpers
   ============================================================ */
.prose { max-width: 68ch; color: var(--text-muted); font-size: 16.5px; }
.prose p + p { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #C7CBBF; }
.site-footer .container { padding-block: 56px 26px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(199,203,191,0.16); justify-content: center; }
.footer-brand .brand-word { color: var(--paper); }
.footer-brand .brand-word small { color: #8E9385; }
.footer-brand p { margin-top: 16px; color: #9DA294; font-size: 14px; max-width: 42ch; line-height: 1.6; }
.footer-contact { margin-top: 4px; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #9DA294; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: #9DA294; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #C7CBBF; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul li { display: flex; align-items: center; gap: 7px; }
.footer-col ul li .chev { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.footer-col a { text-decoration: none; color: #9DA294; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #7D8274; font-family: var(--mono); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease; z-index: 45;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-scroll { overflow: hidden; }
