/* ===========================================================
   Propostas — Professor Fábio Tokarski
   Reutiliza os tokens/topbar/footer de styles.css.
   Inspiração: grid de temas em cards (SEM copiar o visual roxo).
   =========================================================== */

:root {
  --font-text: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --paper: #ffffff;
  --line: #e7e1d8;
  --muted: #6b6459;
  --shadow: 0 10px 30px rgba(22, 22, 22, 0.08);
}

/* Página clara (sobrescreve o fundo vermelho do linktree) */
.propostas-page {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
}

/* Header com sombra p/ separar do hero (ambos em creme) */
.propostas-page .topbar {
  position: relative;
  z-index: 10;
  box-shadow: 0 3px 16px rgba(22, 22, 22, 0.10);
}

.propostas-page .page { width: 100%; overflow: hidden; }

/* Títulos usam a display (Oswald) */
.intro__title,
.counter__number,
.temas__title,
.form-head__title,
.tema__title,
.intro__eyebrow,
.counter__label { font-family: var(--font-display); }

/* Container central reutilizável já vem de styles.css (.hero__inner etc.);
   aqui declaramos os inners desta página. */
.intro__inner,
.counter__inner,
.temas__inner,
.form-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* ---------- Botão base ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 14px 26px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ===========================================================
   INTRO
   =========================================================== */
.intro { padding: 56px 0 40px; }
.intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}
.intro__photo {
  margin: 0;
  display: flex;
  align-items: flex-end;        /* foto encostada na base da div */
  justify-content: center;
}
.intro__photo img { width: 100%; max-width: 340px; display: block; }
@media (min-width: 860px) {
  .intro { padding-bottom: 0; }             /* foto encosta na base da seção */
  .intro__inner { grid-template-columns: 1.15fr 0.85fr; }
  .intro__content { align-self: center; padding-bottom: 44px; }
  .intro__photo { justify-content: flex-end; }
  .intro__photo img { max-width: 420px; }
}
.intro__eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 14px;
}
.intro__title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.05;
  max-width: 16ch;
}
.intro__text {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.intro__cta {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--ink);
}

/* ===========================================================
   CONTADOR
   =========================================================== */
.counter {
  background: var(--red);
  color: var(--cream);
  padding: 40px 0;
  text-align: center;
}
.counter__label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: clamp(13px, 2vw, 16px);
  color: var(--gold);
}
.counter__number {
  margin: 0;
  font-weight: 700;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  color: var(--cream);
}
.counter__caption {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.02em;
}

/* ===========================================================
   TEMAS
   =========================================================== */
.temas { padding: 56px 0; }
.temas__head { margin-bottom: 30px; }
.temas__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.08;
}
.temas__sub {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.temas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px)  { .temas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .temas__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .temas__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Card de tema ---------- */
.tema {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.tema:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 22, 22, 0.14);
}
.tema:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.tema.is-selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), var(--shadow); }

.tema__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.tema__badge svg { width: 28px; height: 28px; }

/* Badges com degradê nas cores da campanha (ciclo de 4) */
.tema:nth-child(4n+1) .tema__badge { background: linear-gradient(135deg, #f95000, #c60909); }
.tema:nth-child(4n+2) .tema__badge { background: linear-gradient(135deg, #00c25c, #007a39); }
.tema:nth-child(4n+3) .tema__badge { background: linear-gradient(135deg, #fbb301, #f95000); }
.tema:nth-child(4n+4) .tema__badge { background: linear-gradient(135deg, #3a3a3a, #161616); }

.tema__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
}
.tema__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  flex: 1 1 auto;
}
.tema__go {
  margin-top: 4px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.tema__go span { transition: transform 0.12s ease; display: inline-block; }
.tema:hover .tema__go span { transform: translateX(4px); }

/* ===========================================================
   FORMULÁRIO
   =========================================================== */
.form-section { padding: 8px 0 72px; }
.form-section__inner { max-width: 760px; }

.form-head { text-align: center; margin-bottom: 24px; }
.form-head__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 40px);
}
.form-head__sub { margin: 0; color: var(--muted); font-size: 16px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.proposta-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  min-width: 0;
}
@media (max-width: 560px) { .proposta-form { grid-template-columns: 1fr; padding: 22px; } }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #a79f93; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 161, 76, 0.18);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.proposta-form .btn--block { grid-column: 1 / -1; margin-top: 4px; }

/* honeypot — fora da tela, invisível pra humanos */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* caixa de erro do envio */
.form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 16px;
  background: #fdecec;
  border: 1px solid #f3b7b7;
  border-radius: 10px;
  color: #a11212;
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- Sucesso ---------- */
.form-success {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px 28px;
}
.form-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}
.form-success__icon svg { width: 38px; height: 38px; }
.form-success h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
}
.form-success p { margin: 0 auto; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.5; }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .tema, .btn, .tema__go span { transition: none; }
}

/* ===========================================================
   MURAL — propostas passando ao lado do formulário
   =========================================================== */
.form-section__inner.form-section__grid { max-width: 1140px; }

.form-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .form-section__grid { grid-template-columns: 1fr 360px; align-items: start; }
}

.form-col { min-width: 0; }   /* evita estouro de largura no grid */
.mural { min-width: 0; }
@media (min-width: 900px) {
  .mural { position: sticky; top: 24px; }
}

.mural__title {
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px; color: var(--ink);
}
.mural__title::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(0, 161, 76, .18);
}

.mural__viewport {
  position: relative;
  height: 560px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
@media (max-width: 899px) { .mural__viewport { height: 420px; } }

.mural__track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: mural-scroll 40s linear infinite;
  will-change: transform;
}
.mural__viewport:hover .mural__track { animation-play-state: paused; }

@keyframes mural-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.mural-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(22, 22, 22, .06);
  padding: 16px 18px;
}
.mural-card__nome {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.mural-card__tema {
  display: inline-block; margin: 0 0 8px;
  background: #fbe9c9; color: #7a4a00;
  border-radius: 999px; padding: 2px 10px; font-size: 12px;
}
.mural-card__texto {
  margin: 0;
  color: var(--muted); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.mural__empty { color: var(--muted); font-size: 15px; padding: 20px 2px; }

@media (prefers-reduced-motion: reduce) {
  .mural__track { animation: none; }
  .mural__viewport { overflow-y: auto; }
}
