/* ============================================================
   AGRONICA PRODUCTS — design tokens
   Palette: deep crop green, technical blue, hazard amber,
   cool paper base. Type: Space Grotesk (display) /
   IBM Plex Sans (body) / IBM Plex Mono (data, registry).
   ============================================================ */

:root {
  --ink:        #182619;
  --paper:      #EEF1E9;
  --paper-dim:  #E4E8DC;
  --green:      #2F5233;
  --green-deep: #1F3B24;
  --blue:       #35577A;
  --amber:      #D98E2B;
  --line:       #C6CABC;
  --white:      #FBFBF8;

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --container: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 10px rgba(24,38,25,0.06);
  --shadow-md: 0 20px 34px rgba(24,38,25,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

p { margin: 0 0 1em; color: #3C463C; }

/* signature: hazard-stripe divider, referencing drum/tank caution striping */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0px, var(--amber) 14px,
    var(--ink) 14px, var(--ink) 28px
  );
}

/* ---------- topbar ---------- */
.topbar {
  background: var(--ink);
  color: #C6D0C1;
  font-family: var(--font-mono);
  font-size: 12px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #C6D0C1; }
.topbar a:hover { color: var(--amber); }
.topbar .tb-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .tb-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.topbar .tb-link svg { width: 14px; height: 14px; flex: none; }
.topbar .tb-right {
  color: var(--amber);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.topbar .tb-logo-icon { display: inline-flex; flex: none; }
.topbar .tb-logo-icon svg, .topbar .tb-logo-icon img { width: 17px; height: 17px; object-fit: contain; }
@media (max-width: 560px) {
  .topbar .tb-right { font-size: 10.5px; }
}

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 14px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand .mark svg, .brand .mark img { width: 34px; height: 34px; object-fit: contain; }
.brand .mark.mark-full img { width: 60px; height: 60px; }
.brand .tag-wrap { display: flex; align-items: center; gap: 10px; }
.brand .accent-tick { width: 3px; height: 32px; background: var(--amber); border-radius: 2px; flex: none; }
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--green-deep);
}
@media (max-width: 480px) {
  .brand .mark.mark-full img { width: 46px; height: 46px; }
  .brand .tag-wrap { display: none; }
}
nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  flex-wrap: wrap;
}
nav.links > a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
}
nav.links a.active { color: var(--green); }
nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--amber);
}
nav.links > a:hover { color: var(--green); }

/* dropdown via native <details> — no JS required, works on all screens */
nav.links details.drop { position: relative; }
nav.links details.drop > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  padding: 4px 0;
}
nav.links details.drop > summary::-webkit-details-marker { display: none; }
nav.links details.drop > summary .caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform .12s ease;
}
nav.links details.drop[open] > summary .caret { transform: rotate(225deg); margin-top: 2px; }
nav.links details.drop > summary:hover { color: var(--green); }
nav.links details.drop .menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
}
nav.links details.drop .menu a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  border-left: 2px solid transparent;
}
nav.links details.drop .menu a:hover {
  background: var(--paper);
  border-left-color: var(--amber);
  color: var(--green);
}
@media (max-width: 860px) {
  nav.links details.drop .menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    margin-top: 4px;
  }
}

/* ---------- hero / label header ---------- */
.hero {
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(47,82,51,0.05) 0px, rgba(47,82,51,0.05) 2px,
    transparent 2px, transparent 34px
  );
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  max-width: 15ch;
  margin-top: 18px;
}
.hero .lede {
  font-size: 18px;
  max-width: 54ch;
  margin-top: 20px;
  color: #3C463C;
}
.hero .cta-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.hero-cta-bar {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.hero-cta-bar .wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: stretch;
}
.hero-cta-bar .btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 13.5px;
  padding: 12px 18px;
}
@media (max-width: 860px) {
  .hero-cta-bar .wrap { gap: 10px; }
  .hero-cta-bar .btn { flex: 1 1 45%; font-size: 13px; padding: 11px 14px; }
}
@media (max-width: 480px) {
  .hero-cta-bar .btn { flex: 1 1 100%; }
}

/* ---------- hero photo slideshow ---------- */
.hero-slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--paper-dim);
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slideshow .slide.active { opacity: 1; z-index: 1; }
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slideshow .slide .fallback-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: repeating-linear-gradient(
    115deg,
    var(--paper-dim) 0px, var(--paper-dim) 26px,
    var(--paper) 26px, var(--paper) 52px
  );
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #62705F;
  line-height: 1.6;
}
.hero-slideshow .slide.img-missing img { display: none; }
.hero-slideshow .slide.img-missing .fallback-label { display: flex; }

