:root {
  /*
    GUIA RAPIDO
    Para mudar a identidade visual, comece por estas variaveis.
    O restante do CSS usa var(...), entao uma troca aqui se espalha pelo site.

    MAPA DE USO DAS CORES
    --color-bg: fundo geral da pagina.
    --color-bg-soft: fundo das alternativas do quiz.
    --color-surface e --color-surface-solid: blocos, cards, galeria, quiz, video e HQ.
    --color-text e --color-text-soft: textos principais e textos de apoio.
    --color-line: bordas suaves de cards, seções e caixas.
    --color-primary: selos, títulos menores, botões verdes e destaques.
    --color-primary-dark: textos fortes, links destacados e estados de hover.
    --color-primary-light: gradientes de botões verdes e cards expansíveis.
    --color-accent: botões principais, foco de teclado, pontos ativos e links em hover.
    --color-footer, --color-header e --color-header-mobile: rodapé, cabeçalho desktop e menu mobile.
    --contrast-*: paleta aplicada quando o modo de alto contraste está ativo.
  */

  /* 1. Cores principais */
  --color-bg: #f8f3e7;
  --color-bg-soft: #fffaf0;
  --color-surface: rgba(255, 251, 244, 0.82);
  --color-surface-solid: #fffdf8;
  --color-text: #2d241c;
  --color-text-soft: #685a4d;
  --color-line: rgba(120, 90, 40, 0.18);

  /* 2. Cores da marca */
  --color-primary: #335f45;
  --color-primary-dark: #244533;
  --color-primary-light: #447257;
  --color-accent: #b27a2f;
  --color-accent-dark: #b67b28;
  --color-accent-bright: #c88e3d;

  /* 3. Cores de apoio */
  --color-white: #fff;
  --color-white-soft: #fff8ea;
  --color-paper: #fffdf9;
  --color-paper-soft: #faf4e8;
  --color-paper-warm: #f8f1e4;
  --color-sand: #efe4d0;
  --color-hq-paper: #f7ecd7;
  --color-dot: #d9c7a5;
  --color-footer: #213628;
  --color-header: rgba(40, 63, 47, 0.88);
  --color-header-line: rgba(255, 255, 255, 0.08);
  --color-header-mobile: rgba(33, 54, 40, 0.98);
  --color-nav-text: rgba(255, 255, 255, 0.92);
  --color-nav-strong: rgba(255, 255, 255, 0.96);

  /* 4. Alto contraste */
  --contrast-bg: #000;
  --contrast-surface: #111;
  --contrast-hover: #222;
  --contrast-text: #fff;
  --contrast-accent: #ff0;
  --contrast-muted: #666;

  /* 5. Medidas reutilizaveis */
  --shadow: 0 10px 30px rgba(59, 39, 17, 0.10);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.25);
  --radius-lg: 24px;
  --container: 1180px;

  /* Apelidos curtos usados no CSS abaixo para evitar repetir nomes longos. */
  --bg: var(--color-bg);
  --bg-soft: var(--color-bg-soft);
  --surface: var(--color-surface);
  --surface-strong: var(--color-surface-solid);
  --text: var(--color-text);
  --muted: var(--color-text-soft);
  --line: var(--color-line);
  --primary: var(--color-primary);
  --primary-strong: var(--color-primary-dark);
  --accent: var(--color-accent);
}

/* Reset básico: remove espaçamentos padrão e facilita cálculo de largura. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

section {
  scroll-margin-top: 104px;
}

/* CABEÇALHO E NAVEGAÇÃO */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: var(--color-header);
  border-bottom: 1px solid var(--color-header-line);
}

.header-inner,
.footer-inner,
.hero-section,
.content-section {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.logo img {
  width: 132px;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo,
.navbar {
  flex-shrink: 0;
}

.logo:hover img {
  transform: scale(1.04);
}

.site-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--color-white);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.navbar {
  position: relative;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  background: transparent;
  font-size: 1.7rem;
  color: var(--color-white);
  border: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-nav-text);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white-soft);
  transform: translateY(-1px);
}

.nav-more {
  position: relative;
}

.nav-more-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-more-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.25s ease;
}

.nav-more.open .nav-more-arrow {
  transform: rotate(180deg) translateY(-1px);
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
}

