/*
Theme Name: Astra Child - Fresh Marvels
Theme URI: https://localhost/freshmarvels
Description: Premium agri-trade child theme for Fresh Marvels - Kenyan fresh-produce exporter targeting China
Author: Senior WordPress Front-End Developer
Author URI: https://localhost/freshmarvels
Template: astra
Version: 1.0.0
Text Domain: astra-child-freshmarvels
*/

/* ==========================================================================
   DESIGN SYSTEM — :root tokens
   All colours, spacing, and typography defined here. Use everywhere.
   ========================================================================== */

:root {
  /* Colours — solid, no gradients */
  --ink: #1C2321;
  --forest: #1F3D2B;
  --ivory: #F7F4EC;
  --stone: #E6E1D5;
  --brass: #A8843F;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, "Noto Serif SC", serif;
  --font-body: "Work Sans", system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Type scale */
  --text-body: 17px;
  --line-height-body: 1.7;
  --h1: clamp(2.4rem, 5vw, 4rem);
  --h2: clamp(1.8rem, 3.5vw, 2.6rem);

  /* Spacing */
  --section-padding-desktop: 96px;
  --section-padding-mobile: 56px;
  --max-width: 1180px;

  /* Borders & shadows */
  --hairline: 1px solid var(--stone);
  --radius-max: 2px;

  /* Transitions */
  --fade-duration: 200ms;
}

/* ==========================================================================
   Self-hosted fonts — WOFF2, font-display: swap
   Place .woff2 font files in /assets/fonts/
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/work-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/work-sans-semibold.ttf") format("truetype");
}

/* ==========================================================================
   Base reset & typography
   ========================================================================== */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--fade-duration) ease;
}

a:hover {
  color: var(--brass);
}

/* Small uppercase labels — generous letter-spacing */
.label-sm,
small.uppercase,
.uppercase-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding-mobile) 0;
}

body.home .site-content > .ast-container {
  max-width: none;
  padding: 0;
}

/* Full-width page shell — page templates provide their own inner container. */
body.page .site-content > .ast-container {
  max-width: none;
  padding: 0;
}

body.page #primary {
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding-desktop) 0;
  }
}

/* Hairline divider */
.divider {
  border: none;
  border-top: var(--hairline);
  margin: 3rem 0;
}

/* ==========================================================================
   Buttons — rectangular, no pill, no transform
   ========================================================================== */

.btn,
button.btn,
input[type="submit"].btn,
.wp-block-button__link {
  display: inline-block;
  background-color: var(--forest);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-max);
  padding: 14px 28px;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--fade-duration) ease;
  text-decoration: none;
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover,
.wp-block-button__link:hover {
  background-color: var(--brass);
  color: var(--ink);
  /* No transform animations per anti-AI-look rules */
}

/* Secondary button outline variant */
.btn-outline {
  background-color: transparent;
  border: var(--hairline);
  color: var(--forest);
}

.btn-outline:hover {
  background-color: var(--forest);
  color: var(--white);
}

/* ==========================================================================
   Cards — white background, hairline border, subtle shadow
   ========================================================================== */

.card {
  background-color: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-max);
  padding: 24px;
}

/* ==========================================================================
   Skip link for accessibility
   ========================================================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   WordPress core alignment classes
   ========================================================================== */

.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Fade-in animation (max 200ms, simple only)
   ========================================================================== */

.fade-in {
  opacity: 0;
  animation: fadeIn var(--fade-duration) ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==========================================================================
   HOMEPAGE — editorial hero, products, process, certifications, CTA
   ========================================================================== */

.fresh-home {
  background-color: var(--ivory);
}

.fresh-home h1,
.fresh-home h2,
.fresh-home h3 {
  color: var(--ink);
}

.fresh-home-hero {
  display: grid;
  padding-top: 0;
  padding-bottom: 0;
}

.fresh-home-hero__media {
  order: 2;
}

.fresh-home-hero__media img,
.fresh-home-product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fresh-home-hero__media img {
  min-height: 300px;
}

.fresh-home-hero__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--forest);
  color: var(--ivory);
  padding: 56px 24px;
}

