/* ==========================================================
   Ariodane Pasargad — homepage
   ========================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2-variations"),
       url("fonts/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #073769;
  --navy-deep: #052a52;
  --blue: #14629B;
  --green: #28753B;
  --green-deep: #1f5f2f;
  --gold: #D2A657;
  --gold-deep: #a97f33;
  --light: #F5F7F6;
  --footer-base: #01356b;   /* sampled from the bottom edge of footer.webp */
  --teal: #015a76;          /* sampled from the sheep & goat bag */

  --ink: #1d3346;
  --muted: #4a5b66;          /* ≥ 4.5:1 on light and tinted backgrounds */
  --line: #e1e8e5;

  --section-pad: clamp(56px, 6vw, 88px);
  --hero-bg: #013a6f;        /* sampled from the edges of hero.webp */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* breakout geometry (ratios of the transparent strips in the source art) */
  --about-h: max(40vw, 620px);
  --about-strip: 0.2106;      /* 167 / 793 */
  --foot-h: max(33.34vw, 400px);
  --foot-strip: 0.2472;       /* 179 / 724, deepest point of the curve */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 2;
  font-weight: 400;
  color: var(--ink);
  background: var(--light);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.6; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 32px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 6px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .8;
}
.eyebrow-light { color: rgba(255, 255, 255, .88); }
.eyebrow-gold { color: var(--gold); }

h2 { font-size: 26px; color: var(--navy); }
h3 { font-size: 17px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-lead {
  max-width: 400px;
  font-size: 14px;
  color: var(--muted);
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--line);
}
.section-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--light); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ddb46a; }
.btn-outline { color: var(--navy); border-color: rgba(7, 55, 105, .35); }
.btn-outline:hover { border-color: var(--navy); background: #fff; }

.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow, .cat-card:hover .arrow, .article:hover .arrow { transform: translateX(-4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, var(--blue));
}

/* ==========================================================
   Header (utility bar + main bar)
   ========================================================== */

.masthead {
  position: sticky;
  top: -38px;                 /* utility bar scrolls away, main bar sticks */
  z-index: 50;
}

.topbar {
  height: 38px;
  background: var(--navy);
  color: rgba(255, 255, 255, .86);
  font-size: 12.5px;
  line-height: 1;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masthead.is-scrolled .topbar { opacity: 0; transform: translateY(-100%); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar-link:hover { color: #fff; }
.topbar-link svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: relative;
  background: #fff;
  transition: box-shadow .35s var(--ease);
}
.masthead.is-scrolled .site-header { box-shadow: 0 12px 32px -24px rgba(7, 55, 105, .55); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 92px;
  transition: height .35s var(--ease);
}
.masthead.is-scrolled .header-inner { height: 72px; }

.brand { flex-shrink: 0; }
.brand img { height: 76px; width: auto; transition: height .35s var(--ease); }
.masthead.is-scrolled .brand img { height: 60px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a,
.nav-trigger {
  position: relative;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  color: var(--ink);
  padding: 8px 0;
  transition: color .2s;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
}
.chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav-links > a::after,
.nav-trigger::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-links > a:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--navy); }
.nav-links > a:hover::after,
.nav-links > a.is-active::after,
.nav-trigger:hover::after,
.nav-trigger.is-active::after,
.nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-links > a.is-active,
.nav-trigger.is-active { color: var(--navy); font-weight: 600; }

/* ---------- shop mega menu (shared pieces) ---------- */

.mm-head {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  padding: 0 12px 10px;
  margin-bottom: 8px;
}
.mm-head::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent, var(--green));
}
.mm-green { --accent: var(--green); }
.mm-gold  { --accent: var(--gold); }
.mm-blue  { --accent: var(--blue); }

.mm-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #2b3a45;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mm-link:hover,
.mm-link:focus-visible { background: var(--light); color: var(--navy); }
.mm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-blue   { background: #1b5a9c; }
.dot-teal   { background: #0b7187; }
.dot-yellow { background: #e3a106; }
.dot-green  { background: #2f8a3e; }
.mm-arrow {
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  flex-shrink: 0;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.mm-link:hover .mm-arrow,
.mm-link:focus-visible .mm-arrow { opacity: 1; transform: none; }

.mega-bottom a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--navy); transition: color .2s; }
.mega-bottom a:hover { color: var(--green); }
.mm-phone svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 55, 105, .18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), visibility 0s .18s;
}
body.mega-open .mega-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }

