/* ==========================================================================
   THEWEBVUE — shared design system
   Brand: deep violet + warm cream + amber accent (unchanged from the
   original site). Each category page tints this base with its own accent
   via [data-theme] so every section feels like its own occasion, while
   the header, footer, buttons and type stay one consistent brand.
   ========================================================================== */

:root {
  --ink: hsl(20 20% 15%);
  --bg: hsl(30 50% 98%);
  --card: hsl(0 0% 100%);
  --primary: hsl(260 40% 25%);
  --primary-light: hsl(275 40% 35%);
  --muted-fg: hsl(25 10% 45%);
  --border: hsl(30 15% 88%);
  --accent: hsl(25 85% 55%);
  --accent-2: hsl(25 85% 55%);
  --theme-wash-a: hsl(270 55% 92%);
  --theme-wash-b: hsl(30 80% 92%);
}

/* ---- Per-category themes: only the accent + wash colors change ---- */
[data-theme="wedding"] {
  --accent: hsl(345 55% 52%);
  --accent-2: hsl(38 70% 58%);
  --theme-wash-a: hsl(345 60% 94%);
  --theme-wash-b: hsl(38 75% 92%);
}
[data-theme="love"] {
  --accent: hsl(350 75% 50%);
  --accent-2: hsl(340 85% 65%);
  --theme-wash-a: hsl(350 80% 94%);
  --theme-wash-b: hsl(15 80% 92%);
}
[data-theme="birthday"] {
  --accent: hsl(18 88% 58%);
  --accent-2: hsl(172 55% 42%);
  --theme-wash-a: hsl(18 85% 94%);
  --theme-wash-b: hsl(172 45% 92%);
}
[data-theme="babyshower"] {
  --accent: hsl(265 40% 60%);
  --accent-2: hsl(150 35% 62%);
  --theme-wash-a: hsl(265 45% 95%);
  --theme-wash-b: hsl(150 40% 93%);
}
[data-theme="anniversary"] {
  --accent: hsl(40 65% 45%);
  --accent-2: hsl(345 40% 45%);
  --theme-wash-a: hsl(40 70% 93%);
  --theme-wash-b: hsl(345 45% 93%);
}
[data-theme="housewarming"] {
  --accent: hsl(18 62% 46%);
  --accent-2: hsl(95 30% 42%);
  --theme-wash-a: hsl(25 65% 93%);
  --theme-wash-b: hsl(95 35% 93%);
}
[data-theme="hub"] {
  --accent: hsl(345 60% 52%);
  --accent-2: hsl(172 55% 42%);
  --theme-wash-a: hsl(345 65% 93%);
  --theme-wash-b: hsl(172 45% 91%);
}
[data-theme="business"] {
  --ink: hsl(215 35% 14%);
  --primary: hsl(215 45% 18%);
  --primary-light: hsl(215 40% 28%);
  --accent: hsl(40 70% 50%);
  --accent-2: hsl(200 60% 45%);
  --theme-wash-a: hsl(215 40% 93%);
  --theme-wash-b: hsl(40 55% 92%);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg); }

::selection { background: var(--accent); color: white; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: staggerIn 0.6s cubic-bezier(.2,.7,.2,1) both; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: .08s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: .32s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: .4s; }
.reveal-stagger.in-view > *:nth-child(7) { animation-delay: .48s; }
@keyframes staggerIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- header ---------- */
.wv-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: hsla(30, 50%, 98%, 0.82); border-bottom: 1px solid var(--border); }
[data-theme="business"] .wv-header { background: hsla(215, 40%, 97%, 0.85); }
.wv-logo-mark { background: var(--primary); }

.wv-nav-link { position: relative; color: var(--muted-fg); font-weight: 500; font-size: 0.92rem; transition: color 0.2s ease; }
.wv-nav-link:hover { color: var(--ink); }
.wv-nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
.wv-nav-link:hover::after, .wv-nav-link.active::after { transform: scaleX(1); }

.wv-mobile-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.wv-mobile-panel.open { max-height: 420px; }

/* ---------- buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
  box-shadow: 0 10px 25px -8px hsla(260, 45%, 25%, 0.45);
}
.btn-brand:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -10px hsla(260, 45%, 25%, 0.5); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
  box-shadow: 0 10px 25px -8px hsla(25, 80%, 50%, 0.4);
}
.btn-accent:hover { transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--ink); transition: all 0.25s ease; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero-wash {
  background:
    radial-gradient(circle at 82% 15%, var(--theme-wash-a) 0%, transparent 52%),
    radial-gradient(circle at 8% 85%, var(--theme-wash-b) 0%, transparent 45%);
}
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }

/* ---------- category cards (home grid) ---------- */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.75rem;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
  box-shadow: 0 18px 40px -18px rgba(30,15,10,0.25);
}
.cat-card:hover { transform: translateY(-8px) scale(1.012); box-shadow: 0 26px 55px -16px rgba(30,15,10,0.32); }
.cat-card img { transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.5s ease; filter: saturate(0.92); }
.cat-card:hover img { transform: scale(1.08); filter: saturate(1.05); }
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,4,0) 30%, var(--tile-tint, rgba(10,6,4,0.82)) 100%);
  z-index: 1;
}
.cat-card .cat-card-body { position: relative; z-index: 2; }
.cat-card .cat-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: hsla(0,0%,100%,0.16); backdrop-filter: blur(6px);
  border: 1px solid hsla(0,0%,100%,0.3);
  color: white; font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.cat-card .cat-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: white; color: var(--ink);
  transition: transform 0.35s cubic-bezier(.34,1.6,.5,1), background 0.3s ease;
}
.cat-card:hover .cat-arrow { transform: rotate(45deg) scale(1.08); background: var(--accent); color: white; }

/* ---------- template cards (category pages) ---------- */
.tpl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.tpl-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -14px rgba(20,10,5,0.18); border-color: hsla(0,0%,0%,0.02); }
.tpl-card .tpl-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--border); }
.tpl-card .tpl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.tpl-card:hover .tpl-media img { transform: scale(1.07); }
.tpl-card .tpl-badge {
  position: absolute; top: 14px; left: 14px;
  background: hsla(0,0%,100%,0.92); backdrop-filter: blur(6px);
  color: var(--primary); font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.tpl-card.coming-soon .tpl-media img { filter: grayscale(0.55) brightness(0.85); }
.tpl-card.coming-soon .tpl-media::after {
  content: 'Coming Soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: hsla(215,40%,10%,0.45);
  color: white; font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em;
}

/* ---------- category page hero ---------- */
.cat-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--theme-wash-a) 0%, var(--bg) 100%);
}
.cat-hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; z-index: 0;
}

/* ---------- pricing ---------- */
.price-card { transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%); color: white; }

/* ---------- connect strip (phone / email / instagram) ---------- */
.connect-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-size: 0.88rem; font-weight: 600; color: var(--ink);
  transition: all 0.25s ease; background: var(--card);
}
.connect-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- footer ---------- */
.wv-footer { background: var(--primary); color: hsla(0,0%,100%,0.85); }
.wv-footer a { transition: color 0.2s ease; }
.wv-footer a:hover { color: white; }
.wv-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: hsla(0,0%,100%,0.1); border: 1px solid hsla(0,0%,100%,0.16);
  transition: all 0.25s ease;
}
.wv-social-icon:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- floating action buttons ---------- */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }
.fab:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- misc ---------- */
.gradient-text {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

@media (max-width: 640px) {
  .cat-card .cat-card-body { padding: 20px; }
}