:root {
  --color-primary:   #1E40AF;
  --color-secondary: #2563EB;
  --color-accent:    #22C55E;
  --body-bg:         #F9FAFB;
  --body-text:       #1F2937;
}

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

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--body-bg);
  color: var(--body-text);
}


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

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

img {
  max-width: 100%;
  height: auto;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* Trust ecom preset: blue-green focus */
.trust-ecom-card {
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.trust-ecom-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Scroll animations - support three attribute names */
[data-animate], [data-reveal], [data-fadein] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate]:not(.is-visible),
[data-reveal]:not(.is-visible),
[data-fadein]:not(.is-visible) {
  transform: translateY(1.5rem);
}

[data-animate].is-visible,
[data-reveal].is-visible,
[data-fadein].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* FAQ chevron rotation */
[data-faq-toggle].open [data-lucide="chevron-down"],
.rotate-180 {
  transform: rotate(180deg);
}

/* Native <details> FAQ */
details[open] .group-open\:rotate-45 { transform: rotate(45deg); }
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }

/* Focus visible */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-accent) 70%, white);
  outline-offset: 2px;
  border-radius: 0.875rem;
}

/* */
.mobile-menu-panel {
  display: none;
}
.mobile-menu-panel:target {
  display: block;
}
@media (min-width: 768px) {
  .mobile-menu-panel:target { display: none; }
}

/* */
#cookie-consent-accept:checked ~ .cookie-banner,
#cookie-consent-decline:checked ~ .cookie-banner {
  display: none !important;
}
.cookie-banner {
  transition: opacity 0.3s, transform 0.3s;
}

/* ===== CSS-only sticky mobile CTA ===== */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.75rem;
  background: white;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .sticky-cta-mobile { display: none; }
}

/* ===== <details> FAQ styling ===== */
details.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
details.faq-item summary {
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .faq-arrow {
  transition: transform 0.2s;
  flex-shrink: 0;
}
details.faq-item[open] summary .faq-arrow {
  transform: rotate(180deg);
}
details.faq-item > *:not(summary) {
  padding-bottom: 1rem;
  color: #6b7280;
}
