/* ==========================================================================
   A2Z Bulgaria — shared styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --ink: #141414;
  --ink-soft: #2a2a2e;
  --muted: #6b6a73;
  --muted-2: #9a99a1;
  --paper: #ffffff;
  --stone: #f7f7f3;
  --cream: #f4efe7;
  --line: #e6e5df;
  --green: #1c843b;          /* primary — AA contrast with white text */
  --green-deep: #146a2e;
  --green-bright: #2bb24f;   /* accents, focus rings, dots */
  --green-tint: #e9f3eb;
  --orange-wash: #fef9f4;    /* 5% sunflower orange (#f28c1c) on white — tinted page background */
  --forest: #173d32;         /* logo green — footer */

  /* Type */
  --font: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;              /* body, buttons, labels */
  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* headings, navigation */

  /* Spacing scale (4 / 8 based) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --section: clamp(60px, 9vw, 128px);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;
  --wave-h: clamp(36px, 6.25vw, 120px); /* depth of the curved section edges */

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(30, 44, 32, 0.04), 0 2px 8px -2px rgba(30, 44, 32, 0.05);
  --shadow-2: 0 1px 2px rgba(30, 44, 32, 0.04), 0 10px 24px -8px rgba(30, 44, 32, 0.10), 0 28px 56px -20px rgba(30, 44, 32, 0.12);
  --shadow-3: 0 2px 4px rgba(20, 30, 22, 0.05), 0 18px 40px -12px rgba(20, 30, 22, 0.16), 0 44px 80px -28px rgba(20, 30, 22, 0.20);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 960px) {
  :root { --header-h: 92px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--green-tint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.bg-stone { background: var(--stone); }

/* ---------- Typography ---------- */
/* Inter Tight is already narrow, so headings need only a touch of negative tracking */
h1, h2, h3, .statement { font-family: var(--font-display); }

.h1, .h2 {
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.06; font-weight: 300; }
/* Light headline with bold keywords — explicit weight, since `bolder` from 300 only reaches 400 */
.h1 strong, .hero-title strong { font-weight: 600; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.1; }
.h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

/* Large grey statement text with dark highlights */
.statement {
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.statement em { font-style: normal; color: var(--ink); }

.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  cursor: pointer;
  overflow: hidden;
  transition: transform .45s var(--ease-spring);
}
.btn::before {
  /* hover layer — animated with opacity only */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: .12s; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.btn .icon { transition: transform .45s var(--ease-spring); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:hover .icon--right { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(20, 90, 40, 0.18), 0 8px 20px -8px rgba(20, 106, 46, 0.45);
}
.btn--primary::before { background: var(--green-deep); }

.btn--outline {
  box-shadow: inset 0 0 0 1px #cfcec8;
}
.btn--outline::before { background: #efeee8; }

.btn--ghost-light {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.btn--ghost-light::before { background: rgba(255, 255, 255, 0.14); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Text link with sliding underline */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(0.3); }
.link-arrow .icon { transition: transform .45s var(--ease-spring); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:active .icon { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-header.is-scrolled::after,
.nav-open .site-header::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo — images/logo.webp (header) and logo-light.webp (dark footer).
   Lockup includes the "Agricultural Exports" tagline, so heights allow ~20% for it below the A2Z mark */
.logo {
  display: inline-flex;
  border-radius: 6px;
  transition: opacity .25s var(--ease);
}
.logo:hover { opacity: 0.75; }
.logo:active { opacity: 0.6; }
.logo img { height: 58px; width: auto; }
@media (min-width: 960px) {
  .site-header .logo img { height: 72px; }
}

.nav { display: none; }
.nav-link {
  position: relative;
  padding-block: 8px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link:active { opacity: 0.6; }
.nav-link[aria-current]::after { /* "page", or "true" on a product page inside Products */
  transform: scaleX(1);
  background: var(--green-bright);
}

.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform .3s var(--ease-spring);
}
.menu-toggle:hover { background: var(--stone); }
.menu-toggle:active { transform: scale(0.92); }
.menu-toggle span {
  position: absolute;
  width: 20px; height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .45s var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }
@media (hover: none) { .menu-toggle:hover { background: transparent; } } /* no sticky hover after a tap */

/* LinkedIn icon — right of the nav on desktop, beside the menu button on mobile */
.header-inner > .logo { margin-right: auto; }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  transition: transform .45s var(--ease-spring);
}
.social-link svg {
  width: 24px; height: 24px;
  border-radius: 4px;
  transition: opacity .25s var(--ease);
}
.social-link:hover { transform: translateY(-2px); }
.social-link:hover svg { opacity: 0.88; }
.social-link:active { transform: scale(0.92); transition-duration: .12s; }
.social-link:focus-visible { outline-offset: 0; border-radius: 10px; }

@media (min-width: 960px) {
  .nav { display: flex; gap: 44px; }
  .menu-toggle { display: none; }
  .social-link { margin: 0 -10px 0 34px; }
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--gutter) var(--s-6);
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s;
}
.mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.mobile-nav > a .icon { width: 22px; height: 22px; color: var(--muted-2); transition: transform .45s var(--ease-spring); }
.mobile-nav > a:hover .icon { transform: translateX(4px); }
.mobile-nav > a[aria-current] { color: var(--green); }
.mobile-nav > a[aria-current] .icon { color: var(--green); }

/* Links and contact block slide in one after another */
.mobile-nav > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.nav-open .mobile-nav > * { opacity: 1; transform: none; }
.nav-open .mobile-nav > :nth-child(2) { transition-delay: .04s; }
.nav-open .mobile-nav > :nth-child(3) { transition-delay: .08s; }
.nav-open .mobile-nav > :nth-child(4) { transition-delay: .12s; }
.nav-open .mobile-nav > :nth-child(5) { transition-delay: .18s; }
.nav-open .mobile-nav > a:active { opacity: 0.6; transition-delay: 0s; }

/* Quick contact at the bottom of the menu */
.mobile-nav__foot {
  display: grid;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-6);
}
.mobile-nav__label { margin-bottom: var(--s-1); font-size: 13px; color: var(--muted); }
.mobile-nav__contact {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--stone);
  font-size: 16px;
  color: var(--ink);
  transition: transform .45s var(--ease-spring);
}
.mobile-nav__contact:hover { transform: translateY(-2px); }
.mobile-nav__contact:active { transform: scale(0.97); transition-duration: .12s; }
.mobile-nav__contact:focus-visible { border-radius: 999px; }
.mobile-nav__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  box-shadow: var(--shadow-1);
}
.nav-open { overflow: hidden; }
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* ---------- Image treatment (photos) ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #34402f;
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.05));
}
.media__tint {
  position: absolute; inset: 0;
  background: #3c5a3a;
  mix-blend-mode: multiply;
  opacity: 0.35;
}
.media__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 65% at 82% 12%, rgba(226, 190, 118, 0.38), transparent 62%),
    radial-gradient(45% 55% at 8% 92%, rgba(43, 178, 79, 0.18), transparent 70%);
}
.media__grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  min-height: max(560px, min(calc(100svh - var(--header-h)), 860px));
  color: #fff;
}
.hero .media { position: absolute; inset: 0; z-index: -1; }
.hero .media__tint { opacity: 0.12; } /* hero photo already ships with a green grade */
.hero { isolation: isolate; }

