/* ==========================================================================
   Fit for Carbon Pricing — CBAM  |  SENAI-SP + GIZ
   --------------------------------------------------------------------------
   Sumário
   1.  Design tokens
   2.  Reset e base
   3.  Primitivas de layout      (.container, .section, .split)
   4.  Primitivas de texto       (.heading, .tick, .lead, .section-head)
   5.  Componentes               (.btn, .logo, .logo-slot, .checklist,
                                  .benefits, .criteria)
   6.  Seções                    (header, hero, logo-bar, program, cta, footer)
   7.  Preferências do usuário
   --------------------------------------------------------------------------
   Convenções
   - Nomenclatura BEM: bloco__elemento--modificador
   - Media queries ficam junto do componente que modificam (co-locação)
   - Breakpoints: 1200px | 900px | 620px
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Marca ---------------------------------------------------------- */
  --c-red: #d31f41;
  --c-red-hover: #b71736;

  /* --- Superfícies ---------------------------------------------------- */
  --c-slate: #303A42;
  /* seções escuras */
  --c-slate-deep: #262f39;
  /* cards, pílulas, rodapé */
  --c-ink: #14181d;
  /* barra de logos, scrims */
  --c-mist: #ededed;
  /* seções claras */

  /* --- Texto ---------------------------------------------------------- */
  --c-on-dark: #ffffff;
  --c-on-dark-soft: #ccd2d8;
  --c-on-light: #2b333c;
  --c-on-light-soft: #545e69;

  /* --- Tipografia ----------------------------------------------------- */
  --font-base: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'korolev-condensed', var(--font-base);

  
  --fs-hero: clamp(1.75rem, 1.05rem + 2.4vw, 2.9rem);
  --fs-h2: clamp(2rem, 1.1rem + 3.4vw, 3.875rem);
  --fs-h3: clamp(0.95rem, 0.9rem + 0.18vw, 1.06rem);
  --fs-body: clamp(0.875rem, 0.83rem + 0.16vw, 0.97rem);
  --fs-lead: clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
  --fs-ui: 0.82rem;

  --lh-tight: 1.2;
  --lh-body: 1.75;
  --ls-heading: 0.06em;

  /* --- Layout --------------------------------------------------------- */
  --w-container: 1640px;
  /* grade principal solicitada */
  --w-text: 60ch;
  /* medida confortável de leitura */
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 4rem);
  --space-section: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --space-stack: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
  --gap-grid: clamp(1rem, 0.7rem + 1.2vw, 1.6rem);

  --radius: 10px;
  --radius-pill: 999px;

  --header-h: 96px;

  /* --- Movimento ------------------------------------------------------ */
  --t-fast: 0.18s ease;
  --t-base: 0.25s ease;
}


/* ==========================================================================
   2. RESET E BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-on-light);
  background: var(--c-slate);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

/* Atalho de teclado para pular a navegação */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  transform: translateY(-120%);
  transition: transform var(--t-fast);
}

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


/* ==========================================================================
   3. PRIMITIVAS DE LAYOUT
   ========================================================================== */

/* Grade central de 1440px — envolve todo o conteúdo textual */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-section);
  overflow: hidden;
}

.section--dark {
  background: var(--c-slate);
  color: var(--c-on-dark);
}

.section--light {
  background: var(--c-mist);
  color: var(--c-on-light);
}

/* Junta duas seções de mesmo fundo sem costura visível */
.section--flush-bottom {
  padding-bottom: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
}

.section--flush-top {
  padding-top: clamp(1.75rem, 1rem + 2.5vw, 3.25rem);
}

/* Textura pontilhada de fundo das seções claras */
.section--dots::before {
  content: '';
  position: absolute;
  inset-block: 0;
  width: clamp(180px, 26vw, 400px);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.section--dots-right::before {
  right: 0;
  background-image: url('assets/background-por-que-participar.png');
  background-position: left center;
}

.section--dots-left::before {
  left: 0;
  background-image: url('assets/background-publico-elegivel.png');
  background-position: right center;
}

/* Par imagem + texto, espelhável */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 0.5rem + 4vw, 5rem);
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  width: 100%;
}

.split__body>*+* {
  margin-top: var(--space-stack);
}

.split__body p {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Imagem sempre acima do texto no mobile, independente do espelhamento */
  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    max-width: 460px;
    margin-inline: auto;
  }
}