@media (min-width: 1025px) {
  .mega {
    position: absolute;               /* anchored to the sticky header, follows its height */
    top: 100%;
    inset-inline: 0;
    z-index: 2;
    background: #fff;
    border-top: 2px solid var(--gold);
    border-radius: 0 0 18px 18px;
    box-shadow:
      0 40px 70px -40px rgba(7, 55, 105, .38),
      0 14px 28px -18px rgba(7, 55, 105, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
  }
  .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  .mega-inner {
    display: grid;
    grid-template-columns: auto auto auto minmax(300px, 1fr);   /* link columns size to content, feature takes the rest */
    gap: 0 36px;
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .mm-col ul { display: flex; flex-direction: column; gap: 2px; }

  .mm-feature {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 236px;
    padding: 28px 30px;
    padding-inline-end: 186px;        /* room for the bag on the left */
    margin-inline-start: 8px;
    border-radius: 20px;
    background:
      radial-gradient(80% 90% at 0% 100%, rgba(20, 98, 155, .45), transparent 60%),
      var(--navy);
    color: #fff;
  }
  .mm-wheat {
    position: absolute;
    right: 14px;
    bottom: 10px;
    height: 200px;
    width: auto;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .08;
    pointer-events: none;
  }
  .mm-bag {
    position: absolute;
    left: 24px;
    top: -28px;                       /* controlled breakout above the panel */
    height: 212px;
    width: auto;
    transform: rotate(-4deg);
    filter: drop-shadow(0 16px 16px rgba(2, 24, 50, .35));
    pointer-events: none;
  }
  .mm-feature-copy { position: relative; max-width: 260px; }
  .mm-feature-title { font-size: 16px; font-weight: 600; line-height: 1.8; margin-bottom: 6px; }
  .mm-feature-text { font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
  .mm-feature-btn { height: 40px; padding: 0 18px; }

  .mega-bottom { background: var(--light); border-radius: 0 0 18px 18px; }
  .mega-bottom-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
  .mm-all { display: none !important; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .mega-inner { gap: 0 22px; }
  .mm-link { padding: 0 10px; }
  .mm-feature { padding-inline-end: 150px; padding-inline-start: 22px; }
  .mm-bag { height: 176px; left: 16px; }
  .mm-feature-title { font-size: 15px; }
}
.drawer-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  transition: background-color .25s, border-color .25s;
}
.icon-btn:hover { background: var(--light); border-color: #cfdad5; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.cart-badge[hidden] { display: none; }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.header-cta { height: 44px; padding: 0 22px; margin-inline-start: 4px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) and (min-width: 1025px) {
  .nav-links { gap: 20px; }
  .header-inner { gap: 20px; }
}

@media (max-width: 1024px) {
  .masthead { top: 0; }
  .topbar { display: none; }
  .header-inner, .masthead.is-scrolled .header-inner { height: 76px; }
  .brand img, .masthead.is-scrolled .brand img { height: 54px; }
  .header-actions { margin-inline-start: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: block;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    background: #fff;
    padding: 8px 24px 28px;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(7, 55, 105, .5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > a { font-size: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav-links > a::after, .nav-trigger::after { display: none; }
  .nav-links > a.is-active, .nav-trigger.is-active { color: var(--green); }

  /* shop accordion inside the drawer */
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-trigger { width: 100%; justify-content: space-between; font-size: 16px; padding: 16px 4px; font-weight: 500; }
  .nav-trigger .chevron { width: 18px; height: 18px; }
  .mega {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--ease);
  }
  .has-mega.is-open .mega { grid-template-rows: 1fr; }
  .mega-clip { overflow: hidden; min-height: 0; }
  .mega .container { padding-inline: 0; }
  .mega-inner { display: block; padding: 2px 0 6px; }
  .mm-feature { display: none; }
  .mm-col { padding: 8px 0 6px; }
  .mm-head { padding-inline: 4px; margin-bottom: 4px; }
  .mm-head::after { inset-inline-start: 4px; }
  .mm-link { height: 44px; font-size: 15px; padding: 0 10px; }
  .mega-bottom { background: var(--light); border-radius: 12px; margin: 6px 0 16px; padding: 4px 6px; }
  .mega-bottom-inner { display: flex; flex-direction: column; align-items: stretch; }
  .mega-bottom a { min-height: 44px; padding: 0 8px; font-size: 15px; }
  .mm-phone { display: none !important; }
  .drawer-extra { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
  .drawer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 4px;
    font-size: 15px;
    color: var(--navy);
  }
  .drawer-row svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .drawer-cta { width: 100%; height: 52px; font-size: 15px; margin-top: 12px; }
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  position: relative;
  height: clamp(480px, 42vw, 640px);
  overflow: hidden;
  background: var(--hero-bg);
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;              /* behaves like background-size: cover */
  object-position: left center;   /* the real cow stays on the left */
  z-index: -1;
  /* line art dissolves into the flat navy before it reaches the copy */
  -webkit-mask-image: linear-gradient(to left, transparent 0%, transparent 38%, #000 62%);
          mask-image: linear-gradient(to left, transparent 0%, transparent 38%, #000 62%);
}
.hero-inner { height: 100%; display: flex; align-items: center; }
.hero-copy { max-width: 440px; color: #fff; padding-bottom: 24px; }
.hero h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 14px;
}
.hero-text { font-size: 15px; color: rgba(255, 255, 255, .9); max-width: 400px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ==========================================================
   Quick strip
   ========================================================== */

.quick-strip { background: #052b50; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.quick-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-inner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
  transition: color .2s, background-color .25s;
}
.quick-inner a + a { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.quick-inner a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.quick-inner svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================
   Categories
   ========================================================== */

.categories {
  background: var(--light);
  padding-top: var(--section-pad);
  /* room for the poultry art's transparent strip that overlaps this section */
  padding-bottom: calc(var(--about-h) * var(--about-strip) + var(--section-pad));
}

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.cat-card {
  --accent: var(--green);
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat-card::after {          /* colour accent on the leading edge */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(.28);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--accent) 70%, #000); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-blue { --accent: var(--blue); }
.cat-gold { --accent: var(--gold-deep); }

.cat-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.04); }

.cat-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-body h3 { color: var(--navy); display: flex; align-items: center; gap: 10px; }
.cat-body h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.cat-body p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cat-body .text-link { margin-top: auto; }

/* ==========================================================
   About + poultry nutrition (bold breakout)
   ========================================================== */

.about {
  position: relative;
  z-index: 2;
  height: var(--about-h);
  margin-top: calc(var(--about-h) * var(--about-strip) * -1);
  color: #fff;
}
.about-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
}
.about-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: calc(var(--about-h) * var(--about-strip));
}
.about-copy { width: min(540px, 50%); }
.about h2 { color: #fff; margin-bottom: 14px; }
.about-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .86); }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 36px;
  margin: 22px 0 30px;
  font-size: 13px;
  font-weight: 500;
}
.about-points li { display: flex; align-items: center; gap: 10px; }
.about-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073769' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--gold);
}

/* ==========================================================
   Featured products (controlled breakout)
   ========================================================== */

.products { background: #fff; padding: var(--section-pad) 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;            /* the bags rise 40px above their cards */
}

.product {
  --accent: var(--blue);
  --tint: #e5eef8;
  --tint-2: #d3e2f2;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) 58%, color-mix(in srgb, var(--tint) 55%, #fff) 100%);
}
.p-blue   { --accent: #1b5a9c; --tint: #e7eff8; --tint-2: #cfe0f2; }
.p-teal   { --accent: var(--teal); --tint: #e2f1f1; --tint-2: #c6e4e6; }
.p-yellow { --accent: #9a6b00; --tint: #fbf2db; --tint-2: #f6e1a6; }
.p-green  { --accent: #13662c; --tint: #e5f1e6; --tint-2: #cbe4cd; }

.product-media {
  position: relative;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.product-media::before {            /* soft halo behind the bag */
  content: "";
  position: absolute;
  inset-inline: 14%;
  top: 20px;
  bottom: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
}
.product-media::after {             /* contact shadow */
  content: "";
  position: absolute;
  bottom: 2px;
  width: 58%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}
.product-media img {
  position: relative;
  z-index: 1;
  height: 290px;                    /* 250px slot + 40px breakout */
  width: auto;
  max-width: 88%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.product:hover .product-media img { transform: translateY(-6px) rotate(-1.2deg); }

.product-body { padding: 18px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.tag {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, .8);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
}
.product h3 { color: var(--navy); }
.product-body > p { font-size: 13px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.buy { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: stretch; }
.price {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 14px;
}
.price span { font-size: 12px; font-weight: 400; color: var(--muted); margin-inline-start: 2px; }
.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.add-to-cart:hover { background: var(--green-deep); }
.add-to-cart:active { transform: scale(.98); }
.add-to-cart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.add-to-cart.is-added { background: var(--navy); }
.details-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity .2s;
}
.details-link:hover { opacity: .8; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 18px 40px -18px rgba(5, 42, 82, .7);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--green);
}

.center-action { display: flex; justify-content: center; margin-top: 52px; }

/* ==========================================================
   Consultation banner
   ========================================================== */

.consult { background: var(--light); padding: var(--section-pad) 0; }

.consult-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.consult-banner::before {           /* faint gold arc, quiet detail */
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -260px;
  right: -140px;
  border-radius: 50%;
  border: 1px solid rgba(210, 166, 87, .25);
  pointer-events: none;
}
.consult-copy {
  position: relative;
  z-index: 1;
  padding: 56px 64px 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.consult h2 { color: #fff; margin-bottom: 12px; }
.consult-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .8); font-size: 14px; max-width: 440px; margin-bottom: 28px; }

.consult-media { position: relative; }
.consult-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 60%;
  /* inner (right) edge melts into the navy */
  -webkit-mask-image: linear-gradient(to right, #000 52%, transparent 96%);
          mask-image: linear-gradient(to right, #000 52%, transparent 96%);
}

/* ==========================================================
   Benefits
   ========================================================== */

.benefits {
  position: relative;
  /* flat edge colour sampled from benefits-bg.webp, so any extra area merges without a seam */
  background: #206f3c url("images/benefits-bg.webp?v=2") left bottom / cover no-repeat;
  padding: var(--section-pad) 0 clamp(120px, 14vw, 200px);
  color: #fff;
}
/* keep the content clear of the wheat on the left */
.benefits .container { padding-left: max(32px, calc(250px - max(0px, (100vw - 1220px) / 2))); }
.benefits .eyebrow { color: #f6e7c6; }
.benefits .section-head { padding-left: 120px; }       /* lead stays clear of the wheat awns */

.benefits h2 { color: #fff; }
.section-head-light .section-lead { color: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .25); }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
  --accent: var(--gold);
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 30px 30px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.benefit::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
}
.benefit:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -28px rgba(10, 40, 20, .7); }
.b-blue { --accent: var(--blue); }
.b-navy { --accent: var(--navy); }

.benefit-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 20px;
}
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { color: var(--navy); margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--muted); }

/* ==========================================================
   Articles
   ========================================================== */

.articles {
  background: var(--light);
  padding-top: var(--section-pad);
  padding-bottom: calc(var(--foot-h) * var(--foot-strip) + var(--section-pad));
}

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.article {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.article:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -30px rgba(7, 55, 105, .5); }
.a-green { --accent: var(--green); }
.a-gold  { --accent: var(--gold); }

.article-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}
.article-media::after {               /* each card keeps its colour accent */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
}
.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  image-rendering: auto;
  /* same composited path at rest and on hover, so the fine line art doesn't soften at rest */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  will-change: transform;
  transition: transform .4s var(--ease);
}
.article:hover .article-media img { transform: translateZ(0) scale(1.04); }
.article-cat {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: rgba(5, 42, 82, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 7px 12px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.article-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.article h3 { color: var(--navy); margin-bottom: 6px; }
.article-meta { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.article .text-link { margin-top: auto; }
.a-gold .text-link { --accent: var(--gold-deep); }

/* ==========================================================
   Footer
   ========================================================== */

/* one continuous colour field: transparent only across the strip that overlaps the articles */
.site-footer {
  position: relative;
  z-index: 2;
  color: #fff;
  background: linear-gradient(180deg, transparent calc(var(--foot-h) * var(--foot-strip)), var(--footer-base) 0);
}

.footer-art {
  position: relative;
  height: var(--foot-h);
  margin-top: calc(var(--foot-h) * var(--foot-strip) * -1);
}
.footer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scaleX(-1);              /* image only: animals right, wheat left */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  pointer-events: none;
}
.footer-brand { position: relative; height: 100%; }
.footer-brand-inner {
  position: absolute;
  inset-inline-start: 32px;
  top: calc(var(--foot-h) * .31);
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-brand img { height: 46px; width: auto; }
.slogan {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .9);
  padding-inline-start: 22px;
  border-inline-start: 1px solid rgba(255, 255, 255, .35);
  line-height: 1.6;
}

/* sits on the same solid field the art fades into */
.footer-body {
  position: relative;
  margin-top: -64px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 8px 0 30px;
}
.footer-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.footer-body p { color: rgba(255, 255, 255, .7); line-height: 2.1; max-width: 300px; }
.footer-body li a {
  display: inline-block;
  color: rgba(255, 255, 255, .7);
  line-height: 2.3;
  transition: color .2s, transform .25s var(--ease);
}
.footer-body li a:hover { color: var(--gold); transform: translateX(-3px); }
.footer-link { display: inline-flex; gap: 8px; margin-top: 8px; color: var(--gold); font-weight: 500; }

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 0 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}
.copyright { align-items: center; }
.signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}
.signature img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);    /* keep it pure white */
  opacity: .6;
  transition: opacity .3s var(--ease);
}
.signature:hover img { opacity: 1; }

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); row-gap: 72px; }
  .product-media { height: 280px; }
  .product-media img { height: 320px; }
  .about-copy { width: min(520px, 54%); }
}

