:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --font-main: 'Plus Jakarta Sans', 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 / CTA 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;
}

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

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

/* ========================
   Decorative Backgrounds
======================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.03) 10px,
    rgba(0,0,0,0.03) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(17,17,17,0.05) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(64,64,64,0.05) 0px, transparent 50%);
}

/* Intensity Modifiers */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Gradient Blur Blobs */
.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: radial-gradient(circle, rgba(17,17,17,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

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

/* Corner Accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(17,17,17,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(17,17,17,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Glow Element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(17,17,17,0.06) 0%, transparent 65%);
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

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

.faq-answer.open {
  max-height: 500px;
  transition: max-height 0.4s ease-in;
}

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

.form-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

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

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

/* ========================
   Order Form
======================== */
#order_form {
  scroll-margin-top: 5rem;
}

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

/* ========================
   Testimonials
======================== */
.testimonial-card {
  border-left: 4px solid #111111;
  padding-left: 1.5rem;
}

/* ========================
   Header Scroll State
======================== */
header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

/* ========================
   Mobile Menu Transition
======================== */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#mobile-menu.menu-open {
  display: block;
}

/* ========================
   Page Transition
======================== */
.page-fade-in {
  animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================
   Utility Helpers
======================== */
.text-balance {
  text-wrap: balance;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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