/* ==========================================================================
   SEMPRE BELLA — sistema visual (tokens, tipografia, componentes, animações)
   ========================================================================== */
:root {
  --cream: #fcf7f7;
  --cream-2: #f8eef1;
  --sand: #f2e4e8;
  --blush-50: #fdf2f7;
  --blush-100: #fae2ed;
  --blush-200: #f3c8db;
  --blush-300: #e7a6c3;
  --rose-400: #d57ba5;
  --rose-500: #cb4f89;
  --rose-600: #ae376f;
  --rose-700: #8a2856;
  --brand: #e8076e;          /* rosa do logotipo (usar com parcimônia) */
  --brand-soft: #f04d94;
  --wine-900: #250c1c;
  --wine-800: #34122a;
  --wine-700: #4a1a36;
  --gold-300: #e6d0a3;
  --gold-400: #d4b078;
  --gold-500: #b8935a;
  --gold-600: #9a7a44;
  --sage-100: #e8ede2;
  --sage-400: #9aa88c;
  --sage-500: #7c8b6f;
  --ink: #321e2a;
  --ink-2: #5d4553;
  --muted: #8b7381;
  --line: #eedde4;
  --line-2: #f5eaef;
  --white: #fff;
  --ok: #4f7a58;
  --ok-bg: #e9f3eb;
  --warn: #b7832a;
  --warn-bg: #fdf3de;
  --danger: #b4413f;
  --danger-bg: #fcebea;
  --info: #5a7aa0;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-xs: 0 1px 2px rgba(74, 26, 54, 0.06);
  --shadow-sm: 0 6px 18px -8px rgba(74, 26, 54, 0.18);
  --shadow: 0 18px 44px -20px rgba(74, 26, 54, 0.32);
  --shadow-lg: 0 34px 80px -34px rgba(74, 26, 54, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 78px;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blush-200); color: var(--wine-800); }

:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999; background: var(--wine-700); color: #fff;
  padding: 10px 18px; border-radius: 999px; transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section-tight { padding-block: clamp(48px, 7vw, 90px); }
.bg-cream-2 { background: var(--cream-2); }
.bg-blush { background: linear-gradient(180deg, var(--blush-50), var(--cream)); }
.bg-dark { background: radial-gradient(1200px 600px at 80% -10%, #5e2147 0, transparent 60%), var(--wine-800); color: var(--cream); }
.stack > * + * { margin-top: var(--stack, 16px); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .gap-3 { gap: 22px; } .gap-4 { gap: 34px; }
.grid { display: grid; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hide-mobile { display: initial; }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }
.only-mobile { display: none; }
@media (max-width: 760px) { .only-mobile { display: initial; } }

/* ----- Tipografia ----- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.04; color: var(--wine-700); }
.bg-dark .display, .bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--cream); }
.h1 { font-size: clamp(2.9rem, 7.2vw, 6rem); }
.h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h4 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--wine-700); line-height: 1.15; }
.italic, em.i { font-style: italic; }
.accent { font-style: italic; color: var(--rose-500); }
.bg-dark .accent { color: var(--gold-300); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.7; max-width: 58ch; }
.bg-dark .lead { color: rgba(252, 247, 247, 0.78); }
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.72rem; font-weight: 500; color: var(--gold-500);
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; transform-origin: left; }
.eyebrow.center-line::after { content: ""; width: 38px; height: 1px; background: currentColor; }
.bg-dark .eyebrow { color: var(--gold-300); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 20px; }
.section-head.center .lead { margin-inline: auto; }

/* ----- Botões ----- */
.btn {
  --btn-bg: var(--wine-700);
  --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 0; border-radius: 999px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(74, 26, 54, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--rose-600), var(--wine-700) 60%);
  opacity: 0; transition: opacity 0.4s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(74, 26, 54, 0.75); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ic { transition: transform 0.35s var(--ease); }
.btn:hover .ic.arrow { transform: translateX(4px); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }
.btn-gold { --btn-bg: var(--gold-500); --btn-fg: #2a1a10; box-shadow: 0 14px 30px -14px rgba(154, 122, 68, 0.8); }
.btn-gold::before { background: linear-gradient(120deg, var(--gold-400), var(--gold-500)); }
.btn-rose { --btn-bg: var(--rose-500); }
.btn-rose::before { background: linear-gradient(120deg, var(--rose-400), var(--rose-600)); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--wine-700); box-shadow: none; border: 1.5px solid rgba(74, 26, 54, 0.25);
}
.btn-ghost::before { background: var(--wine-700); }
.btn-ghost:hover { color: #fff; box-shadow: none; border-color: var(--wine-700); }
.bg-dark .btn-ghost { --btn-fg: var(--cream); border-color: rgba(252, 247, 247, 0.35); }
.bg-dark .btn-ghost::before { background: var(--cream); }
.bg-dark .btn-ghost:hover { color: var(--wine-800); border-color: var(--cream); }
.btn-soft { --btn-bg: var(--blush-100); --btn-fg: var(--wine-700); box-shadow: none; }
.btn-soft::before { background: var(--blush-200); }
.btn-danger { --btn-bg: var(--danger); }
.btn-danger::before { background: #8f2e2c; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-xs { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.link {
  position: relative; color: var(--rose-600); font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.link:hover { background-size: 100% 1px; color: var(--wine-700); }
.btn .ripple, .chip .ripple {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.7s var(--ease-in-out); pointer-events: none; z-index: 0;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ----- Ícones ----- */
.ic { display: inline-flex; flex: none; line-height: 0; }
.ic svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill svg { fill: currentColor; stroke: none; }

/* ----- Formulários ----- */
.field { display: block; position: relative; }
.field > label, .field-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.02em; }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; background: #fffcfd; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; outline: none; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #b6a6a9; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blush-200); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--rose-500); box-shadow: 0 0 0 4px rgba(203, 79, 137, 0.16); background: #fff; }
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 65, 63, 0.1); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a757a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; animation: shake 0.4s; }
.field-hint { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--blush-300); background: #fff;
  display: grid; place-items: center; transition: all 0.25s var(--spring); margin-top: 1px;
}
.check .box .ic { font-size: 14px; color: #fff; transform: scale(0); transition: transform 0.3s var(--spring); }
.check input:checked + .box { background: var(--rose-500); border-color: var(--rose-500); }
.check input:checked + .box .ic { transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--rose-500); outline-offset: 2px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--line); transition: background 0.3s; position: relative; flex: none; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.35s var(--spring);
}
.switch input:checked + .track { background: var(--rose-500); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--rose-500); outline-offset: 2px; }