/* Soft asymmetric curve where the photo meets the next section */
.hero-wave {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px; /* overlap by a pixel so no hairline of photo shows at the seam */
  height: var(--wave-h);
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }
.hero-wave path { fill: var(--paper); }

/* Tinted pages: the white header flows into the tint through the same curve, flipped */
.page--tint { background: var(--orange-wash); }
.page--tint main { position: relative; }
.top-wave {
  position: absolute;
  left: 0; right: 0;
  top: -1px; /* tuck under the header so no seam shows */
  height: var(--wave-h);
  pointer-events: none;
}
.top-wave svg { width: 100%; height: 100%; }
.top-wave path { fill: var(--paper); }
@media (min-width: 640px) {
  /* product shots are on white — blend them into the tint so they don't sit in white boxes */
  .page--tint .crop-media { background: var(--orange-wash); }
  .page--tint .crop-media img { mix-blend-mode: multiply; }
}
.hero-inner {
  padding-block: var(--s-9);
}
@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    column-gap: var(--s-8);
  }
  .hero-inner .hero-lead { margin-top: 0; }
  /* Trim the headline to its cap height and baseline, and the intro to its cap height:
     the intro starts level with the top of the headline, and the badges sit on its baseline */
  .hero-title { text-box: trim-both cap alphabetic; }
  .hero-inner .hero-lead { text-box: trim-start cap alphabetic; }
  .hero-aside { display: flex; flex-direction: column; align-self: stretch; }
}
.hero-title {
  max-width: 15ch;
  font-size: clamp(2.625rem, 6.4vw, 5.25rem);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.hero-lead {
  margin-top: var(--s-5);
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

/* Hero certifications */
.hero-certs { margin-top: var(--s-6); }
.hero-certs-list {
  --logo-h: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3) 10px;
  max-width: 420px;
}
.hero-certs-list img { height: var(--logo-h); width: auto; }
.hero-certs-list .is-wordmark { height: calc(var(--logo-h) * 0.66); } /* wide logo reads larger than the square badges */
.hero-certs-list .is-white { filter: brightness(0) invert(1); } /* single-colour logos, recoloured white for the dark photo */
@media (max-width: 359px) { .hero-certs-list { --logo-h: 25px; } }

/* Phones: copy sits low on the darkened part of the photo; badges grouped on a glass strip */
@media (max-width: 639px) {
  .hero { justify-content: flex-end; }
  .hero-inner { padding-block: var(--s-9) calc(var(--wave-h) + var(--s-3)); } /* keep the badges clear of the curve */
  .hero-title { font-size: clamp(2.375rem, 11vw, 2.75rem); }
  .hero-lead { margin-top: var(--s-4); font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
  .hero-certs { margin-top: var(--s-5); }
  .hero-certs-list {
    max-width: none;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 32px -16px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
@media (min-width: 1024px) {
  .hero-certs { margin-top: auto; padding-top: var(--s-4); } /* pushed down onto the headline's baseline; padding keeps a minimum gap */
  .hero-certs-list { --logo-h: 32px; }
}
@media (min-width: 1200px) { .hero-certs-list { --logo-h: 36px; } }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.section-head .lead { margin-top: var(--s-4); }
@media (min-width: 960px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-8);
    margin-bottom: var(--s-8);
  }
}

.split-head .lead { margin-top: var(--s-5); }

/* ---------- Home: intro ---------- */
.intro { padding-top: 0; }
.intro-link { margin-top: var(--s-6); }

/* ---------- Product list (home) ---------- */
.products-head .lead { color: var(--ink); }
@media (min-width: 960px) { .products-head { margin-bottom: var(--s-7); } }

/* Phones: compact rows — thumbnail + details, full-width download button below */
.crop-grid { display: grid; }

.crop {
  display: grid;
  grid-template-columns: 77px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.crop:first-child { padding-top: 0; }
.crop:last-child { border-bottom: 0; padding-bottom: 0; }

.crop-media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.crop-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.crop:hover .crop-media img { transform: scale(1.04); }

.crop-body { align-self: center; }
.crop .h3 { font-size: 1.125rem; }
.crop-specs {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.crop-specs div { display: flex; gap: 6px; }
.crop-specs dd { margin: 0; }

.spec-btn {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 400;
}
.icon-pdf { width: 24px; height: 24px; stroke-width: 1.3; color: var(--muted); }
.icon-pdf text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font);
  font-size: 5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.spec-btn:hover .icon-pdf { transform: translateY(2px); }
.spec-btn:active .icon-pdf { transform: translateY(3px); }

/* Phones: each product is a card — photo tile, name, specs, and its own download action */
@media (max-width: 639px) {
  .products-head { margin-bottom: var(--s-6); }
  .crop-grid { gap: var(--s-3); }
  .crop,
  .crop:first-child,
  .crop:last-child {
    grid-template-columns: 76px 1fr;
    gap: var(--s-3) 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-1);
  }
  .crop-media { border-radius: 12px; background: var(--stone); }
  .crop-media img { mix-blend-mode: multiply; } /* product shots are on white — let the tile colour through */
  .crop .h3 { font-size: 1.0625rem; line-height: 1.3; }
  .crop-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
  }
  .crop-specs div { display: contents; }
  .crop-specs dt { font-size: 13px; line-height: 1.55; color: var(--muted-2); }
  .crop-specs dd { color: var(--ink-soft); }
  .crop-specs div:last-child dd { font-weight: 500; color: var(--green-deep); } /* purity */
  .spec-btn {
    --btn-bg: var(--green-tint);
    --btn-fg: var(--green-deep);
    min-height: 44px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
  }
  .spec-btn::before { background: #d9ecdd; }
  .spec-btn:focus-visible { border-radius: 12px; }
  .spec-btn .icon-pdf { color: var(--green); }
}

/* Tablet & up: image cards, as on the reference layout */
@media (min-width: 640px) {
  .crop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-7) var(--s-4);
  }
  .crop {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
  }
  .crop-media { width: 80%; align-self: center; aspect-ratio: 1; border-radius: var(--radius); }
  .crop-body { align-self: stretch; flex: 1; padding-top: var(--s-4); }
  .crop-specs { margin-top: var(--s-2); font-size: 15px; line-height: 1.7; }
  .spec-btn { align-self: flex-start; margin-top: var(--s-4); }
}
@media (min-width: 900px) { .crop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .crop-grid { grid-template-columns: repeat(4, 1fr); } }

