/* ============================================================
   SEMANA CALDEIRA 2026 — LP
   Design tokens + estilos por seção. Fiel ao PDF aprovado
   + motion/polish. Responsivo. PT (i18n pronto p/ ES/EN).
   ============================================================ */

/* ---------- FONTES ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bahnschrift";
  src: url("../assets/fonts/Bahnschrift.ttf") format("truetype");
  font-weight: 300 700; /* eixo real da fonte: wght 300-700 */
  font-stretch: 75% 100%; /* eixo real: wdth 75-100 */
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --green: #90f070;
  --green-deep: #7ad655;
  --cream: #f5f3e7;
  --cream-2: #f7f6ec;
  --ink: #141718;
  --ink-soft: #3a3d3c;
  --gray-footer: #e8e8e8;
  --white: #fff;

  --font-display: "Bahnschrift", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --content: 1260px; /* margem de conteudo ~370px cada lado em 1920, igual ao PDF */
  --pad: clamp(20px, 5vw, 40px);
  --header-h: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}
img,
video,
svg,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display); /* Bahnschrift regular */
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.72em 1.5em;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-green {
  background: var(--green);
  color: var(--ink);
}
.btn-green:hover {
  background: var(--green-deep);
  box-shadow: 0 8px 22px -8px rgba(122, 214, 85, 0.7);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #cfcfc4;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-lg {
  font-size: 1.1rem;
  padding: 1.02em 2.1em;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 18px -8px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}
.lang {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  color: #9a9a90;
  transition: color 0.2s, background 0.2s;
}
.lang:hover {
  color: var(--ink);
}
.lang.is-active {
  color: var(--ink);
  background: var(--green);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #1a1c1b;
  color: var(--white);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 9, 0.62) 0%,
    rgba(8, 10, 9, 0.5) 45%,
    rgba(8, 10, 9, 0.66) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: clamp(56px, 6.5vw, 92px);
  width: 100%;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.hero-banrisul {
  height: clamp(36px, 2.8vw, 52px);
  width: auto;
}
.hero-apresenta {
  font-family: var(--font-display); /* Bahnschrift regular */
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 5.5vw, 84px);
}
.hero-edicao {
  display: block;
  font-family: var(--font-body); /* Inter Light */
  font-weight: 300;
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  letter-spacing: 0.16em;
  margin-bottom: 0.5em;
}
.hero-title {
  font-family: var(--font-body); /* Inter Black, largura natural (sem condensar) */
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 6.3rem);
}
.hero-title span {
  display: block;
}
.hero-year {
  color: var(--green);
  font-weight: 300; /* Inter Light */
}
.hero-date {
  text-align: right;
  font-family: var(--font-body);
  padding-bottom: 0.4em;
}
.hero-date-days,
.hero-date-month {
  display: block;
  font-weight: 500; /* Inter Medium */
  line-height: 1.02;
  font-size: clamp(1.6rem, 3vw, 3rem);
  letter-spacing: 0.02em;
}
.hero-date-city {
  display: block;
  margin-top: 0.7em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-lead {
  max-width: 560px;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- COUNTDOWN ---------- */
.countdown-section {
  background: var(--cream);
  padding-block: clamp(48px, 8vw, 104px);
}
.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 2.4vw, 40px);
  flex-wrap: wrap;
  text-align: left;
}
.cd-label {
  font-family: var(--font-body); /* Inter ExtraLight */
  font-size: clamp(1rem, 1.6vw, 1.75rem);
  color: var(--ink-soft);
  font-weight: 200;
}
.cd-label-r {
  max-width: 22ch;
  text-align: left;
}
.cd-timer {
  font-family: var(--font-body); /* Inter Black */
  font-weight: 900;
  color: var(--green);
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- SECTION TITLE (comum) ---------- */
.section-title {
  font-family: var(--font-body); /* Inter Medium */
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2.05rem);
  letter-spacing: 0.005em;
}

/* ---------- SPEAKERS ---------- */
.speakers-section {
  background: var(--cream);
  padding-block: clamp(36px, 4.6vw, 64px) clamp(48px, 7vw, 96px);
}
.speakers-section .section-title {
  margin-bottom: clamp(28px, 4vw, 56px);
}
.speakers-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  cursor: grab;
}
.speakers-marquee.is-dragging {
  cursor: grabbing;
}
.speakers-marquee.is-dragging img {
  pointer-events: none;
}
.speakers-marquee::-webkit-scrollbar {
  display: none;
}
.speakers-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.speaker {
  flex: 0 0 auto;
  width: clamp(230px, 22vw, 320px);
}
.speaker-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ddd;
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: grayscale(6%);
}
.speaker:hover .speaker-photo img {
  transform: scale(1.05);
  filter: grayscale(0);
}
.speaker figcaption {
  padding-top: 16px;
}
.sp-name {
  display: block;
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 4px;
}
.sp-role {
  display: block;
  white-space: pre-line;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ---------- PATROCINADORES ---------- */
.sponsors-section {
  background: var(--cream);
  padding-block: clamp(30px, 5vw, 70px) clamp(50px, 8vw, 110px);
}
.sponsors-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.sponsor-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Cada logo tem LARGURA própria, seguindo a arte do designer.
   Não dá pra normalizar por altura: as proporções dos arquivos são muito
   diferentes (Fruki 7:1, dobralabs 2.7:1, alura ~1:1), então uma altura comum
   deixaria os logos largos gigantes e os compactos minúsculos.
   Os valores são a largura na arte; o vw mantém proporcional em telas menores. */
.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(22px, 2.6vw, 44px);
}

