/* ==========================================================================
   Mickelly Sales and Agro Farms Limited. Main stylesheet.
   Mobile first. No framework, no build step.
   ========================================================================== */

:root {
  /* Brand colours (unchanged) */
  --green-dark: #2d4a1e;
  --green: #4a7c2c;
  --green-light: #7fa650;
  --brown: #6b4423;
  --brown-light: #a67c52;
  --orange: #e07b39;
  --orange-deep: #b35a1f;
  --orange-deep-hover: #9c4e1c;
  --amber: #f2a154;
  --cta-from: #a1531f;
  --cta-to: #5c3a1c;
  --wa-green: #25d366;
  --wa-green-dark: #128c3f;
  --cream: #faf6ef;
  --cream-dark: #f0e6d2;
  --text: #2b2118;
  --text-light: #5c5347;
  --white: #ffffff;

  /* Design tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --radius: var(--radius-md);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --shadow-sm: 0 2px 8px rgba(43, 33, 24, 0.08);
  --shadow: 0 4px 14px rgba(43, 33, 24, 0.12);
  --shadow-lg: 0 18px 40px rgba(43, 33, 24, 0.18);

  --max-width: 1160px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 650ms;

  --glass-bg: rgba(250, 246, 239, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur: 14px;

  --header-h: 78px;
  --header-h-scrolled: 60px;

  --fs-h1: clamp(1.9rem, 1.5rem + 2vw, 3.1rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --fs-page-h1: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.05rem);
}

* {
  box-sizing: border-box;
}

/* ---------- Accessibility: skip link + focus states ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top var(--duration-fast) var(--ease);
}

.skip-link:focus {
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.whatsapp-float:focus-visible {
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--space-7) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: var(--fs-h2);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-deep), var(--amber));
  z-index: 1000;
  transition: width 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    transition: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep-hover);
  box-shadow: var(--shadow);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: var(--green);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 0.9rem;
}

/* ---------- Header / Nav (glass, shrinks on scroll) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow var(--duration-base) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding var(--duration-base) var(--ease);
}

.site-header.is-scrolled .nav {
  padding: 9px 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  transition: width var(--duration-base) var(--ease), height var(--duration-base) var(--ease);
}

.site-header.is-scrolled .nav-brand img {
  width: 30px;
  height: 30px;
}

/* Animated hamburger */
.nav-toggle {
  display: block;
  position: relative;
  z-index: 320;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Full-screen overlay menu on mobile */
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--green-dark);
  color: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: flex;
  gap: var(--space-2);
  z-index: 310;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease), visibility 0s linear var(--duration-base);
}

.nav-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--duration-base) var(--ease), transform var(--duration-base) var(--ease), visibility 0s linear 0s;
}

.nav-links a {
  display: block;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 8px;
  min-height: 44px;
}

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

.nav-links .btn {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    gap: 6px;
  }

  .nav-links a {
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--cream-dark);
    color: var(--green-dark);
  }

  .nav-links .btn {
    margin-top: 0;
    margin-left: 10px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--green-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: hero-zoom 22s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 74, 30, 0.75), rgba(45, 74, 30, 0.92));
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 84px 20px 70px;
  text-align: center;
}

.hero-eyebrow,
.hero-content h1,
.hero-content p,
.hero-actions {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in var(--duration-slow) var(--ease) forwards;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 12px;
  animation-delay: 80ms;
}

.hero-content h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  margin-bottom: 14px;
  animation-delay: 200ms;
}

.hero-content p {
  color: #f1ead9;
  max-width: 540px;
  margin: 0 auto 26px;
  font-size: 1.05rem;
  animation-delay: 340ms;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation-delay: 480ms;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }

  .hero-eyebrow,
  .hero-content h1,
  .hero-content p,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-actions .btn {
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--green-dark);
  color: var(--amber);
  overflow: hidden;
  padding: var(--space-4) 0;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-right: var(--space-6);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.marquee-list li {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.marquee-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  margin-left: var(--space-6);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ---------- Product filter chips ---------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin: 0 0 var(--space-6);
  list-style: none;
  padding: 0;
}

.filter-chip {
  appearance: none;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.filter-chip:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
}

