:root {
  --color-forest: #0f3d2e;
  --color-green: #177348;
  --color-green-soft: #e8f3eb;
  --color-gold: #c9972f;
  --color-gold-soft: #f7edd2;
  --color-ink: #16211d;
  --color-muted: #647067;
  --color-line: #dfe7df;
  --color-cream: #fbf7ed;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 61, 46, 0.12);
  --shadow-card: 0 14px 35px rgba(15, 61, 46, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-cream);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-ink);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
}

.section-tight {
  padding: clamp(48px, 7vw, 92px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  content: "";
  background: var(--color-gold);
}

.lead {
  max-width: 700px;
  color: #dce9df;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head p {
  font-size: 1.05rem;
}

.nav {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 30;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.52);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border 220ms ease, transform 220ms ease;
}

.nav.is-scrolled .nav-shell,
.nav.nav-solid .nav-shell {
  border-color: rgba(15, 61, 46, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--color-white);
}

.nav.is-scrolled .brand,
.nav.nav-solid .brand {
  color: var(--color-forest);
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 4px;
}

.brand span {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav.is-scrolled .brand small,
.nav.nav-solid .brand small {
  color: var(--color-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  padding: 12px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.nav.is-scrolled .nav-links a,
.nav.nav-solid .nav-links a {
  color: var(--color-forest);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-gold);
  color: var(--color-forest);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-forest);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(201, 151, 47, 0.26);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-forest);
  font-weight: 900;
}

.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  content: "";
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.nav-toggle::after {
  margin-top: 12px;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-forest);
  color: var(--color-white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 31, 22, 0.94), rgba(15, 61, 46, 0.74) 47%, rgba(15, 61, 46, 0.22)),
    url("../images/MAIZE & WHEAT FLOUR.png") center right / min(760px, 58vw) auto no-repeat;
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -18vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  content: "";
  background: rgba(201, 151, 47, 0.16);
  filter: blur(24px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding-top: 130px;
}

.hero-copy {
  max-width: 760px;
}

.hero h1,
.hero h2,
.dark-section h2,
.cta-band h2 {
  color: var(--color-white);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-forest);
  box-shadow: 0 14px 28px rgba(201, 151, 47, 0.28);
}

.btn-secondary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 14px 28px rgba(23, 115, 72, 0.18);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-forest);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 800px;
  margin-top: 54px;
}

.stat-tile {
  min-height: 132px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.stat-tile strong {
  display: block;
  color: var(--color-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.glass-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.story-points,
.clean-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.story-points li,
.clean-list li {
  display: flex;
  gap: 12px;
  color: var(--color-muted);
}

.story-points li::before,
.clean-list li::before {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  content: "";
  background: var(--color-gold);
}

.product-card,
.feature-card,
.testimonial-card,
.contact-card,
.spec-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 61, 46, 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.product-card figure {
  display: grid;
  min-height: 285px;
  margin: 0;
  place-items: center;
  background: linear-gradient(135deg, #f9f3de, #e8f3eb);
}

.product-card img {
  max-height: 245px;
  object-fit: contain;
  padding: 24px;
  transition: transform 260ms ease;
}

.product-card:hover img {
  transform: scale(1.04) rotate(-1deg);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.dark-section {
  background: var(--color-forest);
  color: var(--color-white);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.76);
}

.factory-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.factory-panel {
  min-height: 520px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15, 61, 46, 0.08), rgba(15, 61, 46, 0.82)),
    url("../images/MAIZE FLOUR.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.process-item strong {
  display: block;
  color: var(--color-gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.network-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 115, 72, 0.12), rgba(201, 151, 47, 0.18)),
    var(--color-white);
  box-shadow: var(--shadow-soft);
}

.network-map::before {
  position: absolute;
  inset: 16%;
  border: 2px dashed rgba(23, 115, 72, 0.26);
  border-radius: 50%;
  content: "";
}

.map-node {
  position: absolute;
  display: grid;
  min-width: 120px;
  min-height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-white);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(15, 61, 46, 0.18);
}

.node-main {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-gold);
  color: var(--color-forest);
}

.node-one {
  top: 18%;
  left: 14%;
}

.node-two {
  top: 20%;
  right: 12%;
}

.node-three {
  right: 16%;
  bottom: 18%;
}

.node-four {
  bottom: 15%;
  left: 16%;
}

.testimonial-card,
.feature-card,
.contact-card,
.spec-card {
  padding: 28px;
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial-card cite {
  color: var(--color-green);
  font-style: normal;
  font-weight: 900;
}

.cta-band {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 61, 46, 0.96), rgba(23, 115, 72, 0.88)),
    url("../images/FEEDS LOGO.png") right center / 420px auto no-repeat;
  box-shadow: var(--shadow-soft);
}

.cta-band p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.page-hero {
  display: flex;
  min-height: 58vh;
  align-items: flex-end;
  padding: 150px 0 80px;
  background:
    linear-gradient(90deg, rgba(7, 31, 22, 0.92), rgba(15, 61, 46, 0.66)),
    url("../images/MAIZE & WHEAT FLOUR.png") center right / min(620px, 56vw) auto no-repeat,
    var(--color-forest);
}

.page-hero h1,
.page-hero p {
  color: var(--color-white);
}

.page-hero p {
  max-width: 720px;
  opacity: 0.82;
  font-size: 1.15rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-forest);
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.is-active {
  border-color: var(--color-gold);
  background: var(--color-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-card a {
  color: var(--color-green);
  font-weight: 900;
}

.form-panel {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--color-forest);
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fffdfa;
  color: var(--color-ink);
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(201, 151, 47, 0.24);
  border-color: var(--color-gold);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.detail-image {
  position: sticky;
  top: 120px;
  display: grid;
  min-height: 520px;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f9f3de, #e8f3eb);
  box-shadow: var(--shadow-soft);
}

.detail-image img {
  max-height: 430px;
  object-fit: contain;
  padding: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.spec-card strong {
  display: block;
  color: var(--color-green);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer {
  background: #071f16;
  color: var(--color-white);
  padding: 70px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer h3,
.footer h4 {
  color: var(--color-white);
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.72);
}

.footer ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .nav-shell {
    border-radius: 26px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 98px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    color: var(--color-forest);
  }

  .nav-cta {
    display: none;
  }

  .hero::before,
  .page-hero {
    background:
      linear-gradient(180deg, rgba(7, 31, 22, 0.94), rgba(15, 61, 46, 0.78)),
      url("../images/MAIZE & WHEAT FLOUR.png") center bottom / min(640px, 95vw) auto no-repeat,
      var(--color-forest);
  }

  .hero-inner {
    padding-top: 150px;
    padding-bottom: 48px;
  }

  .hero-stats,
  .grid-2,
  .grid-3,
  .section-head,
  .factory-grid,
  .contact-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-image {
    position: static;
    min-height: 360px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .brand span {
    max-width: 140px;
  }

  .hero-stats,
  .spec-grid,
  .form-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-bottom: 34px;
  }

  .section {
    padding: 64px 0;
  }

  .media-card img {
    min-height: 300px;
  }

  .factory-panel {
    min-height: 360px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
