/* ==========================================================================
   MODIYIL EXPORTS — CUSTOM STYLESHEET
   Premium Kerala spice / natural heritage visual identity
   ========================================================================== */

:root {
  /* Primary greens */
  --primary: #f16221;
  --primary-deep: #093528;
  --secondary: #17543F;
  --accent-leaf: #6F8F58;

  /* Luxury accents */
  --spice-gold: #A8814A;
  --cardamom-gold: #C9AC72;

  /* Backgrounds */
  --parchment: #F2EEE2;
  --ivory: #FAF8F2;
  --cream: #F6F3EA;
  --sage: #edf4f9;
  --white: #FFFFFF;

  /* Typography */
  --text-primary: #1F2622;
  --text-secondary: #1F2622;
  --text-muted: #8B9088;

  /* Borders */
  --border: #E2DDCF;
  --border-soft: #EAE5D8;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --transition: all 0.3s ease;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--ivory);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.16;
  margin: 0;
}
h1{
  font-weight: 600;
}
h2{
  font-weight: 600;
}

p { margin: 0; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1240px; }

section { position: relative; }

/* ---- shared type ---- */
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }

.section-text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 1.15rem;
}
.section-text-light { color: rgba(233, 238, 232, 0.78); }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--spice-gold);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.eyebrow-light { color: var(--cardamom-gold); }

