/* ==========================================================================
   Chei Chei Foods - site styles
   --------------------------------------------------------------------------
   One stylesheet for the whole site. The look is a food company's: warm
   paper tones, a serif for headings, real photography, plain rules between
   things, and the logo's navy and orange used with restraint.

   Contents
     1. Tokens and base
     2. Layout helpers and type
     3. Buttons and links
     4. Header and navigation
     5. Footer
     6. Page heads (inner pages)
     7. Home hero (crop slideshow)
     8. Home sections
     9. Shared sections: steps, drinks, cashew grades, call to action
    10. About page
    11. Products page
    12. Contact page
   ========================================================================== */

/* 1. Tokens and base ------------------------------------------------------ */

:root {
  --paper: #fffdf8;
  --cream: #f6efe3;
  --sand: #ece2d0;
  --ink: #1f1a14;
  --body: #4a4339;
  --muted: #7a7062;
  --line: #e2d7c4;
  --navy: #11226e;
  --navy-deep: #0b1650;
  --orange: #e8860c;
  --orange-ink: #b4600a; /* orange that stays readable on paper */
  --leaf: #4f6b2c;

  /* Headings use the body font too, just heavier and tighter. */
  --serif: var(--sans);
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 12px; /* one corner radius for buttons, fields, images and panels */
  --inset: 16px;  /* gap around full-width panels so their corners show */
  --section: clamp(72px, 9vw, 128px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 2. Layout helpers and type --------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

.section-cream {
  background: var(--cream);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(36px, 5vw, 60px);
}

.h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.lead {
  color: var(--body);
  font-size: 19px;
  line-height: 1.7;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head p:last-child {
  margin: 0;
}

.section-head-center {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head-center .h2 {
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 40px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
}

/* 3. Buttons and links ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--orange);
  color: #fff;
}

.btn-solid:hover {
  background: var(--orange-ink);
}

.btn-line {
  border-color: currentColor;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
}

.link-arrow i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.link-arrow:hover i {
  transform: translateX(3px);
}

/* 4. Header and navigation ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(31, 26, 20, 0.25);
}

.utility {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.utility p {
  margin: 0;
}

.utility ul {
  display: flex;
  gap: 24px;
}

.utility a {
  text-decoration: none;
}

.utility a:hover {
  color: #fff;
}

.utility i {
  margin-right: 6px;
  color: var(--orange);
}

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  width: 170px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav ul a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav ul a:hover::after,
.site-nav ul a.is-current::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .utility p {
    display: none;
  }
  .utility-inner {
    justify-content: center;
  }
  .masthead-inner {
    min-height: 72px;
  }
  .brand img {
    width: 140px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 30px -20px rgba(31, 26, 20, 0.3);
  }
  .nav-open .site-nav {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav ul li + li {
    border-top: 1px solid var(--line);
  }
  .site-nav ul a {
    display: block;
    padding: 14px 0;
    font-family: var(--serif);
    font-size: 22px;
  }
  .site-nav ul a::after {
    display: none;
  }
  .site-nav ul a.is-current {
    color: var(--orange-ink);
  }
}

@media (max-width: 560px) {
  .utility ul {
    gap: 16px;
    font-size: 12px;
  }
  .utility li + li {
    display: none;
  }
}

/* 5. Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 80px 0 56px;
}

.footer-brand img {
  width: 180px;
  height: auto;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 380px;
  margin: 0;
}

.footer-col h2 {
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 56px 0 40px;
  }
}

/* 6. Page heads (inner pages) --------------------------------------------- */

.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.page-head-inner {
  padding: 72px 0;
}

/* Inner-page hero copy stays comfortably readable on wide screens. */
.page-head-inner > div {
  max-width: 820px;
}

.page-head .crumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.page-head .crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-head .crumbs a:hover {
  color: var(--ink);
}

.page-head h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5.4vw, 68px);
}

.page-head .lead {
  max-width: 520px;
  margin: 0;
}

@media (max-width: 860px) {
  .page-head-inner {
    padding: 48px 0;
  }
}

/* 7. Home hero (crop slideshow) ------------------------------------------- */

/* Class names are shared with js/hero-slider.js. */
.bg-hero {
  position: relative;
  display: flex;
  min-height: min(86vh, 820px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.bg-hero-slides,
.bg-hero-slide,
.bg-hero-shade {
  position: absolute;
  inset: 0;
}

.bg-hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.bg-hero-slide.is-active {
  opacity: 1;
}

.bg-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.bg-hero-slide.is-active .bg-hero-media {
  transform: scale(1);
}

.bg-hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.78) 0%, rgba(20, 16, 12, 0.5) 45%, rgba(20, 16, 12, 0.1) 80%),
    linear-gradient(0deg, rgba(20, 16, 12, 0.7) 0%, rgba(20, 16, 12, 0) 40%);
}

.bg-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: 36px;
}

