/* ============================================================
   Irineia Barbosa — LP de pré-candidatura
   Mobile-first. Sem dependências externas (LCP/SEO).
   ============================================================ */

:root {
  /* Paleta: azul institucional + âmbar (destaque) + verde Amazônia */
  --navy-900: #061d3a;
  --navy-800: #0a2f5c;
  --navy-700: #10437f;
  --navy-600: #1a5aa3;
  --navy-100: #e8f0f9;
  --navy-050: #f4f8fc;

  --amber-500: #f0a500;
  --amber-400: #ffb821;
  --amber-100: #fff3d6;
  /* Âmbar para TEXTO sobre fundo claro. O --amber-500 tem só 2.08:1 no branco
     (WCAG AA pede 4.5:1 para texto normal); este tem 5.09:1 no #fff e 4.77:1
     no #f4f8fc. Usar --amber-500 apenas como fundo, nunca como texto claro. */
  --amber-ink: #9c6100;

  --green-600: #1c7a4f;

  --ink: #12213a;
  --ink-soft: #4a5b75;
  --line: #d9e3ef;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(6, 29, 58, .08), 0 6px 18px rgba(6, 29, 58, .06);
  --shadow-md: 0 4px 12px rgba(6, 29, 58, .10), 0 20px 46px rgba(6, 29, 58, .12);

  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.86rem, .84rem + .1vw, .93rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.33rem + .8vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.6vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, iframe, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
a  { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy-800); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------------- Botões ---------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--navy-700); }
.btn-accent  { --btn-bg: var(--amber-500); --btn-fg: #2a1c00; }
.btn-accent:hover { --btn-bg: var(--amber-400); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px);
}
.btn-ghost:hover { --btn-bg: rgba(255,255,255,.14); }
/* Variante para fundos CLAROS — btn-ghost só funciona sobre o hero/seções escuras */
.btn-outline {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  border-color: #b9cbe0;
}
.btn-outline:hover { --btn-bg: var(--navy-100); border-color: var(--navy-600); }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--step-0); min-height: 54px; }
.btn-sm { padding: .55rem 1.1rem; font-size: var(--step--1); min-height: 40px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }

/* Logo oficial (150x150 de origem) — não passar de ~48px para não perder nitidez */
.brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }

/* No rodapé o fundo é navy e o monograma azul perderia contraste: chip branco. */
.brand-chip {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand-chip img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { color: var(--ink-soft); font-size: .74rem; letter-spacing: .02em; }

.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy-800); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute; inset: 68px 0 auto 0;
  flex-direction: column; gap: .25rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav.is-open { display: flex; }
.nav a {
  padding: .7rem .25rem; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--navy-050);
}
.nav a.btn { margin-top: .6rem; border-bottom: 0; color: #2a1c00; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; inset: auto;
    flex-direction: row; align-items: center; gap: 1.6rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a { border-bottom: 0; padding: .3rem 0; font-size: var(--step--1); }
  .nav a:not(.btn):hover { color: var(--navy-600); }
  .nav a.btn { margin: 0; }
}

/* ---------------- Hero ---------------- */
/* Hero de duas colunas: a foto é clara e quadrada, então em vez de virar fundo
   com overlay (que a deixaria cinzenta), ela ocupa a própria coluna. */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-inner { display: grid; }

.hero-photo { position: relative; order: -1; }
/* <picture> é inline por padrão: sem isso o height:100% da img resolvia
   contra ele (altura automática) e sobrava faixa vazia na coluna. */
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img {
  width: 100%; height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
}
/* Emenda suave entre a foto e o painel navy no empilhamento mobile. */
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 28%;
  background: linear-gradient(to top, var(--navy-900), rgba(6,29,58,0));
  pointer-events: none;
}

.hero-copy {
  color: #fff;
  padding: clamp(1.75rem, 6vw, 3rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2.5rem, 7vw, 3.5rem);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(86svh, 760px);
  }
  .hero-photo { order: 0; }
  .hero-photo img { aspect-ratio: auto; object-position: 50% 20%; }
  /* Na horizontal a emenda vira lateral, à esquerda. */
  .hero-photo::after {
    inset: 0 auto 0 -1px; width: 22%; height: auto;
    background: linear-gradient(to right, var(--navy-900), rgba(6,29,58,0));
  }
  .hero-copy {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    padding-left: max(clamp(1.1rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + 1.5rem));
  }
}

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1.1rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #cfe0f2;
}
.eyebrow .tag {
  background: var(--amber-500); color: #2a1c00;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .03em;
}
/* Separador como ::before, colado à palavra — como item de flex solto
   ele sobrava órfão no fim da linha ao quebrar. */
.eyebrow .meta { white-space: nowrap; }
/* Só ENTRE os metadados: como item de flex solto o separador sobrava órfão
   no fim da linha, e antes do primeiro item ele abria a linha com um ponto. */
.eyebrow .meta + .meta::before {
  content: "·"; margin-right: .5rem; opacity: .5;
}

