/**
 * CSS crítico — above-the-fold (header + hero).
 * Carregamento completo: conagreste-inclusivo.css (assíncrono).
 * Ao alterar estilos do header/hero em conagreste-inclusivo.css, regenere este arquivo
 * (fonts.css + linhas 1–538 do CSS principal).
 */

/**
 * DM Sans + Sora — latin subset, auto-hospedadas (woff2).
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
 * CONAGRESTE Inclusivo 2026 — estilos da landing
 */

:root {
  --purple-deep: #1e0f3d;
  --purple-mid: #3d2670;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --magenta: #d946ef;
  --gold-light: #fde68a;
  --gold: #eab308;
  --gold-deep: #a16207;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #c4c9d6;
  --site-header-h: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--purple-deep);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
}

:where(a, button, iframe, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--gold-light);
  color: #1a0f2e;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.gradient-gold {
  background: linear-gradient(110deg, #fff8e7 0%, #e8d5a0 42%, #b8942f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-slogan {
  background: linear-gradient(90deg, var(--magenta), #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(30, 15, 61, 0.92), rgba(30, 15, 61, 0.65));
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, var(--cyan), #0369a1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.brand-title {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-title span {
  display: block;
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.65rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.nav-links a.nav-section-link.is-active {
  color: #f1f5f9;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.14);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 10px 26px rgba(34, 211, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-toggle:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.site-header.is-nav-open .nav-toggle {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.12);
}

@media (max-width: 1023px) {
  .site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.68rem;
  }

  .brand-title span {
    font-size: 0.58rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-h, 3.75rem);
    bottom: 0;
    z-index: 48;
    background: rgba(2, 6, 23, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .site-header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--site-header-h, 3.75rem);
    z-index: 50;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(26, 14, 54, 0.98) 0%, rgba(12, 6, 28, 0.98) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    max-height: min(28rem, 70vh);
    max-height: min(28rem, 70dvh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translate3d(0, -110%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      visibility 0.24s ease;
  }

  .site-header.is-nav-open .nav-links {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    max-width: none;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(110deg, var(--gold-light), var(--gold));
  color: #1a0f2e;
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(234, 179, 8, 0.38);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  box-shadow: 0 10px 26px rgba(4, 120, 87, 0.32);
}

.btn-outline-cyan {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--cyan);
}

.btn-outline-cyan:hover {
  background: var(--cyan-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(217, 70, 239, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(34, 211, 238, 0.18), transparent 50%),
    linear-gradient(180deg, #12082a, var(--purple-deep));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #e0f2fe;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: Sora, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.25rem;
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.pill {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #e2e8f0;
}

.pill strong {
  color: var(--cyan);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42ch;
}

.hero-meta .gradient-slogan {
  font-weight: 700;
}

.poster-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.12);
  background: linear-gradient(145deg, rgba(61, 38, 112, 0.5), rgba(30, 15, 61, 0.9));
}

.poster-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.poster-card--identity {
  background: #f8fafc;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.poster-card--identity img {
  width: min(100%, 440px);
  margin-inline: auto;
  border-radius: 12px;
}