/* ----- Chips / badges ----- */
.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); font-size: 0.9rem; cursor: pointer;
  transition: all 0.3s var(--ease); white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--rose-400); color: var(--rose-600); transform: translateY(-1px); }
.chip.is-active { background: var(--wine-700); border-color: var(--wine-700); color: #fff; box-shadow: 0 10px 22px -12px rgba(74, 26, 54, 0.8); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.04em; background: var(--blush-100); color: var(--rose-700); white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.gold { background: #f6ecd9; color: var(--gold-600); }
.badge.dark { background: var(--wine-700); color: #fff; }
.badge.muted { background: var(--line-2); color: var(--muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; display: inline-block; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); animation: pulse-ring 1.8s infinite; }
.dot-live.off { background: var(--rose-500); }
.dot-live.off::after { border-color: var(--rose-500); animation: none; opacity: 0.4; }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ----- Cartões ----- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s;
}
.card.flat { box-shadow: none; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blush-200); }
.card.soft { background: var(--blush-50); border-color: var(--blush-100); }
.divider { height: 1px; background: var(--line); border: 0; margin: 22px 0; }
.divider.gold { background: linear-gradient(90deg, transparent, var(--gold-400), transparent); }

.avatar {
  --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s) * 0.42); color: #fff;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-700));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Modal / Drawer / Toast ----- */