.nav-more-btn,
.carousel-btn,
.accessibility-fixed {
  appearance: none;
  border: 2px solid var(--color-white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 10px 24px rgba(0, 0, 0, 0.20);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-more-btn:hover,
.nav-more-btn:focus-visible,
.carousel-btn:hover,
.carousel-btn:focus-visible,
.accessibility-fixed:hover,
.accessibility-fixed:focus-visible {
  background: linear-gradient(135deg, var(--accent) 0%, var(--color-accent-bright) 100%);
  border-color: var(--color-white);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 10px 24px rgba(178, 122, 47, 0.28);
}

/* ESTRUTURA GERAL DAS SEÇÕES */
main {
  padding: 34px 0 72px;
}

/* HERO: primeira área visual do site, com chamada, botões e imagem principal. */
.hero-section {
  display: grid;
  gap: 20px;
  padding-top: 10px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.surface-block {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  height: 100%;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(51, 95, 69, 0.10);
  border: 1px solid rgba(51, 95, 69, 0.16);
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-copy h1 {
  margin: 14px 0 14px;
  font-size: 2.3rem;
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 36ch;
  text-align: center;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 100%;
  text-align: justify;
}

.hero-copy p strong {
  color: var(--primary-strong);
}

.hero-copy p + p {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

/* Botões reutilizáveis: usados no hero, curiosidades e envio do quiz. */
.action-btn,
.secondary-btn,
.card-toggle,
.dot {
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.action-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.action-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--color-accent-bright) 100%);
  color: var(--color-white);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.56);
  color: var(--primary-strong);
  border-color: rgba(51, 95, 69, 0.18);
}

.action-btn:hover,
.secondary-btn:hover,
.card-toggle:hover,
.dot:hover {
  transform: translateY(-2px);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-point {
  padding: 12px 12px 14px;
  border: 1px solid rgba(120, 90, 40, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 242, 231, 0.96));
}

.hero-point strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-strong);
  font-size: 1rem;
}

.hero-point span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-shell > .hero-copy,
.hero-shell > .hero-visual {
  height: 100%;
}

.hero-visual {
  min-height: 100%;
  padding: 0;
  display: flex;
  align-self: stretch;
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  width: 100%;
  height: 100%;
  min-height: 480px;
  box-shadow: var(--shadow);
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 17, 13, 0.02) 0%, rgba(21, 17, 13, 0.14) 52%, rgba(21, 17, 13, 0.78) 100%);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 18px 20px;
  border-radius: 20px;
  color: var(--color-white);
  background: rgba(24, 20, 15, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-image-overlay span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.hero-image-overlay strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.35;
  max-width: 28ch;
}

/* Títulos e blocos de conteúdo compartilhados pelas seções internas. */
.content-section {
  padding-top: 84px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: 2.5rem;
  line-height: 1.1;
}

.section-heading p {
  color: var(--muted);
}

.surface-block {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.gallery-block,
.video-shell,
.hq-shell,
.info-box,
.quiz-form,
.quiz-result {
  background: var(--surface-strong);
}

/* GALERIA/CARROSSEL: imagem, setas, legenda e indicadores. */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 21 / 9;
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-sand) 100%);
}

.carousel-slide {
  position: relative;
  z-index: 1;
  width: auto;
  height: calc(100% - 36px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform-origin: center;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.carousel-preview {
  position: absolute;
  top: 50%;
  width: 34%;
  height: 86%;
  object-fit: cover;
  border-radius: 28px;
  filter: blur(8px);
  opacity: 0.38;
  transform: translateY(-50%) scale(1.06);
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
  pointer-events: none;
  user-select: none;
}

.carousel-wrapper.is-committing .carousel-preview {
  opacity: 0;
  transition-duration: 0.08s;
}

.carousel-wrapper.is-committing .carousel-slide {
  opacity: 1;
  transform: none;
  transition-duration: 0.08s;
}

.preview-left {
  left: 3%;
}

.preview-right {
  right: 3%;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  z-index: 0;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.64), rgba(255, 253, 248, 0));
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 253, 248, 0.64), rgba(255, 253, 248, 0));
}

