/* ============================================================
   AMAZONIA — Custom Brand Styles
   Vinho com Guaraná | DACH Landing Page
   
   Supplements Tailwind CSS with:
   - Brand color custom properties
   - @font-face declarations
   - Custom animations and transitions
   - Pattern and texture backgrounds
   - Component-specific styles
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties (Brand Tokens)
   ---------------------------------------------------------- */
:root {
  --color-guarana-red: #ed1a3b;
  --color-guarana-red-hover: #d4162f;
  --color-guarana-red-light: rgba(237, 26, 59, 0.1);
  --color-blue-anthracite: #2a2a3b;
  --color-blue-anthracite-light: #3a3a4f;
  --color-amazonia-wine: #f4f3b8;
  --color-amazonia-wine-dark: #e8e7a0;
  --color-white: #ffffff;
  --color-off-white: #fafaf5;

  --font-display: 'FabiolaCapitals', serif;
  --font-accent: 'Fabiola Script', serif;
  --font-body: 'Lato', sans-serif;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------------------------
   2. @font-face — Fabiola local fonts
   ---------------------------------------------------------- */
@font-face {
  font-family: 'Fabiola Script';
  src: url('../assets/fonts/Fabiola/Fabiola%20Script/Fabiola-Script.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FabiolaCapitals';
  src: url('../assets/fonts/Fabiola/FabiolaCapitals/FabiolaCapitals-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FabiolaCapitals';
  src: url('../assets/fonts/Fabiola/FabiolaCapitals/FabiolaCapitals-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   3. Base Enhancements
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-blue-anthracite);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background-color: var(--color-guarana-red);
  color: var(--color-white);
}

/* ----------------------------------------------------------
   4. Navigation
   ---------------------------------------------------------- */
.nav-bar {
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
}

.nav-bar.scrolled {
  background-color: rgba(42, 42, 59, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-guarana-red);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

/* ----------------------------------------------------------
   5. CTA Buttons
   ---------------------------------------------------------- */
.cta-primary {
  background-color: var(--color-guarana-red);
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.cta-primary:hover {
  background-color: var(--color-guarana-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 26, 59, 0.35);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  background-color: transparent;
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cta-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

/* ----------------------------------------------------------
   6. Section Backgrounds
   ---------------------------------------------------------- */
.brand-bg-primary {
  background-color: var(--color-blue-anthracite);
  color: var(--color-white);
}

.brand-bg-wine {
  background-color: var(--color-amazonia-wine);
  color: var(--color-blue-anthracite);
}

.brand-bg-red {
  background-color: var(--color-guarana-red);
  color: var(--color-white);
}

.brand-bg-white {
  background-color: var(--color-white);
  color: var(--color-blue-anthracite);
}

.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/patterns/Amazonia_Leaf-seamless-pattern.png');
  background-repeat: repeat;
  background-size: 300px;
  opacity: 0.12;
  pointer-events: none;
}

/* ----------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 160%;
  background: radial-gradient(
    ellipse at center,
    rgba(237, 26, 59, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Hero photo background — colour fallback only; image lives on .hero-bg-parallax */
.hero-photo-bg {
  background-color: var(--color-blue-anthracite);
}

/* Parallax background layer — <img> element; JS moves via translateY on scroll */
.hero-bg-parallax {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 115%; /* extra height so parallax movement never shows a gap */
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Directional overlay — deep dark left (text readable) → lighter right (image shows) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1; /* sits above the parallax bg, below z-10 content */
  background: linear-gradient(
    110deg,
    rgba(42, 42, 59, 0.92) 0%,
    rgba(42, 42, 59, 0.80) 40%,
    rgba(42, 42, 59, 0.38) 100%
  );
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero-overlay {
    background: rgba(42, 42, 59, 0.75);
  }
}

/* ----------------------------------------------------------
   8. Pricing Cards
   ---------------------------------------------------------- */
.pricing-card {
  background: var(--color-white);
  border: 2px solid rgba(42, 42, 59, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 42, 59, 0.12);
}

.pricing-card--featured {
  border-color: var(--color-guarana-red);
  box-shadow: 0 8px 30px rgba(237, 26, 59, 0.12);
}

.pricing-card--featured:hover {
  box-shadow: 0 16px 50px rgba(237, 26, 59, 0.18);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background-color: var(--color-guarana-red);
  color: var(--color-white);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 0 6px 6px;
}

/* ----------------------------------------------------------
   9. FAQ Accordion
   ---------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid rgba(42, 42, 59, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-blue-anthracite);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-guarana-red);
}

.faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 1rem;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  color: rgba(42, 42, 59, 0.7);
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

/* ----------------------------------------------------------
   10. Sticky CTA Bar (Mobile)
   ---------------------------------------------------------- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--color-blue-anthracite);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  padding-left: calc(1rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

/* ----------------------------------------------------------
   11. Age Verification Modal
   ---------------------------------------------------------- */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(42, 42, 59, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.age-gate-overlay.dismissed {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.age-gate-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  transform: scale(1);
  transition: transform var(--transition-spring);
}

.age-gate-overlay.dismissed .age-gate-card {
  transform: scale(0.9);
}

/* ----------------------------------------------------------
   12. Scroll-Triggered Reveal Animations
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
.reveal-delay-5 { transition-delay: 0.58s; }
.reveal-delay-6 { transition-delay: 0.70s; }

/* ----------------------------------------------------------
   13. Occasion Cards
   ---------------------------------------------------------- */
.occasion-card {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 42, 59, 0.06);
  background: linear-gradient(135deg, rgba(244,243,184,0.15), rgba(244,243,184,0.03));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.occasion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* Image zoom on card hover */
.occasion-card img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.occasion-card:hover img {
  transform: scale(1.07);
}

/* ----------------------------------------------------------
   14. Trust Bar
   ---------------------------------------------------------- */
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.trust-icon-circle {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(237, 26, 59, 0.1);
}

/* ----------------------------------------------------------
   15. Mobile Menu
   ---------------------------------------------------------- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ----------------------------------------------------------
   16. Responsive
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }
  .pricing-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .sticky-cta-bar {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   17. Print
   ---------------------------------------------------------- */
@media print {
  .nav-bar, .sticky-cta-bar, .age-gate-overlay, .intro-overlay { display: none !important; }
}

/* ----------------------------------------------------------
   18. Intro Animation Overlay
   ---------------------------------------------------------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: var(--color-blue-anthracite);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  pointer-events: all;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay.dismissed {
  display: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.intro-omark {
  height: 112px;
  width: auto;
  opacity: 0;
  will-change: opacity;
}

.intro-logo {
  height: 88px;
  width: auto;
  opacity: 0;
  will-change: transform, opacity;
}

/* ----------------------------------------------------------
   19. Order Panel — slide-up tier selector before Stripe
   ---------------------------------------------------------- */

/* Backdrop */
.order-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.order-panel-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Panel */
.order-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8100;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(42, 42, 59, 0.18);
}

.order-panel.open {
  transform: translateY(0);
}

/* Drag handle */
.order-panel::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Header */
.order-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(42, 42, 59, 0.08);
}

.order-panel-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--color-blue-anthracite);
  letter-spacing: 0.03em;
}

.order-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-blue-anthracite);
  opacity: 0.4;
  padding: 0.25rem;
  border-radius: 6px;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.order-panel-close:hover {
  opacity: 1;
}

/* Tier grid */
.order-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  padding: 1rem 1.25rem;
}

