/* ==========================================================================
   Hora do Enem · Landing page
   Mobile first. O Figma só traz o desktop (1400px): os valores a partir de
   992px seguem o layout; os valores menores são uma adaptação para mobile.
   ========================================================================== */

:root {
  /* Cores */
  --c-blue: #08739a;
  --c-yellow: #fec62b;
  --c-yellow-strip: #ffc72c;
  --c-pink: #b519c9;
  --c-lime: #b4e83c;
  --c-navy: #0e1240;
  --c-sand: #f5f3ef;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-ink: #111111;
  --c-ink-soft: #333333;
  --c-line: #2e2e2e;
  --c-muted: #949494;

  /* Tipografia */
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Espaçamento */
  --gutter: 24px;
  --gutter-wide: 24px;
  --section-y: 48px;
}

@media (min-width: 992px) {
  :root {
    --gutter-wide: 32px;
    --section-y: 96px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, figure, ul {
  margin: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--c-white);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-wide {
  padding-inline: var(--gutter-wide);
}

.icon-sprite {
  display: none;
}

.icon {
  display: block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--c-ink);
  color: var(--c-white);
}

.skip-link:focus {
  top: 16px;
}

/* Corte das linhas igual ao do Figma, onde o navegador suporta */
.display,
.lead,
.notice-title,
.notice-text,
.about-lead,
.about-text,
.host-text,
.footer-brand p,
.footer-copy,
.footer-address {
  text-box: trim-both cap alphabetic;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-white);
  overflow-wrap: break-word;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--c-white);
}

@media (min-width: 992px) {
  .display {
    font-size: clamp(3.25rem, 5.14vw, 4.5rem);
  }

  .lead {
    font-size: 1.5rem;
  }
}

/* Botão
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 10px 28px 10px 20px;
  border-radius: 99px;
  background: var(--c-yellow);
  box-shadow: 0 4px 0 var(--c-black);
  color: var(--c-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--c-black);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--c-black);
}

@media (min-width: 992px) {
  .btn {
    width: auto;
    max-width: none;
    padding: 0 32px 0 24px;
    white-space: nowrap;
  }
}

/* Header
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  background: var(--c-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* Hero: no mobile, os dois fundos empilham; no desktop, dividem a tela ao meio.
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  padding-inline: 0;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 56px var(--gutter);
  background: var(--c-blue);
}

.hero-title-accent {
  color: var(--c-yellow);
}

.hero-media-col {
  position: relative;
  padding: 56px var(--gutter);
  background: var(--c-yellow);
}

.circle {
  position: absolute;
}

/* O círculo verde só aparece no desktop, como no print de referência do mobile */
.circle-green {
  display: none;
}

.circle-pink {
  bottom: 24px;
  left: 8px;
  width: 56px;
}

/* Moldura em CSS: a área interna fica em 16:9, sem faixas pretas no player */
.video-frame {
  --frame: clamp(8px, 2.74vw, 16px);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 584px;
  margin-inline: auto;
  overflow: hidden;
  border: var(--frame) solid var(--c-navy);
  border-radius: calc(var(--frame) * 2.06);
  background: var(--c-navy);
}

.video-lite,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-lite {
  position: relative;
}

.video-lite:focus-visible {
  outline-offset: -6px;
}

.video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  right: calc(var(--frame) * 1.375);
  bottom: calc(var(--frame) * 1.375);
  display: grid;
  place-items: center;
  width: calc(var(--frame) * 4);
  height: calc(var(--frame) * 4);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-navy);
  font-size: calc(var(--frame) * 1.8);
  transition: transform .2s ease;
}

.video-lite:hover .video-play {
  transform: scale(1.08);
}

