/* ==========================================================================
   KPRS FOODS — PAGE SECTION LAYOUTS
   Hero / About / Why KPRS / Capabilities / Enquiry CTA banner
   ========================================================================== */

/* ---- Hero: four-layer cinematic composition ------------------------------
   1. .hero__bg      oversized product photography, slow drift + parallax
   2. .hero__veil    navy atmosphere and directional light (legibility)
   3. .hero__content editorial type block
   4. .hero__stage   offset image frames + factual plate
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 5.4vw, 5rem);
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image:
    image-set(url("../images/products/roasted-groundnut.webp") type("image/webp"),
              url("../images/products/roasted-groundnut.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 35%;
  opacity: 0.30;
  filter: saturate(0.7) contrast(1.05);
  animation: hero-drift 40s var(--ease-standard) infinite alternate;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 31, 51, 0.97) 0%, rgba(10, 31, 51, 0.90) 42%, rgba(10, 31, 51, 0.62) 100%),
    radial-gradient(70% 90% at 12% 8%, rgba(20, 184, 196, 0.20), transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}

.hero__content { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero__eyebrow-badge { margin-bottom: var(--space-5); }

.hero h1 { color: var(--white); margin-bottom: var(--space-5); }

.hero__lead {
  color: var(--on-navy-muted);
  font-size: var(--fs-lead);
  max-width: 54ch;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Qualitative assurance strip under the hero CTAs — replaces the removed
   numeric stat cards; no metrics, so nothing to fabricate. */
.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__assurances li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-navy);
}
.hero__assurances li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--cyan-500);
}

/* ---- Hero foreground stage ---- */
.hero__stage {
  position: relative;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-left: clamp(0rem, 2vw, 2.25rem);
}
.hero__frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 32px 64px rgba(4, 14, 26, 0.55);
  background: rgba(255,255,255,0.05);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

/* Offset inset frame — the element that creates real foreground depth */
.hero__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  max-width: 230px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 22px 44px rgba(4, 14, 26, 0.6);
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }

.hero__plate {
  position: absolute;
  right: 0;
  bottom: clamp(0.6rem, 2vw, 1.4rem);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: rgba(10, 31, 51, 0.88);
  border: 1px solid rgba(20, 184, 196, 0.45);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px rgba(4, 14, 26, 0.45);
}
.hero__plate-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 2px;
}
.hero__plate strong {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
/* Mobile: the layered composition becomes a clean stack. Nothing is
   absolutely positioned, so no image can ever sit over text or a button. */
@media (max-width: 760px) {
  .hero__stage {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .hero__inset {
    position: static;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 7;
  }
  .hero__plate {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
  }
  .hero__plate strong { white-space: normal; }
}

/* ---- Art-directed section background photography ------------------------
   Oversized, masked, heavily de-saturated product photography used as
   atmosphere only. Sits behind content with a hard readability floor: the
   section's own background colour still carries the text contrast. */
.section--media { position: relative; overflow: hidden; isolation: isolate; }
.section__bg-media {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  filter: grayscale(0.25) contrast(1.02);
}
.section__bg-media--cumin {
  inset: -12% -30% auto auto;
  width: 58%;
  height: 130%;
  background-image:
    image-set(url("../images/products/cumin-whole.webp") type("image/webp"),
              url("../images/products/cumin-whole.jpg") type("image/jpeg"));
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 72%);
}
.section__bg-media--peanut {
  inset: auto auto -18% -22%;
  width: 54%;
  height: 125%;
  background-image:
    image-set(url("../images/products/blanched-peeled-peanut.webp") type("image/webp"),
              url("../images/products/blanched-peeled-peanut.jpg") type("image/jpeg"));
  mask-image: radial-gradient(70% 70% at 30% 60%, #000 18%, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 70% at 30% 60%, #000 18%, transparent 70%);
}
@media (max-width: 700px) {
  .section__bg-media { opacity: 0.07; }
}

/* ---- About ---- */
.about__grid .badge,
.section-heading .badge { margin-bottom: var(--space-4); }
.about__grid > div > h2 { margin-bottom: var(--space-4); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* Layered About composition: primary frame, offset inset, factual plate */
.about__media {
  position: relative;
  padding: 0 0 clamp(2rem, 4vw, 3.25rem) clamp(0rem, 2vw, 1.75rem);
}
.about__media-main {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 26px 54px rgba(10, 31, 51, 0.16);
}
.about__media-main img { width: 100%; height: 100%; object-fit: cover; }
.about__media-inset {
  position: absolute;
  left: 0;
  bottom: clamp(0.5rem, 2vw, 1.5rem);
  width: 40%;
  max-width: 210px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--white);
  box-shadow: 0 18px 38px rgba(10, 31, 51, 0.22);
}
.about__media-inset img { width: 100%; height: 100%; object-fit: cover; }
.about__media-plate {
  position: absolute;
  right: clamp(-0.5rem, 1vw, 0.75rem);
  top: clamp(1rem, 3vw, 2rem);
  line-height: 1.5;
  white-space: nowrap;
  max-width: 70%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px rgba(10, 31, 51, 0.28);
}
@media (max-width: 760px) {
  .about__media {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }
  .about__media-main { aspect-ratio: 4 / 3; }
  .about__media-inset {
    position: static;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 7;
    border-width: 0;
  }
  .about__media-plate {
    position: static;
    display: block;
    max-width: none;
    white-space: normal;
    text-align: center;
  }
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.about__fact {
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-left: 2px solid var(--cyan-500);
  background: linear-gradient(90deg, rgba(20, 184, 196, 0.055), rgba(20, 184, 196, 0));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about__fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-900);
}
.about__fact span {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

/* ---- Why KPRS ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Capabilities (range strip) ---- */
.range-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.range-strip__pill {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--neutral-200);
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy-900);
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
@media (min-width: 768px) {
  .capabilities__grid { grid-template-columns: repeat(3, 1fr); }
}
.capabilities__item {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
}
.capabilities__item h3 { margin-bottom: var(--space-2); }
.capabilities__item p { color: var(--ink-muted); font-size: var(--fs-small); margin: 0; }

/* ---- Enquiry CTA banner ---- */
/* Premium banner ground: real food photography (see IMAGE-SOURCES.md) held
   far back under a heavy cyan wash so the navy CTA text keeps full contrast. */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 184, 196, 0.97) 0%, rgba(20, 184, 196, 0.88) 55%, rgba(20, 184, 196, 0.74) 100%),
    url("../images/misc/banner-visual.jpg");
  /* Declared AFTER the shorthand (which resets background-color): keeps the
     cyan brand block solid if the image layer is ever dropped or unavailable. */
  background-color: var(--cyan-500);
  background-size: cover, cover;
  background-position: center, center;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .cta-banner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.75rem, 3.5vw, 3rem);
    align-items: center;
  }
}
.cta-banner__copy { position: relative; }
.cta-banner__eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: var(--space-3);
}
.cta-banner h2 { color: var(--navy-900); margin-bottom: var(--space-3); max-width: 24ch; }
.cta-banner p { color: var(--navy-900); margin: 0; max-width: 52ch; }

