/* =========================================================
   Loucos por Padaria 2026 - Landing page de inscrição
   ========================================================= */

:root {
  --orange: #f28c1e;
  --orange-dark: #d9730a;
  --orange-text: #803a00;
  --wine: #7a1418;
  --wine-dark: #5a0e11;
  --blue: #2e6fc6;
  --gold: #c99a2e;
  --ink: #2a1a1a;
  --muted: #5e4d48;
  --light: #ececee;
  --beige: #d8d0c7;
  --beige-soft: #ece6df;
  --white: #ffffff;
  --dark: #1c1414;
  --whats: #25d366;
  --error: #c0262d;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(60, 20, 20, .35);
  --shadow-sm: 0 6px 18px -8px rgba(60, 20, 20, .25);

  --font-title: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; }
p { margin: 0; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; margin-top: 40px; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--wine);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 800 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--primary { --bg: var(--orange); --fg: var(--wine-dark); }
.btn--primary:hover { --bg: #f79a33; }
.btn--ghost { --bg: transparent; --fg: var(--wine); border-color: var(--wine); }
.btn--ghost:hover { --bg: var(--wine); --fg: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--wine); }
.btn--whats { --bg: var(--whats); --fg: #0b3d1f; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 236, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 20, 24, .08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.topbar__brand img { height: 52px; width: auto; }
.topbar__nav { display: flex; gap: 26px; }
.topbar__nav a { text-decoration: none; font-weight: 700; color: var(--wine); font-size: 15px; }
.topbar__nav a:hover { color: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, var(--light) 0%, #e2dfdc 100%);
  padding: 48px 0 140px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero__logo { width: min(400px, 85%); height: auto; margin-bottom: 12px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); }
.hero__eyebrow {
  font: 800 clamp(26px, 3.4vw, 40px)/1 var(--font-title);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero__eyebrow span { color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-weight: 700; margin-left: 6px; }
.hero__save {
  margin-top: 18px;
  display: inline-block;
  font: 800 clamp(20px, 2.4vw, 26px)/1.2 var(--font-title);
  color: var(--white);
  background: var(--wine);
  padding: 8px 18px;
  border-radius: 12px;
  text-transform: uppercase;
}
.hero__save strong { color: var(--orange); }
.hero__realizacao {
  margin-top: 16px;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.hero__realizacao-label {
  font: 800 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.hero__realizacao img { height: 46px; width: auto; }
.hero__realizacao img[alt="Epadoca"] { height: 32px; }
.hero__realizacao-sep { width: 1px; align-self: stretch; background: #e4dcd5; }
.hero__title {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--wine);
}
.hero__title strong { color: var(--orange-dark); }
.hero__lead { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 560px; }

.hero__pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__pills li {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14px; color: var(--wine);
  background: #fdeedd; border: 1.5px solid #f6c48a;
  padding: 6px 14px; border-radius: 999px;
}
.hero__pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero__facts li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--muted); line-height: 1.35;
}
.hero__facts strong { display: block; color: var(--wine); font-size: 16px; }
.hero__facts svg { width: 22px; height: 22px; flex: none; fill: var(--orange); margin-top: 2px; }

.countdown { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.countdown__label { font: 800 18px var(--font-title); color: var(--wine); text-transform: uppercase; }
.countdown__items { display: flex; gap: 10px; }
.countdown__items div {
  min-width: 70px;
  text-align: center;
  background: var(--wine);
  color: var(--white);
  border-radius: 12px;
  padding: 8px 6px 6px;
}
.countdown__items span { display: block; font: 800 28px/1 var(--font-title); }
.countdown__items small { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; }
.hero__wave svg { width: 100%; height: 100%; fill: var(--beige); }

/* ---------- Formulário ---------- */
.form-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--orange);
  scroll-margin-top: 96px;
}
.form-card__badge {
  position: absolute; top: -18px; right: 24px;
  background: var(--wine); color: var(--white);
  font: 800 14px var(--font-body);
  text-transform: uppercase; letter-spacing: .6px;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.form-card__title { font-size: 30px; color: var(--wine); }
.form-card__subtitle { margin-top: 6px; color: var(--muted); }

.form { margin-top: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 15px; color: var(--ink); }
.field input {
  width: 100%;
  padding: 14px 16px;
  font: 600 16px var(--font-body);
  color: var(--ink);
  background: #faf8f6;
  border: 2px solid #e4dcd5;
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder { color: #a99b95; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgba(242, 140, 30, .18); }
.field.is-invalid input { border-color: var(--error); background: #fff6f6; }
.field__hint { font-size: 13px; color: var(--muted); margin-top: -2px; }
.field.is-invalid .field__hint { display: none; }
.field.is-valid input { border-color: #3a9a5b; }
.field__error { color: var(--error); font-size: 13px; font-weight: 700; min-height: 0; }
.field__error:empty { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--wine); }

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

.form__status { font-weight: 700; font-size: 14px; color: var(--error); text-align: center; }
.form__status:empty { display: none; }
.form__note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.form__note svg { width: 16px; height: 16px; fill: #3a9a5b; flex: none; }

.success { text-align: center; padding: 10px 0 4px; outline: none; }
.success__icon {
  width: 76px; height: 76px; margin: 0 auto 14px;
  border-radius: 50%;
  background: #e5f6ea;
  display: grid; place-items: center;
}
.success__icon svg { width: 40px; height: 40px; fill: #2e8b4e; }
.success__title { font-size: 30px; color: var(--wine); }
.success__text { margin-top: 10px; color: var(--muted); }
.success__actions { margin-top: 22px; display: grid; gap: 10px; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--beige { background: linear-gradient(180deg, var(--beige) 0%, var(--beige-soft) 100%); }
.section--dark { background: radial-gradient(900px 400px at 20% 0%, #3a1c1c 0%, var(--dark) 70%); color: var(--white); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; color: var(--wine); text-transform: uppercase; }
.section--dark .section__title { color: var(--white); }
.section__lead { margin-top: 14px; font-size: 19px; color: var(--muted); }

.kicker {
  font: 800 15px var(--font-body);
  color: var(--orange-text);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.kicker--light { color: var(--orange); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; background: #fdeedd; display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 30px; height: 30px; fill: var(--orange-dark); }
.card h3 { font-size: 22px; color: var(--wine); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.audience {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--wine);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.audience__item { padding: 28px 16px; text-align: center; color: var(--white); }
.audience__item + .audience__item { border-left: 1px solid rgba(255, 255, 255, .15); }
.audience__item strong { display: block; font: 800 42px/1 var(--font-title); color: var(--orange); }
.audience__item span { font-weight: 700; opacity: .9; }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--orange), var(--wine));
  border-radius: 3px;
}
.timeline__item { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 44px; padding: 14px 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 85px; top: 24px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--orange);
}
.timeline__item time { font: 800 22px/1.2 var(--font-title); color: var(--wine); text-align: right; padding-top: 6px; }
.timeline__item > div {
  background: #faf7f4;
  border: 1px solid #eee5dd;
  border-radius: 14px;
  padding: 16px 20px;
}
.timeline__item h3 { font-size: 21px; color: var(--ink); }
.timeline__item p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.timeline__item--highlight::before { background: var(--gold); border-color: var(--wine); }
.timeline__item--highlight > div { background: linear-gradient(135deg, #fff4e3, #fde3bd); border-color: #f3c98a; }

/* Palestrantes */
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.speaker {
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.speaker--featured { border-color: rgba(242, 140, 30, .6); background: rgba(242, 140, 30, .08); }
.speaker__photo {
  width: 168px; height: 168px; margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--orange);
  background: var(--wine);
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.speaker__photo--initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--wine), #a32a2f); }
.speaker__photo--initials span { font: 800 54px var(--font-title); color: var(--orange); }
.speaker__time { display: inline-block; font-weight: 800; font-size: 13px; background: var(--orange); color: var(--wine-dark); padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.speaker h3 { font-size: 26px; }
.speaker__role { color: #e9c9a6; font-weight: 700; margin-top: 2px; }

.forum {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 20px;
}
.forum img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.forum h3 { font-size: 30px; }
.forum__text p:last-child { margin-top: 10px; color: #e6d9d4; }

/* Troféu */
.trophy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.trophy__media {
  background: radial-gradient(circle at 50% 35%, #fff 0%, #d7d2cc 70%);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.trophy__media img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 18px; }
.trophy .section__title { text-align: left; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--wine);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Local */
.place { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.place__logo { width: 240px; height: auto; margin-top: 16px; }
.place__address { margin-top: 16px; font-style: normal; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.place__info { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 8px; }
.place__info strong { color: var(--wine); }
.place__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; background: var(--light); }
.place__map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font: 700 19px var(--font-title);
  color: var(--wine);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 28px; color: var(--orange-dark); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* CTA final */
.cta-final { background: linear-gradient(120deg, var(--wine) 0%, #a3262b 100%); color: var(--white); padding: 80px 0; text-align: center; }
.cta-final h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.cta-final p { margin: 10px 0 28px; font-size: 19px; opacity: .9; }

/* Rodapé */
.footer { background: var(--light); padding: 36px 0 100px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brands { display: flex; align-items: center; gap: 24px; }
.footer__brands p { font-weight: 800; color: var(--ink); }
.footer__brands img { width: auto; }
.footer__copy { font-size: 14px; color: var(--muted); }

/* CTA fixo mobile */
.sticky-cta { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .topbar__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__content { text-align: center; }
  .hero__logo { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__pills { justify-content: center; }
  .hero__realizacao { margin-inline: auto; }
  .countdown { justify-content: center; }
  .form-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trophy, .place { grid-template-columns: 1fr; }
  .trophy__media { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .hero { padding: 28px 0 110px; }
  .hero__facts { grid-template-columns: 1fr; text-align: left; }
  .countdown__items div { min-width: 60px; }
  .form-card { padding: 32px 20px 22px; }
  .cards { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .audience__item:nth-child(3) { border-left: 0; }
  .audience__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }
  .speakers { grid-template-columns: 1fr; }
  .forum { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .timeline__item::before { left: 1px; top: 22px; }
  .timeline__item time { text-align: left; padding-top: 0; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__brands { flex-wrap: wrap; justify-content: center; }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 16px; right: 16px; bottom: 14px;
    z-index: 60;
    text-align: center;
    padding: 16px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--wine-dark);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
    transition: transform .25s ease, opacity .25s ease;
  }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

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

/* ---------- SEO / rodapé / consentimento ---------- */
.hero__title-pre {
  display: block;
  font: 700 15px/1.4 var(--font-body);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.footer__address { font-style: normal; font-size: 14px; color: var(--muted); width: 100%; }
.footer__copy a { color: var(--wine); font-weight: 700; }

.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .45);
  border-top: 4px solid var(--orange);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
}
.consent-banner p { flex: 1; }
.consent-banner a { color: var(--wine); font-weight: 700; }
.consent-banner__actions { display: flex; gap: 8px; flex: none; }
body.has-consent-banner .sticky-cta { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .consent-banner { flex-direction: column; align-items: stretch; bottom: 12px; left: 12px; right: 12px; }
  .consent-banner__actions .btn { flex: 1; }
}
