/* ============================================================
   ADELANTE CAPLENCO — Global Stylesheet
   Premium B2B Food Brokerage | Est. 1987
   Design: Earthy Luxury Editorial
   ============================================================ */


/* ------------------------------------------------------------
   0. CUSTOM PROPERTIES
   ------------------------------------------------------------ */

:root {
  /* Brand palette */
  --forest:      #1A3A2A;
  --green:       #2D5A3D;
  --sage:        #7A9B7E;
  --gold:        #C8A45E;
  --gold-light:  #D4B97A;
  --cream:       #F5F0E8;
  --cream-dark:  #EDE5D8;
  --warm:        #FAF7F2;
  --brown:       #4A3728;
  --brown-light: #6B5344;
  --charcoal:    #2A2A2A;

  /* Functional tokens */
  --text-primary:   var(--charcoal);
  --text-secondary: var(--brown-light);
  --text-inverse:   var(--cream);
  --border:         rgba(26, 58, 42, .12);
  --border-strong:  rgba(26, 58, 42, .25);

  /* Spacing scale */
  --space-xs:  .5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Type scale */
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.5rem;
  --fs-6xl:  4.5rem;

  /* Misc */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --nav-height:  80px;
  --container:   1400px;
  --transition:  .35s cubic-bezier(.4, 0, .2, 1);
}


/* ------------------------------------------------------------
   1. RESET + BASE
   ------------------------------------------------------------ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--warm);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }

::selection {
  background: var(--sage);
  color: var(--warm);
}


/* ------------------------------------------------------------
   2. GRAIN TEXTURE OVERLAY
   ------------------------------------------------------------ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ------------------------------------------------------------
   3. PAGE TRANSITION
   ------------------------------------------------------------ */

.page-transition {
  animation: pageFadeIn .6s ease-out both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------------------------------------
   4. NAVIGATION
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scrolled state — frosted glass */
.nav-scrolled {
  height: 68px;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

/* On dark hero sections */
.nav-transparent {
  background: transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--forest);
  white-space: nowrap;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--forest);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--forest);
}

/* Nav on dark backgrounds */
.nav-transparent .nav-logo,
.nav-transparent .nav-link {
  color: var(--cream);
}

.nav-transparent .nav-link:hover {
  color: var(--gold-light);
}

/* Logo swap: white on transparent/dark, dark on scrolled */
.nav-logo-dark { display: none; }
.nav-logo-white { display: block; }
.nav-transparent .nav-logo-dark { display: none; }
.nav-transparent .nav-logo-white { display: block; }
.nav-scrolled .nav-logo-dark { display: block !important; }
.nav-scrolled .nav-logo-white { display: none !important; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--warm);
  background: var(--forest);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--green);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  position: relative;
  width: 28px;
  padding: 0;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle.open span {
  background: var(--forest);
}

.nav-transparent .nav-toggle span {
  background: var(--cream);
}

.nav-transparent .nav-toggle.open span {
  background: var(--forest);
}

/* ── Mobile menu: full-screen slide-in ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--warm);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden; /* container doesn't scroll, only links area does */
}

.nav-mobile.open {
  transform: translateX(0);
}

/* Header: logo only (hamburger X handles close) */
.nav-mobile-header {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  padding-right: 72px; /* space for hamburger X overlay */
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-height);
}

/* Main links — scrollable, footer stays pinned */
.nav-mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-lg);
  gap: 0;
  overflow-y: auto;
  min-height: 0; /* allow flex child to shrink for scroll */
}

.nav-mobile-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
  display: block;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--green);
}

.nav-mobile-link::after { display: none; }

/* Product sub-group */
.nav-mobile-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xs);
}

.nav-mobile-group .nav-mobile-link {
  border-bottom: none;
  padding-bottom: var(--space-xs);
}

.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-md);
  padding-bottom: var(--space-sm);
  gap: 0;
}

.nav-mobile-sub-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--brown-light);
  text-decoration: none;
  padding: .4rem 0;
  padding-left: var(--space-sm);
  border-left: 2px solid var(--border);
  transition: color .2s, border-color .2s;
}