.fresh-home-hero__panel h1,
.fresh-home-hero__panel p {
  color: var(--ivory);
}

.fresh-home-hero__panel h1 {
  max-width: 620px;
  margin-bottom: 20px;
}

.fresh-home-hero__panel p:not(.fresh-home-kicker) {
  max-width: 580px;
}

.fresh-home-kicker {
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fresh-home-hero__panel .fresh-home-kicker {
  color: var(--stone);
}

.fresh-home-section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}

.fresh-home-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.fresh-home-product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--stone);
}

.fresh-home-product-card img {
  aspect-ratio: 3 / 2;
}

.fresh-home-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.fresh-home-product-card h3 {
  margin-bottom: 8px;
}

.fresh-home-product-card p {
  margin-bottom: 20px;
}

.fresh-home-product-card a {
  margin-top: auto;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}

.fresh-home-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.fresh-home-why {
  background-color: var(--stone);
}

.fresh-home-list,
.fresh-home-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fresh-home-list li {
  border-top: 1px solid var(--white);
  padding: 16px 0;
  font-weight: 600;
}

.fresh-home-list li:last-child {
  border-bottom: 1px solid var(--white);
}

.fresh-home-process-list {
  border-top: 1px solid var(--stone);
}

.fresh-home-process-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--stone);
  padding: 18px 0;
}

.fresh-home-process-list span {
  color: var(--brass);
  font-family: var(--font-heading);
  font-size: 24px;
}

.fresh-home-process-list strong {
  font-weight: 600;
}

.fresh-home-certifications {
  background-color: var(--white);
}

.fresh-home-certification-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--stone);
}

.fresh-home-certification {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--stone);
  padding: 20px 0;
}

.fresh-home-certification__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  border: 1px solid var(--stone);
  color: var(--brass);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fresh-home-cta {
  background-color: var(--forest);
  color: var(--ivory);
}

.fresh-home-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.fresh-home-cta h2,
.fresh-home-cta p,
.fresh-home-cta a:not(.btn) {
  color: var(--ivory);
}

.fresh-home-cta__details p {
  margin-bottom: 12px;
}

.fresh-home-cta__details .btn {
  margin-top: 12px;
}

@media (min-width: 600px) {
  .fresh-home-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fresh-home-certification-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
}

@media (min-width: 768px) {
  .fresh-home-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    min-height: 600px;
  }

  .fresh-home-hero__media {
    order: 1;
  }

  .fresh-home-hero__media img {
    min-height: 600px;
  }

  .fresh-home-hero__panel {
    padding: 72px 56px;
  }

  .fresh-home-split {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 80px;
  }

  .fresh-home-cta__inner {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 80px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .fresh-home-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fresh-home-certification-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

/* ==========================================================================
   HEADER — STEP 4
   Logo left | Nav right | Thin bottom border | Sticky | Solid ivory bg
   Language switcher placeholder (EN | 中文)
   ========================================================================== */

.freshmarvels-header {
  background-color: var(--white);
  border-bottom: var(--hairline);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.freshmarvels-header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.freshmarvels-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 24px;
}

.freshmarvels-logo {
  display: block;
  line-height: 1;
}

.freshmarvels-logo img {
  display: block;
  height: auto;
  max-height: 48px;
  width: auto;
}

.freshmarvels-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.freshmarvels-nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.freshmarvels-nav-menu li {
  list-style: none;
}

.freshmarvels-nav-menu a {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color var(--fade-duration) ease;
}

.freshmarvels-nav-menu a:hover {
  color: var(--brass);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.lang-link {
  color: var(--brass);
  text-decoration: none;
  padding: 4px 8px;
  transition: color var(--fade-duration) ease;
}

.lang-link:hover {
  color: var(--forest);
}

.lang-link.lang-active {
  color: var(--forest);
}

.lang-separator {
  color: var(--stone);
}

.freshmarvels-header-divider {
  border: none;
  border-top: var(--hairline);
  margin: 0;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.freshmarvels-header {
  background-color: var(--ivory);
}

.nav-toggle {
  display: none;
  background-color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 0;
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .08em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.freshmarvels-nav {
  margin-left: auto;
}

.freshmarvels-nav .main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.freshmarvels-nav .main-nav li {
  position: relative;
  list-style: none;
}

.freshmarvels-nav .main-nav a {
  display: block;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
}

.freshmarvels-nav .main-nav a:hover,
.freshmarvels-nav .main-nav a:focus {
  color: var(--forest);
}

.freshmarvels-nav .main-nav .current-menu-item > a,
.freshmarvels-nav .main-nav .current-menu-ancestor > a {
  border-bottom: 2px solid var(--brass);
}

.freshmarvels-nav .main-nav .menu-item-has-children > a::after {
  content: "▾";
  color: var(--brass);
  margin-left: 6px;
}

.freshmarvels-nav .main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 10;
  min-width: 190px;
  background-color: var(--ivory);
  border: 1px solid var(--stone);
  list-style: none;
  margin: 0;
  padding: 8px 16px;
}

.freshmarvels-nav .main-nav li:hover > .sub-menu,
.freshmarvels-nav .main-nav li:focus-within > .sub-menu {
  display: block;
}

.freshmarvels-nav .main-nav .sub-menu a {
  padding: 8px 0;
}

@media (min-width: 769px) {
  .freshmarvels-header-inner {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .freshmarvels-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .freshmarvels-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .lang-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: auto;
  }

  .freshmarvels-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    margin-left: 0;
    width: 100%;
  }

  .freshmarvels-nav.is-open {
    display: block;
  }

  .freshmarvels-nav .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--stone);
  }

  .freshmarvels-nav .main-nav li {
    border-bottom: 1px solid var(--stone);
  }

  .freshmarvels-nav .main-nav a {
    padding: 12px 0;
  }

  .freshmarvels-nav .main-nav .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    background-color: transparent;
    border: 0;
    padding: 0 0 0 20px;
  }

  .freshmarvels-nav .main-nav .sub-menu a {
    font-size: 14px;
  }
}