/* ==========================================================================
   4. PRIMITIVAS DE TEXTO
   ========================================================================== */

/* Marcador vertical vermelho que antecede os títulos */
.tick {
  display: block;
  width: 3px;
  height: clamp(36px, 3.8vw, 64px);
  margin-bottom: clamp(0.75rem, 2vw, 1.15rem);
  background: var(--c-red);
}

.heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
}

.heading b {
  font-weight: 700;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 700;
}

.section-head {
  max-width: 74ch;
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .tick {
  margin-inline: auto;
}

.section-head__lead {
  max-width: var(--w-text);
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.625rem);
  color: inherit;
}

.section-head--center .section-head__lead {
  margin-inline: auto;
}

/* Texto de apoio herda o tom da superfície */
.section--dark p {
  color: var(--c-on-dark-soft);
}

.section--light p {
  color: var(--c-on-light-soft);
}


/* ==========================================================================
   5. COMPONENTES
   ========================================================================== */

/* --- Botões ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base);
}

.btn--solid {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
  font-weight: 300;
  font-size: clamp(0.9rem, 0.72rem + 0.9vw, 1.2rem);
}

.btn--solid:hover {
  background: var(--c-red-hover);
  border-color: var(--c-red-hover);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  font-weight: 300;
  font-size: clamp(0.9rem, 0.72rem + 0.9vw, 1.2rem);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn--sm {
  padding: 0.7em 1.5em;
  font-size: 0.76rem;
  font-weight: 600;
}

/* --- Logos ------------------------------------------------------------ */
.logo {
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

/* .logo--giz {
  height: clamp(26px, 3vw, 38px);
} */

.logo--senai {
  height: 70%;
}

/* .logo--dt {
  height: clamp(24px, 2.8vw, 34px);
} */

/* --- Lista de benefícios com selo de check ---------------------------- */
.checklist {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.85rem);
  max-width: 720px;
  margin-inline: auto;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.625rem);
  color: var(--c-on-light);
  line-height: 1.5;
}

.checklist__icon {
  flex: 0 0 auto;
  width: clamp(42px, 4.8vw, 60px);
  height: auto;
}

.checklist__item b {
  font-weight: 700;
}

/* --- Cards "o que sua empresa recebe" --------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
  max-width: 1040px;
  margin-inline: auto;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem);
  background: var(--c-slate-deep);
  border-radius: var(--radius);
}

.benefit__icon {
  flex: 0 0 auto;
  width: clamp(64px, 6.5vw, 84px);
  height: auto;
}

.benefit__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-red);
}

.benefit__body p {
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.375rem);
  line-height: 1.6;
}

@media (max-width: 780px) {
  .benefits {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* --- Pílulas de critérios (público elegível) -------------------------- */
.criteria {
  display: grid;
  justify-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

.criteria__item {
  width: fit-content;
  max-width: 100%;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) clamp(1.5rem, 3.5vw, 3rem);
  background: var(--c-slate-deep);
  border-radius: var(--radius-pill);
  color: var(--c-on-dark);
  font-size: clamp(1.15rem, 1rem + 0.75vw, 1.625rem);
  line-height: 1.5;
  text-align: center;
}

.criteria__item b {
  font-weight: 700;
}

/* No mobile as pílulas viram cards de largura plena: menos "serrilhado"
   à direita e leitura alinhada à esquerda. */
@media (max-width: 620px) {
  .criteria {
    justify-items: stretch;
  }

  .criteria__item {
    width: auto;
    border-radius: var(--radius);
    text-align: left;
  }
}


/* ==========================================================================
   6. SEÇÕES
   ========================================================================== */

/* --- Header / navegação ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000000;
  background: var(--c-slate-deep);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  min-height: var(--header-h);
}

.site-header__inner .btn{
  font-weight: 100;
  font-size: .9rem !important;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.site-nav__link {
  font-size: var(--fs-ui);
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color var(--t-fast);
}

.site-nav__link:hover {
  color: #D52042;
}

/* Checkbox de controle: fora da tela, porém focável pelo teclado */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Botão hambúrguer — visível apenas no mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}