.nav-mobile-sub-link:hover {
  color: var(--forest);
  border-left-color: var(--forest);
}

/* Footer: CTA + contact info */
.nav-mobile-footer {
  padding: var(--space-lg);
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

.nav-mobile-cta {
  display: block;
  text-align: center;
  background: var(--forest);
  color: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: 4px;
  transition: background .2s;
}

.nav-mobile-cta:hover {
  background: var(--green);
}

.nav-mobile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-top: var(--space-md);
  color: var(--brown-light);
  font-size: var(--fs-sm);
}

/* Desktop dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  transition: transform var(--transition);
}

.nav-dropdown-menu.open .nav-dropdown-trigger svg,
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--warm);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(26, 58, 42, .1), 0 1px 0 var(--border);
  padding: .5rem 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--warm);
}

/* Invisible bridge so hover doesn't break between trigger and menu */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-menu.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-item {
  display: block;
  padding: .55rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-item:hover {
  background: var(--cream);
  color: var(--forest);
}


/* ------------------------------------------------------------
   5. LAYOUT — CONTAINERS & SECTIONS
   ------------------------------------------------------------ */

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

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1600px;
}

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

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

.section-lg {
  padding: 10rem 0;
}

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

.section-dark .text-secondary {
  color: var(--sage);
}

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

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


/* ------------------------------------------------------------
   6. TYPOGRAPHY HELPERS
   ------------------------------------------------------------ */

.heading-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 5.5vw, var(--fs-6xl));
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--forest);
}

.heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, var(--fs-5xl));
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--forest);
}

.heading-md {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, var(--fs-4xl));
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--forest);
}

.heading-sm {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 2vw, var(--fs-3xl));
  line-height: 1.25;
  color: var(--forest);
}

.section-dark .heading-xl,
.section-dark .heading-lg,
.section-dark .heading-md,
.section-dark .heading-sm {
  color: var(--cream);
}

.text-lg {
  font-size: var(--fs-lg);
  line-height: 1.75;
}

.body-text {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-text p + p {
  margin-top: 1.25em;
}

.label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-dark .label {
  color: var(--gold-light);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-balance {
  text-wrap: balance;
}

.text-gold   { color: var(--gold); }
.text-forest { color: var(--forest); }
.text-sage   { color: var(--sage); }


/* ------------------------------------------------------------
   7. SECTION DIVIDER
   ------------------------------------------------------------ */

.section-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: var(--space-md) 0;
}

.section-line-center {
  margin-left: auto;
  margin-right: auto;
}


/* ------------------------------------------------------------
   8. BUTTONS
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  color: var(--warm);
  background: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-primary:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 42, .2);
}

.btn-secondary {
  color: var(--forest);
  background: transparent;
  border: 1.5px solid var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--warm);
  transform: translateY(-2px);
}

.btn-gold {
  color: var(--forest);
  background: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 164, 94, .25);
}

/* Inverse variants for dark sections */
.section-dark .btn-secondary,
.hero .btn-secondary {
  color: var(--cream);
  border-color: rgba(245, 240, 232, .5);
}

.section-dark .btn-secondary:hover,
.hero .btn-secondary:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

.btn-lg {
  padding: 1.1rem 2.6rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: .55rem 1.3rem;
  font-size: var(--fs-xs);
}

/* Arrow icon in button */
.btn .btn-arrow {
  transition: transform var(--transition);
}

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


/* ------------------------------------------------------------
   9. HERO SECTION
   ------------------------------------------------------------ */

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

.hero-short {
  min-height: 70vh;
}

.hero-medium {
  min-height: 80vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 42, .82) 0%,
    rgba(26, 58, 42, .6) 40%,
    rgba(74, 55, 40, .45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.hero-content .heading-xl,
.hero-content .heading-lg,
.hero-content .heading-md,
.hero-content .heading-sm {
  color: var(--cream);
}

.hero-content .body-text,
.hero-content p {
  color: rgba(245, 240, 232, .8);
}

.hero-content .label {
  color: var(--gold-light);
}

.hero-content .breadcrumbs,
.hero-content .breadcrumbs a {
  color: rgba(245, 240, 232, .6);
}

.hero-content .breadcrumbs a:hover {
  color: var(--cream);
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(245, 240, 232, .5);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;  transform: translateX(-50%) translateY(6px); }
}


/* ------------------------------------------------------------
   10. CARDS
   ------------------------------------------------------------ */

/* Product Card */
.product-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26, 58, 42, .1), 0 4px 12px rgba(26, 58, 42, .06);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-body {
  padding: var(--space-md);
}

