/* ===========================================================================
   Bússola 2026 · componentes
   =========================================================================== */

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 72px;
  padding-block: var(--sp-3);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 142px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.nav__link {
  display: inline-block;
  padding: var(--sp-2) var(--sp-1);
  color: var(--c-ink);
  font-size: var(--fs-300);
  font-weight: 500;
  text-decoration: none;
}
.nav__link:hover { color: var(--c-red-aa); text-decoration: underline; }
.nav__link[aria-current="true"] { color: var(--c-red-aa); font-weight: 600; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: var(--fs-300);
  font-weight: 600;
  cursor: pointer;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  content: "";
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { position: absolute; top: -6px; }
.nav__toggle-bars::after  { position: absolute; top: 6px; }

.site-header .btn { flex-shrink: 0; }

/* .btn é declarado depois e também usa uma classe: sem o seletor composto
   abaixo, o display:inline-flex do botão venceria e o CTA continuaria visível,
   estourando a largura no celular. */
@media (max-width: 60em) {
  .site-header .site-header__cta { display: none; }
}

@media (max-width: 52em) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--c-white);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--gutter) var(--sp-5);
  }
  .nav__link {
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--fs-400);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
}

/* --- botões --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-family: var(--ff-display);
  font-size: var(--fs-300);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.72; cursor: progress; }

.btn--brand { background: var(--btn-brand-bg); color: var(--btn-brand-fg); }
.btn--brand:hover { background: var(--btn-brand-hover); color: var(--btn-brand-fg); }

.btn--dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn--dark:hover { background: var(--btn-dark-hover); color: var(--btn-dark-fg); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid currentColor;
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-white); }

.btn--lg { min-height: 56px; padding-inline: var(--sp-7); font-size: var(--fs-500); }
.btn--block { width: 100%; }

.btn__note { font-weight: 400; opacity: 0.85; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink);
  font-weight: 600;
  font-size: var(--fs-300);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-arrow:hover { color: var(--c-ink); }

/* --- cards ---------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.card--dark {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: rgb(255 255 255 / 0.8);
}
.card--dark h3 { color: var(--c-white); }

.card__icon { width: 60px; height: 60px; }
.card h3 { font-size: var(--fs-600); }
.card p { font-size: var(--fs-300); line-height: 1.6; }

/* --- números -------------------------------------------------------------- */

.stat {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat:nth-child(1) .stat__value { color: var(--stat-1); }
.stat:nth-child(2) .stat__value { color: var(--stat-2); }
.stat:nth-child(3) .stat__value { color: var(--stat-3); }

.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--text-body);
}

/* --- faixa de CTA --------------------------------------------------------- */

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.band h2 { max-width: 24ch; }

/* --- formulários ---------------------------------------------------------- */

.form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section--muted .form { background: var(--c-white); }

.form__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 34em) {
  .form__grid--2 { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--c-ink);
}
.field .req { color: var(--c-red-aa); }
.field .opt { color: var(--text-body); font-weight: 400; text-transform: none; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font-size: var(--fs-400);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: #9c948d; }

.field input:hover, .field textarea:hover { border-color: #c9c1b7; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-red-aa);
  box-shadow: 0 0 0 3px rgb(212 15 22 / 0.12);
}

.field__error {
  min-height: 1.1em;
  margin: 0;
  color: var(--c-red-aa);
  font-size: var(--fs-200);
  font-weight: 600;
}
.field__error:empty { min-height: 0; }

.field--consent {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
}
.field--consent input {
  width: 20px; min-width: 20px; height: 20px; min-height: 20px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--c-red-aa);
}
.field--consent label { font-size: var(--fs-200); font-weight: 400; color: var(--text-body); line-height: 1.5; }

/* honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.form--narrow { max-width: 34rem; margin-inline: auto; text-align: left; }

.form__status { margin: 0; font-size: var(--fs-300); font-weight: 600; }
.form__status:empty { display: none; }
.form__status[data-tone="error"] { color: var(--c-red-aa); }
.form__status[data-tone="ok"]    { color: var(--c-green-aa); }

.form-success {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--c-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
}
.form-success h3 { margin-bottom: var(--sp-3); }
.form-success .btn { margin-top: var(--sp-4); }
.form-success[hidden] { display: none; }

/* --- vídeo ---------------------------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-ink);
}
.video iframe { width: 100%; height: 100%; border: 0; }

.video__facade {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  width: 100%; height: 100%;
  padding: var(--sp-5);
  border: 0;
  background: var(--c-ink);
  color: var(--c-white);
  cursor: pointer;
  text-align: center;
}
.video__play {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--c-red-aa);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.video__facade:hover .video__play { background: var(--c-red-dark); transform: scale(1.06); }

.video-placeholder {
  display: grid;
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: center;
  gap: var(--sp-2);
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  padding: var(--sp-6);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius);
  background: var(--c-cream);
  color: var(--text-body);
  text-align: center;
}

/* --- edições -------------------------------------------------------------- */

.edicao {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--c-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.edicao__ano {
  font-family: var(--ff-display);
  font-size: var(--fs-700);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
}
.edicao--atual { border-color: var(--c-ink); border-width: 2px; }
.edicao p { font-size: var(--fs-300); flex-grow: 1; }
.edicao .btn { align-self: flex-start; }

/* --- parceiros ------------------------------------------------------------ */

.especialistas {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: var(--sp-6);
}
.especialistas h3 { font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.especialistas ul { font-size: var(--fs-300); line-height: 1.7; }

/* --- rodapé --------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--c-ink);
  color: rgb(255 255 255 / 0.72);
  font-size: var(--fs-300);
}
.site-footer a { color: var(--c-white); }

.site-footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.site-footer__brand img { width: 190px; margin-bottom: var(--sp-4); }
.site-footer h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-200);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
}
.site-footer li { margin-bottom: var(--sp-2); }

.social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease);
}
.social a:hover { background: rgb(255 255 255 / 0.14); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: var(--fs-200);
}

/* --- passo anterior a um formulário --------------------------------------- */

.passo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--c-cream);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--c-amber);
  border-radius: var(--radius);
}
.passo strong { color: var(--c-ink); font-family: var(--ff-display); font-size: var(--fs-500); }
.passo p { font-size: var(--fs-300); }
.passo[hidden] { display: none; }

/* --- compartilhar --------------------------------------------------------- */

.compartilhar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}
.compartilhar .btn { min-height: 44px; padding-inline: var(--sp-5); }
.compartilhar svg { flex-shrink: 0; }

#st-copiar { margin-top: var(--sp-4); text-align: center; }

/* --- publicação relacionada ----------------------------------------------- */

.relacionada {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--c-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.relacionada > div { max-width: 46rem; }
.relacionada .eyebrow { background: var(--c-white); margin-bottom: var(--sp-3); }
.relacionada h3 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.relacionada p { font-size: var(--fs-300); }
.relacionada .btn { flex-shrink: 0; }
