/* ==========================================================================
   Design system — extraído da arte "Encontro Sara Negócios · Reforma Tributária"
   ========================================================================== */
:root {
  /* Azuis (fundo noturno com brilho azul royal) */
  --navy-950: #030820;
  --navy-900: #050d2b;
  --navy-800: #0a1840;
  --navy-700: #10245e;
  --blue-500: #1f5bff;
  --blue-400: #3d7bff;

  /* Dourado (títulos, bordas, destaques) */
  --gold-100: #fff1c7;
  --gold-300: #f8d77e;
  --gold-400: #f2c25a;
  --gold-500: #e0a53a;
  --gold-700: #a8701f;
  --gold-gradient: linear-gradient(180deg, #fff3cf 0%, #f8d77e 35%, #e7ae45 70%, #c98a2b 100%);
  --gold-gradient-h: linear-gradient(90deg, #c98a2b 0%, #f8d77e 50%, #e0a53a 100%);

  /* Neutros */
  --white: #ffffff;
  --text: #e9eefc;
  --text-muted: #aab6d6;
  --line: rgba(242, 194, 90, 0.55);

  /* Superfícies (cards escuros com borda dourada) */
  --surface: rgba(5, 12, 38, 0.78);
  --surface-strong: #071233;

  --danger: #ff7a7a;
  --success: #47d18c;

  /* Tipografia */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --glow-gold: 0 0 0 1px var(--line), 0 0 24px rgba(242, 194, 90, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
strong { color: var(--white); font-weight: 700; }
a { color: inherit; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 10%, rgba(31, 91, 255, 0.35), transparent 70%),
    radial-gradient(50vw 40vh at 0% 0%, rgba(61, 123, 255, 0.25), transparent 70%),
    radial-gradient(70vw 50vh at 50% 110%, rgba(16, 36, 94, 0.9), transparent 70%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.gold-rule {
  height: 2px; width: min(420px, 90%);
  margin: 1rem 0 1.25rem;
  background: linear-gradient(90deg, transparent, var(--gold-300) 30%, #fff6dc 50%, var(--gold-300) 70%, transparent);
  box-shadow: 0 0 14px rgba(248, 215, 126, .7);
}

/* ---------- Botões ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }
.btn--gold {
  background: var(--gold-gradient);
  color: var(--navy-900);
  box-shadow: 0 8px 28px rgba(224, 165, 58, .35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 34px rgba(224, 165, 58, .5); }
.btn--ghost {
  background: rgba(255,255,255,.03);
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
}
.btn--ghost:hover { background: rgba(242, 194, 90, .1); }
.btn--sm { --h: 40px; padding: 0 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.spinner {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(5,13,43,.25); border-top-color: var(--navy-900);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5, 13, 43, .6);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 90px; }
.topbar__logo { width: 120px; height: auto; }
#inscricao { scroll-margin-top: 90px; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 4rem; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.02em;
}
.hero__title span { display: block; }
.hero__title-white { color: var(--white); text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hero__title .text-gold { filter: drop-shadow(0 4px 18px rgba(224,165,58,.25)); }
.hero__subtitle {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--white);
}
.hero__lead { margin: 0 0 1.75rem; font-size: 1.15rem; color: var(--text); max-width: 34ch; }

.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(75% 75% at 58% 42%, #000 62%, transparent 100%);
          mask-image: radial-gradient(75% 75% at 58% 42%, #000 62%, transparent 100%);
}
.hero__photo::before {
  content: ""; position: absolute; inset: 10% 5% 0 15%; z-index: -1;
  background: radial-gradient(closest-side, rgba(31,91,255,.55), transparent);
  filter: blur(30px);
}

/* Card de informações (data · horário · convidado) */
.info-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem;
  padding: 1rem 1.4rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--glow-gold), var(--shadow);
}
.info-card__item { display: flex; align-items: center; gap: .75rem; }
.info-card__label {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text);
}
.info-card__value {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.7rem; line-height: 1.05; color: var(--white);
}
.info-card__item--guest .info-card__value { text-transform: uppercase; font-size: 1.35rem; }
.info-card__divider { width: 1.5px; align-self: stretch; background: var(--gold-gradient); opacity: .8; }
.icon {
  width: 38px; height: 38px; flex: none;
  fill: none; stroke: var(--gold-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero__free { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(71,209,140,.18); }

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; }
.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--white);
}
.section__text { margin: 0 0 1rem; font-size: 1.08rem; color: var(--text); max-width: 56ch; }

.section__title--center { text-align: center; }
.section__intro { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; font-size: 1.05rem; color: var(--text-muted); }

/* Dúvidas */
.doubts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.doubt {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  transition: box-shadow .2s ease, transform .2s ease;
}
.doubt:hover { transform: translateY(-4px); box-shadow: var(--glow-gold); }
.doubt__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%;
  background: var(--gold-gradient); color: var(--navy-900);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
}
.doubt__q { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--white); }
.doubt p { margin: 0; color: var(--text); }