.product-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--forest);
  margin-bottom: .35rem;
}

.product-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-card-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: .3rem .75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--forest);
  border-radius: var(--radius-sm);
}

/* Category Card */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 42, .8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.category-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: var(--fs-2xl);
  color: var(--cream);
}

.category-card-count {
  font-size: var(--fs-xs);
  color: var(--sage);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .25rem;
}

/* Report / Content Card */
.report-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 58, 42, .08);
  border-color: var(--sage);
}

.report-card-date {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

.report-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--forest);
  margin-bottom: .5rem;
}

.report-card-excerpt {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ------------------------------------------------------------
   11. PRODUCT GRID
   ------------------------------------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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


/* ------------------------------------------------------------
   12. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.95);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}


/* ------------------------------------------------------------
   13. HARVEST CALENDAR TABLE
   ------------------------------------------------------------ */

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.calendar-table thead {
  background: var(--forest);
  color: var(--cream);
}

.calendar-table th {
  padding: .75rem .5rem;
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.calendar-table th:first-child {
  text-align: left;
  padding-left: var(--space-sm);
}

.calendar-table td {
  padding: .6rem .5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.calendar-table td:first-child {
  text-align: left;
  padding-left: var(--space-sm);
  font-weight: 500;
  color: var(--forest);
}

.calendar-table tbody tr:hover {
  background: rgba(26, 58, 42, .03);
}

.cal-active {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-xs);
}

.cal-available {
  background: var(--gold);
  color: var(--forest);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-xs);
}

.cal-inactive {
  color: var(--cream-dark);
}

/* Calendar legend */
.calendar-legend {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.calendar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
}

.calendar-legend-dot--active   { background: var(--green); }
.calendar-legend-dot--available { background: var(--gold); }


/* ------------------------------------------------------------
   14. FORM INPUTS
   ------------------------------------------------------------ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: .4rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: .85rem 1rem;
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, .1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--brown-light);
  opacity: .5;
}

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

.form-select {
  appearance: none;
  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 fill='%234A3728' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-top: .35rem;
}

.form-error {
  font-size: var(--fs-xs);
  color: #b04040;
  margin-top: .35rem;
}

.form-input.error,
.form-textarea.error {
  border-color: #b04040;
}


/* ------------------------------------------------------------
   15. IMAGE TREATMENTS
   ------------------------------------------------------------ */

.img-warm {
  filter: saturate(.92) sepia(.06) brightness(1.02);
}

.img-rounded {
  border-radius: var(--radius-lg);
}

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


/* ------------------------------------------------------------
   16. MARQUEE
   ------------------------------------------------------------ */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 35s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-3xl);
  font-weight: 600;
  font-style: italic;
  color: var(--sage);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

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


/* ------------------------------------------------------------
   17. QUALITY / CERTIFICATION LOGOS
   ------------------------------------------------------------ */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.logo-row img {
  height: 48px;
  width: auto;
  filter: grayscale(1) opacity(.5);
  transition: filter var(--transition);
}

.logo-row img:hover {
  filter: grayscale(0) opacity(1);
}


/* ------------------------------------------------------------
   18. BREADCRUMBS
   ------------------------------------------------------------ */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--forest);
}

.breadcrumbs-separator {
  color: var(--sage);
  margin: 0 .15rem;
}

.breadcrumbs-current {
  color: var(--forest);
  font-weight: 500;
}

/* Breadcrumbs on dark hero */
.hero .breadcrumbs {
  color: rgba(245, 240, 232, .6);
}

.hero .breadcrumbs a {
  color: rgba(245, 240, 232, .6);
}

.hero .breadcrumbs a:hover {
  color: var(--cream);
}