/* Products page: category headings (#seeds, #pulses — targets of the footer links) */
.crop-group-title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.crop-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.crop-grid + .crop-group-title { margin-top: var(--s-7); }
@media (min-width: 640px) {
  .crop-group-title { margin-bottom: var(--s-6); }
  .crop-grid + .crop-group-title { margin-top: var(--s-8); }
}

/* ---------- Why us (home): list ---------- */
.why {
  display: grid;
  gap: var(--s-7);
}
.why-head .lead { margin-top: var(--s-5); }

.reasons { border-top: 1px solid #dcdbd4; }
.reason {
  padding-block: var(--s-5);
  border-bottom: 1px solid #dcdbd4;
}
.reason .h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.reason p { margin-top: var(--s-2); max-width: 46ch; font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* Phones & tablets: a check mark anchors each reason so the list scans quickly */
@media (max-width: 959px) {
  .why { gap: var(--s-6); }
  .why-head .lead { margin-top: var(--s-4); }
  .reason { padding-block: 20px; }
  .reason > div { position: relative; padding-left: 44px; }
  .reason > div::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c843b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(28, 132, 59, 0.16), 0 4px 10px -4px rgba(20, 106, 46, 0.25);
  }
  .reason .h3 { font-size: 1.25rem; line-height: 1.5; }
  .reason p { margin-top: 4px; font-size: 15px; line-height: 1.6; }
}

@media (min-width: 960px) {
  .why {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-8);
    align-items: start;
  }
  .why-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .reason { padding-block: var(--s-6); }
}