.filter-chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---------- Product / info cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  justify-items: center;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0));
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    --lift: -8px;
    box-shadow: var(--shadow-lg);
  }
}

.card:active {
  --lift: -2px;
  transition-duration: var(--duration-fast);
}

.card.is-filtered {
  opacity: 0.15;
  transform: scale(0.94);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transform: none !important;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  cursor: zoom-in;
}

.card-media-backdrop {
  position: absolute;
  inset: -12%;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.3) brightness(0.85);
  transform: scale(1.15);
}

.card-media-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(45, 74, 30, 0.35), rgba(179, 90, 31, 0.3));
  mix-blend-mode: multiply;
}

.card-media picture,
.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-media-zoom {
  position: absolute;
  z-index: 2;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.card-media:hover .card-media-zoom,
.card-media:focus-visible .card-media-zoom {
  opacity: 1;
  transform: scale(1);
}

.card-media-zoom svg {
  width: 18px;
  height: 18px;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.card-unit {
  display: inline-block;
  align-self: flex-start;
  background: var(--cream-dark);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
}

.card-actions {
  margin-top: 12px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(20, 16, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease), visibility 0s linear var(--duration-base);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-base) var(--ease), visibility 0s linear 0s;
}

.lightbox-figure {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 86vh;
  transform: scale(0.94);
  transition: transform var(--duration-base) var(--ease);
}

.lightbox.open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: var(--space-3);
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-figure {
    transition: none;
  }
}

/* ---------- WhatsApp line-picker popup ---------- */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(20, 16, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease), visibility 0s linear var(--duration-base);
}

.wa-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration-base) var(--ease), visibility 0s linear 0s;
}

.wa-modal-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--cream);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  transform: scale(0.94) translateY(8px);
  transition: transform var(--duration-base) var(--ease);
}

.wa-modal.open .wa-modal-panel {
  transform: scale(1) translateY(0);
}

.wa-modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  min-height: 0;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--green-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wa-modal-close:hover,
.wa-modal-close:focus-visible {
  background: var(--orange);
  color: var(--white);
}

.wa-modal-close svg {
  width: 18px;
  height: 18px;
}

.wa-modal-panel h3 {
  color: var(--green-dark);
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
  padding-right: var(--space-6);
}

.wa-modal-panel p {
  color: var(--text-light);
  margin: 0 0 var(--space-5);
  font-size: 0.92rem;
}

.wa-modal-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wa-modal-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--wa-green);
  color: var(--white);
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;
  transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.wa-modal-option:hover,
.wa-modal-option:focus-visible {
  background: var(--wa-green-dark);
  border-color: var(--orange);
}

.wa-modal-option:active {
  transform: scale(0.98);
}

.wa-modal-option svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.wa-modal-option strong {
  display: block;
  font-size: 1rem;
}

.wa-modal-option small {
  display: block;
  font-size: 0.82rem;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .wa-modal,
  .wa-modal-panel {
    transition: none;
  }
}

