/* ==========================================================================
   KO Trade LLC — website styles
   ========================================================================== */

:root {
  --navy: #0B2B62;
  --navy-2: #12397D;
  --night: #081A33;
  --leaf: #9BCF45;
  --leaf-2: #7DB431;
  --green: #1E5E2E;
  --sand: #F4EEE2;
  --sand-2: #EADFCB;
  --paper: #F7F8F5;
  --white: #FFFFFF;
  --ink: #15223A;
  --muted: #5B6679;
  --line: #E2E7EC;

  --frozen: #3F97D1;
  --canned: #E0921F;
  --dried: #9A6B3A;
  --legume: #2F7D3E;
  --red: #C8262C;

  --f-sans: "Poppins", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(8, 26, 51, 0.08);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow.on-dark { color: var(--leaf); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; color: var(--navy); }
.h2 em, .h1 em { font-style: normal; color: var(--green); }
.solutions .h2 em, .catalogue .h2 em { color: var(--leaf); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.98rem/1 var(--f-sans);
  padding: 15px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--leaf); color: var(--night); }
@media (hover: hover) { .btn-primary:hover { background: #b2de66; transform: translateY(-1px); } }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(8,26,51,.06); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--navy); position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { padding: 12px 20px; font-size: .92rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-header.open .nav a::after { display: none; }
  .site-header.open .nav .nav-cta { display: inline-flex; margin-top: 16px; justify-content: center; border-bottom: 0; color: var(--night); }
}
.nav .nav-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,26,51,.95) 0%, rgba(8,26,51,.86) 38%, rgba(8,26,51,.35) 70%, rgba(8,26,51,.1) 100%);
}
.hero .wrap { position: relative; padding-block: clamp(90px, 13vw, 170px) clamp(120px, 12vw, 160px); }
.hero-copy { max-width: 780px; display: grid; gap: 22px; }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; line-height: 1.02; }
.h1 .accent { color: var(--leaf); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #D9E2EF; font-weight: 300; max-width: 52ch; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.route-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(8,26,51,.72); border-top: 1px solid rgba(255,255,255,.12);
}
.route-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 18px; font-size: .9rem; color: #C9D4E4; }
.route-bar b { color: #fff; font-weight: 600; }
.route-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.route-bar .arrow { color: var(--leaf); font-weight: 700; }

/* ---------- Intro / what we do ---------- */
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.intro-statement { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; color: var(--navy); line-height: 1.28; letter-spacing: -0.01em; }
.intro-statement em { font-style: normal; color: var(--green); }
.intro-copy { display: grid; gap: 20px; }
.flow { display: grid; gap: 12px; }
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
}
.flow-node.ko { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow-node .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #EEF4E6; color: var(--green); }
.flow-node.ko .ic { background: rgba(155,207,69,.16); color: var(--leaf); }
.flow-node .ic svg { width: 26px; height: 26px; }
.flow-node h3 { font-size: 1.05rem; }
.flow-node p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.flow-node.ko p { color: #BFCBE0; }
.flow-arrow { justify-self: center; color: var(--leaf-2); }
.flow-arrow svg { width: 22px; height: 22px; display: block; }

/* ---------- Why KO Trade ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; background: #fff; transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.why-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #EEF3FA; color: var(--navy); }
.why-card .ic svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.15rem; color: var(--navy); }
.why-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Why Egypt ---------- */
.egypt { background: var(--sand); position: relative; overflow: hidden; }
.egypt-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.egypt-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.egypt-photo img { width: 100%; height: 100%; object-fit: cover; }
.egypt-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(8,26,51,.78); color: #fff; font-size: .78rem; padding: 6px 12px; border-radius: 999px; }
.egypt-stat { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
.egypt-stat .n { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 700; color: var(--green); line-height: 1; }
.egypt-stat .l { font-size: .95rem; color: var(--muted); max-width: 26ch; line-height: 1.4; }
.egypt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.egypt-card { background: #fff; border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--sand-2); }
.egypt-card .num { font-size: 1.6rem; font-weight: 700; color: var(--dried); line-height: 1; }
.egypt-card h3 { font-size: 1.08rem; color: var(--navy); }
.egypt-card p { font-size: .93rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--dried); }
.map-wrap { margin-top: 36px; background: var(--night); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; }
.map-copy { padding: clamp(28px, 4vw, 48px); color: #fff; display: grid; gap: 14px; align-content: center; }
.map-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.map-copy p { color: #BFCBE0; }
.map-copy .ports { display: grid; gap: 8px; margin-top: 6px; }
.map-copy .ports span { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.map-copy .ports span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); }
.map-svg { background: radial-gradient(circle at 55% 55%, #12305E 0%, #081A33 70%); min-height: 320px; }
.map-svg svg { width: 100%; height: 100%; display: block; }

/* ---------- Products ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem/1 var(--f-sans); color: var(--navy);
  padding: 13px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.tab .sw { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
@media (hover: hover) { .tab:hover { border-color: var(--c); } }
.tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.tab[aria-selected="true"] .sw { background: #fff; }

.panel { display: grid; gap: 28px; }
.panel[hidden] { display: none; }
.panel-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: stretch; }
.panel-banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 260px; color: #fff; display: flex; align-items: flex-end; }
.panel-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,26,51,.88) 0%, rgba(8,26,51,.15) 65%); }
.panel-banner .txt { position: relative; z-index: 1; padding: 28px; display: grid; gap: 8px; }
.panel-banner h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.panel-banner p { color: #DCE4F0; max-width: 54ch; }
.panel-facts { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; align-content: start; }
.panel-facts h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; }
.panel-facts li svg { width: 20px; height: 20px; color: var(--c); margin-top: 3px; }
.panel-facts .brands { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-facts .brands img { height: 40px; width: auto; }
.panel-facts .brands span { font-size: .82rem; color: var(--muted); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.prod { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.prod .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod .ph.pack { display: grid; place-items: center; padding: 10px; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #fff 45%, #ECEFEA 100%); }
.prod .ph.pack img { width: auto; height: 100%; object-fit: contain; }
.prod .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.prod h4 { font-size: 1rem; color: var(--navy); }
.prod .meta { font-size: .8rem; color: var(--muted); }
.also { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.also b { color: var(--ink); margin-right: 4px; }
.also .chip { background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.also .req { color: var(--green); font-weight: 600; display: inline-block; padding: 10px 0; }

/* ---------- Brands ---------- */
.brands-sec { background: var(--paper); }
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.brand-card .top { padding: 28px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-card .top img { height: 64px; width: auto; }
.brand-card .since { text-align: right; font-size: .82rem; color: var(--muted); }
.brand-card .since b { display: block; font-size: 1.3rem; color: var(--bc); }
.brand-card .body { padding: 18px 28px 0; display: grid; gap: 14px; align-content: start; }
.brand-card .tag { font-size: 1.12rem; font-weight: 600; color: var(--bc); line-height: 1.35; }
.brand-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.brand-card li { padding-left: 18px; position: relative; }
.brand-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--bc); }
.brand-card .packs { display: flex; justify-content: center; align-items: flex-end; gap: 6px; padding: 22px 20px 0; margin-top: auto; height: 210px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.brand-card .packs img { height: 92%; width: auto; }
.brand-card .packs img.mid { height: 100%; }
.more-producers { margin-top: 22px; text-align: center; color: var(--muted); }
.more-producers a { color: var(--green); font-weight: 600; }

/* ---------- Supply solutions ---------- */
.solutions { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.solutions .h2 { color: #fff; }
.solutions .lead { color: #BFCBE0; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol { border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); overflow: hidden; display: flex; flex-direction: column; }
.sol .ph { height: 190px; position: relative; overflow: hidden; }
.sol .ph img { width: 100%; height: 100%; object-fit: cover; }
.sol .ph.packs { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 16px 16px 0; background: radial-gradient(ellipse at 50% 90%, #1B4B8F 0%, #0E2A55 70%); }
.sol .ph.packs img { height: 94%; width: auto; }
.sol .body { padding: 26px; display: grid; gap: 12px; align-content: start; }
.sol .kicker { display: flex; align-items: center; gap: 10px; color: var(--leaf); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.sol .kicker svg { width: 20px; height: 20px; }
.sol h3 { font-size: 1.4rem; }
.sol p { color: #BFCBE0; font-size: .96rem; }
.sol ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; color: #DCE4F0; }
.sol li { padding-left: 22px; position: relative; }
.sol li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.pl-mock { position: relative; display: grid; place-items: center; height: 100%; background: radial-gradient(ellipse at 50% 90%, #3A2A12 0%, #1A1206 75%); }
.pl-mock .label { z-index: 1; position: absolute; top: 10%; left: 50%; transform: translateX(-50%) rotate(-4deg); background: #fff; color: var(--night); border: 2px dashed var(--canned); padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: .95rem; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.pl-mock .label small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .16em; color: var(--canned); }
.sol .ph .pl-mock img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 86%; width: auto; object-fit: contain; }

.terms { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.term { padding: 22px 24px; display: grid; gap: 4px; }
.term + .term { border-left: 1px solid rgba(255,255,255,.12); }
.term .k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-weight: 600; }
.term .v { font-size: 1.05rem; font-weight: 600; }
.term .d { font-size: .88rem; color: #A9B8D3; }

/* ---------- Quality ---------- */
.quality-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.quality-photo { border-radius: 20px; overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); }
.quality-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.cert { border: 2px solid var(--navy); border-radius: 16px; padding: 18px; text-align: center; display: grid; gap: 4px; }
.cert .big { font-size: 1.45rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.cert .small { font-size: .78rem; color: var(--muted); }
.q-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.q-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.q-item .ic { width: 44px; height: 44px; border-radius: 12px; background: #EEF4E6; color: var(--green); display: grid; place-items: center; }
.q-item .ic svg { width: 24px; height: 24px; }
.q-item h3 { font-size: 1.05rem; color: var(--navy); }
.q-item p { font-size: .93rem; color: var(--muted); margin-top: 2px; }
.q-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.step .n { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--leaf-2); }
.step h3 { font-size: 1.1rem; color: var(--navy); }
.step p { font-size: .93rem; color: var(--muted); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -18px; width: 14px; height: 14px;
  border-top: 2px solid var(--leaf-2); border-right: 2px solid var(--leaf-2); transform: rotate(45deg);
}

/* ---------- Catalogue ---------- */
.catalogue { background: linear-gradient(120deg, var(--navy) 0%, #0E3A7A 100%); color: #fff; }
.cat-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cat-grid .h2 { color: #fff; }
.cat-grid .lead { color: #C9D4E4; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.cat-meta { font-size: .85rem; color: #A9B8D3; margin-top: 12px; }
.cat-cover { width: min(300px, 70vw); transform: rotate(3deg); border-radius: 6px; overflow: hidden; border: 6px solid #fff; }
.cat-cover img { width: 100%; }

/* ---------- RFQ ---------- */
.rfq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.rfq-side { display: grid; gap: 22px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; }
.contact-line { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.contact-line .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-line .v { font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-line a.v:hover { text-decoration: underline; }
.expect { display: grid; gap: 10px; font-size: .93rem; color: var(--muted); }
.expect b { color: var(--ink); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.fieldset legend { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: 400 .96rem/1.4 var(--f-sans); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #9AA6B7; background: #fff; }
.check input:checked + span { border-color: var(--navy); background: #EEF3FA; color: var(--navy); }
.check input:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--navy); }
.check input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: var(--muted); font-size: .82rem; max-width: 46ch; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { display: block; background: #EAF5DD; color: #24561D; border: 1px solid #C9E5A6; }
.form-status.err { display: block; background: #FDECEC; color: #8A1C1C; border: 1px solid #F3C4C4; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #AFBDD3; padding-block: 60px 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid img { height: 52px; width: auto; margin-bottom: 14px; }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .js .reveal.pre { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .intro-grid, .egypt-top, .quality-grid, .rfq-grid, .panel-head, .map-wrap { grid-template-columns: 1fr; }
  .why-grid, .sol-grid { grid-template-columns: 1fr 1fr; }
  .egypt-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .brand-cards { grid-template-columns: 1fr; }
  .quality-photo { position: static; }
  .quality-photo img { aspect-ratio: 16 / 9; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-cover { justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .why-grid, .sol-grid, .egypt-grid, .steps, .row, .cert-row, .terms { grid-template-columns: 1fr; }
  .term + .term { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .step::after { display: none; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand-card .packs { height: 170px; }
  .route-bar .wrap { font-size: .8rem; gap: 6px 14px; }
  .hero .wrap { padding-bottom: 48px; }
  .route-bar { position: relative; }
}

/* ---------- How it's grown ---------- */
.grown { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.grown li { position: relative; padding-left: 30px; color: var(--muted); }
.grown li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.grown li b { color: var(--navy); }
.grown-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.grown-photos figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.grown-photos img { width: 100%; height: 100%; object-fit: cover; }
.grown-photos figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(8,26,51,.78); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 999px; width: fit-content; }
.field .opt { font-weight: 400; color: var(--muted); }
@media (max-width: 700px) { .grown-photos { grid-template-columns: 1fr; } }
.panel-banner .eyebrow { color: #fff; opacity: .9; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  /* Hero route bar: ports on one line, regions on the next */
  .route-bar .arrow { display: none; }
  .route-bar .wrap > b:last-child { flex-basis: 100%; color: var(--leaf); font-weight: 500; }
  /* Product tabs: one swipeable row */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 22px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 11px 16px; font-size: .9rem; }
  .panel-banner { min-height: 220px; }
  .panel-banner .txt { padding: 22px; }
  .panel-facts { padding: 22px; }
  .prod .body { padding: 12px 12px 14px; }
  .prod h4 { font-size: .95rem; }
  /* Why KO Trade: compact cards, icon beside the title */
  .why-grid { gap: 12px; }
  .why-card { grid-template-columns: 44px 1fr; align-items: center; column-gap: 14px; row-gap: 8px; padding: 18px; }
  .why-card .ic { width: 44px; height: 44px; border-radius: 12px; }
  .why-card .ic svg { width: 24px; height: 24px; }
  .why-card h3 { font-size: 1.05rem; }
  .why-card p { grid-column: 1 / -1; font-size: .93rem; }
  /* Certifications stay in one row */
  .cert-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cert { padding: 12px 6px; border-radius: 12px; }
  .cert .big { font-size: 1rem; }
  .cert .small { font-size: .68rem; line-height: 1.3; }
  /* How it's grown: swipeable photo strip */
  .grown-photos { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .grown-photos::-webkit-scrollbar { display: none; }
  .grown-photos figure { flex: 0 0 78%; scroll-snap-align: center; }
  .egypt-grid { gap: 12px; }
  .egypt-card { padding: 20px; }
  /* Steps: number beside the title */
  .steps { gap: 12px; }
  .step { grid-template-columns: 34px 1fr; align-items: baseline; column-gap: 10px; row-gap: 6px; padding: 18px 18px 20px; }
  .step .n { font-size: 1.6rem; }
  .step p { grid-column: 1 / -1; }
  /* Forms: 16px inputs stop iOS from zooming */
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .cat-actions .btn { flex: 1 1 auto; justify-content: center; }
  .brand-card .top { padding: 22px 22px 0; }
  .brand-card .top img { height: 52px; }
  .brand-card .body { padding: 16px 22px 0; }
  .sol .body { padding: 22px; }
  .quality-photo img { aspect-ratio: 4 / 3; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .prod-grid { gap: 10px; }
  .h1 { font-size: 2.35rem; }
}

/* ---------- Partner plant mosaic ---------- */
.plant-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 5; background: var(--night); position: sticky; }
.plant-mosaic img { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: cover; min-height: 0; }
.plant-mosaic img.tall { grid-row: 1 / 3; }
.plant-mosaic figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(8,26,51,.82); color: #fff; font-size: .8rem; padding: 8px 14px; border-radius: 12px; line-height: 1.4; }

/* ---------- Certification logos ---------- */
.cert-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 28px; }
.cl { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.cl img { height: 52px; width: 100%; object-fit: contain; }
.cl span { font-size: .72rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.cl .txt-logo { height: 52px; width: 52px; border-radius: 50%; border: 2.5px solid var(--navy); display: grid; place-items: center; font-size: .72rem; font-weight: 800; line-height: 1.05; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--navy); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }

@media (max-width: 1000px) {
  .faq-grid { grid-template-columns: 1fr; }
  .plant-mosaic { position: relative; top: auto; aspect-ratio: 16 / 10; grid-template-columns: 1.1fr 1fr; }
  .cert-logos { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 640px) {
  .plant-mosaic { aspect-ratio: 1 / 1; }
  .cert-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .cl { flex: 0 0 calc(33.333% - 6px); }
  .cl img, .cl .txt-logo { height: 44px; }
  .cl .txt-logo { width: 44px; }
  .faq-item summary { padding: 16px 46px 16px 16px; font-size: .95rem; }
  .faq-item p { padding: 0 16px 16px; }
}

/* ---------- World routes map ---------- */
.map-wrap { grid-template-columns: 1fr !important; }
.map-copy { grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 18px 40px; padding-bottom: 8px; }
.map-copy > div:first-child { display: grid; gap: 12px; }
.map-legend { display: grid; gap: 10px; font-size: .9rem; color: #DCE4F0; }
.lg { display: flex; align-items: center; gap: 12px; }
.lg::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; }
.lg-eg::before { background: var(--leaf); box-shadow: 0 0 0 4px rgba(155,207,69,.25); }
.lg-dest::before { background: #fff; box-shadow: 0 0 0 4px rgba(155,207,69,.35); }
.map-wrap { background: radial-gradient(ellipse at 58% 62%, #12305E 0%, #081A33 70%) !important; }
.map-svg { min-height: 0; padding: 0 clamp(8px, 2vw, 24px) clamp(12px, 2vw, 24px); background: none; }
.map-svg svg { height: auto; }
.map-svg .land path { fill: #1B3A66; stroke: #0E2547; stroke-width: .6; }
.map-svg .dest path { fill: #1B3A66; stroke: #0E2547; stroke-width: .6; }
.map-svg .egypt { fill: var(--leaf); }
.map-svg .routes path { fill: none; stroke: var(--leaf); stroke-width: 1.1; stroke-opacity: .55; stroke-dasharray: 3 4; animation: routeflow 18s linear infinite; }
.map-svg .dots circle { fill: #fff; }
.map-svg .dots .halo { fill: var(--leaf); fill-opacity: .2; }
.map-svg .eg-dot { fill: #fff; }
.map-svg .eg-ring { fill: none; stroke: var(--leaf); stroke-width: 2; }
.map-svg .eg-label { fill: #fff; font: 700 15px var(--f-sans); letter-spacing: .08em; }
.map-svg .rl { fill: #DCE4F0; font: 600 15px var(--f-sans); }
@keyframes routeflow { to { stroke-dashoffset: -140; } }
@media (prefers-reduced-motion: reduce) { .map-svg .routes path { animation: none; } }
@media (max-width: 1000px) { .map-copy { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .map-svg { padding: 0 2px 10px; }
  .map-svg .rl { font-size: 28px; }
  .map-svg .eg-label { font-size: 30px; }
  .map-svg .dots circle { stroke: #fff; stroke-width: 6; }
  .map-svg .dots .halo { stroke: rgba(155,207,69,.35); stroke-width: 16; }
  .map-svg .eg-dot { stroke: #fff; stroke-width: 5; }
  .map-svg .eg-ring { stroke-width: 4; }
  .map-svg .routes path { stroke-width: 2.6; stroke-opacity: .75; stroke-dasharray: 6 7; }
}

/* ---------- iPhone & Android compatibility ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; overflow-x: clip; }
a, button, summary, label, .tab, .check span { -webkit-tap-highlight-color: rgba(155,207,69,.25); touch-action: manipulation; }
img, svg { -webkit-user-drag: none; }
/* Keep content clear of the notch and rounded corners in landscape */
.wrap, .site-header .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer { padding-bottom: max(30px, env(safe-area-inset-bottom)); }
/* Long words and email addresses never push the page wider than the screen */
p, li, h1, h2, h3, h4, .v, summary { overflow-wrap: anywhere; word-break: normal; }
.h1, .h2 { overflow-wrap: break-word; }
/* Prevent iOS from enlarging form text or styling inputs */
input, select, textarea, button { -webkit-appearance: none; appearance: none; border-radius: 10px; }
.check input { -webkit-appearance: auto; appearance: auto; }
@supports (-webkit-touch-callout: none) { .field input, .field select, .field textarea { font-size: 16px; } }
.brand-card .packs { overflow: hidden; }
.brand-card .packs img { max-width: 28%; object-fit: contain; object-position: bottom; }
.brand-card .packs img.mid { max-width: 42%; }

/* ---------- Product cards as links ---------- */
a.prod { text-decoration: none; color: inherit; }
.prod .prod-name { font-size: 1rem; color: var(--navy); line-height: 1.25; }
a.prod .body::after { content: "View specs →"; font-size: .78rem; font-weight: 600; color: var(--green); margin-top: 4px; }
.see-all { display: inline-flex; margin-top: 18px; font-weight: 600; color: var(--green); }

/* ---------- Product pages ---------- */
.subpage .site-header { background: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.pd-hero { background: var(--paper); padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.pd-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pd-photo { margin: 0; position: relative; }
.pd-photo > img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.pd-thumb { position: absolute; right: -14px; bottom: -18px; width: 34%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 5px solid #fff; box-shadow: var(--shadow); }
.pd-intro { display: grid; gap: 16px; align-content: center; }
.pd-title { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--navy); line-height: 1.06; }
.pd-title .accent { color: var(--green); }
.pd-lead { font-size: 1.06rem; color: var(--muted); max-width: 56ch; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chips span { font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.rng-frozen .pd-chips span:first-child { border-color: var(--frozen); color: var(--frozen); }
.rng-canned .pd-chips span:first-child { border-color: var(--canned); color: var(--canned); }
.rng-dried .pd-chips span:first-child { border-color: var(--dried); color: var(--dried); }
.rng-legume .pd-chips span:first-child { border-color: var(--legume); color: var(--legume); }
.pd-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pd-cols { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.pd-h2 { font-size: 1.35rem; color: var(--navy); margin: 0 0 14px; }
.pd-h2:not(:first-child) { margin-top: 40px; }
.spec-table, .transit { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; background: var(--paper); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.pd-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-uses li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.pd-uses svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.pd-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-terms > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.pd-terms .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.pd-terms .v { font-size: .93rem; color: var(--ink); }
.transit { margin-top: 16px; }
.transit caption { text-align: left; font-weight: 600; color: var(--navy); padding-bottom: 8px; font-size: .95rem; }
.transit td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.transit td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.pd-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.pd-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; display: grid; gap: 14px; }
.pd-card h3 { font-size: 1.05rem; color: var(--navy); }
.pd-card p { font-size: .92rem; color: var(--muted); }
.pack-img { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #F1F3EE 100%); border-radius: 14px; padding: 16px; height: 230px; }
.pack-img img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.pack-img .pd-logo-only { width: 60%; height: auto; }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.pack-list li { display: grid; gap: 2px; }
.pack-list b { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cert-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-chips span { font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #EEF3FA; color: var(--navy); }
.pd-note { font-size: .8rem !important; }
.quote-sec { background: var(--paper); }
.quote-product { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #EEF4E6; }
.quote-product span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.quote-product b { color: var(--navy); }
.related .prod-grid { grid-template-columns: repeat(4, 1fr); }
.hub-hero { padding-bottom: clamp(32px, 4vw, 48px); }
.hub-hero .pd-title { margin: 8px 0 14px; max-width: 18ch; }
.hub-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hub-jump .tab { text-decoration: none; }
.hub-range { padding-block: clamp(44px, 6vw, 72px); }
.hub-range + .hub-range { border-top: 1px solid var(--line); }
.foot-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.foot-products h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.foot-products ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; }
.foot-products a { text-decoration: none; }
.foot-products a:hover { color: #fff; }
.subpage .foot-grid { grid-template-columns: 1.3fr 1fr; }

@media (max-width: 1000px) {
  .pd-grid, .pd-cols { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .related .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pd-terms { grid-template-columns: 1fr; }
  .spec-table th { width: 40%; }
  .spec-table th, .spec-table td { padding: 10px; font-size: .88rem; }
  .pd-thumb { right: 8px; bottom: -14px; width: 38%; }
  .pd-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .related .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot-products { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .subpage .foot-grid { grid-template-columns: 1fr; }
  a.prod .body::after { font-size: .74rem; }
}
a.chip { text-decoration: none; }
@media (hover: hover) { a.chip:hover { border-color: var(--green); color: var(--green); } }
.see-all-wrap { margin-top: 28px; text-align: center; }
.pd-body { padding-top: clamp(44px, 6vw, 72px); }
.pack-cap { font-size: .8rem; color: var(--muted); margin-top: -4px; }

/* Retail-ready pack sizes */
.pd-sizes { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); display: grid; gap: 10px; max-width: 520px; }
.pd-sizes-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pd-sizes-k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 132px; }
.pd-sizes-v { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-sizes-v span { font-size: .9rem; padding: 6px 12px; border-radius: 10px; background: var(--navy); color: #fff; }
.pd-sizes-v span b { font-weight: 700; }
.rng-frozen .pd-sizes-row:first-child .pd-sizes-v span { background: var(--frozen); }
.rng-canned .pd-sizes-row:first-child .pd-sizes-v span { background: var(--canned); }
.rng-dried .pd-sizes-row:first-child .pd-sizes-v span { background: var(--dried); }
.rng-legume .pd-sizes-row:first-child .pd-sizes-v span { background: var(--legume); }
.prod .size { justify-self: start; font-size: .74rem; font-weight: 700; color: var(--navy); background: #EEF3E4; border-radius: 8px; padding: 3px 10px; margin-top: 2px; }
@media (max-width: 560px) { .pd-sizes-k { min-width: 0; width: 100%; } }
.pd-sizes-note { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }

/* Phones: bigger tap targets (Google mobile-usability) */
@media (max-width: 680px) {
  .foot-grid ul, .foot-products ul { gap: 0; }
  .foot-grid li a, .foot-products li a { display: inline-block; padding: 9px 0; }
  .foot-products ul { font-size: .9rem; }
  .also { gap: 10px; }
  .also .chip, a.chip { font-size: .84rem; padding: 9px 14px; }
  .pd-chips span { padding: 9px 14px; }
  .foot-products > div:first-child { grid-column: 1 / -1; }
  .foot-products > div:first-child ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