.hero h1 { margin-bottom: .35em; text-wrap: balance; }
.hero h1 span {
  display: block;
  background: linear-gradient(96deg, var(--amber-400), #ffd873);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { font-size: var(--step-1); color: #e6eef8; max-width: 34rem; text-wrap: pretty; }

.hero-quote {
  margin: 1.6rem 0 2rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--amber-500);
}
.hero-quote p {
  margin: 0; font-style: italic; color: #d5e3f2;
  font-size: var(--step-0); text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------- Faixa de números ---------------- */
.strip { background: var(--navy-800); color: #fff; }
.strip-grid {
  display: grid; gap: 1.5rem 1rem;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat strong {
  font-size: var(--step-3); font-weight: 800; line-height: 1;
  color: var(--amber-400); letter-spacing: -.03em;
}
.stat span { font-size: var(--step--1); color: #c9dbef; line-height: 1.35; }

/* ---------------- Seções ---------------- */
.section { padding-block: clamp(3rem, 8vw, 6.5rem); }
.section-alt  { background: var(--navy-050); }
.section-dark { background: var(--navy-900); color: #eaf1f9; }
.section-dark h2 { color: #fff; }
.section-form { background: linear-gradient(180deg, var(--navy-050), #fff); }

.kicker {
  margin: 0 0 .6rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-ink);
}
.section-dark .kicker { color: var(--amber-400); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-sub { font-size: var(--step-1); color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.section-dark .section-sub { color: #b9cde3; }

.grid-2 { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .grid-2-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}

.media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
}
@media (min-width: 880px) { .media img { aspect-ratio: auto; } }

.prose h2 { text-wrap: balance; }
/* :not(.kicker) — senão este seletor (mais específico) sobrescreve a cor do kicker */
.prose p:not(.kicker) { color: var(--ink-soft); text-wrap: pretty; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 0 1rem 1.2rem;
  border-left: 3px solid var(--amber-500);
}
.prose blockquote p {
  margin: 0; font-size: var(--step-1); font-style: italic;
  color: var(--ink); line-height: 1.45;
}

/* ---------------- Cards de prioridades ---------------- */
.cards {
  display: grid; gap: 1.1rem; margin: 0; padding: 0;
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bcd2e8;
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1rem;
  border-radius: 13px;
  background: var(--amber-100); color: var(--navy-800);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

.card-cta {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  border-color: transparent; color: #fff;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: #c6d9ee; margin-bottom: 1.2rem; }
.card-cta .btn { align-self: flex-start; margin-top: auto; }

/* ---------------- Embed do Instagram ---------------- */
.embed-col { display: flex; flex-direction: column; align-items: center; }
.ig-embed {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ig-embed iframe {
  width: 100%;
  /* Reels + legenda: o embed do Instagram não redimensiona sozinho. */
  height: 860px;
  border: 0;
  display: block;
}
@media (max-width: 480px) { .ig-embed iframe { height: 760px; } }

/* Facade — thumbnail clicável que dá lugar ao iframe */
.ig-play {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  font: inherit; color: #fff; line-height: 0;
}
.ig-play img { width: 100%; height: auto; display: block; }
.ig-play::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%);
  transition: background .2s ease;
}
.ig-play:hover::after { background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.08) 55%); }

.ig-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--navy-800);
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  transition: transform .2s ease;
  z-index: 1;
}
.ig-play-icon svg { width: 30px; height: 30px; margin-left: 3px; }
.ig-play:hover .ig-play-icon { transform: translate(-50%, -50%) scale(1.07); }

.ig-play-label {
  position: absolute; left: 0; right: 0; bottom: 1rem;
  z-index: 1; text-align: center;
  font-size: var(--step--1); font-weight: 700; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.ig-play:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
.embed-note {
  margin: .9rem 0 0; font-size: var(--step--1); color: var(--ink-soft); text-align: center;
}

/* ---------------- Galeria ---------------- */
.gallery { display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.gallery figcaption {
  margin-top: .85rem; font-size: var(--step--1);
  color: #b9cde3; text-wrap: pretty;
}

/* ---------------- Formulário ---------------- */
.grid-form { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) {
  .grid-form { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .form-copy { position: sticky; top: 96px; }
}

.form-copy p:not(.kicker) { color: var(--ink-soft); font-size: var(--step-1); text-wrap: pretty; }
.perks { margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.perks li {
  position: relative; padding-left: 1.9rem;
  color: var(--ink); font-weight: 600; font-size: var(--step--1);
}
.perks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  display: grid; place-items: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green-600); color: #fff; font-size: .7rem; font-weight: 700;
}

.lead-form {
  display: grid; gap: 1.05rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.field label span[aria-hidden] { color: #c0392b; }
.field .opt { color: var(--ink-soft); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%234a5b75' d='M7 9 0 2l2-2 5 5 5-5 2 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9cbe0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(26,90,163,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #93a4bb; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(192,57,43,.14); }

.error { margin: 0; min-height: 0; font-size: .82rem; color: #c0392b; font-weight: 600; }
.error:empty { display: none; }

.field-check {
  grid-template-columns: auto 1fr; align-items: start; gap: .1rem .7rem;
  margin-top: .2rem;
}
.field-check input {
  width: 20px; height: 20px; min-height: 0; margin-top: .18rem;
  accent-color: var(--navy-700); cursor: pointer; padding: 0;
}
.field-check label { font-weight: 400; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.field-check .error { grid-column: 1 / -1; }

.btn[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }

.form-status { margin: 0; font-size: var(--step--1); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-ok  { color: var(--green-600); }
.form-status.is-bad { color: #c0392b; }

.form-legal { margin: 0; font-size: .78rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: #cddeef; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .brand-text small { color: #a8c2dd; }
.footer-bio { max-width: 26rem; font-size: var(--step--1); color: #a8c2dd; }

.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.site-footer ul { margin: 0; padding: 0; display: grid; gap: .6rem; list-style: none; }
.site-footer a { color: #cddeef; text-decoration: none; font-size: var(--step--1); }
.site-footer a:hover { color: var(--amber-400); text-decoration: underline; }

.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .78rem; color: #92aecb; line-height: 1.6;
}
.footer-legal p { margin: 0 0 .6rem; }
.footer-legal strong { color: #cddeef; }
