:root{
  --color-primary:#4A4035;
  --color-secondary:#6A5A4A;
  --color-accent:#F5E6D3;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Outfit', system-ui, sans-serif; }

::selection { background: color-mix(in srgb, var(--color-accent) 85%, white); color: #111827; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-secondary) 55%, white);
  outline-offset: 2px;
  border-radius: 0.75rem;
}

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

/* Premium motion + tactile */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Animations */
[data-animate]{
  opacity:0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
[data-animate].is-visible{
  opacity:1;
  transform: translateY(0);
}
.rotate-180 { transform: rotate(180deg); }

/* Decorative elements */
.decor-grid-dots{
  background-image: radial-gradient(circle at 1px 1px, rgba(74,64,53,0.28) 1px, transparent 0);
  background-size: 18px 18px;
}
.decor-grid-lines{
  background-image:
    linear-gradient(to right, rgba(74,64,53,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74,64,53,0.10) 1px, transparent 1px);
  background-size: 36px 36px;
}
.decor-diagonal{
  background-image: repeating-linear-gradient(135deg, rgba(74,64,53,0.10) 0, rgba(74,64,53,0.10) 1px, transparent 1px, transparent 12px);
}
.decor-mesh{
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(245,230,211,0.55), transparent 55%),
    radial-gradient(900px 500px at 85% 25%, rgba(106,90,74,0.18), transparent 60%),
    radial-gradient(700px 420px at 60% 95%, rgba(74,64,53,0.14), transparent 55%);
}

.decor-gradient-blur{ position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after{
  content:"";
  position:absolute;
  inset:auto;
  pointer-events:none;
  filter: blur(48px);
  opacity: .55;
}
.decor-gradient-blur::before{
  width: 420px; height: 420px;
  top: -140px; left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(245,230,211,0.9), transparent 60%);
}
.decor-gradient-blur::after{
  width: 520px; height: 520px;
  bottom: -220px; right: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(106,90,74,0.32), transparent 60%);
}

.decor-corner-tr{ position: relative; }
.decor-corner-tr::after{
  content:"";
  position:absolute;
  top:-1px; right:-1px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at 100% 0%, rgba(245,230,211,0.75), transparent 55%);
  pointer-events:none;
  border-top-right-radius: 1.5rem;
}
.decor-corner-bl{ position: relative; }
.decor-corner-bl::after{
  content:"";
  position:absolute;
  bottom:-1px; left:-1px;
  width: 200px; height: 200px;
  background: radial-gradient(circle at 0% 100%, rgba(74,64,53,0.16), transparent 60%);
  pointer-events:none;
  border-bottom-left-radius: 1.5rem;
}

.decor-glow-element{ position: relative; }
.decor-glow-element::before{
  content:"";
  position:absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 45%, rgba(245,230,211,0.65), transparent 60%);
  filter: blur(22px);
  opacity: .75;
  pointer-events:none;
  z-index: -1;
}

.decor-rings-svg{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='720' viewBox='0 0 720 720'%3E%3Cg fill='none' stroke='%234A4035' stroke-opacity='.12'%3E%3Ccircle cx='360' cy='360' r='60'/%3E%3Ccircle cx='360' cy='360' r='120'/%3E%3Ccircle cx='360' cy='360' r='180'/%3E%3Ccircle cx='360' cy='360' r='240'/%3E%3Ccircle cx='360' cy='360' r='300'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 720px 720px;
}

.decor-subtle{ opacity: .06; }
.decor-moderate{ opacity: .10; }
.decor-bold{ opacity: .18; }

/* Form polish */
input[type="text"], input[type="tel"], input[type="email"], textarea, select{
  -webkit-tap-highlight-color: transparent;
}
input::placeholder, textarea::placeholder{ color: #9CA3AF; }

/* Soft separators */
.hr-soft{
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(17,24,39,0.10), transparent);
}

/* Micro UI */
.badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 9999px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(10px);
}

/* Sticky header safe area on iOS */
@supports (padding: max(0px)) {
  .safe-bottom { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
}