/* >>> Tamanho de TODOS os logos de patrocinador: mexer só aqui. <<<
   Cada logo tem uma largura-base própria (--w), tirada da proporção dele na
   arte do designer; este fator multiplica todas de uma vez. Menor = menores. */
.sponsors-inner {
  --sponsor-scale: 0.62;
}
.sponsor-logos img {
  width: calc(var(--w) * var(--sponsor-scale));
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

/* Larguras-base (proporção de cada logo na arte). Não normalizar por altura:
   as proporções variam muito (Fruki 7:1, dobralabs 2.7:1, alura ~1:1) e altura
   comum deixaria os largos gigantes e os compactos minúsculos. */
.l-sebrae {
  --w: clamp(112px, 10.9vw, 209px);
}
.l-sulgas {
  --w: clamp(108px, 10.6vw, 204px);
}
.l-gerdau {
  --w: clamp(130px, 12.9vw, 248px);
}
.l-vale {
  --w: clamp(106px, 10.5vw, 202px);
}
.l-poapref {
  --w: clamp(72px, 7.1vw, 137px);
}
.l-alurafiap {
  --w: clamp(62px, 6.1vw, 118px);
}
.l-fruki {
  --w: clamp(134px, 13.3vw, 256px);
}
.l-miolo {
  --w: clamp(68px, 6.8vw, 130px);
}
.l-dobralabs {
  --w: clamp(107px, 10.6vw, 204px);
}
.l-ensel {
  --w: clamp(84px, 8.3vw, 159px);
}
.sponsor-label {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.sponsors-inner .btn {
  margin-top: 8px;
}

/* ---------- O QUE ESPERAR (verde) ---------- */
.expect-section {
  background: var(--green);
  padding-block: clamp(48px, 7vw, 100px);
}
.expect-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.expect-sup {
  font-family: var(--font-display); /* Bahnschrift regular */
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.01em;
  color: #1c2a15;
  margin-bottom: 6px;
}
.expect-title {
  font-family: var(--font-body); /* Inter Black */
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}
.stat {
  background: var(--cream);
  border-radius: 8px;
  padding: clamp(16px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-body); /* Inter Black */
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1;
}
.stat-label {
  white-space: pre-line;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink-soft);
}
.expect-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 720 / 800; /* proporção original do VIDEO_FOTOS (vertical, como no PDF) */
}
.expect-photo img,
.expect-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- LOCAL ---------- */
.local-section {
  background: var(--green);
  padding-block: 0 clamp(56px, 9vw, 120px);
}
.local-card {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.local-text {
  padding: clamp(28px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
}
.local-sup {
  font-family: var(--font-body); /* Inter ExtraLight */
  font-weight: 200;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.local-title {
  font-family: var(--font-body); /* Inter Medium */
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.local-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
}
.local-address {
  font-style: normal;
  margin-top: auto;
  padding-top: 28px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.local-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.local-map {
  min-height: 320px;
  display: block;
  overflow: hidden;
}
.local-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--cream-2);
  padding-block: clamp(56px, 9vw, 120px);
}
.faq-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.faq-title {
  font-family: var(--font-body); /* Inter Black */
  font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.02;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.faq-contact p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 24ch;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid #dcdbcd;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-body); /* Inter Black */
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 3px;
}
.faq-icon::after {
  top: 0;
  left: 9px;
  width: 3px;
  height: 20px;
}
.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 44px 26px 0;
  color: var(--ink-soft);
  font-family: var(--font-body); /* Inter Light */
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--gray-footer);
  padding-block: clamp(48px, 7vw, 90px);
  display: flex;
  justify-content: center;
}
.footer-mark {
  width: 56px;
  height: auto;
}

/* ---------- MOTION / REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  .hero-video {
    display: none;
  }
  .speakers-track {
    animation: none;
  }
  .speakers-marquee {
    overflow-x: auto;
  }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .expect-inner {
    grid-template-columns: 1fr;
  }
  .expect-photo {
    order: -1;
    aspect-ratio: 4 / 5; /* vertical no mobile, sem ficar excessivamente alto */
    max-height: 68vh;
  }
  .local-card {
    grid-template-columns: 1fr;
  }
  .local-map {
    min-height: 300px;
    order: -1;
  }
  .faq-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
  }
  .header-nav {
    gap: 8px;
  }
  .header-nav .btn {
    font-size: 0.82rem;
    padding: 0.6em 0.9em;
  }
  .btn-outline {
    display: none; /* Área do Participante some no header mobile, fica no fluxo */
  }
  .hero-main {
    align-items: flex-start;
  }
  .hero-date {
    text-align: left;
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown-inner {
    flex-direction: column;
    gap: 8px;
  }
  .cd-label-r {
    text-align: center;
    max-width: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lang-switch {
    display: none;
  }
}

@media (max-width: 460px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .speaker {
    width: 74vw;
  }
}