/* Tier card */
.order-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem 0.875rem;
  border: 2px solid rgba(42, 42, 59, 0.1);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  gap: 0.2rem;
}

.order-tier-card:hover {
  border-color: var(--color-guarana-red);
  transform: translateY(-2px);
}

.order-tier-card.active {
  border-color: var(--color-guarana-red);
  background: rgba(237, 26, 59, 0.04);
}

/* Badge */
.order-tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-guarana-red);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.order-tier-badge--dark {
  background: var(--color-blue-anthracite);
}

/* Tier card image */
.order-tier-img {
  width: 64px;
  height: auto;
  margin: 0.375rem 0 0.25rem;
}

/* Tier card text */
.order-tier-name {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-blue-anthracite);
}

.order-tier-qty {
  font-size: 0.68rem;
  color: rgba(42, 42, 59, 0.5);
}

.order-tier-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-blue-anthracite);
  margin-top: 0.25rem;
}

.order-tier-saving {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-guarana-red);
}

/* Footer */
.order-panel-footer {
  padding: 0.75rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(42, 42, 59, 0.08);
}

.order-checkout-btn {
  display: block;
  width: 100%;
  background: var(--color-guarana-red);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.order-checkout-btn:hover {
  background: var(--color-guarana-red-hover);
  transform: translateY(-1px);
}

.order-panel-fine-print {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(42, 42, 59, 0.4);
  margin-top: 0.625rem;
}

/* ----------------------------------------------------------
   20. Testimonials Section
   ---------------------------------------------------------- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  line-height: 1.75;
  flex: 1;
  position: relative;
  padding-left: 1.25rem;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.1em;
  font-size: 2rem;
  color: var(--color-guarana-red);
  font-style: normal;
  line-height: 1;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-amazonia-wine);
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------
   21. Cookie Consent Banner
   ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  background: var(--color-blue-anthracite);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  flex: 1;
}

.cookie-banner-text a {
  color: var(--color-amazonia-wine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #ffffff;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* ----------------------------------------------------------
   22. Dynamic Scrolling & Interactive Experience
   ---------------------------------------------------------- */

/* === Section Dividers — SVG diagonal cuts between colour zones === */
.section-divider {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* background set inline per divider to match the section above it */
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (max-width: 768px) {
  .section-divider svg {
    height: 48px; /* shallower angle on mobile viewports */
  }
}

/* === Float animation — hero bottle mockup === */
@keyframes float {
  0%,  100% { transform: translateY(0px); }
  50%        { transform: translateY(-12px); }
}

.hero-float {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1.4s; /* wait for reveal to finish */
}

/* === Reveal Variants === */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* === JS Parallax elements === */
[data-parallax] {
  will-change: transform;
}

/* === Pricing card — richer entrance on visible === */
.pricing-card.reveal.visible {
  /* already handled by .reveal.visible, but ensure no scale artefact */
  transform: translateY(0) scale(1);
}

/* === Respect reduced-motion preference === */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transition: opacity 0.3s ease;
    transform: none;
  }
  .hero-float {
    animation: none;
  }
  .hero-bg-parallax {
    transform: none !important;
  }
}


