/* ==========================================================================
   Fragrance inventory bridge — carousel layout (white / coral CTA)
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-cta: #f8948d;
  --color-cta-hover: #f67f76;
  --font-sans:
    "Futura Cyrillic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cta-bar-height: 4.5rem;
  --footer-height: 5.5rem;
  --transition: 0.2s ease;
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.4;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Main — carousel fills space above CTA
   -------------------------------------------------------------------------- */

.page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.carousel-section {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  touch-action: none;
  user-select: none;
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 68%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.4;
  transform: scale(0.86);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CTA bar — sits directly above footer
   -------------------------------------------------------------------------- */

.cta-bar {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem 1rem;
  background-color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Honeypot
   -------------------------------------------------------------------------- */

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
  border: none;
  background: transparent;
}

/* --------------------------------------------------------------------------
   CTA — luxe coral pill (gradient + glow + light sheen)
   -------------------------------------------------------------------------- */

.cta-vault {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6ece7;
  /* Sampled from assets/carousel/6.webp (Herod espresso card) */
  background-image: linear-gradient(
    135deg,
    #6c6464 0%,
    #473a3a 45%,
    #221a1a 100%
  );
  background-color: #2a2020;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow:
    0 12px 28px -10px rgba(34, 26, 26, 0.75),
    0 2px 6px -2px rgba(34, 26, 26, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

/* Spray-droplet glyph before the label */
.cta-vault::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ffffff 0%, #e8d9d2 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* Slow light-sheen sweep */
.cta-vault::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: cta-sheen 4.5s ease-in-out infinite;
}

@keyframes cta-sheen {
  0%,
  100% {
    transform: translateX(-120%);
  }
  55%,
  70% {
    transform: translateX(120%);
  }
}

.cta-vault:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 34px -10px rgba(34, 26, 26, 0.9),
    0 4px 10px -2px rgba(34, 26, 26, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45);
}

.cta-vault:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 8px 18px -10px rgba(34, 26, 26, 0.8),
    inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cta-vault:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cta-vault:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cta-vault:disabled::before,
.cta-vault:disabled::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta-vault::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Footer — pinned to bottom via flex layout
   -------------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--color-bg);
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.625rem;
  font-weight: 400;
  color: #666666;
  max-width: 40rem;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  font-size: 0.625rem;
  font-weight: 400;
  color: #666666;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 55%;
  }

  .cta-vault {
    max-width: 22rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 72%;
  }

  .cta-vault {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    padding: 0.9rem 1.75rem;
  }

  .site-footer {
    padding: 0.85rem 1rem 1rem;
  }
}