/* Sunflower button — logo petal gold, forest text for contrast */
.btn--sun {
  --btn-bg: #ffc301;
  --btn-fg: var(--forest);
  font-weight: 600;
}
.btn--sun::before { background: #ffd21f; }
.btn--sun:focus-visible { outline-color: #fff; }

/* ---------- CTA banner ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px); }
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-5);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(43, 178, 79, 0.10), transparent 70%),
    radial-gradient(40% 90% at 0% 0%, rgba(8, 28, 22, 0.35), transparent 70%),
    linear-gradient(100deg, var(--forest) 0%, #1a4738 45%, #21593f 100%);
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cta-text { margin-top: var(--s-3); color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.cta-banner .btn { flex: none; min-height: 62px; padding: 0 40px; font-size: 16px; }
@media (max-width: 639px) {
  .cta-banner { padding: var(--s-6) var(--s-5) var(--s-5); }
  .cta-banner .btn { align-self: stretch; min-height: 56px; }
}
@media (min-width: 900px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-7);
    padding: 52px 60px;
  }
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-head .h1 { max-width: 13em; }
.page-head .lead { margin-top: var(--s-5); }

/* 404 page: ways back into the site */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #d6d5cf;
  font-size: 15px;
  transition: transform .45s var(--ease-spring);
}
.chip::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--stone);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.chip:hover::before { opacity: 1; }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(0.96); }
.chip:focus-visible { border-radius: 999px; }
.chip span { color: var(--muted-2); font-size: 13px; }