/* ----------------------------------------------------------
   Waitlist Section
   Toggled visible by initWaitlistMode() — hidden by default.
   ---------------------------------------------------------- */
.waitlist-hidden {
  display: none;
}

.waitlist-form {
  width: 100%;
}

.waitlist-form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

@media (max-width: 540px) {
  .waitlist-form-row {
    flex-direction: column;
  }
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition-base),
              background var(--transition-base);
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.waitlist-input:focus {
  border-color: var(--color-amazonia-wine);
  background: rgba(255, 255, 255, 0.12);
}

.waitlist-submit {
  flex-shrink: 0;
  white-space: nowrap;
}

.waitlist-privacy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.75rem;
}

.waitlist-privacy a {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-error {
  font-size: 0.875rem;
  color: #ff6b6b;
  min-height: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.waitlist-input.input-error {
  border-color: #ff6b6b;
}


/* ----------------------------------------------------------
   Order Panel — B2B teaser line
   ---------------------------------------------------------- */
.order-panel-b2b {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(42, 42, 59, 0.55);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(42, 42, 59, 0.08);
}

.order-panel-b2b a {
  color: var(--color-guarana-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.order-panel-b2b a:hover {
  color: var(--color-blue-anthracite);
}


/* ----------------------------------------------------------
   23. Occasions Carousel — mobile horizontal swipe
   ---------------------------------------------------------- */
@media (max-width: 639px) {
  .occasions-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.875rem;
    padding-top: 12px;
    padding-bottom: 1.25rem;
    margin-top: -12px;
    touch-action: pan-x pinch-zoom;
  }
  .occasions-carousel::-webkit-scrollbar { display: none; }
  .occasions-carousel .occasion-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
    overflow: hidden;
  }
  /* Disable hover lift on touch — prevents clip against section overflow:hidden */
  .occasion-card:hover {
    transform: none;
  }
}

@media (min-width: 640px) {
  .occasions-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .occasions-carousel {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Swipe hint — visible only on mobile */
.occasions-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .occasions-swipe-hint { display: none; }
}


/* ----------------------------------------------------------
   24. Ingredient Section — "Was steckt drin?" (P2)
   ---------------------------------------------------------- */
.ingredient-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 2rem;
}

.ingredient-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(42, 42, 59, 0.08);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.ingredient-card:hover {
  border-color: var(--color-guarana-red);
  box-shadow: 0 4px 20px rgba(237, 26, 59, 0.08);
}

.ingredient-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-guarana-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
  color: var(--color-guarana-red);
  flex-shrink: 0;
}

.ingredient-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-blue-anthracite);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.ingredient-desc {
  font-size: 0.7rem;
  color: rgba(42, 42, 59, 0.45);
  line-height: 1.4;
}