/* ---------- Feature / why-us blocks (simple grid, about/products pages) ---------- */
.features {
  background: var(--cream-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- "Why Buy From Mickelly Farms" cards ----------
   One new variable, scoped to this section only: a golden yellow pulled
   from the ripe bell peppers, used for the fourth card. Everything else
   reuses the site's existing green/terracotta variables. */
.why-section {
  --why-yellow: #e8ae3d;
  padding: 64px 0;
}

.why-section .section-subtitle {
  margin-bottom: 40px;
}

/* Mobile (below 600px): 1 column, full width, 16px gaps, no horizontal scroll. */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Tablet (600-1023px): 2 columns. Desktop (1024px+): same 2 columns, which
   with exactly 4 cards is already a 2x2 grid — equal heights and equal
   gaps come for free from plain CSS Grid, no spans/orphaned cells. */
@media (min-width: 600px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.why-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

/* 6px accent bar along the top edge, in a contrasting palette colour. */
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(43, 33, 24, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-card {
    transition: none;
  }

  .why-card:hover {
    transform: none;
  }
}

.why-card h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Fresh & Local: deep green. */
.why-card-green {
  background: var(--green-dark);
  color: var(--white);
}

.why-card-green::before {
  background: var(--amber);
}

.why-card-green h3 {
  color: var(--white);
}

.why-card-green p {
  color: #e7e1cf;
}

/* Easy Ordering: terracotta. */
.why-card-terracotta {
  background: var(--cta-from);
  color: var(--white);
}

.why-card-terracotta::before {
  background: var(--green-light);
}

.why-card-terracotta h3 {
  color: var(--white);
}

.why-card-terracotta p {
  color: #fbe6d4;
}

/* Trusted Quality: a darker shade of the green — derived from the existing
   --green-dark variable (color-mix), with a plain fallback for browsers
   that don't support color-mix(). */
.why-card-darkgreen {
  background: var(--green-dark);
  background: color-mix(in srgb, var(--green-dark) 75%, black);
  color: var(--white);
}

.why-card-darkgreen::before {
  background: var(--cta-from);
}

.why-card-darkgreen h3 {
  color: var(--white);
}

.why-card-darkgreen p {
  color: #e7e1cf;
}

/* Fresh Categories: golden yellow, dark text for contrast. */
.why-card-yellow {
  background: var(--why-yellow);
  color: var(--text);
  text-align: center;
  align-items: center;
}

.why-card-yellow::before {
  background: var(--green-dark);
}

.why-card-yellow h3 {
  color: var(--green-dark);
}

.why-card-yellow p {
  color: var(--text);
}

.why-stat {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 3.2rem + 1vw, 72px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 4px;
}

/* ---------- Two-column about-style layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-media {
    order: 2;
  }
}

.split-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.split-text .section-title,
.split-text h2 {
  text-align: left;
}

/* ---------- Social / TikTok callout ---------- */
.social-callout {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
}

.social-callout h2 {
  color: var(--white);
}

.social-callout p {
  color: #e7e1cf;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-info-list li > div {
  min-width: 0;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-6);
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #d8cfba;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 1px;
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  height: 260px;
  margin-top: 20px;
}

/* ---------- CTA + Footer shared background ----------
   .cta-footer-band wraps the CTA section (+ footer, where both exist) in
   one container. The photo is a ::before on the wrapper only: a small,
   soft, blurred strip anchored to the bottom, masked so its top edge fades
   into the solid gradient with no visible seam. A ::after tint sits above
   it. Real content (CTA/footer sections) is lifted to z-index: 1. */
.cta-footer-band {
  position: relative;
  overflow: hidden;
  /* Solid base + fallback if the image fails to load. */
  background: linear-gradient(180deg, var(--cta-from), var(--green-dark));
}

.cta-footer-band::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -20px;
  height: 380px;
  z-index: 0;
  background-image: url("../assets/images/bg-pepper-farm.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;
  filter: blur(6px);
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 35%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 35%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 599px) {
  .cta-footer-band::before {
    height: 260px;
  }
}

.cta-footer-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Tint the photo strip toward the brand's terracotta-to-green gradient. */
  background: linear-gradient(180deg, rgba(161, 83, 31, 0.75) 0%, rgba(45, 74, 30, 0.8) 50%, rgba(30, 48, 20, 0.85) 100%);
  pointer-events: none;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.cta-banner > .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.cta-banner p {
  color: #fff6ea;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  color: #e7e1cf;
  padding: 40px 0 20px;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.site-footer h4 {
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #e7e1cf;
}

.footer-links a:hover {
  color: var(--amber);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  background: var(--amber);
  color: var(--green-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 0.85rem;
  text-align: center;
  color: #cfc6ac;
}

/* ---------- Floating WhatsApp button (desktop) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green-dark);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
    transition: none;
  }
}

@media (min-width: 800px) {
  .whatsapp-float {
    display: flex;
  }
}

/* ---------- Mobile-only sticky bottom action bar ---------- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--cream-dark);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 18px rgba(43, 33, 24, 0.15);
}

.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-action-bar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-action-bar .action-whatsapp {
  background: var(--wa-green-dark);
  color: var(--white);
}

.mobile-action-bar .action-call {
  background: var(--green-dark);
  color: var(--white);
}

body {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 800px) {
  .mobile-action-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: var(--fs-page-h1);
}

.page-hero p {
  color: #e7e1cf;
  margin: 0;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.bg-alt {
  background: var(--cream-dark);
}

.mt-lg {
  margin-top: 32px;
}

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