/* Page head with the title inside a photo card (About) */
.photo-head { padding-top: var(--s-4); }
.photo-head__card {
  --ph-bg: 26 32 23; /* dark soil tone the photo fades into on small screens */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  background: rgb(var(--ph-bg));
  box-shadow: var(--shadow-2);
  color: #fff;
}
/* Small screens: photo on top, fading into the card; text sits on the fade */
.photo-head__card .media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* square bottom so it melts into the card */
  background: rgb(var(--ph-bg));
}
.photo-head__card .media > img { object-position: 60% 50%; }
.photo-head__card .media__tint { opacity: 0.12; } /* photo already ships with a green grade */
.photo-head__card .media__shade {
  background: linear-gradient(to top, rgb(var(--ph-bg)) 4%, rgb(var(--ph-bg) / 0.7) 24%, rgb(var(--ph-bg) / 0) 55%);
}
.photo-head__content { padding: 66% var(--s-5) var(--s-6); }
.photo-head .h1 { max-width: 13em; color: #fff; text-wrap: balance; }
.photo-head .lead { margin-top: var(--s-4); max-width: 50ch; color: rgba(255, 255, 255, 0.84); }

/* Bulgaria outline — origin mark; sits on the photo's top-right haze */
.origin-map {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
}
.origin-map svg {
  width: clamp(104px, 26vw, 180px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(8, 20, 12, 0.45));
}
.origin-map__dots { opacity: 0.28; }
.origin-map__line {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.origin-map figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}
.origin-map figcaption::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

@media (min-width: 600px) {
  .photo-head__card .media { aspect-ratio: 16 / 9; }
  .photo-head__content { padding: 40% var(--s-7) var(--s-7); }
  .origin-map { top: var(--s-7); right: var(--s-7); }
  .origin-map figcaption { font-size: 12px; }
}

/* Desktop: title in the top-left haze, intro bottom-right, tractor between */
@media (min-width: 1024px) {
  .photo-head { padding-top: var(--s-5); }
  .photo-head__card { aspect-ratio: 20 / 9; }
  .photo-head__card .media { inset: 0; aspect-ratio: auto; border-radius: inherit; }
  .photo-head__card .media > img { object-position: 50% 85%; } /* lifts the tractor clear of the intro */
  .photo-head__card .media__shade {
    background:
      linear-gradient(170deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.14) 32%, transparent 50%),
      linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.18) 40%, transparent 62%);
  }
  .photo-head__content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    column-gap: var(--s-7);
    padding: var(--s-7);
  }
  .photo-head .h1 { grid-area: 1 / 1; align-self: start; font-size: clamp(2.75rem, 4.2vw, 3.5rem); }
  .photo-head .lead { grid-area: 1 / 2; align-self: end; margin-top: 0; font-size: 1.0625rem; }
  /* shares the intro's column: map top-right (clear of the tractor), intro bottom */
  .origin-map { position: static; grid-area: 1 / 2; align-self: start; justify-self: end; margin-top: 10px; align-items: flex-start; }
  .origin-map svg { width: clamp(150px, 16vw, 220px); }
}
@media (min-width: 1280px) {
  .photo-head__card .media > img { object-position: 50% 50%; } /* full-size card has room; keeps the tractor off the title */
}

/* ---------- About: story & values ---------- */
.story-cols {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
  color: var(--muted);
}
@media (min-width: 760px) { .story-cols { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

.values {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-8);
}
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.value {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.value p { margin-top: var(--s-2); font-size: 15px; color: var(--muted); }
@media (max-width: 759px) {
  .values { gap: var(--s-5); margin-top: var(--s-7); }
  .value { position: relative; padding-top: 20px; }
  .value::before { /* short green accent on the divider marks where each value starts */
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 32px; height: 2px;
    border-radius: 2px;
    background: var(--green-bright);
  }
  .value p { margin-top: 4px; }
}

/* ---------- About: process ---------- */
.process {
  display: grid;
  gap: var(--s-7);
  margin-top: var(--s-7);
}
.process-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.process-media > img { object-position: 50% 45%; } /* centre on the machinery, not the floor */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; }
.step-num {
  font-size: 14px;
  color: var(--muted-2);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.step p { margin-top: var(--s-2); color: var(--muted); font-size: 15.5px; }

/* Phones & tablets: numbered timeline — circles joined by a line read as one process */
@media (max-width: 959px) {
  .process { gap: var(--s-6); margin-top: var(--s-6); }
  .step,
  .step:first-child {
    position: relative;
    grid-template-columns: 36px 1fr;
    padding: 0 0 28px;
    border-bottom: 0;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: "";
    position: absolute;
    left: 17.5px; top: 44px; bottom: 8px;
    width: 1px;
    background: linear-gradient(rgba(28, 132, 59, 0.45), rgba(28, 132, 59, 0.15));
  }
  .step:last-child::before { display: none; }
  .step-num {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px rgba(28, 132, 59, 0.28), 0 4px 12px -6px rgba(20, 106, 46, 0.35);
    font-size: 13px;
    font-weight: 600;
    color: var(--green-deep);
  }
  .step .h3 { padding-top: 6px; font-size: 1.125rem; line-height: 1.35; } /* centres the first line on the circle */
  .step p { margin-top: 2px; font-size: 15px; line-height: 1.6; }
}
@media (min-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; gap: var(--s-8); margin-top: var(--s-8); align-items: start; }
  .process-media { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 4.4; }
  .step { grid-template-columns: 64px 1fr; padding-block: var(--s-6); }
}

/* ---------- Products page ---------- */
.cat-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 96px);
}
.section--compact { padding-block: clamp(48px, 6vw, 80px); }
.cat-section .section-head .lead { max-width: 44ch; }
.cat-index {
  display: block;
  margin-bottom: var(--s-4);
  font-size: 14px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.product-grid {
  display: grid;
  gap: var(--s-7) var(--s-5);
}
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-7) var(--s-4); } }