.bg-hero-copy {
  max-width: 640px;
}

.bg-hero-kicker {
  margin: 0 0 22px;
  color: #f3c27a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bg-hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
}

.bg-hero h1 em {
  color: #f3c27a;
  font-style: normal;
}

.bg-hero-lead {
  max-width: 520px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.bg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bg-hero-foot {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.bg-hero-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-hero-tab {
  position: relative;
  padding: 16px 16px 0 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bg-hero-tab:hover,
.bg-hero-tab.is-active {
  color: #fff;
}

.bg-hero-tab:focus {
  outline: none;
}

.bg-hero-tab:focus-visible .bg-hero-tab-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bg-hero-tab-bar {
  position: absolute;
  top: -1px;
  left: 0;
  right: 16px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

.bg-hero-tab.is-active .bg-hero-tab-bar {
  transform: scaleX(1);
}

.bg-hero.is-rotating .bg-hero-tab.is-active .bg-hero-tab-bar {
  animation: hero-progress var(--hero-rotate, 7s) linear;
}

@keyframes hero-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.bg-hero-tab-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.bg-hero-tab-name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
}

.bg-hero-tab-text {
  display: none;
}

.bg-hero-arrows {
  display: flex;
  gap: 8px;
}

.bg-hero-count {
  display: none;
}

.bg-hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bg-hero-arrow:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 960px) {
  .bg-hero-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 4px;
  }
}

@media (max-width: 680px) {
  .bg-hero {
    min-height: 0;
  }
  .bg-hero-inner {
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 24px;
  }
  .bg-hero-lead {
    font-size: 16px;
  }
  .bg-hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .bg-hero-tabs {
    display: flex;
    gap: 22px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    border-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bg-hero-tabs::-webkit-scrollbar {
    display: none;
  }
  .bg-hero-tab {
    flex: 0 0 auto;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  .bg-hero-tab-bar {
    right: 0;
  }
  .bg-hero-tab-name {
    font-size: 17px;
  }
  .bg-hero-arrows {
    order: -1;
  }
  .bg-hero-arrow {
    width: 44px;
    height: 44px;
  }
}

/* 8. Home sections -------------------------------------------------------- */

/* Intro statement */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px 96px;
}

.intro-statement {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}

.intro-statement em {
  color: var(--orange-ink);
  font-style: normal;
}

.intro-side p {
  margin-bottom: 28px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 28px 24px 0 0;
}

.facts div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.facts dt {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
}

.facts dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }
  .facts div,
  .facts div + div {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .facts dd {
    margin: 0;
  }
}

/* What we do */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.work-item figure {
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover img {
  transform: scale(1.03);
}

.work-item .num {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-ink);
  font-size: 14px;
  font-weight: 600;
}

.work-item h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.work-item p {
  margin-bottom: 18px;
}

.work-also {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.work-also strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .work-item figure {
    aspect-ratio: 16 / 10;
  }
}

/* Product categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
}

.cat-tile figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat-tile:hover img {
  transform: scale(1.04);
}

.cat-tile-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 24px;
}

.cat-tile h3 {
  font-size: 24px;
}

.cat-tile p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.cat-tile i {
  color: var(--orange-ink);
  transition: transform 0.2s ease;
}

.cat-tile:hover i {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Heritage band */
.heritage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 560px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.heritage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-copy {
  align-self: center;
  max-width: 560px;
  padding: 80px clamp(24px, 6vw, 88px);
}

.heritage-copy .eyebrow {
  color: #f3c27a;
}

.heritage-copy h2 {
  margin-bottom: 22px;
  color: #fff;
}

.heritage-copy p {
  margin-bottom: 30px;
}

.heritage-copy .link-arrow {
  color: #fff;
}

@media (max-width: 860px) {
  .heritage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .heritage-photo {
    aspect-ratio: 16 / 10;
  }
  .heritage-copy {
    padding: 56px var(--gutter);
  }
}

/* 9. Shared sections ------------------------------------------------------ */

/* Farm to shelf steps */
.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.steps-photo {
  position: sticky;
  top: 140px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}

.steps-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps-list {
  counter-reset: step;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.steps-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.steps-list .step-num {
  color: var(--orange-ink);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.steps-list h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.steps-list p {
  margin: 0;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .steps-photo {
    position: static;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .steps-list li {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .steps-list .step-num {
    font-size: 28px;
  }
}

/* Chei Chei soft drinks - class names shared with js/drinks.js */
.dk {
  --dk-color: #c2531b;
  background: var(--cream);
}

.dk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.dk-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.dk-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dk-shot.is-active {
  opacity: 1;
}

.dk-stage-label {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 22px;
  background: var(--paper);
  border-top-right-radius: var(--radius);
}

.dk-stage-label span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dk-stage-label strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.dk-copy .h2 {
  margin-bottom: 18px;
}

.dk-lead {
  max-width: 460px;
  margin-bottom: 36px;
}

.dk-flavours {
  border-top: 1px solid var(--line);
}

.dk-flavours li {
  border-bottom: 1px solid var(--line);
}

.dk-flavour {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.dk-flavour:focus {
  outline: none;
}

.dk-flavour:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dk-flavour img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px transparent;
  transition: box-shadow 0.2s ease;
}

.dk-flavour.is-active img {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--swatch);
}

.dk-flavour-text {
  flex: 1;
  min-width: 0;
}

.dk-flavour-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.dk-flavour-text small {
  color: var(--muted);
  font-size: 15px;
}

.dk-flavour i {
  color: var(--swatch);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dk-flavour.is-active i {
  opacity: 1;
}

@media (max-width: 860px) {
  .dk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .dk-stage {
    max-width: 480px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .dk-flavour {
    gap: 14px;
    padding: 12px 0;
  }
  .dk-flavour img {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
  .dk-flavour-text strong {
    font-size: 19px;
  }
  .dk-flavour-text small {
    font-size: 14px;
  }
}

/* Cashew grades */
.cg-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.cg-card {
  padding: 24px 20px 8px 0;
}

.cg-card + .cg-card {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.cg-photo {
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.cg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cg-card h3 {
  font-size: 32px;
}

.cg-name {
  margin: 2px 0 16px;
  color: var(--orange-ink);
  font-size: 14px;
  font-weight: 600;
}

.cg-count {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 14px;
  font-size: 14px;
}

.cg-count div {
  display: contents;
}

.cg-count dt {
  color: var(--muted);
}

.cg-count dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cg-desc {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

.cg-note {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 960px) {
  .cg-table {
    display: flex;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    border-top: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cg-table::-webkit-scrollbar {
    display: none;
  }
  .cg-card,
  .cg-card + .cg-card {
    flex: 0 0 min(260px, 70%);
    padding: 20px 20px 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
    scroll-snap-align: start;
  }
  .cg-card:first-child {
    padding-left: 0;
  }
}

/* Call to action band */
.cta-band {
  background: var(--orange);
  color: #fff;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 64px 0;
}

.cta-band h2 {
  max-width: 640px;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
}

.cta-band p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band .btn-dark {
  background: var(--ink);
  color: #fff;
}

.cta-band .btn-dark:hover {
  background: #000;
}

/* 10. About page ---------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 96px;
}

.story-grid .h2 {
  margin-bottom: 0;
}

.story-points {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.story-points li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.story-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 12px;
  height: 2px;
  background: var(--orange);
}

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

.value figure {
  aspect-ratio: 3 / 2;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius);
}

.value img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.value p {
  margin: 0;
}

@media (max-width: 860px) {
  .story-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .values-grid {
    gap: 48px;
  }
}

/* 11. Products page ------------------------------------------------------- */

.pp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pp-filter {
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pp-filter span {
  margin-left: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pp-filter:hover {
  color: var(--ink);
}

.pp-filter.is-active {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 28px;
}

.pp-card[hidden] {
  display: none;
}

.pp-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.pp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pp-card:hover .pp-photo img {
  transform: scale(1.04);
}

.pp-cat {
  margin: 0 0 4px;
  color: var(--orange-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.pp-card p.pp-text {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
}

.pp-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}

.pp-link:hover {
  color: var(--orange-ink);
}

@media (max-width: 1100px) {
  .pp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 18px;
  }
  .pp-card h3 {
    font-size: 20px;
  }
  .pp-filters {
    flex-wrap: nowrap;
    margin: 0 calc(var(--gutter) * -1) 32px;
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pp-filters::-webkit-scrollbar {
    display: none;
  }
  .pp-filter {
    flex: 0 0 auto;
  }
}

@media (max-width: 400px) {
  .pp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 12. Contact page -------------------------------------------------------- */

.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.channel {
  padding: 36px 32px 36px 0;
}

.channel + .channel {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.channel h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.channel .value {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
}

.channel .value a {
  text-decoration: none;
}

.channel .value a:hover {
  color: var(--orange-ink);
}

.channel .note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px 96px;
  align-items: start;
}

.topics {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.topics li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.topics h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.topics p {
  margin: 0;
  font-size: 15px;
}

/* Form - field classes are shared with js/contact-form.js */
.form-card {
  padding: 44px;
  border-radius: var(--radius);
  background: var(--cream);
}

.form-card h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.form-lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

.req {
  color: var(--orange-ink);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.custom-form {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d6c9b3;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-form:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 134, 12, 0.2);
}

select.custom-form {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1a14' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

textarea.custom-form {
  min-height: 150px;
  resize: vertical;
}

.custom-form.has-problem,
.custom-form[aria-invalid="true"] {
  border-color: #b3261e;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #b3261e;
  font-size: 14px;
}

.field-error:empty {
  display: none;
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 8px;
  font-size: 14px;
}

.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}

.form-trap {
  position: absolute;
  left: -9999px;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}

.form-status.is-ok {
  border-left-color: var(--leaf);
}

.form-status.is-error {
  border-left-color: #b3261e;
}

.btn-send {
  margin-top: 16px;
  border: 0;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--ink);
}

.next-steps li {
  padding-top: 24px;
}

.next-steps .step-num {
  display: block;
  margin-bottom: 12px;
  color: var(--orange-ink);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.next-steps h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.next-steps p {
  margin: 0;
}

.map {
  position: relative;
}

.map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.6) sepia(0.15);
}

.map-note {
  margin: 0;
  padding: 16px 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 960px) {
  .enquiry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .channels,
  .next-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .channel,
  .channel + .channel {
    padding: 24px 0;
    border-left: 0;
  }
  .channel + .channel {
    border-top: 1px solid var(--line);
  }
  .next-steps {
    gap: 0;
  }
  .next-steps li + li {
    border-top: 1px solid var(--line);
  }
  .next-steps li {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .form-card {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn-send {
    width: 100%;
  }
  .map iframe {
    height: 320px;
  }
}

/* 13. Rounded panels -------------------------------------------------------
   Coloured and photographic sections sit inset from the page edge with the
   same corner radius as the buttons and images, so every block on the site
   reads as one family. Plain paper sections stay full width. */

.bg-hero,
.page-head,
.section-cream,
.dk,
.heritage,
.cta-band,
.map iframe {
  margin-left: var(--inset);
  margin-right: var(--inset);
  border-radius: var(--radius);
  overflow: hidden;
}

.bg-hero {
  margin-top: var(--inset);
}

.page-head {
  margin-top: var(--inset);
  border-bottom: 0;
}

.section-cream + .section-cream,
.section-cream + .dk,
.dk + .section,
.dk + .section-cream,
.section-cream + .heritage,
.heritage + .cta-band,
.section-cream + .cta-band {
  margin-top: var(--inset);
}

.cta-band {
  margin-bottom: var(--inset);
}

.site-footer {
  margin: 0 var(--inset) var(--inset);
  border-radius: var(--radius);
}

.cat-grid {
  overflow: hidden;
  border-radius: var(--radius);
}

.heritage-photo {
  overflow: hidden;
}

.map {
  padding-bottom: var(--inset);
}

.map iframe {
  width: calc(100% - var(--inset) * 2);
}

.dk-flavour img,
.utility,
.masthead {
  border-radius: 0;
}

.dk-flavour img {
  border-radius: 50%;
}

@media (max-width: 560px) {
  :root {
    --inset: 10px;
  }
}
