:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
  --color-bg-light: #ECFEFF;
  --color-bg-alt: #CFFAFE;
  --font-main: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== BUTTON 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%;
  display: flex;
}

/* ========== SCROLL ANIMATIONS ========== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ========== HEADER SCROLL STATE ========== */
#site-header.scrolled {
  background-color: rgba(13, 79, 111, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#site-header.scrolled .header-logo-text {
  color: #ffffff;
}

#site-header.scrolled .header-nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#site-header.scrolled .header-nav-link:hover {
  color: #ffffff;
}

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

/* ========== DECORATIVE ELEMENTS ========== */

/* Dot grid pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0, 188, 212, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid pattern */
.decor-grid-lines {
  background-image:
    linear-gradient(rgba(0, 188, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 188, 212, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 188, 212, 0.05) 10px,
    rgba(0, 188, 212, 0.05) 20px
  );
}

/* Mesh gradient overlay */
.decor-mesh {
  background-image:
    radial-gradient(at 20% 50%, rgba(0, 188, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(13, 79, 111, 0.1) 0px, transparent 50%),
    radial-gradient(at 60% 80%, rgba(30, 107, 138, 0.08) 0px, transparent 50%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(13, 79, 111, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(0, 188, 212, 0.15), transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(13, 79, 111, 0.12), transparent 70%);
  pointer-events: none;
}

/* Glow element behind product */
.decor-glow-element {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* ========== STAR RATINGS ========== */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.star-rating svg {
  fill: currentColor;
}

/* ========== ORDER FORM ========== */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.order-form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}

.order-form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ========== FORM MESSAGES ========== */
.form-error-msg {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* ========== ACCORDION ========== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq-answer.open {
  max-height: 600px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* Override hidden class when menu is open */
#mobile-menu.open {
  display: block !important;
}

/* ========== PRODUCT IMAGE ========== */
.product-img-glow {
  filter: drop-shadow(0 20px 40px rgba(0, 188, 212, 0.25));
}

/* ========== BADGE ========== */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-new {
  background-color: rgba(0, 188, 212, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(0, 188, 212, 0.25);
}

/* ========== INGREDIENT CARDS ========== */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* ========== SECTION HEADINGS ========== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ========== PRIMARY GRADIENT ========== */
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.bg-accent-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

/* ========== PRINT ========== */
@media print {
  #site-header,
  #cookie-consent,
  footer {
    display: none !important;
  }
}