.product {
  display: flex;
  flex-direction: column;
}
.product-media {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.product:hover .product-media img { transform: scale(1.04); }
.product h3 { margin-top: var(--s-5); }
.product p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.product .btn { margin-top: var(--s-5); align-self: flex-start; }

/* Phones: compact list rows instead of full-width tiles */
@media (max-width: 559px) {
  .product-grid { gap: 0; }
  .product {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: var(--s-4);
    padding-block: var(--s-5);
    border-bottom: 1px solid var(--line);
  }
  .product:first-child { padding-top: 0; }
  .product:last-child { border-bottom: 0; padding-bottom: 0; }
  .product-media { grid-row: 1 / span 3; aspect-ratio: 1; border-radius: var(--radius-sm); }
  .product h3 { margin-top: 0; font-size: 1.125rem; }
  .product p { margin-top: 4px; font-size: 14.5px; }
  .product .btn { justify-self: start; align-self: start; margin-top: var(--s-3); min-height: 40px; padding: 0 16px; font-size: 14px; }
}

.info-grid {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
/* Vertical rule — hairline with a green accent beside the heading */
.info {
  position: relative;
  padding: 2px 0 2px var(--s-5);
}
.info::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--green) 0 36px, var(--line) 36px);
}
@media (max-width: 759px) {
  .info-grid { gap: var(--s-5); }
}
.info p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Product cards (home + products page): the name links to the product page, stretched over the card */
.crop { position: relative; }
.crop-link {
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.crop-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.crop:hover .crop-link { background-size: 100% 1px; }
.crop-link:focus-visible { outline: 0; }
.crop-link:focus-visible::after { outline: 2px solid var(--green-bright); outline-offset: 6px; border-radius: var(--radius); }
.crop:has(.crop-link:active) { opacity: 0.7; }
.crop .spec-btn { z-index: 2; } /* the download button stays clickable above the card link */

/* ---------- Product pages (/products/<slug>) ---------- */
.pd-head {
  padding-top: calc(var(--wave-h) + var(--s-3));
  padding-bottom: clamp(36px, 4.5vw, 56px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-2);
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a {
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.breadcrumb a:hover { color: var(--ink); background-size: 100% 1px; }
.breadcrumb a:active { opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* Phones: one column. Desktop: name, intro and actions left; trade facts right */
.pd-grid {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
.pd-title { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; }
.pd-latin { margin-top: var(--s-2); font-size: 15px; color: var(--muted); }
.pd-lead { margin-top: var(--s-3); max-width: 52ch; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Key trade facts: compact label / value rows */
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s-3);
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; line-height: 1.55; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.facts-note { margin-left: 6px; font-size: 13.5px; color: var(--muted-2); white-space: nowrap; }

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.pd-actions .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.pdf-btn:hover .icon-pdf { transform: translateY(2px); }
.pdf-btn:active .icon-pdf { transform: translateY(3px); }
@media (max-width: 559px) {
  .pd-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 560px) {
  .facts > div { grid-template-columns: 9rem 1fr; gap: var(--s-4); }
}
@media (min-width: 960px) {
  .pd-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-7);
    align-items: start;
    margin-top: var(--s-5);
  }
}

/* Specification: both tables side by side on wide screens */
.pd-spec {
  padding-block: clamp(36px, 4.5vw, 56px) clamp(48px, 5.5vw, 72px);
  border-top: 1px solid var(--line);
}
.pd-spec-title {
  margin-bottom: var(--s-4);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pd-spec-body { display: grid; gap: var(--s-4); }

.spec-card {
  padding: var(--s-4) 18px var(--s-2);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.spec-table caption {
  padding-bottom: var(--s-2);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
}
.spec-table th,
.spec-table td {
  padding-block: 7px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.spec-table th { width: 36%; padding-right: var(--s-3); font-weight: 400; color: var(--muted); }
.spec-table td { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .spec-card { padding: var(--s-5) var(--s-5) var(--s-3); }
  .spec-table { font-size: 14.5px; }
  .spec-table th { width: 38%; padding-right: var(--s-4); }
}
@media (min-width: 1024px) {
  .pd-spec-body { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Quality control: four steps as photo cards */
.pd-quality {
  padding-block: clamp(36px, 4.5vw, 56px) clamp(48px, 5.5vw, 72px);
  border-top: 1px solid var(--line);
}
.pd-quality-lead { max-width: 62ch; margin-bottom: var(--s-6); font-size: 16px; line-height: 1.65; color: var(--muted); }

.qc-steps {
  display: grid;
  gap: var(--s-5);
}
.qc-step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-2);
}
.qc-media {
  aspect-ratio: 4 / 3;
  background: var(--stone);
}
.qc-media img { width: 100%; height: 100%; object-fit: cover; }
/* Logos sit whole on white instead of being cropped like the photos */
.qc-media--logo { display: grid; place-items: center; padding: 14% 12%; background: var(--paper); border-bottom: 1px solid var(--line); }
.qc-media--logo img { height: auto; object-fit: contain; }

.qc-body { padding: var(--s-5); }
.qc-step .h3 { font-size: 1.1875rem; }
.qc-step p { margin-top: var(--s-2); font-size: 15px; line-height: 1.65; color: var(--muted); }

@media (min-width: 640px) {
  .qc-steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .qc-steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .qc-body { padding: var(--s-5) var(--s-4); }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
}

.details { display: grid; gap: var(--s-5); }
.detail {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.detail-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  box-shadow: var(--shadow-1);
}
.detail-label { font-size: 13px; color: var(--muted); }
.detail-value { margin-top: 2px; font-size: 18px; line-height: 1.5; }
a.detail-value {
  display: inline-block;
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
a.detail-value:hover { background-size: 100% 1px; }
a.detail-value:active { opacity: 0.6; }

/* Phones & tablets: one panel of rows; email and phone rows are tappable end to end */
@media (max-width: 959px) {
  .details {
    gap: 0;
    padding: 4px 18px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-2);
  }
  .detail {
    position: relative;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    padding-block: 16px;
  }
  .detail + .detail { border-top: 1px solid var(--line); }
  .detail-icon { background: var(--green-tint); box-shadow: none; }
  .detail-value { font-size: 17px; }
  a.detail-value::after { content: ""; position: absolute; inset: 0; } /* stretch the tap target over the row */
  .detail:has(a.detail-value)::after {
    content: "";
    width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a99a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .45s var(--ease-spring);
  }
  .detail:has(a.detail-value:hover)::after { transform: translateX(3px); }
  .detail:has(a.detail-value:active) { opacity: 0.6; }
}

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-3);
}
.form-card .h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 400; }
.form-card .form-intro { margin-top: var(--s-2); color: var(--muted); font-size: 15px; }

.form-grid {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-5); }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field label .req { color: var(--green); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #d6d5cf;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b6a73' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #b3b2b8; }

/* Animated focus underline */
.control { position: relative; }
.control::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.control:focus-within::after { transform: scaleX(1); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: #a9a8a3; }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #c2412d; }
.field-error { font-size: 13px; color: #b23a26; min-height: 0; }

/* Phones: boxed fields — clearer where to tap than a bare underline */
@media (max-width: 639px) {
  .form-card { padding: var(--s-5) 18px; }
  .form-grid { gap: 18px; margin-top: var(--s-5); }
  .field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
  .field input,
  .field select,
  .field textarea {
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #dcdbd4;
    border-radius: var(--radius);
    background-color: var(--stone);
  }
  .field textarea { min-height: 128px; }
  .field select { padding-right: 40px; background-position: right 16px center; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b8b1; }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--green);
    background-color: var(--paper);
    box-shadow: 0 0 0 3px rgba(43, 178, 79, 0.18);
  }
  .field.is-invalid input,
  .field.is-invalid textarea { border-color: #c2412d; }
  .control::after { display: none; }
  .form-foot { margin-top: var(--s-5); }
  .form-foot small { text-align: center; }
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.form-foot small { font-size: 13px; line-height: 1.6; color: var(--muted-2); }
@media (min-width: 640px) {
  .form-foot { flex-direction: row; align-items: center; gap: var(--s-5); }
}
.form-status {
  margin-top: var(--s-5);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 15px;
}
.form-status[hidden] { display: none; }

/* ---------- Certifications (above footer) ---------- */
.certs {
  --cert-gold: #8c7a5e;
  --cert-logo-h: 44px;
  border-top: 1px solid #e4e3e1;
  background: var(--paper);
  padding-block: 40px 44px;
}
.certs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}
.certs-label {
  flex: none;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cert-gold);
}

/* Phones: FSSC on its own row, then a 2 × 2 grid */
.certs-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: var(--s-5) var(--s-7);
}
.cert--wide { grid-column: 1 / -1; }
.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}
.cert img { height: var(--cert-logo-h); width: auto; }
.cert-name,
.cert-type {
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}
.cert-name {
  margin-top: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1008;
}
.cert-type {
  margin-top: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cert-gold);
}

