/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Hero ── */
.hero {
  background-color: #3e1748;
}
.hero-bg {
  will-change: transform;
}
.hero-scrim {
  background: linear-gradient(
    135deg,
    rgba(62, 23, 72, 0.82) 0%,
    rgba(123, 45, 142, 0.65) 50%,
    rgba(62, 23, 72, 0.78) 100%
  );
}
.hero-wave {
  color: #fef9ee;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 64px;
}

/* ── Animations (progressive enhancement — content visible without JS) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-up { transform: translateY(32px); }
  .reveal-left { transform: translateX(-32px); }
  .reveal-right { transform: translateX(32px); }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
  }

  /* Stagger product cards */
  .product-card:nth-child(1) { transition-delay: 0ms; }
  .product-card:nth-child(2) { transition-delay: 120ms; }
  .product-card:nth-child(3) { transition-delay: 240ms; }

  /* Hero entrance */
  .hero-eyebrow { animation: fadeUp 0.8s ease forwards; }
  .hero-headline { animation: fadeUp 0.8s 0.15s ease forwards; opacity: 0; transform: translateY(24px); }
  .hero-sub { animation: fadeUp 0.8s 0.3s ease forwards; opacity: 0; transform: translateY(24px); }
  .hero-headline, .hero-sub { /* JS will add .revealed class; these are defaults for no-JS */ }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Typography helpers ── */
.section-eyebrow {
  letter-spacing: 0.12em;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ── Inputs ── */
.input-field {
  border: 2px solid #e8b8eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #3e1748;
  background: #faf0fb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.input-field::placeholder {
  color: #d78fd9;
}
.input-field:focus {
  border-color: #7B2D8E;
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.15);
}

/* ── Nav link underline on hover ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5c567;
  border-radius: 9999px;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile menu link ── */
.mobile-link {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.15s;
}
.mobile-link:hover {
  background: #f3d9f5;
}

/* ── Header scroll state ── */
#site-header {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header.scrolled {
  background: rgba(254, 249, 238, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(62, 23, 72, 0.08);
}
#site-header.scrolled .nav-link {
  color: #7B2D8E;
}
#site-header.scrolled .font-serif {
  color: #7B2D8E;
}

/* ── Map placeholder ── */
.map-container {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(62, 23, 72, 0.12);
}