.text-white { color: var(--white) !important; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.text-link i { font-size: 0.7rem; transition: var(--transition); }
.text-link:hover { color: var(--secondary); border-bottom-color: var(--accent-leaf); }
.text-link:hover i { transform: translateX(4px); }

/* ============ BUTTONS ============ */
.btn {
  border-radius: 2px;
  padding: 0.8rem 1.55rem;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
}
.btn i { font-size: 0.72rem; }

.btn-primary-fill {
  background-color: var(--primary);
  color: var(--white);
  margin-top: 1.85rem;
}
.btn-primary-fill:hover { background-color: var(--secondary); color: var(--white); }

.btn-cream {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  margin-top: 1.85rem;
}
.btn-cream:hover { background-color: var(--white); color: var(--primary); border-color: var(--white); }

.btn-hero-primary { background-color: #f16221; color: var(--white); }
.btn-hero-primary:hover { background-color: #f16221; color: var(--white); }

.btn-hero-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-hero-outline:hover { background-color: var(--white); color: var(--primary); border-color: var(--white); }

/* ============ TOP BAR ============ */
.top-bar {
  background-color: var(--primary);
  color: rgba(233, 238, 232, 0.9);
  font-size: 0.65rem;
  padding: 0.5rem 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.top-bar-links { display: flex; align-items: center; gap: 0.7rem; }
.top-bar-links a { color: rgba(233, 238, 232, 0.9); }
.top-bar-links a:hover { color: var(--cardamom-gold); }
.top-bar-links .divider { opacity: 0.35; }
.lang-switch i { font-size: 0.5rem; margin-left: 0.2rem; }

/* ============ HEADER ============ */
.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  height: 80px;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(11, 61, 46, 0.07); }

.navbar { padding: 0.95rem 0; height: 100%;}

.navbar-brand {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
      max-width: 300px;
}
.brand-accent { color: var(--spice-gold); }
.brand-thin { font-weight: 400; letter-spacing: 0.16em; }

.main-nav { gap: 0.25rem; }
.main-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.95rem !important;
  position: relative;
}
.main-nav .nav-link:hover { color: var(--primary); }
.main-nav .nav-link.active { color: var(--primary); font-weight: 600; }

.navbar-toggler {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.2rem;
  padding: 0.25rem 0.4rem;
}
.navbar-toggler:focus { box-shadow: none; }

.nav-icons { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}
.icon-btn:hover { background-color: var(--cream); color: var(--primary); }
.cart-count {
  position: absolute;
  top: -1px;
  right: -2px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 600;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---- sliding mobile drawer (Bootstrap offcanvas) ---- */
.nav-drawer-cta { display: none; }

@media (max-width: 991.98px) {
  /* Bootstrap sets width via .offcanvas.offcanvas-end (2 classes), so theme
     it through its own custom properties rather than fighting specificity */
  .nav-drawer {
    --bs-offcanvas-width: min(320px, 86vw);
    --bs-offcanvas-border-width: 1px;
    --bs-offcanvas-border-color: var(--border-soft);
    background-color: var(--white);
  }
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-drawer-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
  }
  .nav-drawer-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .nav-drawer-close:hover { background-color: var(--cream); color: var(--primary); }

  .nav-drawer-body {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.5rem;
  }

  .main-nav { margin: 0; gap: 0; width: 100%; }
  .main-nav .nav-item { border-bottom: 1px solid var(--border-soft); }
  .main-nav .nav-item:last-child { border-bottom: none; }
  .main-nav .nav-link {
    padding: 0.95rem 0 !important;
    font-size: 1.05rem;
  }
  .main-nav .nav-link.active::after { display: none; }

  .nav-icons {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
    justify-content: flex-start;
  }
  .nav-drawer-cta {
    display: inline-flex;
    margin-top: 1.25rem;
    justify-content: center;
  }
}

/* ============ HERO ============ */
.hero-section { position: relative; background-color: var(--primary-deep); }
.hero-swiper { width: 100%; }

.hero-slide {
  height: 74vh;
  min-height: 540px;
  max-height: 700px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(280deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 0%) 39%, rgb(0 44 23) 90%);
}

.hero-content-wrap { position: relative; z-index: 2; }

.hero-text { max-width: 640px; }
.hero-text h1 {
  color: var(--white);
  font-size: 3.9rem;
  line-height: 1.1;
  margin-bottom: 1.35rem;
}
.hero-sub {
  color: rgba(240, 243, 238, 0.86);
  letter-spacing: 0.17em;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 2;
  margin-bottom: 2.1rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---- hero content fade-in ----
   Scoped to .swiper-initialized, a class Swiper puts on the container itself.
   If the script never runs — admin preview, blocked CDN — the rule simply
   never matches and the text renders normally, instead of being stranded at
   opacity 0 with no way back. Keyed on the active slide so it replays on each
   change rather than only on first paint.
   Child order does the staggering, so a slide with no .hero-sub closes the gap
   on its own instead of leaving a hole in the sequence. */
.hero-swiper.swiper-initialized .hero-text > * {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

.hero-swiper.swiper-initialized .swiper-slide-active .hero-text > * {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
/* delays start after the 800ms slide transition has settled, so the copy
   isn't animating while the slide behind it is still moving */
.hero-swiper.swiper-initialized .swiper-slide-active .hero-text > *:nth-child(1) { animation-delay: 0.25s; }
.hero-swiper.swiper-initialized .swiper-slide-active .hero-text > *:nth-child(2) { animation-delay: 0.45s; }
.hero-swiper.swiper-initialized .swiper-slide-active .hero-text > *:nth-child(3) { animation-delay: 0.65s; }

/* The outgoing slide's copy fades away instead of blinking off.
   :not(.swiper-slide-active) is load-bearing — with a single banner (or two)
   and loop:true, Swiper hangs prev/next on the SAME element as active, and
   since this rule sits after the fade-in it would win the animation shorthand
   outright and animate the visible copy straight back out to opacity 0. */
.hero-swiper.swiper-initialized .swiper-slide-prev:not(.swiper-slide-active) .hero-text > *,
.hero-swiper.swiper-initialized .swiper-slide-next:not(.swiper-slide-active) .hero-text > * {
  animation: heroFadeOut 0.45s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-swiper.swiper-initialized .hero-text > * {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* hero bottom row */
.hero-bottom-row {
  position: absolute;
  bottom: 2.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.hero-pagination-wrap { display: flex; align-items: center; gap: 1.1rem; }
.hero-pagination-wrap .swiper-pagination {
  position: static;
  display: flex;
  gap: 1rem;
  width: auto;
}
.hero-pagination-wrap .swiper-pagination-bullet {
  background: none;
  opacity: 1;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}
.hero-pagination-wrap .swiper-pagination-bullet-active { color: var(--white); }

.hero-progress {
  width: 88px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}
.hero-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33.33%;
  background-color: var(--white);
  transition: transform 0.6s ease;
}

.hero-stat-list { display: flex; flex-direction: column; gap: 0.55rem; }
.hero-stat-list li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(201, 172, 114, 0.85);
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  /* stays overlaid on the image — going static drops it onto the section
     background below the slide and reads as a broken band */
  .hero-slide { height: auto; min-height: 490px; max-height: none; padding: 3rem 0 4.5rem; }
  .hero-text h1 { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.5rem; line-height: 1.85; }

  .hero-bottom-row {
    bottom: 1.15rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    margin-top: 0;
    padding-bottom: 0;
  }
  .hero-stat-list { flex-direction: row; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
  .hero-stat-list li {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    padding-left: 0.55rem;
    text-shadow: 0 1px 6px rgba(4, 26, 18, 0.65);
  }

  /* keeps the overlaid trust line readable over the bright base of the photo */
  .hero-slide::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 130px;
    background: linear-gradient(0deg, rgba(4, 26, 18, 0.72) 0%, rgba(4, 26, 18, 0) 100%);
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 575.98px) {
  .hero-slide { min-height: 450px; padding: 2.5rem 0 4rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn {
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
    min-width: 190px;
    justify-content: center;
  }
  .hero-bottom-row { bottom: 0.9rem; }
}

/* single-slide hero: nothing to page through, so drop the pagination + track */
.hero-swiper.is-single .hero-pagination-wrap { display: none; }

/* ============ FEATURES STRIP ============ */
.features-strip {
  background-color: var(--white);
  padding: 1rem 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  text-align: center;
  padding: 0.35rem 1.25rem;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.features-grid .feature-item:last-child { border-right: none; }

.feature-icon {
  display: inline-flex;
  color: var(--primary);
  font-size: 1.25rem;
  margin-right: 6px;
}
.feature-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.feature-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; width: 100%;}

@media (max-width: 767.98px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { padding: 1.1rem 0.75rem; border-bottom: 1px solid var(--border-soft); }
  .features-grid .feature-item:nth-child(2n) { border-right: none; }
  .features-grid .feature-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============ HERITAGE SECTION ============ */
.heritage-section {
  background-color: var(--parchment);
 
  overflow: hidden;
      background-size: cover!important;
    background-position: 40% 45% !important;
    height: 700px;
}
.kerala-map-lft{
  max-width: 530px;
}
.heritage-decor { position: absolute; color: var(--accent-leaf); pointer-events: none; }
.heritage-decor svg { width: 100%; height: 100%; display: block; }
.decor-tl { top: -14px; left: 2%; width: 88px; height: 88px; opacity: 0.32; transform: rotate(-24deg); }
.decor-tr { top: 4%; right: 1%; width: 168px; height: 148px; opacity: 0.5; }
.decor-bl { bottom: 5%; left: 1.5%; width: 74px; height: 74px; opacity: 0.24; transform: rotate(155deg); }

.heritage-map-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}
.kerala-map { width: 100%; max-width: 335px; height: auto; }

.km-state {
  fill: #A9C08D;
  fill-opacity: 0.8;
  stroke: #4C7043;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.km-region text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 1.6px;
  fill: #A29B8B;
  font-weight: 600;
}
.km-region .km-sea { fill: #92A6AB; letter-spacing: 1.4px; }

.km-state-name {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 3.4px;
  fill: var(--primary);
  font-weight: 600;
}

.km-city circle { fill: var(--primary); }
.km-city text {
  font-family: var(--font-body);
  font-size: 7.5px;
  letter-spacing: 0.3px;
  fill: #8D8778;
  font-weight: 500;
}

.heritage-copy { padding-left: 1rem; }

@media (max-width: 991.98px) {
  /* the fixed 700px height would clip the copy once the columns stack */
  .heritage-section { height: auto; padding: 3.25rem 0; background-position: 50% 45% !important; }
  .kerala-map-lft { max-width: 380px; margin: 0 auto 1.5rem; }
  .heritage-copy { padding-left: 0; }
  .decor-tr { width: 110px; height: 96px; opacity: 0.3; }
  /* would sit behind the body copy once the columns stack */
  .decor-bl { display: none; }
}

@media (max-width: 575.98px) {
  .heritage-section { padding: 2.5rem 0; }
  .kerala-map-lft { max-width: 260px; margin-bottom: 1rem; }
}

/* ============ HISTORY SECTION ============ */
.history-section {
  background-color: var(--primary);
  padding: 5.5rem 0 5.5rem;
  overflow: hidden;
  background-position: 40% 80% !important;
    background-size: cover !important;
}
.history-section::before {
  content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: #000000; */
    background: linear-gradient(280deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 24%, rgb(46 22 0) 74%);
    top: 0;
}
.history-map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  overflow: hidden;
}
.history-map > .history-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 47%;
  transform: scale(1.4);
  filter: sepia(0.22) saturate(0.92) brightness(0.95) contrast(1.02);
}
.history-map-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--primary) 0%, rgba(11, 61, 46, 0.82) 11%, rgba(11, 61, 46, 0.2) 38%, rgba(11, 61, 46, 0.16) 100%),
    linear-gradient(0deg, rgba(9, 40, 30, 0.55) 0%, rgba(9, 40, 30, 0) 34%);
}

.trade-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.trade-route .route-path {
  fill: none;
  stroke: #16382B;
  stroke-width: 2.2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  stroke-opacity: 0.85;
}

.route-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FFF6E2;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(22, 56, 43, 0.85);
}
.dot-europe { left: 51%; top: 23%; }
.dot-india {
  left: 88%;
  top: 38%;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 2.5px rgba(22, 56, 43, 0.9);
}

.map-pin {
  position: absolute;
  font-size: 0.58rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 600;
  color: #F6EDD8;
  text-shadow: 0 1px 7px rgba(9, 40, 30, 0.95), 0 0 14px rgba(9, 40, 30, 0.7);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.pin-europe { top: 17%; left: 51%; }
.pin-africa { top: 48%; left: 56%; }
.pin-india  { top: 32%; left: 88%; }

.history-ship {
  position: absolute;
  bottom: 15%;
  left: 30%;
  width: 25%;
  max-width: 195px;
  opacity: 0.72;
  filter: sepia(0.4) saturate(0.75) brightness(0.95) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 32%, transparent 71%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 32%, transparent 71%);
}

.history-container { position: relative; z-index: 3; }
.history-copy { max-width: 640px; }

.history-caption {
  position: absolute;
  bottom: 2.2rem;
  right: 0;
  width: 56%;
  z-index: 3;
  padding: 0 3rem;
}
.history-caption p {
  color: #fff;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding-left: 1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .history-section { padding: 3.25rem 0 4.5rem; }
  /* the diagonal scrim leaves the copy over bare image once it stacks,
     so flatten it to keep the white text legible */
  .history-section::before {
    background: linear-gradient(180deg, rgba(46, 22, 0, 0.86) 0%, rgba(46, 22, 0, 0.7) 55%, rgba(46, 22, 0, 0.88) 100%);
  }
  .history-caption { width: 100%; padding: 0 1.5rem; bottom: 1.4rem; }
  .history-caption p { text-align: left; }
  .history-copy { max-width: 100%; }
}

@media (max-width: 575.98px) {
  .history-section { padding: 2.5rem 0 4rem; }
  .history-caption { padding: 0 1rem; bottom: 1rem; }
  .history-caption p { font-size: 15px; }
}

/* ============ PRODUCTS SECTION ============ */
.products-section { background-color: var(--ivory); padding: 5.5rem 0; }

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}
.section-heading-copy h2 { margin-bottom: 0.15rem; }
.section-heading-copy .section-text { margin-top: 0.85rem; max-width: 480px; }

.heading-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
}
.heading-actions .text-link { margin-top: 0; }

