/* ------------------------------------------------------------------ *
 * Identidade Grings Café Corporativo
 *   navy   #001C2C  (wordmark do logo)
 *   azul   #023353  (fundo do icone da marca)
 *   creme  #F6F1E8  (fundo claro, tom de leite/papel)
 * ------------------------------------------------------------------ */
:root {
  --navy: #001C2C;
  --navy-deep: #00131e;
  --blue: #023353;
  --blue-light: #0a4a75;
  --cream: #f6f1e8;
  --cream-dark: #ebe3d5;
  --surface: #ffffff;
  --ink: #001c2c;
  --ink-soft: #4a5a68;
  --ink-faint: #8a97a2;
  --line: #e2ddd2;
  --caramel: #c08a3e;
  --danger: #c0392b;
  --radius: 14px;
  --shadow-lg: 0 24px 60px rgba(0, 19, 30, .32);
  --shadow-sm: 0 2px 10px rgba(0, 28, 44, .07);
  --font: "Montserrat", "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
a { color: inherit; }

/* ------------------------------------------------------------------ *
 * Topbar
 * ------------------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 14px 28px;
  background: var(--navy);
  color: #fff;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 80px; width: auto; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.event-chip {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #dfe8ee;
}
.topbar-cta {
  text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  background: var(--cream); color: var(--navy);
  transition: transform .12s ease, background .15s ease;
}
.topbar-cta:hover { background: #fff; transform: translateY(-1px); }

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: start;
  padding: 68px 28px 84px;
  background:
    radial-gradient(880px 460px at 8% -12%, #063a5e 0%, transparent 62%),
    linear-gradient(170deg, var(--navy) 0%, #012337 55%, var(--navy-deep) 100%);
  color: #eaf1f5;
}
/* grao de cafe decorativo da marca */
.hero-bean {
  position: absolute; right: -90px; bottom: -140px;
  width: 420px; height: auto;
  opacity: .05; transform: rotate(-14deg);
  pointer-events: none; user-select: none;
}
.hero-copy { position: relative; max-width: 620px; margin-left: auto; }

.badge {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(246, 241, 232, .12);
  border: 1px solid rgba(246, 241, 232, .3);
  color: var(--cream); font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: clamp(30px, 4.3vw, 46px); font-weight: 800; color: #fff; }
.hero h1 em { font-style: normal; color: #8fd0f5; }
.lead { font-size: 18px; color: #bfd0dc; margin: 0 0 24px; }

.hero-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; }
.hero-list li { position: relative; padding-left: 30px; color: #d5e1e9; }
.hero-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 1px rgba(246, 241, 232, .5);
}

.event-info {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding: 18px 0 20px; margin-bottom: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.event-item { display: flex; flex-direction: column; }
.event-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #7f97a8;
}
.event-item strong { font-size: 16.5px; color: #fff; font-weight: 700; }

.hero-slogan { display: block; margin-top: 26px; width: 340px; max-width: 100%; height: auto; opacity: .9; }

/* ------------------------------------------------------------------ *
 * Formulario
 * ------------------------------------------------------------------ */
.form-card {
  position: relative;
  background: var(--cream); color: var(--ink);
  border-radius: 18px; padding: 30px 28px 26px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px;
  scroll-margin-top: 86px;
}
.form-card h2 { font-size: 24px; font-weight: 800; }
.form-sub { margin: 0 0 22px; color: var(--ink-soft); font-size: 14.5px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; margin-bottom: 15px; }
.field label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }

.field input {
  font: inherit; font-size: 15px;
  padding: 12px 13px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #a8b3bb; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2, 51, 83, .14);
}
.field input.invalid { border-color: var(--danger); background: #fdf6f5; }
.field input.invalid:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .13); }

.error { color: var(--danger); font-size: 12.5px; min-height: 16px; margin-top: 5px; }

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

#lead-form button[type="submit"] {
  width: 100%; margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  padding: 15px 18px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 51, 83, .3);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
#lead-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px); box-shadow: 0 14px 26px rgba(2, 51, 83, .36);
}
#lead-form button[type="submit"]:disabled { opacity: .65; cursor: progress; }