.hero .breadcrumbs-current {
  color: var(--cream);
}


/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */

.footer {
  background: var(--forest);
  color: var(--cream);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-logo {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--sage);
  line-height: 1.7;
}

.footer-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  color: var(--cream);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--sage);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(245, 240, 232, .1);
  font-size: var(--fs-xs);
  color: var(--sage);
}

.footer-bottom a {
  color: var(--sage);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, .15);
  color: var(--sage);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ------------------------------------------------------------
   20. UTILITY CLASSES
   ------------------------------------------------------------ */

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.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;
}


/* ------------------------------------------------------------
   21. RESPONSIVE BREAKPOINTS (mobile-first overrides)
   ------------------------------------------------------------ */

/* Tablet — 768px and below */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-toggle { display: flex; }

  .section     { padding: var(--space-2xl) 0; }
  .section-lg  { padding: var(--space-3xl) 0; }

  .container { padding: 0 var(--space-sm); }

  .heading-xl { font-size: clamp(2rem, 8vw, 3.25rem); }
  .heading-lg { font-size: clamp(1.75rem, 6vw, 2.75rem); }
  .heading-md { font-size: clamp(1.5rem, 5vw, 2.25rem); }

  .product-grid,
  .product-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-lg) !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .hero-content {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .logo-row {
    gap: var(--space-lg);
  }

  .logo-row img {
    height: 36px;
  }

  .calendar-table {
    font-size: var(--fs-xs);
  }

  .calendar-table th,
  .calendar-table td {
    padding: .4rem .25rem;
  }

  /* Spec table from product detail page */
  .spec-table {
    font-size: var(--fs-xs);
  }

  .spec-table td {
    padding: .6rem .75rem;
  }

  .spec-table td:first-child {
    white-space: normal;
    width: 40%;
  }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
  .product-grid,
  .product-grid-4,
  .product-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    width: 100%;
  }

  .breadcrumbs {
    font-size: var(--fs-xs);
  }

  .calendar-legend {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero {
    min-height: 85vh;
  }

  .hero-short {
    min-height: 60vh;
  }

  /* Category cards should be taller on mobile */
  .category-card {
    aspect-ratio: 3 / 3;
  }
}

/* ------------------------------------------------------------
   22. RESPONSIVE GRID UTILITY CLASSES
   ------------------------------------------------------------ */

/* 2-column grid: 2 cols on desktop, 1 on mobile */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* 3-column grid: 3 cols on desktop, 2 on tablet, 1 on mobile */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* 4-column grid: 4 cols on desktop, 2 on tablet, 1 on mobile */
.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Sidebar layout: 1fr 1.5fr on desktop, stacked on mobile */
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* 2-col image grid (used inside about teaser for 2x2 images) */
.grid-2-col-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* 2-col form row */
.grid-2-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Browse other categories grid */
.grid-2-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}


/* Tablet — 768px and below — INLINE STYLE OVERRIDES */
@media (max-width: 768px) {
  /* Responsive grid utility classes */
  .grid-2-col {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  .grid-3-col {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  .grid-4-col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
  }

  .grid-sidebar {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  .grid-2-col-form {
    grid-template-columns: 1fr !important;
  }

  .grid-2-col-cards {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Override ANY remaining inline grid styles on common patterns */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  [style*="grid-template-columns: 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
  }

  /* Hero adjustments */
  .hero-content {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }

  .hero-scroll-cue {
    display: none;
  }

  /* Harvest calendar table wrapper scrollable */
  .calendar-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
  }

  /* Related grid from product.html */
  .related-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
}

/* Mobile — 480px and below — INLINE STYLE OVERRIDES */
@media (max-width: 480px) {
  .grid-4-col {
    grid-template-columns: 1fr !important;
  }

  .grid-2-col-images {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Buttons should be full-width on very small screens */
  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .flex.gap-md.flex-wrap {
    flex-direction: column;
  }

  .flex.gap-md.flex-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Large screens — 1200px+ */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Extra large — 1600px+ */
@media (min-width: 1600px) {
  html {
    font-size: 17px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