.swiper-nav-group { display: flex; gap: 0.55rem; }
.swiper-custom-prev, .swiper-custom-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition);
}
.swiper-custom-prev:hover, .swiper-custom-next:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.swiper-button-disabled { opacity: 0.35; pointer-events: none; }

/* let flex stretch every card in a row to the tallest one */
.products-swiper .swiper-slide { height: auto; }

.product-card {
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 9px;
  padding: 0.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 14px 32px rgba(11, 61, 46, 0.09);
}

.product-card-image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--white);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.4rem 0.65rem 0.75rem;
}
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 0;
}
.product-card h3 a { color: inherit; display: inline-block; }
.product-card h3 a:hover { color: var(--primary); }

/* keyboard focus for the two card links */
.product-card-image:focus-visible,
.product-card h3 a:focus-visible,
.product-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}
.product-rule {
  display: block;
  width: 36px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--spice-gold);
  margin: 0.85rem 0 0.9rem;
}
.product-card p { color: var(--text-muted); font-size: 17px; line-height: 1.6; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.6rem;
  color: #f16221;
  font-weight: 600;
  font-size: 1rem;
  align-self: flex-start;
}
.product-link-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: var(--transition);
}
.product-link:hover { color: var(--secondary); }
.product-link:hover .product-link-arrow {
  background-color: #f16221;
  color: var(--white);
}