.carousel-wrapper.is-moving-next .carousel-slide {
  animation: film-current-to-left 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

.carousel-wrapper.is-moving-next .preview-right {
  animation: film-right-to-center 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

.carousel-wrapper.is-moving-next .preview-left {
  animation: film-left-out 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

.carousel-wrapper.is-moving-prev .carousel-slide {
  animation: film-current-to-right 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

.carousel-wrapper.is-moving-prev .preview-left {
  animation: film-left-to-center 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

.carousel-wrapper.is-moving-prev .preview-right {
  animation: film-right-out 0.46s cubic-bezier(0.22, 0.8, 0.24, 1) forwards;
}

@keyframes film-current-to-left {
  to {
    opacity: 0.36;
    filter: blur(6px);
    transform: translateX(-72%) scale(0.84);
  }
}

@keyframes film-current-to-right {
  to {
    opacity: 0.36;
    filter: blur(6px);
    transform: translateX(72%) scale(0.84);
  }
}

@keyframes film-right-to-center {
  to {
    right: 50%;
    opacity: 1;
    filter: blur(0);
    transform: translate(50%, -50%) scale(1);
  }
}

@keyframes film-left-to-center {
  to {
    left: 50%;
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes film-left-out {
  to {
    opacity: 0;
    transform: translate(-24%, -50%) scale(1.02);
  }
}

@keyframes film-right-out {
  to {
    opacity: 0;
    transform: translate(24%, -50%) scale(1.02);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 3;
}

.carousel-btn:focus-visible {
  outline: none;
}

.carousel-btn.left {
  left: 14px;
}

.carousel-btn.right {
  right: 14px;
}

.carousel-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-soft) 100%);
}

.carousel-caption h3 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.carousel-caption p {
  color: var(--muted);
  max-width: 740px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: var(--color-dot);
  cursor: pointer;
}

.dot.active {
  width: 28px;
  background: var(--accent);
}

/* CURIOSIDADES E QUIZ */
.info-box p {
  font-size: 1.02rem;
}

.quiz-question + .quiz-question {
  margin-top: 22px;
}

.quiz-question p {
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-question label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  cursor: pointer;
}

.quiz-question input {
  margin-top: 3px;
}

.quiz-question:last-of-type {
  margin-bottom: 10px;
}

.quiz-submit-btn {
  margin-top: 14px;
}

.quiz-result {
  display: none;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary-strong);
}

.quiz-result.show {
  display: block;
}

/* JORNADA PRODUTIVA */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.98));
}

.process-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(214,161,86,0.12), transparent 45%);
}

.process-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--accent), var(--color-accent-dark));
  box-shadow: 0 12px 26px rgba(182, 123, 40, 0.22);
}

.process-card h3 {
  font-size: 1.18rem;
  color: var(--primary-strong);
}

.process-card p {
  color: var(--muted);
}

/* SUSTENTABILIDADE: cards expansíveis abertos/fechados pelo JavaScript. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.info-card {
  align-self: stretch;
  height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 22px;
}

.card-toggle {
  width: 100%;
  min-height: 88px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 22px;
}

.expandable-card.open .card-toggle {
  border-radius: 22px 22px 0 0;
}

.card-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.card-content {
  display: none;
  padding: 18px 20px 22px;
  background: var(--surface-strong);
  min-height: 148px;
  flex: 1;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow);
}

.expandable-card.open .card-content {
  display: block;
}

/* VIDEO E HQ */
.video-container video {
  width: 100%;
  border-radius: 18px;
}

.hq-frame-container {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-hq-paper);
  border: 1px solid var(--line);
}

.hq-frame-container iframe {
  width: 100%;
  height: 820px;
  border: none;
  display: block;
  background: var(--color-hq-paper);
}

/* CONTATO */
.contact-card-professional {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-warm) 100%);
}

.contact-card-professional h3 {
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--primary-strong);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-info-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--primary);
}

.contact-info-item strong,
.contact-info-item a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

.contact-info-item a:hover,
.contact-info-item a:focus-visible {
  color: var(--accent);
}

/* RODAPÉ */
footer {
  background: var(--color-footer);
  color: var(--color-white);
  border-top: 1px solid var(--color-header-line);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.88);
}

.footer-copy {
  margin: 0;
}

.footer-right-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-logo-nre {
  height: 70px;
  width: auto;
}

