@font-face {
  font-family: 'Mont';
  src: url('assets/fonts/mont-heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #86000a;
  --olive: #6b7454;
  --gold: #f6a42f;
  --ink: #353535;
  --muted: #6a6a6a;
  --white: #ffffff;
  --font-display: 'Mont', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, 88%);
  margin-inline: auto;
}

.container--narrow {
  width: min(960px, 88%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accent-dot {
  color: var(--gold);
}

/* Header & Navigation */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
}

.navbar {
  display: flex;
  align-items: center;
  padding: 20px 60px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Shared expanding pill wipe (50px -> 100%) for nav links & CTA buttons */
.nav-pill,
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
}

.nav-pill::before,
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 25px;
  opacity: 0;
  transition: width 300ms ease-in-out, opacity 300ms ease-in-out;
}

.nav-pill:hover::before,
.nav-pill:focus-visible::before,
.cta-btn:hover::before,
.cta-btn:focus-visible::before {
  width: 100%;
  opacity: 1;
  transition: width 400ms ease-in-out, opacity 400ms ease-in-out;
}

.nav-pill {
  color: var(--ink);
}

.nav-pill::before {
  border-color: var(--olive);
  background-color: transparent;
}

.nav-pill span,
.cta-label,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background-color: var(--red);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* CTA Buttons */
.cta-btn {
  gap: 20px;
  overflow: hidden;
  color: var(--gold);
}

.cta-arrow {
  flex-shrink: 0;
  transition: transform 200ms ease-in-out;
}

.cta-btn:hover .cta-arrow,
.cta-btn:focus-visible .cta-arrow {
  transform: translateX(5px);
  transition: transform 200ms ease-in-out 200ms;
}

.cta-btn--green {
  background-color: var(--olive);
}

.cta-btn--green::before {
  background-color: var(--white);
  border-color: var(--olive);
}

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

.cta-btn--white::before {
  background-color: var(--red);
  border-color: var(--white);
}

/* Hero */
@keyframes flyInLeft {
  0% {
    opacity: 0;
    transform: translateX(-280px) scale(0.45);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 40px 30px 80px;
  overflow: hidden;
  background: url('assets/images/hero-bg.webp') 100% 50% / cover no-repeat;
}

.hero-inner {
  width: min(1240px, 90%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  max-width: 600px;
  animation: flyInLeft 1000ms cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.hero-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 75px);
  line-height: 0.72;
  font-weight: 900;
  color: var(--red);
}

.hero-logo {
  width: min(480px, 42vw);
}

.hero-edge {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(70px, 8vw, 130px);
  background: url('assets/images/green-top.svg') 50% 100% / 100% 100% no-repeat;
  pointer-events: none;
}

/* Banner Strip */
.banner-strip {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  background-color: var(--olive);
  padding: 28px 0 48px;
}

.banner-text {
  margin: 0 0 32px;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
}

/* Vision & Mission Split Grid */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.story-media {
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 64px 0;
  background-size: cover;
  background-position: center;
}

.story-media--vision {
  justify-content: flex-end;
  background-image: url('assets/images/vision-bg.webp');
}

.story-media--mission {
  justify-content: flex-start;
  background-image: url('assets/images/mission-bg.webp');
}

.story-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5rem);
  line-height: 0.72;
  font-weight: 900;
  color: var(--white);
}

.story-heading--right {
  text-align: right;
  margin-right: -6px;
}

.story-heading--left {
  text-align: left;
  margin-left: -8px;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(24px, 6vw, 72px);
  font-size: 15px;
  line-height: 1.7;
}

.story-copy p {
  margin: 0 0 18px;
  max-width: 540px;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

/* Products */
.products {
  padding: 64px 0 56px;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
  background: url('assets/images/products-bg.webp') 50% 50% / cover no-repeat;
}

.section-heading {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
  color: var(--red);
  text-align: center;
}

.section-heading--white {
  color: var(--white);
  margin-bottom: 20px;
}

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

.spice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-600px) scale(0.25);
  transition:
    opacity 1000ms cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 1000ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spice-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}

.spice-card:nth-child(1) { transition-delay: 82ms; }
.spice-card:nth-child(2) { transition-delay: 450ms; }
.spice-card:nth-child(3) { transition-delay: 837ms; }
.spice-card:nth-child(4) { transition-delay: 1230ms; }
.spice-card:nth-child(5) { transition-delay: 1650ms; }
.spice-card:nth-child(6) { transition-delay: 2070ms; }

.spice-card.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.spice-media {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 445 / 280;
}

.spice-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 180ms ease;
}

.spice-img--ground {
  opacity: 0;
}

.spice-card:hover .spice-img--whole,
.spice-card:focus-visible .spice-img--whole,
.spice-card.is-flipped .spice-img--whole {
  opacity: 0;
}

.spice-card:hover .spice-img--ground,
.spice-card:focus-visible .spice-img--ground,
.spice-card.is-flipped .spice-img--ground {
  opacity: 1;
}

.spice-name {
  margin: -12px 0 6px;
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.spice-line {
  width: 45px;
  height: 3px;
  background-color: var(--red);
}

/* Contact Section */
.contact-edge {
  height: 76px;
  background:
    url('assets/images/red-top.webp') 50% 0% / cover no-repeat,
    url('assets/images/products-bg.webp') 50% 50% / cover no-repeat;
}

.contact {
  padding: 56px 0 72px;
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
  background: var(--red) url('assets/images/contact-bg.webp') 50% 50% / cover no-repeat;
}

.contact-text {
  margin: 0 0 36px;
  color: var(--white);
  font-size: 15px;
  max-width: 620px;
}

/* Footer */
.site-footer {
  background-color: var(--olive);
  padding: 32px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar {
    padding: 18px 24px;
    justify-content: center;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding: 110px 20px 110px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    padding: 20px 24px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
  }

  .hero-logo {
    width: min(360px, 72vw);
  }

  .story-row {
    grid-template-columns: 1fr;
  }

  .story-row--reverse .story-media {
    order: -1;
  }

  .story-media {
    min-height: 240px;
    justify-content: center;
    padding: 48px 20px;
  }

  .story-heading--right,
  .story-heading--left {
    margin: 0;
    text-align: center;
  }

  .story-copy {
    align-items: center;
    padding: 36px 24px;
  }

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

@media (max-width: 767px) {
  .navbar {
    padding: 14px 18px;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background-color: var(--gold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-pill {
    width: 100%;
    justify-content: center;
  }

  .nav-pill::before {
    display: none;
  }

  .hero {
    padding: 90px 16px 96px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9vw, 60px);
    line-height: 0.84;
    padding: 18px 22px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .hero-content {
    animation: none;
  }

  .spice-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
