/* ==========================================================================
   LET KERALA — "WHAT'S YOUR SPICE?"
   Immersive Full-Width Doorway Section
   ========================================================================== */

.whats-your-spice {
  position: relative;
  width: 100%;
  min-height: 900px;
  overflow: hidden;
  padding: 110px 0 130px;
  background-color: #08160f;
  color: #fcf9f4;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   Environmental Background Layers (Smooth Cross-fade: 700ms)
   -------------------------------------------------------------------------- */
.spice-env {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.env-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 750ms cubic-bezier(0.25, 1, 0.5, 1),
              transform 1400ms cubic-bezier(0.25, 1, 0.5, 1),
              filter 750ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.env-default {
  opacity: 0.82;
  filter: brightness(0.68) saturate(1.15);
  animation: subtleBreathe 18s ease-in-out infinite alternate;
}

.env-pepper {
  filter: brightness(0.55) contrast(1.12) saturate(1.1);
}

.env-cardamom {
  filter: brightness(0.58) contrast(1.08) saturate(1.2);
}

/* Active background states */
.whats-your-spice.state-pepper .env-default {
  opacity: 0;
  transform: scale(1.08);
}

.whats-your-spice.state-pepper .env-pepper {
  opacity: 0.95;
  transform: scale(1.05);
}

.whats-your-spice.state-cardamom .env-default {
  opacity: 0;
  transform: scale(1.08);
}

.whats-your-spice.state-cardamom .env-cardamom {
  opacity: 0.95;
  transform: scale(1.05);
}

/* Atmospheric Overlay: Vignette & Kerala Mist Tint */
.env-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(8, 22, 15, 0.3) 0%, rgba(6, 17, 12, 0.78) 65%, #05120c 100%),
              linear-gradient(180deg, rgba(8, 22, 15, 0.85) 0%, transparent 22%, transparent 78%, rgba(8, 22, 15, 0.92) 100%);
  pointer-events: none;
}

/* Soft Kerala dawn light beam */
.env-light-drift {
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse 65% 45% at 50% 15%, rgba(216, 168, 62, 0.12), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 800ms ease;
  animation: sunbeamPulse 12s ease-in-out infinite alternate;
}

.whats-your-spice.state-pepper .env-light-drift {
  background: radial-gradient(ellipse 70% 50% at 30% 25%, rgba(216, 168, 62, 0.18), transparent 70%);
}

.whats-your-spice.state-cardamom .env-light-drift {
  background: radial-gradient(ellipse 70% 50% at 70% 25%, rgba(132, 204, 152, 0.18), transparent 70%);
}

@keyframes subtleBreathe {
  0% { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.04) translate3d(-10px, -8px, 0); }
}

@keyframes sunbeamPulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Container & Editorial Header
   -------------------------------------------------------------------------- */
.wys-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wys-header {
  text-align: center;
  max-width: 780px;
  margin-bottom: 54px;
}

.wys-eyebrow {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e5b958;
  margin-bottom: 14px;
  position: relative;
  padding: 0 16px;
}

.wys-eyebrow::before,
.wys-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: rgba(229, 185, 88, 0.45);
}

.wys-eyebrow::before { left: -14px; }
.wys-eyebrow::after { right: -14px; }

.wys-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fdfbf7;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.wys-sub {
  margin: 18px auto 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: #d1dcce;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Doorway Portals Layout (Two Side-by-Side Cards)
   -------------------------------------------------------------------------- */
.wys-portals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  width: 100%;
  perspective: 1200px;
}

/* Base Card Doorway */
.wys-card {
  position: relative;
  border-radius: 24px;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

.wys-card:focus-visible {
  box-shadow: 0 0 0 3px #d8a83e, 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Doorway Frame & Glass Container */
.wys-card-doorway {
  position: relative;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 42px;
  background: rgba(11, 28, 19, 0.55);
  border: 1px solid rgba(245, 237, 222, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.12),
              inset 0 0 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 600ms ease,
              box-shadow 650ms cubic-bezier(0.22, 1, 0.36, 1),
              background 600ms ease;
}

/* Card Internal Ambient Photography */
.wys-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: brightness(0.65) saturate(0.95);
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(0.25, 1, 0.5, 1),
              opacity 750ms cubic-bezier(0.25, 1, 0.5, 1),
              filter 750ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.wys-card-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(7, 21, 14, 0.25) 0%,
              rgba(7, 21, 14, 0.65) 45%,
              rgba(5, 15, 10, 0.95) 100%);
  pointer-events: none;
  transition: opacity 600ms ease;
}

