:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --font-main: 'Source Sans 3', system-ui, sans-serif;
}

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

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

/* Button base 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 — gated behind .js-anim so bots/screenshots see full content */
html.js-anim html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.js-anim 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; }

/* Rotate utility */
.rotate-180 {
  transform: rotate(180deg);
}

/* Transition helper */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

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

/* Pattern backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26,26,26,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(64,64,64,0.06) 0%, transparent 60%);
}

/* Accent elements */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26,26,26,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

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

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(26,26,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.decor-glow-element {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,26,26,0.07) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  border-radius: 50%;
}

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

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #F8F8F8;
}

/* =====================
   CARD STYLES
   ===================== */
.card-base {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #f1f1f1;
  transition: box-shadow 0.2s ease;
}

.card-base:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

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

/* =====================
   ORDER FORM
   ===================== */
.order-form-wrap {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 1.25rem;
  padding: 2rem;
}

/* Form fields */
.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.95rem;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #1A1A1A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.07);
}

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

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

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

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: #1A1A1A;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: normal;
}

.btn-submit:hover {
  background: #333;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================
   BADGE
   ===================== */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #1A1A1A;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.faq-answer.open {
  opacity: 1;
}

/* =====================
   PROGRESS / LOADING
   ===================== */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  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); }
}

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

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

/* Smooth image load */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

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