/* ============================================================
   Zelvora – styles.css | Ocean Vitality palette | Space Grotesk
   ============================================================ */

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

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

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Button / CTA normalization
   ============================================================ */
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 — gated behind html.js-anim so crawlers
   and no-JS environments always see content
   ============================================================ */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(2rem); /* slide_left variant */
  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);
}

/* Stagger delays for child elements */
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 backgrounds
   ============================================================ */

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

/* Line grid */
.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,
    rgba(0, 188, 212, 0.05) 0px,
    rgba(0, 188, 212, 0.05) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* Mesh gradient */
.decor-mesh {
  background-image:
    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.10) 0%, transparent 50%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.18) 0%, transparent 70%);
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(13, 79, 111, 0.14) 0%, transparent 70%);
}

/* Corner accents */
.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.15), 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.12), transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  background: radial-gradient(circle, rgba(0, 188, 212, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

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

/* ============================================================
   Order Form
   ============================================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.95rem;
  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.15);
}

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

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

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

/* ============================================================
   Star ratings
   ============================================================ */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* ============================================================
   Testimonial quote style
   ============================================================ */
.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
  display: block;
  font-family: Georgia, serif;
  margin-bottom: -1rem;
}

/* ============================================================
   Cookie toggle switch
   ============================================================ */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* ============================================================
   Scrollbar styling
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #00BCD4; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #0D4F6F; }

/* ============================================================
   Gradient text utility
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, #0D4F6F 0%, #00BCD4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Section separator wave
   ============================================================ */
.wave-separator {
  overflow: hidden;
  line-height: 0;
}

.wave-separator svg {
  display: block;
  width: 100%;
}

/* ============================================================
   Pill badge
   ============================================================ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

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

/* ============================================================
   Loading spinner
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px 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); }
}

/* ============================================================
   Notification toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #fff;
  color: #059669;
  border-left: 4px solid #059669;
}

.toast-error {
  background: #fff;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

/* ============================================================
   Responsive image fit
   ============================================================ */
.img-product {
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

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