/* ============ PROCESS SECTION ============ */
.process-section { background-color: var(--cream); padding: 5.5rem 0; }

.process-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2.05fr;
  gap: 3.25rem;
  align-items: start;
}
.process-copy .section-text { max-width: 330px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  padding-top: 1.35rem;
}

.process-step {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1.6rem 1rem 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.process-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--accent-leaf);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.process-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.process-step h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.process-step p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  min-height: 3.1em;
}
.process-image {
  margin: auto -1rem 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 0 3px 3px;
}
.process-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1199.98px) {
  .process-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-copy .section-text { max-width: 520px; }
}
@media (max-width: 767.98px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; padding-top: 1.75rem; }
}

/* ============ SPLIT SECTIONS (legacy + export) ============ */
.split-row {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: stretch;
}
.split-media { position: relative; overflow: hidden; min-height: 430px; }
.split-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.split-copy { display: flex; align-items: center; }
.split-copy-inner {
  padding: 4.25rem clamp(1.5rem, 4.5vw, 4.25rem);
  max-width: 700px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .split-row { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
}

/* ---- legacy ---- */
.legacy-section { background-color: var(--sage); }
.legacy-image-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 40, 30, 0.62) 0%, rgba(9, 40, 30, 0) 48%);
}
.legacy-image-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 2;
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 2;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 38, 34, 0.12);
}
.stat-item { padding-right: 1rem; border-right: 1px solid rgba(31, 38, 34, 0.12); padding-left: 1.15rem; }
.stat-item:first-child { padding-left: 0; }
.legacy-stats .stat-item:last-child { border-right: none; padding-right: 0; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1.15;
}
.stat-label {
  display: block;
  font-size:13px;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .legacy-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3) { padding-left: 0; }
}