/* Mobile header adjustments */
@media (max-width: 767px) {
  .freshmarvels-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .freshmarvels-logo {
    order: 1;
  }

  .lang-switcher {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .freshmarvels-nav {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .freshmarvels-nav-menu {
    flex-direction: column;
    gap: 0;
    border-top: var(--hairline);
  }

  .freshmarvels-nav-menu li {
    border-bottom: var(--hairline);
  }

  .freshmarvels-nav-menu a {
    display: block;
    padding: 12px 0;
  }
}

/* ==========================================================================
   HOMEPAGE HERO — STEP 4
   Full-width hero with real produce photo
   Solid forest-colour text panel (not an overlay)
   Headline + one CTA "Request a Quote"
   ========================================================================== */

.freshmarvels-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ivory);
  padding-top: 0;
}

.freshmarvels-hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .freshmarvels-hero-wrapper {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 70vh;
  }
}

.freshmarvels-hero-image {
  position: relative;
  width: 100%;
}

.freshmarvels-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .freshmarvels-hero-image img {
    min-height: 500px;
  }
}

.freshmarvels-hero-text {
  background-color: var(--forest);
  color: var(--white);
  padding: var(--section-padding-mobile) 24px;
}

@media (min-width: 768px) {
  .freshmarvels-hero-text {
    padding: var(--section-padding-desktop) 48px;
  }
}

.freshmarvels-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.freshmarvels-hero h1 {
  color: var(--white);
  font-size: var(--h1);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.freshmarvels-hero p {
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.freshmarvels-hero .btn {
  background-color: var(--brass);
  color: var(--ink);
}

.freshmarvels-hero .btn:hover {
  background-color: var(--white);
  color: var(--forest);
}

/* ==========================================================================
   COFFEE PAGE
   ========================================================================== */

.freshmarvels-page-intro {
  background-color: var(--white);
}

.freshmarvels-page-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .freshmarvels-page-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.freshmarvels-page-intro-content h2 {
  margin-bottom: 24px;
}

.freshmarvels-page-intro-content p:last-child {
  margin-bottom: 0;
}

.freshmarvels-page-intro-image img {
  display: block;
  width: 100%;
  height: auto;
}

.freshmarvels-coffee-grades {
  background-color: var(--ivory);
}

.freshmarvels-coffee-grades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .freshmarvels-coffee-grades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .freshmarvels-coffee-grades-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.freshmarvels-coffee-grade-card {
  background-color: var(--white);
  border: var(--hairline);
  padding: 24px;
}

.freshmarvels-coffee-grade-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 8px;
}

.freshmarvels-coffee-grade-card p {
  margin-bottom: 0;
}

.freshmarvels-coffee-cta .btn {
  background-color: var(--forest);
  color: var(--white);
}

.freshmarvels-coffee-cta .btn:hover {
  background-color: var(--brass);
  color: var(--ink);
}

.freshmarvels-tea-categories {
  background-color: var(--ivory);
}

.freshmarvels-tea-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .freshmarvels-tea-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.freshmarvels-tea-category-card {
  background-color: var(--white);
  border: var(--hairline);
  padding: 24px;
}

.freshmarvels-tea-category-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 16px;
}