.footer-logo-programacao {
  height: 70px;
  width: auto;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* ACESSIBILIDADE: botão flutuante, menu e estilos de alto contraste. */
.accessibility-fixed {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  font-size: 1rem;
  font-weight: 700;
}

.accessibility-menu {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 1001;
}

.nav-more-panel,
.accessibility-menu {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 243, 0.96);
  border: 1px solid rgba(140, 109, 63, 0.16);
  box-shadow: 0 16px 30px rgba(62, 48, 31, 0.14);
  backdrop-filter: blur(10px);
}

.nav-more-panel {
  display: none;
}

.nav-more.open .nav-more-panel {
  display: flex;
}

.accessibility-menu.hidden {
  display: none;
}

.nav-more-panel a,
.accessibility-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.nav-more-panel a:hover,
.nav-more-panel a:focus-visible,
.accessibility-menu button:hover,
.accessibility-menu button:focus-visible {
  background: rgba(243, 183, 74, 0.16);
  border-color: rgba(243, 183, 74, 0.18);
  color: var(--primary-strong);
}

.high-contrast {
  background: var(--contrast-bg) !important;
  color: var(--contrast-text) !important;
}

.high-contrast main,
.high-contrast section,
.high-contrast p,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast strong,
.high-contrast span,
.high-contrast li,
.high-contrast label,
.high-contrast button {
  color: var(--contrast-text) !important;
}

.high-contrast .header,
.high-contrast footer,
.high-contrast .nav-links,
.high-contrast .nav-more-panel,
.high-contrast .hero-copy,
.high-contrast .surface-block,
.high-contrast .info-card,
.high-contrast .hero-point,
.high-contrast .carousel-caption,
.high-contrast .card-content,
.high-contrast .quiz-question label,
.high-contrast .contact-info-item,
.high-contrast .accessibility-menu,
.high-contrast .hq-frame-container,
.high-contrast .hero-image-overlay {
  background: var(--contrast-surface) !important;
  color: var(--contrast-text) !important;
  border-color: var(--contrast-text) !important;
  box-shadow: none !important;
}

.high-contrast .header,
.high-contrast footer {
  border-color: var(--contrast-text) !important;
}

.high-contrast .section-tag,
.high-contrast .eyebrow,
.high-contrast .contact-label {
  background: transparent !important;
  color: var(--contrast-accent) !important;
  border-color: var(--contrast-accent) !important;
}

.high-contrast .action-btn,
.high-contrast .secondary-btn,
.high-contrast .card-toggle,
.high-contrast .nav-more-btn,
.high-contrast .carousel-btn,
.high-contrast .accessibility-fixed,
.high-contrast .accessibility-menu button,
.high-contrast .social-links a {
  background: var(--contrast-surface) !important;
  color: var(--contrast-text) !important;
  border: 1px solid var(--contrast-text) !important;
}

.high-contrast .nav-links a,
.high-contrast .nav-more-panel a,
.high-contrast .contact-info-item a,
.high-contrast a {
  color: var(--contrast-accent) !important;
}

.high-contrast .nav-links a:hover,
.high-contrast .nav-links a:focus-visible,
.high-contrast .nav-more-panel a:hover,
.high-contrast .nav-more-panel a:focus-visible,
.high-contrast .contact-info-item a:hover,
.high-contrast .contact-info-item a:focus-visible,
.high-contrast .action-btn:hover,
.high-contrast .secondary-btn:hover,
.high-contrast .card-toggle:hover,
.high-contrast .nav-more-btn:hover,
.high-contrast .carousel-btn:hover,
.high-contrast .accessibility-fixed:hover,
.high-contrast .accessibility-menu button:hover,
.high-contrast .social-links a:hover {
  background: var(--contrast-hover) !important;
  color: var(--contrast-accent) !important;
  border-color: var(--contrast-accent) !important;
}

.high-contrast .dot {
  background: var(--contrast-muted) !important;
  border: 1px solid var(--contrast-text) !important;
}

.high-contrast .dot.active {
  background: var(--contrast-accent) !important;
}

.high-contrast input {
  accent-color: var(--contrast-accent);
}