.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy { margin: 13px 0 0; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.form-alert {
  margin: 14px 0 0; padding: 11px 13px; border-radius: 9px;
  background: #fbeae8; border: 1px solid #f0c9c4; color: #922b1f;
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ *
 * Passe de acesso ao Lounge
 * ------------------------------------------------------------------ */
.pass { padding: 2px 0 6px; }
.pass-head {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border-radius: 13px 13px 0 0;
  background: var(--navy); color: #fff;
}
.pass-head img { display: block; }
.pass-kicker {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #8fd0f5;
}
.pass-head strong { font-size: 18px; font-weight: 800; }

.pass-body {
  background: #fff; border: 1.5px solid var(--line); border-top: 0;
  border-radius: 0 0 13px 13px; padding: 6px 18px 18px;
}
.pass-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.pass-row span {
  font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); flex: 0 0 auto;
}
.pass-row strong { font-size: 15.5px; text-align: right; word-break: break-word; }

.pass-code {
  margin-top: 14px; padding: 14px; border-radius: 11px;
  background: var(--cream); border: 1.5px dashed var(--blue);
  text-align: center;
}
.pass-code span {
  display: block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.pass-code strong {
  display: block; margin-top: 3px;
  font-size: 27px; font-weight: 800; letter-spacing: .04em;
  color: var(--blue); font-variant-numeric: tabular-nums;
}

.pass-note { margin: 16px 0 16px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

.ghost {
  display: block; width: 100%;
  font: inherit; font-size: 14.5px; font-weight: 700;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--blue); color: var(--blue);
  transition: background .15s ease;
}
.ghost:hover { background: rgba(2, 51, 83, .07); }

/* ------------------------------------------------------------------ *
 * Steps + CTA final
 * ------------------------------------------------------------------ */
.steps { padding: 74px 28px; max-width: 1080px; margin: 0 auto; text-align: center; }
.steps > h2 { font-size: clamp(24px, 3vw, 33px); font-weight: 800; margin-bottom: 36px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; text-align: left; }
.steps-grid article {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800;
}
.steps-grid h3 { font-size: 18px; font-weight: 800; }
.steps-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.cta-final {
  text-align: center; padding: 66px 28px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff;
}
.cta-final h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 800; }
.cta-final p { color: #bfd0dc; margin: 0 0 26px; }
.btn-primary {
  display: inline-block; text-decoration: none;
  font-size: 16.5px; font-weight: 800; padding: 15px 32px; border-radius: 11px;
  background: var(--cream); color: var(--navy);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
  transition: transform .12s ease, background .15s ease;
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
footer {
  padding: 34px 26px 30px; text-align: center;
  background: var(--navy-deep); color: #93a7b4;
}
.footer-logo { display: block; margin: 0 auto 16px; height: 58px; width: auto; opacity: .95; }
.footer-contact { margin: 0 0 8px; font-size: 14.5px; color: #cfdbe3; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-contact a { color: #cfdbe3; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin: 0; font-size: 13px; }
.footer-legal a { color: #93a7b4; }

/* ------------------------------------------------------------------ *
 * Responsivo
 * ------------------------------------------------------------------ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 46px 22px 60px; }
  .hero-copy { margin: 0; }
  .form-card { max-width: none; }
  .hero-bean { width: 300px; right: -70px; bottom: -100px; }
}
@media (max-width: 520px) {
  .topbar { padding: 12px 18px; }
  .brand img { height: 65px; }
  .topbar-cta { display: none; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .event-info { gap: 20px; }
  .hero-slogan { width: 280px; }
  .steps { padding: 52px 20px; }
  .pass-row { flex-direction: column; gap: 2px; }
  .pass-row strong { text-align: left; }
}