@media (max-width: 980px) {
  :root { --about-h: 640px; }


  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-lead { max-width: 560px; }

  .cat-grid, .benefit-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid > :last-child, .article-grid > :last-child { grid-column: 1 / -1; }
  .cat-grid > :last-child .cat-media { aspect-ratio: 21 / 9; }

  .consult-banner { grid-template-columns: 1fr; }
  .consult-media { order: -1; height: 260px; }
  .consult-media img {
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
  }
  .consult-copy { padding: 8px 40px 44px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
}

/* hero stacks below desktop: art on top, copy below on the same navy, no seam */
@media (max-width: 1024px) {
  .hero { height: auto; overflow: visible; }
  .hero-img { position: static; height: clamp(300px, 44vw, 420px); object-position: left center; z-index: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-inner { display: block; }
  .hero-copy { max-width: 560px; padding: 12px 0 48px; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 980px) {
  /* smaller screens: art sits at the bottom at a fixed size, wheat shows below the cards */
  .benefits {
    background-image: url("images/benefits-bg-1200.webp?v=2");
    background-size: 720px auto;
    padding-bottom: 230px;
  }
  .benefits .container { padding-left: 32px; }
  .benefits .section-head { padding-left: 0; }
}

@media (max-width: 760px) {
  .benefits .container { padding-left: 20px; }
  :root {
    --about-h: 340px;           /* mobile: height of the art block only */
    --foot-h: 300px;
  }
  body { font-size: 14px; }
  .container { padding-inline: 20px; }
  html { scroll-padding-top: 84px; }

  h2 { font-size: 21px; }
  h3 { font-size: 16px; }

  /* hero: image block on top, copy on navy below */
  .hero-img { height: 300px; }
  .hero-copy { max-width: none; padding: 12px 0 40px; }
  .hero h1 { font-size: 25px; margin-bottom: 10px; }
  .hero-text { font-size: 14px; }
  .actions { margin-top: 24px; }
  .actions .btn { flex: 1 1 auto; }

  .quick-inner { grid-template-columns: 1fr 1fr; }
  .quick-inner a { justify-content: flex-start; padding: 15px 4px; font-size: 12px; gap: 10px; }
  .quick-inner a + a { border-inline-start: 0; }
  .quick-inner a:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
  .quick-inner a:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }

  .cat-grid, .benefit-grid, .article-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-grid > :last-child .cat-media { aspect-ratio: 16 / 9; }

  /* about: art block (still breaking out), copy below on matching colour */
  .about { height: auto; }
  .about-art {
    position: relative;
    z-index: 1;
    height: var(--about-h);
    object-position: 6% top;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .about-inner {
    height: auto;
    padding-top: 0;
    padding-bottom: 56px;
    margin-top: -90px;
    padding-top: 90px;
    background: linear-gradient(180deg, #17583f 0%, #125260 45%, #0f4f7c 100%);
  }
  .about-copy { width: 100%; }
  .about-points { grid-template-columns: 1fr 1fr; gap: 8px 16px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 56px 14px; }
  .product { border-radius: 18px; }
  .product-media { height: 190px; }
  .product-media img { height: 230px; }
  .product-body { padding: 14px 14px 18px; }
  .product h3 { font-size: 14px; line-height: 1.8; }
  .product-body > p { white-space: normal; font-size: 12px; line-height: 1.9; }
  .price { font-size: 15px; margin-bottom: 10px; }
  .price span { font-size: 11px; }
  .add-to-cart { height: 42px; font-size: 12px; gap: 6px; border-radius: 10px; }
  .add-to-cart svg { width: 16px; height: 16px; }

  .consult-banner { border-radius: 22px; }
  .consult-media { height: 200px; }
  .consult-copy { padding: 4px 24px 32px; }

  .benefit { padding: 26px 24px; }


  .footer-img { object-position: 10% top; }
  .footer-brand-inner { inset-inline-start: 20px; flex-direction: column; align-items: flex-start; gap: 8px; top: calc(var(--foot-h) * .29); }
  .footer-brand img { height: 36px; }
  .slogan { border: 0; padding: 0; font-size: 12px; }
  .footer-body { margin-top: -48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .footer-about, .footer-contact { grid-column: 1 / -1; }
  .copyright { flex-direction: column; justify-content: center; gap: 12px; text-align: center; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