/* --------------------------------------------------------------------------
   Emergence Cluster (Vine / Pods emerging around/behind the card)
   -------------------------------------------------------------------------- */
.wys-cluster {
  position: absolute;
  top: -38px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  transform: translateY(18px) scale(0.92);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.75)) brightness(0.85);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 700ms ease;
  will-change: transform, opacity;
}

.wys-cluster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.wys-cluster-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(216, 168, 62, 0.2), transparent 70%);
  mix-blend-mode: screen;
}

.wys-cluster--pepper {
  right: -24px;
  top: -42px;
  width: 290px;
  height: 290px;
}

.wys-cluster--cardamom {
  left: -24px;
  top: -42px;
  width: 290px;
  height: 290px;
}

.wys-cluster--cardamom .wys-cluster-glow {
  background: radial-gradient(circle at 50% 40%, rgba(110, 206, 138, 0.24), transparent 70%);
}

/* --------------------------------------------------------------------------
   Card Content & Editorial Typography
   -------------------------------------------------------------------------- */
.wys-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wys-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.wys-num {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: #d8a83e;
  line-height: 1;
}

.wys-origin {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfd0bd;
}

.wys-spice-name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              color 500ms ease;
}

.wys-essence {
  margin: 12px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  color: #f2ce77;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.wys-desc {
  margin: 0 0 24px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  line-height: 1.68;
  color: #cbd7ca;
  max-width: 440px;
}

.wys-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.wys-notes span {
  display: inline-block;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4eee3;
  backdrop-filter: blur(4px);
  transition: border-color 400ms ease, background 400ms ease, color 400ms ease;
}

/* --------------------------------------------------------------------------
   CTA Button: Smooth Reveal on Hover
   -------------------------------------------------------------------------- */
.wys-cta-wrap {
  width: 100%;
  margin-top: 4px;
}

.wys-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: #d8a83e;
  color: #0b1a11;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  opacity: 0.88;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 550ms ease,
              background 300ms ease,
              box-shadow 300ms ease,
              color 300ms ease;
  text-decoration: none;
  cursor: pointer;
}

.wys-arrow {
  display: inline-block;
  font-size: 1rem;
  transition: transform 300ms ease;
}

.wys-cta:hover {
  background: #f0c55d;
  color: #06110b;
  box-shadow: 0 12px 30px rgba(216, 168, 62, 0.4);
}

.wys-cta:hover .wys-arrow {
  transform: translateX(4px);
}

/* Cardamom CTA Specific Styling */
.wys-card--cardamom .wys-cta {
  background: #4e8c5f;
  color: #fcf9f4;
}

.wys-card--cardamom .wys-cta:hover {
  background: #5ea873;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(94, 168, 115, 0.4);
}

/* --------------------------------------------------------------------------
   INTERACTION STATES: BLACK PEPPER HOVER (500–800ms)
   -------------------------------------------------------------------------- */
.whats-your-spice.state-pepper .wys-card--pepper {
  transform: scale(1.025) translateY(-6px);
  z-index: 5;
}

.whats-your-spice.state-pepper .wys-card--pepper .wys-card-doorway {
  border-color: rgba(216, 168, 62, 0.55);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6),
              0 0 36px rgba(216, 168, 62, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(14, 34, 23, 0.72);
}

.whats-your-spice.state-pepper .wys-card--pepper .wys-card-bg {
  opacity: 0.65;
  filter: brightness(0.85) saturate(1.1);
  transform: scale(1.08);
}