@media (min-width: 992px) {
  .hero {
    padding-block: 80px;
    background: linear-gradient(90deg, var(--c-blue) 50%, var(--c-yellow) 50%);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding-inline: var(--gutter);
  }

  .hero-text-col {
    position: relative;
    z-index: 1;
    gap: 48px;
    padding: 0;
    background: none;
  }

  .hero-media-col {
    position: static;
    padding: 0;
    background: none;
  }

  /* Ancorados no centro da tela, como no frame de 1400px */
  .circle-green {
    display: block;
    top: 40px;
    right: auto;
    left: calc(50% + 442px);
    width: 178px;
  }

  .circle-pink {
    top: 607px;
    bottom: auto;
    left: calc(50% + 43px);
    width: 70px;
  }

  .video-frame {
    margin-inline: 0;
  }
}

/* Aviso
   ========================================================================== */
.notice {
  padding-block: 40px;
  background: var(--c-pink);
  color: var(--c-white);
}

.notice-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--c-lime);
  color: var(--c-black);
  font-size: 1.5rem;
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.notice-text {
  font-size: 1.125rem;
  line-height: 1.4;
}

@media (min-width: 992px) {
  .notice {
    padding-block: 48px;
  }

  .notice-inner {
    flex-direction: row;
    align-items: center;
  }

  .notice-text {
    font-size: 1.25rem;
  }
}

/* Sobre o programa
   ========================================================================== */
.about {
  padding-block: var(--section-y);
  background: var(--c-sand);
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 24px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--c-lime);
}

.about-circle {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 184px;
}

.about-icon {
  position: relative;
  width: 52px;
}

.about-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  line-height: 1.4;
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-ink);
}

.about-text {
  font-size: 1.125rem;
  color: var(--c-ink-soft);
}

.host-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  border-radius: 32px;
  background: var(--c-white);
}

.host-photo {
  width: 100%;
  aspect-ratio: 420 / 391;
  border-radius: 16px;
  object-fit: cover;
}

.host-text {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--c-ink-soft);
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 516px);
  }

  .about-card {
    gap: 64px;
    padding: 64px 48px;
    border-radius: 48px;
  }

  .about-circle {
    top: -120px;
    right: -110px;
    width: 276px;
  }

  .about-icon {
    width: 65px;
  }

  .about-copy {
    gap: 48px;
  }

  .about-lead {
    font-size: clamp(1.625rem, 2.29vw, 2rem);
  }

  .about-text {
    font-size: clamp(1.25rem, 1.72vw, 1.5rem);
  }

  .host-card {
    gap: 40px;
    padding: 48px;
    border-radius: 48px;
  }

  .host-photo {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto;
    height: 0;
  }

  .host-text {
    font-size: 1.25rem;
  }
}

/* Manifesto
   ========================================================================== */
.manifesto {
  padding-block: var(--section-y);
  background: var(--c-navy);
}

.manifesto-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 948px;
}

.manifesto-accent {
  color: var(--c-lime);
}

.manifesto .lead {
  color: var(--c-sand);
}

@media (min-width: 992px) {
  .manifesto-inner {
    gap: 48px;
  }
}

/* Faixa de cores
   ========================================================================== */
.color-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 16px;
}

.color-strip span:nth-child(-n+2) { background: var(--c-blue); }
.color-strip span:nth-child(3) { background: var(--c-yellow-strip); }
.color-strip span:nth-child(4) { background: var(--c-pink); }
.color-strip span:nth-child(5) { background: var(--c-lime); }

/* Rodapé
   ========================================================================== */
.site-footer {
  padding-block: 48px;
  background: var(--c-black);
  color: var(--c-white);
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-top::after {
  content: "";
  position: absolute;
  inset: auto var(--gutter-wide) 0;
  height: 1px;
  background: var(--c-line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--c-yellow);
}

.footer-social .icon {
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding-top: 32px;
}

.footer-copy {
  color: var(--c-muted);
}

.footer-address {
  font-style: normal;
}

:focus-visible:is(.site-footer *) {
  outline-color: var(--c-white);
  box-shadow: none;
}

@media (min-width: 992px) {
  .site-footer {
    padding-block: 64px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-top::after {
    inset-inline: 0;
  }

  .footer-social {
    flex-direction: row;
    gap: 32px;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }
}

/* Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
