/* Shared premium effect for all homepage dynamic cards. */
.premium-tilt-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-lift: 0px;
  --card-scale: 1;
  position: relative;
  transform: perspective(1100px) rotateX(var(--card-rx)) rotateY(var(--card-ry))
    translateY(var(--card-lift)) scale(var(--card-scale));
  transform-style: preserve-3d;
  transform-origin: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--white, #fff);
  box-shadow: 0 .65rem 1.5rem rgba(7, 44, 30, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: transform 420ms cubic-bezier(.2,.75,.25,1),
    box-shadow 420ms cubic-bezier(.2,.75,.25,1), border-color 420ms ease;
  will-change: transform, box-shadow;
}

.premium-tilt-card::after {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.34) 50%, transparent 62%);
  transform: translateX(-70%) rotate(8deg);
  transition: opacity 220ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.premium-tilt-card:hover,
.premium-tilt-card:focus-within {
  --card-lift: -0.55rem;
  box-shadow: 0 1.5rem 3rem rgba(7, 44, 30, 0.24), 0 0 0 1px rgba(205, 164, 72, 0.32);
  border-color: rgba(205, 164, 72, 0.62);
}

.premium-tilt-card:hover::after,
.premium-tilt-card:focus-within::after {
  opacity: 1;
  transform: translateX(70%) rotate(8deg);
}

.premium-tilt-card > .horizontal-scroll-card-image,
.premium-tilt-card > .horizontal-scroll-card-content,
.premium-tilt-card > .news-card-content,
.premium-tilt-card > .vivo-card-image,
.premium-tilt-card > .event-date-box,
.premium-tilt-card > .event-info {
  transform: translateZ(1.25rem);
}

.premium-tilt-card.zoomed {
  --card-scale: 1.08;
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .premium-tilt-card {
    transform: none !important;
    transition: box-shadow 200ms ease, border-color 200ms ease;
  }

  .premium-tilt-card::after {
    display: none;
  }
}

/* Scroll-pinned Why Choose Us story layout. */
.why-story-section {
  height: 100svh;
  min-height: 100svh;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.why-story-section > .container {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-story-section > .container > header {
  margin-bottom: clamp(.45rem, 1.5vh, 1.1rem);
}

.why-story-section > .container > header h2 {
  margin-bottom: .35rem;
}

.why-story-section > .container > header p {
  line-height: 1.35;
}

.why-story-section .horizontal-scroll-container {
  display: block;
  position: relative;
}

.why-story-section .horizontal-scroll-nav-button,
.why-story-section #whyChooseUsDots {
  display: none !important;
}

.why-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.why-story-section #whyChooseUsScroll {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  width: 100%;
  min-height: 0;
  padding: clamp(.35rem, 1.5vw, 1.1rem) 0;
  overflow: visible;
  scroll-snap-type: none;
}

.why-story-visual {
  position: relative;
  min-height: clamp(19rem, 52vh, 34rem);
  perspective: 1200px;
}

.why-story-image-stack,
.why-story-image {
  position: absolute;
  inset: 0;
}

.why-story-image {
  margin: 0;
  opacity: 0;
  transform: translateY(2rem) rotate(-2deg);
  transform-style: preserve-3d;
  will-change: opacity, transform;
}

.why-story-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 1.4rem 1.6rem 0 rgba(17, 73, 48, .12), 0 1.5rem 3rem rgba(7, 44, 30, .2);
  border: 1px solid rgba(205, 164, 72, .28);
}

.why-story-copy {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-story-copy-stack {
  position: relative;
  min-height: 13rem;
}

.why-story-copy-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}

.why-story-kicker {
  display: block;
  margin-bottom: 1rem;
  color: var(--primary-green, #17613f);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.why-story-copy-item h3 {
  margin: 0 0 1rem;
  color: var(--primary-green-dark, #0f432c);
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.why-story-copy-item p {
  max-width: 34rem;
  margin: 0;
  color: var(--dark-gray, #4b514d);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

.why-story-progress {
  display: flex;
  gap: .55rem;
  margin-top: 2rem;
}

.why-story-progress-dot {
  width: 2.3rem;
  height: .2rem;
  border-radius: 999px;
  background: rgba(23, 97, 63, .2);
  transition: background 240ms ease, transform 240ms ease;
}

.why-story-progress-dot.is-active {
  background: var(--gold, #cda448);
  transform: scaleX(1.35);
  transform-origin: left center;
}

@media (max-width: 767px) {
  .why-story-section {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .why-story-section > .container {
    height: auto;
    min-height: auto;
  }

  .why-story-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0 3rem;
  }

  .why-story-section #whyChooseUsScroll {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0 3rem;
  }

  .why-story-visual {
    min-height: 18rem;
  }

  .why-story-copy-stack {
    min-height: 15rem;
  }

  .why-story-copy-item {
    position: relative;
    display: none;
  }

  .why-story-image {
    display: none;
  }

  .why-story-copy-item.is-active,
  .why-story-image.is-active {
    display: block;
    opacity: 1;
    transform: none;
  }
}