.ingredient-sep {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-guarana-red);
  flex-shrink: 0;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  opacity: 0.5;
}

@media (max-width: 479px) {
  .ingredient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }
  .ingredient-sep { display: none; }
  .ingredient-card--last { grid-column: 1 / -1; }
}


/* ----------------------------------------------------------
   25. Hero Bottle Frame — integrated dark treatment (P5)
   ---------------------------------------------------------- */
.hero-bottle-frame {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(42, 42, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.hero-bottle-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(42, 42, 59, 0.3));
  pointer-events: none;
}

.hero-bottle-frame img {
  display: block;
  width: 100%;
}


/* ----------------------------------------------------------
   26. Social Proof / Press Section — "Bekannt aus"
   ---------------------------------------------------------- */
.press-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.press-logo-slot {
  width: 108px;
  height: 34px;
  background: rgba(42, 42, 59, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  color: rgba(42, 42, 59, 0.18);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------
   27. Scroll-to-top Button
   ---------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 35;
  width: 42px;
  height: 42px;
  background: var(--color-guarana-red);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease,
              transform 0.3s ease,
              background var(--transition-fast),
              box-shadow var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(237, 26, 59, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--color-guarana-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(237, 26, 59, 0.42);
}

@media (max-width: 1023px) {
  /* On mobile, float above the sticky CTA bar */
  .scroll-top-btn { bottom: 4.75rem; }
}


/* ----------------------------------------------------------
   28. Language Toggle Button
   ---------------------------------------------------------- */
.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  text-transform: uppercase;
  line-height: 1.5;
}

.lang-toggle:hover {
  color: var(--color-amazonia-wine);
  border-color: rgba(244, 243, 184, 0.4);
}


/* ----------------------------------------------------------
   29. Cookie Banner — Brand refinement (P6)
   ---------------------------------------------------------- */
/* Swap the faint white border-top for a guarana-red accent */
.cookie-banner {
  border-top: 2px solid var(--color-guarana-red) !important;
}

/* ----------------------------------------------------------
   31. Marquee Ticker
   ---------------------------------------------------------- */
.marquee-band {
  background: var(--color-guarana-red);
  overflow: hidden;
  padding: 11px 0;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-content {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ----------------------------------------------------------
   32. Grain Texture Overlay
   ---------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ----------------------------------------------------------
   30. Light Mode — prefers-color-scheme overrides
   ---------------------------------------------------------- */
/* Brand is dark-first (Blue Anthracite = intentional premium aesthetic).
   Dark sections stay dark. These overrides refine text-colour contrast
   for any blue-anthracite used on white/off-white surfaces, and add
   subtle nav separation so the dark nav doesn't float on a light OS chrome. */
@media (prefers-color-scheme: light) {
  :root {
    /* Slightly deeper blue for sharper contrast when used as text on white */
    --color-blue-anthracite: #1a1a28;
    --color-blue-anthracite-light: #28283a;
  }

  /* Nav — add a faint bottom border so the dark bar separates from OS light chrome */
  #navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