/* Simples e prático */
.learn {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16,36,94,.55), rgba(5,12,38,.35));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.learn .section__text:last-child { margin-bottom: 0; }
.learn__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.learn__list li { display: flex; gap: .85rem; align-items: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--white); }
.check {
  flex: none; width: 26px; height: 26px; padding: 5px; margin-top: 1px; border-radius: 50%;
  background: rgba(242,194,90,.15);
  fill: none; stroke: var(--gold-300); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* Detalhes */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 1.25rem; }
.detail {
  text-align: center; padding: 1.85rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--glow-gold);
}
.detail p { margin: 0; }
.detail__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px;
  background: rgba(242,194,90,.1); box-shadow: inset 0 0 0 1px var(--line);
}
.detail__icon .icon { width: 30px; height: 30px; }
.detail__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .3rem !important; }
.detail__value { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--white); }
.detail__sub { margin-top: .3rem !important; font-size: .95rem; color: var(--text-muted); }

/* Countdown */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 640px; margin: 0 auto;
}
.countdown__unit {
  text-align: center; padding: 1.1rem .5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--glow-gold);
}
.countdown__unit span {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.countdown__unit small { display: block; margin-top: .4rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Inscrição ---------- */
.form-card {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10,24,64,.92), rgba(5,12,38,.95));
  box-shadow: 0 0 0 1.5px var(--line), 0 0 40px rgba(242,194,90,.15), var(--shadow);
}

.form-card__head { text-align: center; margin-bottom: 2rem; }
.form-card__head .section__title { margin-bottom: .5rem; }
.form-card__head p { margin: 0; color: var(--text-muted); }

.field { margin: 0 0 1.35rem; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; padding: 0;
  margin-bottom: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--white);
}
.req { color: var(--gold-400); }
.field__hint { margin: -.15rem 0 .5rem; font-size: .88rem; color: var(--text-muted); }
.field__error { margin: .35rem 0 0; min-height: 0; font-size: .85rem; color: var(--danger); }
.field__error:empty { display: none; }

input[type="text"], input[type="tel"], textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(170,182,214,.28);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: rgba(170,182,214,.6); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 4px rgba(242,194,90,.15);
}
.is-invalid input[type="text"], .is-invalid input[type="tel"] { border-color: var(--danger); }

.options { display: grid; gap: .5rem; }
.field .option {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin: 0;
  padding: .75rem .95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(170,182,214,.2);
  background: rgba(255,255,255,.02);
  font-family: var(--font-body); font-weight: 400; font-size: .98rem; color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: rgba(242,194,90,.5); }
.field .option:has(input[type="radio"]:checked) { border-color: var(--gold-400); background: rgba(242,194,90,.08); color: var(--white); }
.option input[type="radio"] {
  appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(170,182,214,.6);
  display: grid; place-items: center; cursor: pointer;
}
.option input[type="radio"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-gradient); transform: scale(0); transition: transform .15s; }
.option input[type="radio"]:checked { border-color: var(--gold-400); }
.option input[type="radio"]:checked::after { transform: scale(1); }
.option input[type="radio"]:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.option--other input[type="text"] { flex: 1 1 180px; padding: .5rem .75rem; }
.option--other input[type="text"]:disabled { opacity: .45; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: .9rem 0 0; font-size: .92rem; text-align: center; color: var(--text-muted); }
.form__status.is-error { color: var(--danger); }
.form__status:empty { display: none; }
.form__note { margin: 1rem 0 0; text-align: center; font-size: .85rem; color: var(--text-muted); }

.success { text-align: center; padding: 1.5rem .5rem; }
.success:focus { outline: none; }
.success__icon {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-gradient); color: var(--navy-900);
  font-size: 2.2rem; font-weight: 900;
  box-shadow: 0 0 40px rgba(242,194,90,.45);
}
.success h3 { margin: 0 0 .75rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.success p { max-width: 44ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255,255,255,.06); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.footer img { width: 120px; height: auto; margin-bottom: .75rem; }
.footer p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.footer__copy a { color: var(--gold-300); text-decoration: none; }
.footer__copy a:hover { text-decoration: underline; }

/* Animação de entrada (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 1.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 520px; margin-inline: auto; }
  .doubts, .details { grid-template-columns: 1fr; }
  .learn { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 560px) {
  .section { padding: 3rem 0; }
  .info-card { flex-direction: column; align-items: flex-start; }
  .info-card__divider { width: 100%; height: 1.5px; align-self: auto; }
  .hero__actions .btn { width: 100%; }
  .countdown { gap: .5rem; }
  .countdown__unit { padding: .85rem .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