/* ANIMAÇÃO DE ENTRADA: o JavaScript adiciona .visible durante a rolagem. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduz animações para usuários que preferem menos movimento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVIDADE: ajustes progressivos para tablets e celulares. */
@media (max-width: 1080px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  .content-section {
    padding-top: 68px;
  }

  .section-heading h2 {
    font-size: 2.15rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .carousel-caption,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right-cluster {
    justify-content: flex-start;
    gap: 14px;
  }

  .footer-logos {
    gap: 14px;
  }

  .footer-logo-nre {
    height: 46px;
  }

  .footer-logo-programacao {
    height: 36px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    min-height: 74px;
  }

  .logo img {
    width: 104px;
  }

  .nav-desktop {
    display: none;
  }

  .site-title {
    text-align: left;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    padding: 10px;
    border-radius: 18px;
    background: var(--color-header-mobile);
    box-shadow: var(--shadow-strong);
  }

  .nav-links.show {
    display: flex;
  }

  main {
    padding-top: 18px;
  }

  .hero-copy,
  .surface-block {
    padding: 20px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2rem;
    margin: 12px 0;
  }

  .hero-copy p {
    text-align: left;
  }

  .hero-copy p + p {
    margin-top: 8px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-points {
    margin-top: 16px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 320px;
  }

  .hero-image-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    z-index: 4;
  }

  .carousel-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 24px;
  }

  .carousel-preview,
  .carousel-wrapper::before,
  .carousel-wrapper::after {
    display: none;
  }

  .carousel-slide {
    width: 100%;
    height: 100%;
    padding: 18px 56px;
    border-radius: inherit;
  }

  .carousel-slide img {
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
    overflow: hidden;
  }

  .hq-frame-container iframe {
    height: 450px;
    aspect-ratio: 3 / 4;
  }

  .contact-card-professional {
    padding: 22px;
  }

  .contact-card-professional h3 {
    font-size: 1.55rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    align-items: start;
  }

  .cards-grid .info-card {
    height: auto;
  }

  .cards-grid .card-content {
    min-height: auto;
    flex: initial;
  }

  .footer-copy {
    width: 100%;
  }

  .footer-right-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-logos {
    justify-content: flex-start;
  }

  .accessibility-fixed {
    right: 14px;
    bottom: 14px;
  }

  .accessibility-menu {
    right: 14px;
    left: 14px;
    bottom: 78px;
    width: auto;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .hero-section,
  .content-section {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    gap: 10px;
  }

  .logo img {
    width: 88px;
  }

  .site-title {
    font-size: 0.86rem;
  }

  .hamburger {
    font-size: 1.55rem;
  }

  .nav-links {
    min-width: 0;
    width: calc(100vw - 24px);
  }

  main {
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .content-section {
    padding-top: 56px;
  }

  .hero-copy,
  .surface-block {
    padding: 16px;
  }

  .hero-copy,
  .hero-image-card {
    border-radius: 20px;
  }

  .hero-copy h1 {
    font-size: 1.72rem;
    line-height: 1.12;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .action-btn,
  .secondary-btn {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
  }

  .hero-visual,
  .hero-image-card,
  .hero-image-card img {
    min-height: 280px;
  }

  .hero-image-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .hero-image-overlay strong {
    font-size: 0.98rem;
  }

  .carousel-caption {
    padding: 16px;
    gap: 14px;
  }

  .carousel-dots {
    width: 100%;
    justify-content: center;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .carousel-slide {
    padding: 14px 48px;
  }

  .carousel-btn.left {
    left: 12px;
  }

  .carousel-btn.right {
    right: 12px;
  }

  .quiz-question label {
    padding: 11px 12px;
  }

  .footer-logo-nre,
  .footer-logo-programacao {
    height: 34px;
  }

  .accessibility-fixed {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 650px) {
  /* Ajustes extras para manter a HQ legível em telas estreitas. */
  .hq-frame-container iframe {
    height: 350px;
  }

  .hq-frame-container {
    border-radius: 8px;
    margin: 0 -10px;
  }
}

@media (max-width: 450px) {
  .hq-frame-container iframe {
    height: 60vh;
    min-height: 300px;
  }

  .hq-frame-container {
    margin: 0;
    border-radius: 4px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .logo img {
    width: 76px;
  }

  .site-title {
    font-size: 0.78rem;
  }

  .hero-copy,
  .surface-block {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: 1.55rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .contact-info-item {
    padding: 14px;
  }
}