.freshmarvels-tea-category-card ul {
  margin: 0;
  padding-left: 20px;
}

.freshmarvels-tea-category-card li {
  margin-bottom: 8px;
}

.freshmarvels-tea-category-card li:last-child {
  margin-bottom: 0;
}

.freshmarvels-tea-cta .btn {
  background-color: var(--forest);
  color: var(--white);
}

.freshmarvels-tea-cta .btn:hover {
  background-color: var(--brass);
  color: var(--ink);
}

/* ========================================================================== 
   PRODUCT DETAIL AND OVERVIEW PAGES
   ========================================================================== */

.freshmarvels-page-narrow {
  max-width: 860px;
}

.freshmarvels-quality-section,
.freshmarvels-fruit-range,
.freshmarvels-flour-range,
.freshmarvels-products-overview {
  background-color: var(--white);
}

.freshmarvels-editorial-list {
  margin: 0;
  padding-left: 2.5rem;
}

.freshmarvels-editorial-list li {
  border-top: var(--hairline);
  padding: 18px 0 18px 12px;
}

.freshmarvels-editorial-list li:last-child {
  border-bottom: var(--hairline);
}

.freshmarvels-range-grid,
.freshmarvels-overview-grid,
.freshmarvels-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .freshmarvels-range-grid,
  .freshmarvels-overview-grid,
  .freshmarvels-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .freshmarvels-range-grid,
  .freshmarvels-overview-grid,
  .freshmarvels-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.freshmarvels-range-grid .card,
.freshmarvels-overview-card {
  height: 100%;
}

.freshmarvels-range-grid .card h2,
.freshmarvels-range-grid .card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.freshmarvels-range-grid .card p:last-child {
  margin-bottom: 0;
}

.freshmarvels-fruit-card img {
  display: block;
  width: calc(100% + 48px);
  height: 240px;
  margin: -24px -24px 24px;
  object-fit: cover;
}

.freshmarvels-range-note {
  margin: 40px 0;
  padding: 20px 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.freshmarvels-range-card img,
.freshmarvels-overview-card img {
  display: block;
  width: calc(100% + 48px);
  height: 220px;
  margin: -24px -24px 24px;
  object-fit: cover;
}

.freshmarvels-product-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 24px 0 0;
  border-top: var(--hairline);
  padding-top: 16px;
}

.freshmarvels-product-details dt {
  font-weight: 600;
}

.freshmarvels-product-details dd {
  margin: 0;
}

.freshmarvels-gallery-item {
  margin: 0;
  border: 1px solid var(--stone);
  background-color: var(--white);
}

.freshmarvels-gallery-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.freshmarvels-gallery-item figcaption {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.freshmarvels-overview-card {
  display: flex;
  flex-direction: column;
}

.freshmarvels-overview-card p {
  flex: 1;
}

.freshmarvels-product-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ========================================================================== 
   PRODUCTS SECTION — STEP 4
   Clean grid, white cards, 1px stone border
   Photo on top, name, origin, season, MOQ. No prices unless client supplies.
   ========================================================================== */

.freshmarvels-products-section {
  background-color: var(--ivory);
}

.freshmarvels-section-header {
  text-align: left;
  margin-bottom: 48px;
}

.freshmarvels-section-header h2 {
  text-align: left;
}

.freshmarvels-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .freshmarvels-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .freshmarvels-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.freshmarvels-product-card {
  background-color: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-max);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.freshmarvels-product-card:hover {
  border-color: var(--brass);
}

.freshmarvels-product-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: var(--stone);
}