/* Inline distributor link inside the banner copy — a real button, styled as
   a premium text link rather than a third competing CTA button. */
.cta-banner .cta-banner__aside {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
}
.cta-banner__link {
  display: inline-block;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  border-bottom: 1px solid rgba(10, 31, 51, 0.45);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.cta-banner__link:hover { border-bottom-color: var(--navy-900); }
.cta-banner__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}
.cta-banner__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy-900);
}
.cta-banner__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  flex: 0 0 7px;
  border-radius: 2px;
  background: var(--navy-900);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Inline enquiry panel — reads as part of the banner, not a pasted form */
.cta-banner__panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 31, 51, 0.10);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  box-shadow: 0 22px 46px rgba(6, 24, 40, 0.22);
  backdrop-filter: blur(4px);
}
.cta-banner__panel-title {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--neutral-200);
}
.cta-banner__panel .field { margin-bottom: var(--space-3); }
.cta-banner__panel .field__label { font-size: var(--fs-micro); }
.cta-banner__panel .btn--primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  margin-top: var(--space-2);
}
.cta-banner__panel .btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.cta-banner__hint { margin-top: var(--space-3); text-align: center; }
.cta-banner .btn--primary { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.cta-banner .btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.cta-banner .btn--secondary { border-color: var(--navy-900); color: var(--navy-900); }
.cta-banner .btn--secondary:hover { background: var(--navy-900); color: var(--white); }

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-7); }
}
.contact__list li {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--neutral-200);
  font-size: var(--fs-body);
}
.contact__list li:last-child { border-bottom: none; }
.contact__list strong { display: block; color: var(--navy-900); font-size: var(--fs-small); }
.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--space-5);
}

/* ---- Product section intro (above the grid) ---- */
.products-intro {
  max-width: 68ch;
  margin-bottom: var(--space-7);
}

/* ---- Contact: premium inline enquiry form panel ---- */
.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.contact-form-panel h3 { margin-bottom: var(--space-2); }

/* ==========================================================================
   VIDEO SECTION — premium vertical (Shorts) presentation on navy
   ========================================================================== */
.video-section { position: relative; overflow: hidden; }
.video-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .video-section__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.video-section__copy .badge { margin-bottom: var(--space-4); }
.video-section h2 { color: var(--white); }
.video-section__lead { color: var(--on-navy-muted); }
.video-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.video-section .btn--secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.video-section .btn--secondary:hover,
.video-section .btn--secondary:focus-visible {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.video-section__note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-micro);
  color: var(--on-navy-muted);
}

/* Player frame: 9:16 to match Shorts, capped so it never dominates the page */
.video-section__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.video-frame {
  width: 100%;
  max-width: 330px;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 60px rgba(4, 14, 26, 0.55);
}
.video-frame__inner {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.video-frame__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-frame__plate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(20, 184, 196, 0.45);
  text-decoration: none;
  transition: background-color var(--duration-base) var(--ease-standard);
}
.video-frame__plate:hover { background: rgba(20, 184, 196, 0.18); }
.video-frame__plate-label {
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-500);
}
.video-frame__plate strong {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--white);
}