/* ---- export ---- */
.export-image-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 61, 46, 0) 62%, rgba(11, 61, 46, 0.45) 100%);
}

.export-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.9rem;
  padding-top: 2rem;
  border-top: 1px solid #dfdfdf;
}
.export-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  padding: 0 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.export-icons .export-icon-item:last-child { border-right: none; }
.export-icon-item i { color: var(--cardamom-gold); font-size: 1.05rem; }
.export-icon-item span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .export-icons { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; }
  .export-icon-item:nth-child(2n) { border-right: none; }
}

/* ============ FOOTER ============ */
.site-footer { background-color: var(--cream); color: var(--text-secondary); }

.footer-top {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 4rem 0 3.25rem;
}

.footer-brand {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.15rem;
}
.footer-brand .brand-thin { font-weight: 400; }
.footer-about {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
  max-width: 330px;
}

.social-icons { display: flex; gap: 1.15rem; margin-top: 1.75rem; }
.social-icons a { color: var(--primary); font-size: 0.95rem; }
.social-icons a:hover { color: var(--spice-gold); }

.site-footer h5 {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.7rem; font-size: 17px; line-height: 1.6; }
.footer-col ul li a { color: var(--text-secondary); }
.footer-col ul li a:hover { color: var(--primary); }

.contact-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-secondary); }
.contact-list li i { color: var(--primary); margin-top: 0.42rem; width: 15px; font-size: 0.9rem; }
.contact-list li a { color: var(--text-secondary); }
.contact-list li a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 14px;
    color: #424242;
}
.footer-bottom-links { display: flex; gap: 1.75rem; }
.footer-bottom-links a:hover { color: var(--primary); }

