:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
  --color-bg-light: #ECFEFF;
  --color-bg-alt: #CFFAFE;
}

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

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

/* ─── Header scroll behavior ─── */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .header-logo-text {
  color: #0D4F6F !important;
}

#site-header.scrolled .header-nav-link {
  color: #374151 !important;
}

#site-header.scrolled .header-nav-link:hover {
  color: #0D4F6F !important;
}

#site-header.scrolled #mobile-menu-btn {
  color: #0D4F6F;
}

/* ─── Button base ─── */
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;
}

/* ─── 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);
}

.rotate-180 {
  transform: rotate(180deg);
}

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

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

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

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 188, 212, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(13, 79, 111, 0.12) 0%, transparent 60%);
}

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

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(0, 188, 212, 0.18);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(13, 79, 111, 0.15);
  bottom: -80px;
  left: -80px;
}

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

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.8; }
.decor-bold { opacity: 1; }

/* ─── Product image glow ─── */
.product-glow {
  filter: drop-shadow(0 20px 60px rgba(0, 188, 212, 0.3));
}

/* ─── Gradient backgrounds ─── */
.bg-hero-gradient {
  background: linear-gradient(135deg, #0D4F6F 0%, #1E6B8A 50%, #0D4F6F 100%);
}

.bg-ocean-light {
  background: linear-gradient(180deg, #ECFEFF 0%, #CFFAFE 100%);
}

/* ─── Star rating ─── */
.stars {
  color: #F59E0B;
  letter-spacing: 1px;
}

/* ─── Form styles ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #00BCD4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}

.form-input.error {
  border-color: #EF4444;
}

.form-error-msg {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

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

/* ─── Card hover effects ─── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ─── Accordion ─── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

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

/* ─── Trust badges ─── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Progress bar ─── */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #E5E7EB;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00BCD4, #0D4F6F);
  transition: width 1s ease-out;
}

/* ─── Section transitions ─── */
.section-wave {
  shape-outside: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* ─── Utility ─── */
.text-gradient {
  background: linear-gradient(135deg, #00BCD4, #0D4F6F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-accent-soft {
  border-color: rgba(0, 188, 212, 0.3);
}

.bg-accent-soft {
  background-color: rgba(0, 188, 212, 0.08);
}

/* ─── Mobile menu animation ─── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

#mobile-menu.visible {
  opacity: 1;
}

/* ─── Ingredient card ─── */
.ingredient-card {
  position: relative;
  overflow: hidden;
}

.ingredient-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.06), transparent);
  pointer-events: none;
}

/* ─── Spinner ─── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Responsive tweaks ─── */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }
}

@media (min-width: 768px) {
  .decor-gradient-blur::before {
    width: 600px;
    height: 600px;
  }
}