.hero-slideshow .slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-slideshow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  position: relative;
}
.hero-slideshow .dot::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.hero-slideshow .dot.active { background: var(--amber); border-color: var(--amber); }

.hero-slideshow .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(251,251,248,0.85);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s ease;
}
.hero-slideshow .slide-arrow:hover { background: var(--white); }
.hero-slideshow .slide-arrow.prev { left: 12px; }
.hero-slideshow .slide-arrow.next { right: 12px; }
.hero-slideshow .slide-arrow svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .hero-slideshow .slide-arrow { width: 40px; height: 40px; }
  .hero-slideshow .slide-arrow svg { width: 18px; height: 18px; }
}

.hero-slideshow .slide-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.hero-slideshow .slide-badge .dot-badge {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
@media (max-width: 560px) {
  .hero-slideshow .slide-badge { left: 10px; bottom: 10px; font-size: 10.5px; padding: 6px 10px; }
  .hero-slideshow .slide-dots { bottom: 10px; }
}

/* signature hero visual: a registration-stamp badge, drawn not photographed */
.stamp-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.stamp-wrap::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,82,51,0.14) 0%, rgba(217,142,43,0.08) 55%, transparent 75%);
  z-index: 0;
}
.stamp {
  width: 260px; height: 260px;
  filter: drop-shadow(0 16px 26px rgba(24,38,25,0.18));
  position: relative;
  z-index: 1;
}
.stamp .ring-text {
  font-family: var(--font-mono);
  font-size: 8.6px;
  letter-spacing: 2.2px;
  fill: var(--green-deep);
}
.stamp .stamp-num {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--green-deep);
}
.stamp .stamp-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  fill: var(--blue);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stamp-wrap { order: -1; }
  .stamp { width: 190px; height: 190px; }
  .stamp-wrap::before { width: 250px; height: 250px; }
  .hero-slideshow { order: -1; aspect-ratio: 16 / 11; }
}

/* category tag pills under hero lede */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
}

.ledger {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ledger .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger .cell { padding: 24px 26px; border-left: 1px solid var(--line); }
.ledger .cell:first-child { border-left: none; }
.ledger .num { font-family: var(--font-mono); font-size: 27px; color: var(--green-deep); font-weight: 500; }
.ledger .label { font-size: 12.5px; color: #62705F; margin-top: 4px; }

/* ---------- icon badges (original line icons, not photography) ---------- */
.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.on-dark { background: rgba(217,142,43,0.12); border-color: rgba(217,142,43,0.35); color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24,38,25,0.22); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24,38,25,0.10); }
.btn:active { transform: translateY(1px); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-white { background: var(--white); }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3.2vw, 36px); margin-top: 14px; }