.overlay {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 18px;
  background: rgba(37, 12, 28, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.3s var(--ease) both;
}
.overlay.is-closing { animation: fade-out 0.25s var(--ease) both; }
.modal {
  width: min(560px, 100%); max-height: min(90vh, 900px); display: flex; flex-direction: column; background: var(--cream);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: modal-in 0.5s var(--spring) both;
}
.overlay.is-closing .modal { animation: modal-out 0.25s var(--ease) both; }
.modal.lg { width: min(820px, 100%); }
.modal.xl { width: min(1080px, 100%); }
.modal.sm { width: min(420px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 8px; }
.modal-head h3 { font-size: 1.7rem; }
.modal-body { padding: 10px 26px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 16px 26px 22px; border-top: 1px solid var(--line); background: #fff; }
.modal-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blush-50); color: var(--wine-700); display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.2s; }
.modal-x:hover { background: var(--blush-100); transform: rotate(90deg); }
@media (max-width: 640px) {
  .overlay { align-items: end; padding: 0; }
  .modal, .modal.lg, .modal.xl, .modal.sm { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheet-in 0.5s var(--ease) both; }
  .overlay.is-closing .modal { animation: sheet-out 0.25s var(--ease) both; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 20px; }
}
.drawer-wrap { position: fixed; inset: 0; z-index: 890; display: flex; justify-content: flex-end; background: rgba(37, 12, 28, 0.45); backdrop-filter: blur(4px); animation: fade-in 0.3s both; }
.drawer-wrap.is-closing { animation: fade-out 0.25s both; }
.drawer { width: min(520px, 100%); height: 100%; background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: drawer-in 0.5s var(--ease) both; }
.drawer-wrap.is-closing .drawer { animation: drawer-out 0.25s var(--ease) both; }
.drawer.wide { width: min(720px, 100%); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-body { padding: 22px 24px 30px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { to { transform: translateX(100%); } }

.toasts { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; max-width: calc(100vw - 36px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--wine-800); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 0.93rem; max-width: 420px; animation: toast-in 0.55s var(--spring) both;
}
.toast .ic { font-size: 20px; color: var(--gold-300); }
.toast.ok .ic { color: #9fd3a8; }
.toast.err { background: #7b2624; }
.toast.err .ic { color: #ffc7c4; }
.toast.is-leaving { animation: toast-out 0.3s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@media (max-width: 640px) { .toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; } .toast { max-width: none; } }

/* ----- Esqueleto de carregamento ----- */
.skeleton {
  position: relative; overflow: hidden; background: var(--line-2); border-radius: 12px; min-height: 16px;
}
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--blush-200); border-top-color: var(--rose-500); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: grid; place-items: center; padding: 60px 0; gap: 14px; color: var(--muted); }

/* ----- Alertas ----- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 0.92rem; line-height: 1.5; border: 1px solid transparent; }
.alert .ic { font-size: 20px; margin-top: 1px; }
.alert.info { background: #eef3f9; color: #35516f; border-color: #d9e4f1; }
.alert.ok { background: var(--ok-bg); color: #2f5a38; border-color: #cfe5d3; }
.alert.warn { background: var(--warn-bg); color: #7a5410; border-color: #f0dcae; }
.alert.danger { background: var(--danger-bg); color: #8b2c2a; border-color: #f4c9c7; }
.alert.rose { background: var(--blush-50); color: var(--rose-700); border-color: var(--blush-100); }

/* ==========================================================================
   ANIMAÇÕES DE REVELAÇÃO (scroll)
   ========================================================================== */
[data-reveal] {
  opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms); will-change: opacity, transform;
}
[data-reveal="up"], [data-reveal=""] { transform: translateY(34px); }
[data-reveal="down"] { transform: translateY(-34px); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="blur"] { transform: translateY(20px); filter: blur(10px); }
[data-reveal="arch"] { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); opacity: 1; }
[data-reveal="wipe"] { clip-path: inset(0 100% 0 0); opacity: 1; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal="arch"].is-in { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }
[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

/* texto dividido em palavras (títulos) */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-words .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--base, 0ms)); }
.split-words.is-in .w > span { transform: none; }

.sparkle-line { position: relative; display: inline-block; }
.sparkle-line svg.flourish { position: absolute; left: 0; bottom: -0.22em; width: 100%; height: 0.35em; overflow: visible; }
.flourish path { fill: none; stroke: var(--brand-soft); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) 0.5s; }
.is-in .flourish path, .flourish.is-in path { stroke-dashoffset: 0; }

/* gradiente "shimmer" em palavras de destaque */
.shine {
  background: linear-gradient(100deg, var(--rose-500) 0%, var(--gold-500) 35%, var(--rose-500) 70%, var(--rose-700) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 7s linear infinite;
}
.bg-dark .shine { background-image: linear-gradient(100deg, var(--gold-300) 0%, #fff 40%, var(--gold-400) 70%, var(--gold-300) 100%); }
@keyframes shine { to { background-position: -220% 0; } }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-rot { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* barra de progresso de rolagem */
.scroll-progress { position: fixed; z-index: 1100; left: 0; top: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-400), var(--brand), var(--wine-700)); pointer-events: none; }

/* brilho que segue o cursor (desktop) */
.cursor-glow {
  position: fixed; z-index: 1; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(231, 166, 195, 0.28), rgba(231, 166, 195, 0)); transition: opacity 0.6s; mix-blend-mode: multiply;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* grão sutil nas seções escuras */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* pétalas caindo (celebração) */
.petal-layer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -40px; width: var(--w, 16px); height: calc(var(--w, 16px) * 1.3); opacity: 0.9;
  background: radial-gradient(ellipse at 30% 30%, #fff3 0, transparent 50%), linear-gradient(135deg, var(--c1, #f3c8db), var(--c2, #d57ba5));
  border-radius: 80% 0 80% 0; animation: petal-fall var(--t, 4s) linear var(--dl, 0s) forwards;
}
@keyframes petal-fall {
  0% { transform: translate3d(0, -40px, 0) rotate(0) rotateX(0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate3d(var(--x1, 40px), 50vh, 0) rotate(180deg) rotateX(160deg); }
  100% { transform: translate3d(var(--x2, -30px), 110vh, 0) rotate(420deg) rotateX(320deg); opacity: 0.85; }
}

/* ----- Acessibilidade: reduzir movimento ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .split-words .w > span { transform: none !important; }
  .flourish path { stroke-dashoffset: 0 !important; }
  .petal-layer, .cursor-glow { display: none !important; }
}

@media print {
  .site-header, .site-footer, .toasts, .wa-fab, .scroll-progress { display: none !important; }
  body { background: #fff; }
}
