/* ---------- Design tokens ---------- */
:root {
  --bg: #fffaf0;
  --bg-alt: #fff1dc;
  --surface: #ffffff;
  --text: #2a2140;
  --muted: #6f6788;
  --primary: #eb1b5b;
  --primary-hover: #ce1a5c;
  --on-primary: #ffffff;
  --accent: #f8ea25;
  --on-accent: #2a2140;
  --border: #f0dfc6;
  --shadow: 0 10px 30px rgba(235, 27, 91, 0.12);
  --radius: 22px;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Unbounded", "Nunito", system-ui, sans-serif;
}

:root:not([data-theme="light"]) { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16122a;
    --bg-alt: #1d1838;
    --surface: #251f45;
    --text: #f6f2ff;
    --muted: #b4acd4;
    --primary: #ff4d86;
    --primary-hover: #ff72a1;
    --on-primary: #16122a;
    --border: #38306a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16122a;
  --bg-alt: #1d1838;
  --surface: #251f45;
  --text: #f6f2ff;
  --muted: #b4acd4;
  --primary: #ff4d86;
  --primary-hover: #ff72a1;
  --on-primary: #16122a;
  --border: #38306a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  transition: background 0.25s, color 0.25s;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; }
.btn-ghost:hover { background: var(--primary); color: var(--on-primary); }
.btn-light { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-light:hover { background: #fff36b; border-color: #fff36b; }

.icon-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.hero-inner { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.55; }
.blob-1 { width: 320px; height: 320px; background: var(--accent); top: -90px; left: -80px; }
.blob-2 { width: 240px; height: 240px; background: var(--primary); top: 120px; right: -70px; opacity: 0.3; }
.blob-3 { width: 160px; height: 160px; background: #6ad4ff; bottom: -40px; left: 18%; opacity: 0.35; }

.pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 820px; margin: 0 auto 20px; }
.hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 4px;
}
:root[data-theme="dark"] .hl { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { color: #fff; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats { list-style: none; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 48px 0 0; }
.stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 26px;
  min-width: 150px;
}
.stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 540px; margin: 0 auto 40px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; flex: none; }
.tile { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 1.5rem; }
.tile-lg { width: 72px; height: 72px; border-radius: 24px; font-size: 2rem; margin-bottom: 12px; }

/* ---------- Packages ---------- */
.package { position: relative; display: flex; flex-direction: column; }
.package .btn { margin-top: auto; text-align: center; }
.package.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 999px;
}
.ticks { list-style: none; padding: 0; margin: 12px 0 24px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.steps li { text-align: center; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); }
.num {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Reviews ---------- */
.quote { margin: 0; font-size: 1.05rem; }
.quote footer { margin-top: 14px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary), #ff8a5c);
  color: #fff;
  text-align: center;
  border-radius: 32px;
  padding: 56px 24px;
}
.cta h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta p { max-width: 480px; margin: 0 auto 24px; opacity: 0.95; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Inner pages ---------- */
.link-card { display: block; color: inherit; text-decoration: none; text-align: center; }
.page-head { text-align: center; padding: 56px 0 24px; background: var(--bg-alt); }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.page-head .lead { margin-bottom: 0; }
.section-tight { padding-top: 40px; }
.narrow { max-width: 760px; }
.page-cta { text-align: center; margin-top: 40px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.item-media { aspect-ratio: 4 / 5; background: var(--bg-alt); display: grid; place-items: center; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.item-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, var(--bg-alt)), color-mix(in srgb, var(--primary) 22%, var(--bg-alt))); }
.item-fallback img { width: 55%; height: auto; object-fit: contain; opacity: 0.9; }
.item-body { padding: 20px 24px 24px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.meta li { background: var(--bg-alt); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; }
.meta .price-tag { background: var(--accent); color: var(--on-accent); }

.price-card { margin-bottom: 20px; }
.price-card:hover { transform: none; box-shadow: none; }
.price-card h2 { font-size: 1.2rem; color: var(--primary); }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.price-name small { display: block; font-size: 0.85rem; }
.price-dots { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.price-val { white-space: nowrap; }

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--primary); font-weight: 700; text-decoration: none; }
.menu-btn { display: none; }
.icon-btn { display: inline-grid; place-items: center; padding: 0; }
.icon-btn .i-sun { display: none; }
.icon-btn[data-mode="dark"] .i-sun { display: inline; }
.icon-btn[data-mode="dark"] .i-moon { display: none; }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 1em; height: 1em; vertical-align: 0; }
.pill .icon { width: 1em; height: 1em; color: var(--primary); }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 32px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-title { font-weight: 800; min-width: 88px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.filters-reset { justify-self: start; color: var(--primary); font-weight: 700; }
.empty a { color: var(--primary); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal:hover { transform: none; box-shadow: none; }
.legal h2 { font-size: 1.1rem; color: var(--primary); margin-top: 1.6em; }
.legal > h2:first-child { margin-top: 0; }
.legal p { color: var(--text); margin-bottom: 0.9em; }
.seller { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.seller dt { color: var(--muted); font-weight: 700; }
.seller dd { margin: 0; overflow-wrap: anywhere; }
.footer-legal { padding-top: 14px; font-size: 0.9rem; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: var(--primary); }

/* ---------- Ordering ---------- */
.order-btn { position: relative; }
.badge-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; }
.flash-wrap { padding-top: 14px; }
.flash { margin: 0; padding: 12px 18px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border: 1px solid var(--primary); font-weight: 700; }
.flash a { color: var(--primary); margin-left: 6px; }
.item-action { margin-top: 16px; }
.item-action .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 800; }
.btn-added { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn-added:hover { background: var(--accent); border-color: var(--primary); }
button.btn { font-family: inherit; cursor: pointer; }
.btn-block { width: 100%; font-size: 1.05rem; }

.order-card { margin-bottom: 20px; }
.order-card:hover { transform: none; box-shadow: none; }
.order-card h2 { font-size: 1.15rem; color: var(--primary); margin-top: 0.4em; }
.order-form h2:not(:first-of-type) { margin-top: 1.4em; }
.chosen { list-style: none; padding: 0; margin: 0 0 12px; }
.chosen li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.chosen small { display: block; }
.price-tag-inline { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 1px 10px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.add-more { margin: 8px 0 0; }
.add-more a { color: var(--primary); font-weight: 700; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-weight: 800; }
.req { color: var(--primary); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field input[type="number"], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.has-error input, .has-error textarea { border-color: var(--primary); }
.error { color: var(--primary); font-weight: 700; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); cursor: pointer; font-weight: 700; }
.radio:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--bg)); }
.radio input, .checkbox input { accent-color: var(--primary); }
.consent { margin: 22px 0 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.checkbox a { color: var(--primary); font-weight: 700; }
.form-alert { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--primary); margin-bottom: 16px; font-weight: 700; }
.form-alert p { margin: 0; }
.small { font-size: 0.85rem; margin: 10px 0 0; text-align: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; }
.thanks h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 4px; margin: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
}

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

/* ---------- Error pages ---------- */
.error-page { min-height: 62vh; display: flex; align-items: center; }
.error-page .hero-inner { width: 100%; }
.error-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5.5rem, 22vw, 11rem);
  line-height: 1;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--primary), #ff9a3c 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: error-float 4s ease-in-out infinite;
}
@keyframes error-float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .error-code { animation: none; } }