/* reveal-on-scroll (progressive enhancement; respects reduced motion via global rule) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47,82,51,0.25);
  z-index: 2;
}
.card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.06em; }
.card .icon-badge { margin-bottom: 14px; }
.card h3 { font-size: 18.5px; margin-top: 14px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.registry {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.registry::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(217,142,43,0.05) 0px, rgba(217,142,43,0.05) 2px,
    transparent 2px, transparent 34px
  );
  pointer-events: none;
}
.registry .wrap { position: relative; }
.registry .section-head p { color: #A9B3A5; }
.registry .eyebrow { color: var(--amber); }
.registry .eyebrow::before { background: var(--amber); }
.registry .section-head h2 { color: var(--white); }
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reg-cell {
  background: #202E1E;
  border: 1px solid #33422F;
  border-radius: var(--radius);
  padding: 24px;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.reg-cell:hover { background: #24331F; transform: translateY(-4px); border-color: rgba(217,142,43,0.4); }
.reg-cell .count { font-family: var(--font-mono); font-size: 26px; color: var(--amber); }
.reg-cell .cat { font-size: 13.5px; color: #C6D0C1; margin-top: 6px; }

.cta-band {
  background: linear-gradient(135deg, var(--green-deep) 0%, #16281B 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(217,142,43,0.05) 0px, rgba(217,142,43,0.05) 12px,
    transparent 12px, transparent 26px
  );
  pointer-events: none;
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 28px; max-width: 16ch; }
.cta-band .btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--white); border-color: var(--white); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.foot-grid .foot-col h4 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #62705F;
  margin-bottom: 12px; font-family: var(--font-mono); font-weight: 500;
}
.foot-grid .foot-col p, .foot-grid .foot-col a:not(.brand) { font-size: 14px; display: block; margin-bottom: 7px; color: #3C463C; }
.foot-grid .foot-col .brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.foot-grid .foot-col .brand .mark.mark-full img { width: 52px; height: 52px; }
.foot-grid .foot-col a:hover { color: var(--green); }
footer.site .legal {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7A8577;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- generic page header ---------- */
.page-head {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(47,82,51,0.06) 0px, rgba(47,82,51,0.06) 2px,
    transparent 2px, transparent 34px
  );
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); margin-top: 16px; }
.page-head .lede { font-size: 17px; max-width: 60ch; margin-top: 16px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11.5px; color: #7A8577; letter-spacing: 0.05em; text-transform: uppercase; }
.breadcrumb span { color: var(--amber); }

/* ---------- about page bits ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.value-list { display: flex; flex-direction: column; gap: 20px; }
.value-list .v-item { display: flex; gap: 16px; }
.value-list .v-num { font-family: var(--font-mono); color: var(--amber); font-size: 13px; padding-top: 3px; }
.value-list h4 { font-size: 16px; margin-bottom: 6px; }
.value-list p { font-size: 14.5px; margin: 0; }

.cert-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cert-chip-sm {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
}

/* ---------- services page bits ---------- */
.service-row { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 46px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.service-row:first-of-type { padding-top: 0; }
.service-row .s-tag { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.06em; }
.service-row h3 { font-size: 24px; margin-top: 12px; }
.service-row .s-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.service-row .s-list li { font-size: 14.5px; padding-left: 18px; position: relative; color: #3C463C; }
.service-row .s-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }

/* ---------- brands page ---------- */
.brand-card {
  background: var(--white); border: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(24,38,25,0.12); }
.brand-card .b-name { font-family: var(--font-display); font-size: 20px; }
.brand-card .b-cat { font-family: var(--font-mono); font-size: 11.5px; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }
.placeholder-note {
  font-family: var(--font-mono); font-size: 12px; color: #7A8577;
  border: 1px dashed var(--line); padding: 14px 18px; margin-top: 8px; background: var(--paper-dim);
}

/* ---------- infrastructure / quality / exports / investors / careers ---------- */
.info-tile {
  background: var(--white); border: 1px solid var(--line); padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.info-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(24,38,25,0.12); }
.info-tile .idx { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.info-tile h3 { font-size: 18px; margin: 12px 0 8px; }
.info-tile p { font-size: 14.5px; margin: 0; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert-chip {
  background: var(--white); border: 1px dashed var(--line);
  padding: 18px; text-align: center; font-family: var(--font-mono);
  font-size: 12.5px; color: #62705F;
  transition: border-color .15s ease, color .15s ease;
}
.cert-chip:hover { border-color: var(--amber); color: var(--green-deep); }

.export-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.export-cell {
  background: var(--white); padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; z-index: 1;
}
.export-cell:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(24,38,25,0.12); z-index: 2; }
.export-cell .region { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }
.export-cell h4 { font-size: 17px; margin: 8px 0 6px; }
.export-cell p { font-size: 14px; margin: 0; }

.job-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.job-row:first-of-type { padding-top: 0; }
.job-row .j-title { font-size: 17px; font-family: var(--font-display); }
.job-row .j-meta { font-family: var(--font-mono); font-size: 12px; color: #62705F; margin-top: 6px; }

/* ---------- contact page bits ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #62705F; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white);
  padding: 12px 14px; font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.info-card { background: var(--white); border: 1px solid var(--line); padding: 30px; }
.info-card h4 { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 6px; }
.info-card .info-item { margin-bottom: 22px; }
.info-card .info-item:last-child { margin-bottom: 0; }
.info-card .info-item p { font-size: 15px; margin: 0; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: #7A8577; margin-top: 10px; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ledger .wrap { grid-template-columns: repeat(2, 1fr); }
  .ledger .cell:nth-child(3) { border-left: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .export-list { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 16px 20px; }
  .ledger .wrap { grid-template-columns: 1fr 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .export-list { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .service-row .s-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav.links { gap: 16px 20px; font-size: 14px; }
  .cert-strip { gap: 8px; }
  .cert-chip-sm { font-size: 11px; padding: 6px 11px; }
}

/* ---------- WhatsApp chat widget ---------- */

/* ---------- flags ribbon (exports page) ---------- */

/* ---------- product catalog grid ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(24,38,25,0.12);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-info {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.product-info .idx { margin-bottom: 4px; }
.product-info h3 {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } .filter-btn { font-size: 12px; padding: 8px 14px; } }

/* ---------- flags ribbon (exports page) ---------- */
.flags-ribbon-wrap {
  overflow: hidden;
  padding: 28px 0;
  background: var(--ink);
}
.flags-ribbon { position: relative; width: 100%; }
.flags-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: flagsScroll 80s linear infinite;
}
.flag-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #C6D0C1;
  white-space: nowrap;
}
.flag-tag .ff { font-size: 20px; line-height: 1; }
.flag-tag .flag-img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex: none; }
.flag-tag:hover { background: rgba(217,142,43,0.15); border-color: var(--amber); color: #fff; }
@keyframes flagsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .flag-tag { font-size: 12px; padding: 8px 14px; }
  .flag-tag .ff { font-size: 17px; }
}

/* ---------- testimonials ---------- */
.testimonial-card .stars { color: var(--amber); font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card .t-quote { font-size: 14.5px; line-height: 1.65; font-style: italic; color: #3C463C; margin-bottom: 16px; }
.testimonial-card .t-author { font-size: 13.5px; }
.testimonial-card .t-author strong { display: block; color: var(--ink); }
.testimonial-card .t-loc { font-family: var(--font-mono); font-size: 11.5px; color: #62705F; }

/* ---------- trust strip ---------- */
.trust-strip { padding: 48px 0; background: var(--paper-dim); }
.trust-logos { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 22px; }
.trust-logo-slot {
  width: 150px; height: 64px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: #7A8577;
  text-align: center; padding: 8px;
}

/* ---------- blog cards ---------- */
.blog-card h3 { font-size: 17px; line-height: 1.4; }
.blog-card p { font-size: 13.5px; line-height: 1.6; color: #3C463C; }
.blog-meta { font-family: var(--font-mono); font-size: 11px; color: var(--amber); letter-spacing: 0.04em; margin-top: 12px; display: inline-block; }

/* ---------- homepage enquiry form ---------- */
.enquiry-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.home-form-wrap { position: relative; }
.home-form {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.home-form .field { margin-bottom: 16px; }
.home-form label { display: block; font-size: 12.5px; font-weight: 500; color: #555; margin-bottom: 5px; }
.home-form input, .home-form select, .home-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body); background: var(--white);
}
.home-form textarea { resize: vertical; min-height: 80px; }
.home-form .form-note { font-family: var(--font-mono); font-size: 11px; color: #7A8577; }
@media (max-width: 860px) { .enquiry-split { grid-template-columns: 1fr; } }

/* ---------- WhatsApp chat widget ---------- */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}
.wa-fab {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab .notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--amber);
  border-radius: 50%;
  border: 2.5px solid var(--white);
}

.wa-panel {
  display: none;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-height: 520px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(24,38,25,0.22);
  overflow: hidden;
  flex-direction: column;
}
.wa-panel.open { display: flex; }

.wa-panel-head {
  background: #075E54;
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-panel-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; }
.wa-panel-head .wa-head-info h4 { font-size: 14.5px; margin: 0; font-weight: 600; }
.wa-panel-head .wa-head-info p { font-size: 11.5px; margin: 2px 0 0; opacity: 0.8; }
.wa-panel-head .wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
}
.wa-panel-head .wa-close:hover { opacity: 1; }

.wa-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #ECE5DD;
}
.wa-bubble {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  max-width: 92%;
}
.wa-bubble.user {
  background: #DCF8C6;
  border-radius: 10px 0 10px 10px;
  margin-left: auto;
}
.wa-bubble .wa-time {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: #999;
  margin-top: 4px;
}

.wa-quick-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.wa-quick-btn {
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
  font-family: var(--font-body);
  color: #075E54;
  font-weight: 500;
}
.wa-quick-btn:hover { background: #DCF8C6; border-color: #25D366; }

.wa-form { margin-top: 10px; }
.wa-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 4px;
  margin-top: 10px;
}
.wa-form label:first-child { margin-top: 0; }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-body);
  background: #fff;
}
.wa-form textarea { resize: vertical; min-height: 60px; }
.wa-form .wa-submit {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s ease;
}
.wa-form .wa-submit:hover { background: #1DA851; }

@media (max-width: 560px) {
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-panel { width: calc(100vw - 32px); right: 0; bottom: 68px; max-height: 70vh; }
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

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