:root {
  --color-primary: #0A0A0A;
  --color-secondary: #1A1A1A;
  --color-accent: #D4AF37;
  --color-bg-light: #FFFDF5;
  --color-bg-alt: #FEF9E7;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Work Sans', system-ui, sans-serif;
}

/* =====================
   Button Base Fixes
   ===================== */
button,
.btn,
[class*="btn-"],
a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* =====================
   Scroll Animations
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

/* =====================
   Utility
   ===================== */
.rotate-180 {
  transform: rotate(180deg);
}

/* =====================
   Decorative Elements
   ===================== */

/* Dot grid pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Line grid pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-accent) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--color-accent),
    var(--color-accent) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* Mesh gradient */
.decor-mesh {
  background-image:
    radial-gradient(at 20% 30%, rgba(212,175,55,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(10,10,10,0.08) 0px, transparent 50%);
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
  top: -80px;
  right: -80px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(10,10,10,0.10) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, transparent 50%, rgba(212,175,55,0.12) 100%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(315deg, transparent 50%, rgba(212,175,55,0.12) 100%);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212,175,55,0.22) 0%, transparent 70%);
  filter: blur(48px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Concentric rings SVG-style */
.decor-rings-svg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(
      circle at center,
      transparent,
      transparent 40px,
      rgba(212,175,55,0.06) 41px,
      transparent 42px
    );
  pointer-events: none;
}

/* =====================
   Custom Components
   ===================== */

/* Gold accent text */
.text-gold {
  color: var(--color-accent);
}

/* Gold gradient text */
.text-gradient-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #F5D06B 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA Gradient Button (cta_style: gradient) */
.btn-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%);
  color: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

/* Gold shimmer animation */
@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-gold {
  background: linear-gradient(90deg, #D4AF37 25%, #F5D06B 50%, #D4AF37 75%);
  background-size: 200% auto;
  animation: gold-shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse ring for CTA */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(212,175,55,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

.pulse-cta {
  animation: pulse-ring 2.5s ease-in-out infinite;
}

/* Star rating */
.star-filled { color: #D4AF37; }
.star-empty { color: #e5e7eb; }

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

/* Dark card gold border on hover */
.card-dark-hover {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}
.card-dark-hover:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 8px 32px rgba(212,175,55,0.12);
}

/* Divider gold */
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  border: none;
  margin: 0 auto;
}

/* Section gold accent line */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
}

/* Order form gold focus ring */
.form-input-gold:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* Ingredient badge */
.ingredient-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #FFFDF5;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0A0A0A;
  transition: border-color 0.2s, background 0.2s;
}

.ingredient-badge:hover {
  border-color: var(--color-accent);
  background: #FEF9E7;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #F5D06B);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* FAQ Card style */
.faq-card {
  background: #FFFDF5;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(212,175,55,0.5);
}

/* Testimonial card */
.testimonial-card {
  background: #FFFDF5;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(212,175,55,0.12);
}

/* Header scrolled state */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Number counter animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-animate {
  animation: count-up 0.6s ease-out forwards;
}

/* Floating badge */
.floating-badge {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Gold underline decoration */
.heading-underline {
  position: relative;
  display: inline-block;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #F5D06B);
  border-radius: 9999px;
}

/* Background light */
.bg-light { background-color: var(--color-bg-light); }
.bg-alt { background-color: var(--color-bg-alt); }

/* Image fade-in */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Responsive table utility */
@media (max-width: 640px) {
  .responsive-table { font-size: 0.875rem; }
}

/* Print styles */
@media print {
  header, footer, #cookie-consent, #scroll-progress { display: none !important; }
  main { padding-top: 0 !important; }
}