.whats-your-spice.state-pepper .wys-cluster--pepper {
  opacity: 0.95;
  transform: translateY(-8px) scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.85)) brightness(1.02);
}

.whats-your-spice.state-pepper .wys-card--pepper .wys-cta {
  opacity: 1;
  transform: translateY(0);
  background: #f0c55d;
  box-shadow: 0 10px 28px rgba(216, 168, 62, 0.45);
}

.whats-your-spice.state-pepper .wys-card--pepper .wys-notes span {
  background: rgba(216, 168, 62, 0.14);
  border-color: rgba(216, 168, 62, 0.4);
  color: #fff3d4;
}

/* Dim & Blur Cardamom when Pepper is chosen */
.whats-your-spice.state-pepper .wys-card--cardamom {
  opacity: 0.38;
  filter: blur(2.5px) grayscale(0.2);
  transform: scale(0.975);
}

/* --------------------------------------------------------------------------
   INTERACTION STATES: CARDAMOM HOVER (500–800ms)
   -------------------------------------------------------------------------- */
.whats-your-spice.state-cardamom .wys-card--cardamom {
  transform: scale(1.025) translateY(-6px);
  z-index: 5;
}

.whats-your-spice.state-cardamom .wys-card--cardamom .wys-card-doorway {
  border-color: rgba(132, 204, 152, 0.55);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6),
              0 0 36px rgba(94, 168, 115, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(13, 34, 22, 0.72);
}

.whats-your-spice.state-cardamom .wys-card--cardamom .wys-card-bg {
  opacity: 0.65;
  filter: brightness(0.85) saturate(1.15);
  transform: scale(1.08);
}

.whats-your-spice.state-cardamom .wys-cluster--cardamom {
  opacity: 0.95;
  transform: translateY(-8px) scale(1.08) rotate(2deg);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.85)) brightness(1.02);
}

.whats-your-spice.state-cardamom .wys-card--cardamom .wys-cta {
  opacity: 1;
  transform: translateY(0);
  background: #5ea873;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(94, 168, 115, 0.45);
}

.whats-your-spice.state-cardamom .wys-card--cardamom .wys-notes span {
  background: rgba(94, 168, 115, 0.16);
  border-color: rgba(132, 204, 152, 0.45);
  color: #e5f7ea;
}

/* Dim & Blur Pepper when Cardamom is chosen */
.whats-your-spice.state-cardamom .wys-card--pepper {
  opacity: 0.38;
  filter: blur(2.5px) grayscale(0.2);
  transform: scale(0.975);
}

/* --------------------------------------------------------------------------
   Responsive & Mobile Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .whats-your-spice {
    padding: 70px 0 85px;
    min-height: auto;
  }
  .wys-portals {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 540px;
    margin: 0 auto;
  }
  .wys-header {
    margin-bottom: 34px;
  }
  .wys-title {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }
  .wys-sub {
    font-size: 0.95rem;
    margin-top: 10px;
  }
  .wys-card-doorway {
    min-height: 420px;
    height: auto;
    padding: 28px 20px;
    border-radius: 18px;
  }
  .wys-cluster {
    display: none !important; /* Keep mobile viewport clean, prevent overflow, reduce memory */
  }
  .wys-card-bg {
    opacity: 0.48;
  }
  .wys-spice-name {
    font-size: 2rem;
  }
  .wys-essence {
    font-size: 1.05rem;
    margin: 8px 0 10px;
  }
  .wys-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .wys-notes {
    margin-bottom: 20px;
    gap: 6px;
  }
  .wys-notes span {
    font-size: 0.6rem;
    padding: 5px 9px;
  }
  .wys-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.74rem;
    min-height: 48px;
    opacity: 1;
    transform: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* --------------------------------------------------------------------------
   Product Target Card Highlight
   -------------------------------------------------------------------------- */
.product-target-highlight {
  outline: 3px solid #d8a83e !important;
  outline-offset: 8px !important;
  box-shadow: 0 0 45px rgba(216, 168, 62, 0.45) !important;
  transition: outline 400ms ease, box-shadow 400ms ease;
}