/* Phones: equal tiles in a tidy 2-column grid, FSSC across the top */
@media (max-width: 639px) {
  .certs { --cert-logo-h: 40px; padding-block: 40px; }
  .certs-inner { gap: 20px; }
  .certs-list {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
  }
  .cert {
    justify-content: center;
    padding: 20px 8px 18px;
    border-radius: 14px;
    background: var(--stone);
    box-shadow: inset 0 0 0 1px #efeee9;
  }
  .cert--wide img { height: 34px; }
  .cert-name { margin-top: 12px; }
  .cert-type { margin-top: 4px; }
}

@media (min-width: 640px) {
  .certs { --cert-logo-h: 48px; }
  .certs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--s-5) var(--s-7);
  }
}
@media (min-width: 640px) and (max-width: 1119px) {
  .cert--wide { flex-basis: 100%; }
}

/* Desktop: one row inside the page container — label, then logos spread across the rest */
@media (min-width: 1120px) {
  .certs { --cert-logo-h: 52px; padding-block: 48px 54px; }
  .certs-inner {
    flex-direction: row;
    gap: 65px;
  }
  .certs-label { margin-top: 3px; }
  .certs-list {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(43, 178, 79, 0.08), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(226, 190, 118, 0.05), transparent 60%);
}
.site-footer::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.footer-top {
  display: grid;
  gap: var(--s-7) var(--s-5);
  padding-block: clamp(64px, 8vw, 96px) var(--s-7);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

.footer-brand .logo img { height: 80px; }
.footer-brand p {
  margin-top: var(--s-5);
  max-width: 30ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-label {
  margin-bottom: var(--s-4);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-list { display: grid; gap: 10px; }
.footer-list a,
.footer-list span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.footer-list a {
  border-radius: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: opacity .25s var(--ease);
}
.footer-list a:hover { background-size: 100% 1px; color: #fff; }
.footer-list a:active { opacity: 0.6; }
.footer-list span { color: rgba(255, 255, 255, 0.7); }

/* Phones: link lists side by side, and taller rows for easier tapping */
@media (max-width: 639px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6) var(--s-4);
    padding-block: 56px var(--s-6);
  }
  .footer-brand,
  .footer-top > div:last-child { grid-column: 1 / -1; }
  .footer-brand .logo img { height: 70px; }
  .footer-brand p { margin-top: var(--s-4); }
  .footer-label { margin-bottom: var(--s-2); }
  .footer-list { gap: 0; }
  .footer-list a { display: inline-block; padding-block: 9px; background-position: 0 calc(100% - 9px); }
  .footer-list span { display: block; padding-block: 9px; }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  transition: opacity .25s var(--ease);
}
.to-top .icon { width: 16px; height: 16px; transition: transform .45s var(--ease-spring); }
.to-top:hover { color: #fff; }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top:active { opacity: 0.6; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