.nav-burger__bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* O checkbox fica oculto; o label acima o controla */
.nav-toggle:focus-visible+.site-header__inner .nav-burger {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .site-header__inner {
    justify-content: space-between;
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .nav-burger {
    display: flex;
    order: -1;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-base);
  }

  .site-nav__list {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-toggle:checked+.site-header__inner .site-nav {
    grid-template-rows: 1fr;
  }

  .site-nav__link {
    display: block;
    padding: 0.85rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .site-header__cta {
    font-size: 0.68rem;
    padding: 0.65em 1.1em;
  }
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 58vw, 1029px);
  padding: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: 11%;
  background:
    linear-gradient(100deg,
      rgba(24, 31, 38, 1) 20% 0%,
      rgba(20, 24, 29, 0.78) 32%,
      rgba(20, 24, 29, 0.3) 62%,
      rgba(20, 24, 29, 0.1) 100%),
    url(assets/background-hero-header.png);
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: center;
  /* background-size: cover; */
  overflow: hidden;
      margin-top: -3%;
  margin-bottom: -8%;
}

@media (max-width: 1440px) {
  .hero {
    background-size: cover;
  }
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: url('assets/meia-lua-background-hero.png');
  background-repeat: no-repeat;
  filter: brightness(1.3) opacity(0.5);
  background-size: 34%;
  background-position-x: 5%;
}

/* Véu escuro que garante contraste do texto sobre a foto */
.hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

/* Largo o bastante para o título ocupar as duas linhas previstas;
   o texto de apoio é reduzido separadamente para manter a legibilidade. */
.hero__content {
  max-width: min(788px, 100%);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.hero__title {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: #fff;
}

.hero__title b {
  font-weight: 700;
}

/* Barra vermelha vertical à esquerda do título */
.hero__text__actions__container {
  position: relative;
  padding-left: 2.25rem;
}

.hero__text {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 90ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero__text__actions__container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  background: var(--c-red);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

@media (max-width: 620px) {
  .hero__backdrop {
    background-position: 72% center;
  }

  .hero__backdrop::after {
    background: linear-gradient(180deg,
        rgba(20, 24, 29, 0.9) 0%,
        rgba(20, 24, 29, 0.78) 60%,
        rgba(20, 24, 29, 0.6) 100%);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    padding: 0.7em 1.25em;
    font-size: 0.85rem;
  }

  .hero {
    margin-bottom: 0;
    background-size: cover;
  }
}

/* --- Barra de logos ---------------------------------------------------- */
.logo-bar {
  background: #fff;
  position: relative;
  z-index: 999;
}

.logo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(1.1rem, 2.2vw, 1.75rem);
}

.logo-bar__image {
  width: 100%;
  max-width: 1546px;
  height: auto;
}

/* --- Sobre o programa -------------------------------------------------- */
.program {
  max-width: 780px;
}

.program p {
  margin-top: var(--space-stack);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
}

.container-sobre {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section--program {
  padding-bottom: 0;
}

.program__logos {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #fff;
}

.program__logos-image {
  width: 100%;
  max-width: 1546px;
  margin-inline: auto;
  padding-block: clamp(1.1rem, 2.2vw, 1.75rem);
}

/* --- Chamada final ----------------------------------------------------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(447px, 42vw, 749px);
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--c-ink);
  overflow: hidden;
}

.cta__backdrop {
  position: absolute;
  inset: 0;
  background: url('assets/background-footer.png') no-repeat center left;
  background-color: red;
}

@media (max-width: 620px) {
  .cta__backdrop {
    background-size: cover;
  }
}

.cta__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 29, 0) 0%, rgba(20, 24, 29, 0) 32%, rgba(24, 31, 38, 1) 55%, rgba(24, 31, 38, 1) 100%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.cta__content {
  flex: 0 1 60%;
}

.cta__title {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 100;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
  color: #fff;
}

.cta__title b {
  font-weight: 700;
}

@media (max-width: 900px) {
  .cta__backdrop::after {
    background: linear-gradient(180deg,
        rgba(20, 24, 29, 0.55) 0%,
        rgba(20, 24, 29, 0.85) 55%,
        rgba(20, 24, 29, 0.92) 100%);
  }

  .cta__inner {
    justify-content: flex-start;
  }

  .cta__content {
    flex: 1 1 100%;
  }
}

/* --- Rodapé ------------------------------------------------------------ */
.site-footer {
  background: var(--c-slate-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 620px) {
  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__inner .logo {
    height: clamp(28px, 8vw, 40px);
  }
}


/* ==========================================================================
   7. PREFERÊNCIAS DO USUÁRIO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}