.freshmarvels-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  loading: lazy;
}

.freshmarvels-product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.freshmarvels-product-name {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

.freshmarvels-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.freshmarvels-product-origin,
.freshmarvels-product-season,
.freshmarvels-product-moq {
  margin: 0;
}

.freshmarvels-specification-table {
  width: 100%;
  border-collapse: collapse;
}

.freshmarvels-specification-table th,
.freshmarvels-specification-table td {
  border-top: var(--hairline);
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
}

.freshmarvels-specification-table tr:last-child th,
.freshmarvels-specification-table tr:last-child td {
  border-bottom: var(--hairline);
}

.freshmarvels-specification-table th {
  width: 38%;
  padding-right: 20px;
  font-weight: 600;
}

.freshmarvels-product-note {
  font-size: 13px;
  color: var(--ink);
  margin-top: auto;
  font-style: italic;
}

/* ==========================================================================
   WHY US SECTION — STEP 4
   Farm-to-port process, cold chain, certifications
   Editorial style, left-aligned
   ========================================================================== */

.freshmarvels-why-us-section {
  background-color: var(--white);
}

.freshmarvels-why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .freshmarvels-why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.freshmarvels-why-us-item {
  margin-bottom: 32px;
}

.freshmarvels-why-us-item:last-child {
  margin-bottom: 0;
}

.freshmarvels-why-us-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 12px;
}

.freshmarvels-why-us-item p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ==========================================================================
   EXPORT PROCESS SECTION — STEP 4
   Numbered, editorial style
   ========================================================================== */

.freshmarvels-export-section {
  background-color: var(--ivory);
}

.freshmarvels-export-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .freshmarvels-export-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }
}

.freshmarvels-export-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.freshmarvels-export-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  flex-shrink: 0;
}

.freshmarvels-export-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 8px;
}

.freshmarvels-export-content p {
  margin-bottom: 0;
  color: var(--ink);
}

/* ==========================================================================
   CERTIFICATIONS SECTION — STEP 4
   Logos strip, hairline dividers
   ========================================================================== */

.freshmarvels-certifications-section {
  background-color: var(--white);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.freshmarvels-certifications-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.freshmarvels-cert-item {
  opacity: 0.7;
  transition: opacity var(--fade-duration) ease;
}

.freshmarvels-cert-item:hover {
  opacity: 1;
}

.freshmarvels-cert-item img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  filter: grayscale(100%);
}

.freshmarvels-cert-item img:hover {
  filter: grayscale(0%);
}

/* ==========================================================================
   CONTACT CTA SECTION — STEP 4
   ========================================================================== */

.freshmarvels-contact-section {
  background-color: var(--forest);
  color: var(--white);
  text-align: left;
}

.freshmarvels-contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding-mobile) 24px;
}

@media (min-width: 768px) {
  .freshmarvels-contact-inner {
    padding: var(--section-padding-desktop) 48px;
  }
}

.freshmarvels-contact-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.freshmarvels-contact-content p {
  color: var(--ivory);
  margin-bottom: 24px;
  max-width: 600px;
}

.freshmarvels-contact-content .btn {
  background-color: var(--brass);
  color: var(--ink);
}

.freshmarvels-contact-content .btn:hover {
  background-color: var(--white);
  color: var(--forest);
}

/* ========================================================================== 
   PRODUCT ARCHIVE & SINGLE PAGE STYLES — STEP 4
   ========================================================================== */

.freshmarvels-archive-header {
  margin-bottom: 48px;
}

.freshmarvels-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .freshmarvels-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .freshmarvels-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Breakpoint testing hooks */
@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet-specific tweaks */
}

@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
}

/* Remove any focus outlines that break the aesthetic — keep accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* CONTACT PAGE */

.freshmarvels-page-feature-image,
.freshmarvels-coffee-image {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 24px auto 40px;
  object-fit: cover;
}