@media (max-width: 991.98px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
}
@media (max-width: 575.98px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============ RESPONSIVE TYPE SCALE ============
   Ordered widest → narrowest so narrower breakpoints win the cascade. */
@media (max-width: 1199.98px) {
  h2 { font-size: 2.15rem; }
  .hero-text h1 { font-size: 3.15rem; }
}

@media (max-width: 767.98px) {
  .hero-text h1 { font-size: 2.5rem; }
}

/* ---- tablet / small-desktop: tighten the vertical rhythm ---- */
@media (max-width: 991.98px) {
  .site-header { height: 68px; }
  .navbar { padding: 0.6rem 0; }
  .navbar-brand { max-width: 210px; }

  .products-section, .process-section { padding: 3.25rem 0; }
  .features-strip { padding: 0.5rem 0; }
  .section-heading-row { margin-bottom: 2rem; gap: 1.25rem; }
  .heading-actions { padding-top: 0; }

  .split-media { min-height: 260px; }
  .split-copy-inner { padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem); }
  .legacy-stats, .export-icons { margin-top: 2rem; padding-top: 1.5rem; }
  .legacy-image-caption { bottom: 1.5rem; left: 1.5rem; line-height: 1.8; }

  .footer-top { padding: 2.75rem 0 2.25rem; }
  .footer-bottom { padding: 1rem 0; }
}

/* ---- phones ---- */
@media (max-width: 575.98px) {
  h2 { font-size: 1.8rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.66rem; letter-spacing: 0.14em; }

  .site-header { height: 62px; }
  .navbar-brand { max-width: 220px; }

  .products-section, .process-section { padding: 2.5rem 0; }
  .section-heading-row { margin-bottom: 1.5rem; }

  .split-media { min-height: 220px; }
  .split-copy-inner { padding: 2.25rem 1.25rem; }
  .legacy-stats, .export-icons { margin-top: 1.5rem; padding-top: 1.25rem; }
  .btn-primary-fill, .btn-cream { margin-top: 1.35rem; }

  .product-card { padding: 0.6rem; }
  .product-card h3 { font-size: 1.35rem; }
  .product-card-body { padding: 1.05rem 0.4rem 0.5rem; }
  .product-link { padding-top: 1.1rem; }

  .process-grid { gap: 1.5rem 0.75rem; }
  .process-step { padding: 1.35rem 0.75rem 0; }
  .process-image { margin: auto -0.75rem 0; }

  .footer-top { padding: 2.25rem 0 1.75rem; gap: 1.75rem; }
  .footer-bottom-inner { justify-content: flex-start; }
}

@media (min-width: 1400px) {
  h2 { font-size: 2.7rem; }
  .hero-text h1 { font-size: 4.15rem; }
  .container {
    max-width: 80%;
  }
}

/* ============ MOBILE BODY COPY ============
   Paragraph text drops to 15px on mobile only; desktop stays at 17px.
   Placed last so it wins over the unscoped base declarations. */
@media (max-width: 767.98px) {
  .section-text,
  .history-caption p,
  .product-card p,
  .process-step p,
  .footer-about,
  .footer-col ul li {
    font-size: 15px;
  }
}

/* ============ SCROLL REVEAL (GSAP) ============
   Word wrappers clip their inner span so the text slides up out of a mask.
   The padding/negative-margin pair stops descenders (g, y, p) being cut. */
.reveal-line { display: block; }
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.reveal-word-in { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal-word { overflow: visible; }
  .reveal-word-in { transform: none !important; }
}