.freshmarvels-product-content {
  padding-top: var(--section-padding-mobile);
}

.freshmarvels-fruits-content,
.freshmarvels-coffee-content,
.freshmarvels-tea-content,
.freshmarvels-flour-content,
.freshmarvels-page-intro,
.freshmarvels-meat-intro {
  background-color: var(--ivory);
}

@media (min-width: 768px) {
  .freshmarvels-product-content {
    padding-top: var(--section-padding-desktop);
  }
}

.freshmarvels-fruits-content > .container,
.freshmarvels-coffee-content > .container,
.freshmarvels-tea-content > .container,
.freshmarvels-flour-content > .container,
.freshmarvels-page-intro > .container,
.freshmarvels-meat-intro > .container {
  max-width: var(--max-width);
}

.freshmarvels-fruits-content h1,
.freshmarvels-coffee-content h1,
.freshmarvels-tea-content h1,
.freshmarvels-flour-content h1,
.freshmarvels-macadamia-page h1,
.freshmarvels-meat-page h1,
.freshmarvels-contact-page h1 {
  color: var(--forest);
  margin-bottom: 32px;
}

.freshmarvels-page-intro h1,
.freshmarvels-meat-intro h1 {
  max-width: none;
  white-space: normal;
}

.freshmarvels-page-intro p:last-child,
.freshmarvels-meat-intro p:last-child,
.freshmarvels-coffee-content p:last-of-type,
.freshmarvels-tea-content p:last-of-type,
.freshmarvels-flour-content p:last-of-type {
  margin-bottom: 0;
}

.freshmarvels-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.freshmarvels-contact-form-column h2,
.freshmarvels-contact-details h2 {
  margin-bottom: 32px;
}

.freshmarvels-contact-form p {
  margin-bottom: 20px;
}

.freshmarvels-contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.freshmarvels-contact-form input:not([type="hidden"]):not([type="submit"]),
.freshmarvels-contact-form select,
.freshmarvels-contact-form textarea {
  display: block;
  width: 100%;
  background-color: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-max);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.freshmarvels-contact-form textarea {
  resize: vertical;
}

.freshmarvels-contact-form input:focus,
.freshmarvels-contact-form select:focus,
.freshmarvels-contact-form textarea:focus {
  border-color: var(--brass);
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.freshmarvels-field-error {
  display: block;
  color: var(--forest);
  font-size: 14px;
  margin-top: 6px;
}

.freshmarvels-contact-notice {
  border-left: 2px solid var(--brass);
  margin-bottom: 24px;
  padding-left: 14px;
}

.freshmarvels-contact-details {
  border-top: var(--hairline);
  padding-top: 24px;
}

.freshmarvels-contact-details a {
  overflow-wrap: anywhere;
}

.freshmarvels-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .freshmarvels-contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 80px;
  }
}

/* PAGE BACKGROUND */

body[class*="page-template-page-"] #page,
body[class*="page-template-page-"] #content,
body[class*="page-template-page-"] .site-content,
body[class*="page-template-page-"] .site-content > .ast-container {
  background-color: var(--ivory, #F7F4EC);
}

/* PAGE INTRO SPACING */

.fm-page-intro {
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
  margin-top: 0;
}

.freshmarvels-page-intro.fm-page-intro,
.freshmarvels-meat-intro.fm-page-intro {
  padding-top: var(--section-padding-mobile);
  padding-bottom: var(--section-padding-mobile);
  margin-top: 0;
}

@media (min-width: 768px) {
  .fm-page-intro,
  .freshmarvels-page-intro.fm-page-intro,
  .freshmarvels-meat-intro.fm-page-intro {
    padding-top: var(--section-padding-desktop);
    padding-bottom: var(--section-padding-desktop);
  }
}

/* NEUTRALISE ASTRA WRAPPER SPACING */

body[class*="page-template-page-"] #primary,
body[class*="page-template-page-"] .site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
}
body[class*="page-template-page-"] .site-content > .ast-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
body[class*="page-template-page-"],
body[class*="page-template-page-"] #page,
body[class*="page-template-page-"] #content,
body[class*="page-template-page-"] .site-content {
	background-color: var(--ivory, #F7F4EC) !important;
}