/* =========================================================
   RED UNIVERSE — style.css
   Cores e fontes principais ficam nas variáveis abaixo.
   ========================================================= */
:root {
  --red: #f2021b;
  --red-dark: #c40015;
  --black: #000;
  --white: #fff;
  --card: #fdf4f4;
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Poppins", Arial, sans-serif;
  --max: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

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

.title {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(28px, 3.3vw, 46px);
  margin-bottom: 0.9em;
}

.hl { color: var(--red); }

p + p { margin-top: 1.3em; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.main-nav {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 40%;
  right: 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-title);
  font-size: clamp(19px, calc(1.45vw + 5px), 25px);
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
section[id] { scroll-margin-top: 24px; }
.hero__inner {
  position: relative;
  max-width: none;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
}
.hero__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 35%);
  pointer-events: none;
  z-index: -1;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero__logo {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 22%;
}

/* ---------- SOBRE ---------- */
.about { padding: 0 0 clamp(60px, 11vw, 160px); }
.about__grid {
  display: grid;
  grid-template-columns: 39.3% 1fr;
  gap: 3.2%;
  align-items: start;
  padding: 0 4% 0 3.9%;
}
.about__text { padding-top: 2.5%; }


/* ---------- HISTÓRIA (texto longo) ---------- */
.about__photo { position: sticky; top: 40px; }
.about__origin {
  margin: 8% 4% 0;
  border: 3px solid var(--red);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.about__origin img { width: 100%; }
.about__origin figcaption {
  font-size: 0.72em;
  line-height: 1.4;
  color: #ccc;
  padding: 0.7em 0.9em;
}
.story__meta {
  font-size: 0.85em;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 1.2em;
}
.story__lead {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5em;
  line-height: 1.1;
}
.story em { font-style: italic; color: #ddd; }
.story strong { font-weight: 600; }
.story__cta {
  margin-top: 1.6em;
  padding-top: 1.2em;
  border-top: 2px solid var(--red);
  font-weight: 500;
  line-height: 1.6;
}
.story__cta .hl { font-family: var(--font-title); font-weight: 700; font-size: 1.4em; }

/* ---------- BANNER + RED TALK ---------- */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.talk__grid {
  position: relative;
  display: flex;
  align-items: flex-start;
}
/* faixa branca atrás do logo e dos vídeos (como no layout) */
.talk__grid::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 0;
  padding-bottom: 22.36%;
  background: var(--white);
}
.talk__logo {
  position: relative;
  width: 40%;
  margin-left: 6.4%;
  margin-top: -10.36%;   /* faz o logo "subir" sobre o banner, como no layout */
  flex: none;
}
.talk__videos {
  position: relative;
  width: 38.6%;
  margin-left: 3.6%;
  padding-top: 3.36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3em;
  flex: none;
}

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9%;
  width: 100%;
}
.video {
  background: var(--card);
  color: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s;
}
.video:hover { transform: translateY(-3px); }
.video img { width: 100%; }
.video__meta { padding: 0.55em 0.7em 0.7em; }
.video__title {
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video__info { font-size: 0.68em; color: #555; margin-top: 0.4em; }

/* ---------- RED RUN ---------- */
.run { padding: clamp(50px, 7vw, 100px) 0 clamp(80px, 10vw, 140px); }
.run__grid {
  display: grid;
  grid-template-columns: 29.4% 29.6% 25.4%;
  justify-content: space-between;
  align-items: start;
  padding: 0 6.1% 0 6.3%;
}
.run__col--right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.6em;
  padding-top: 2.3%;
}
.run__logo { padding-top: 1.5%; }

/* ---------- FOOTER ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.footer { padding-bottom: clamp(80px, 15vw, 210px); }
.footer__line {
  height: 12px;
  background: var(--red);
  margin: 0 6.3%;
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(50px, 8vw, 110px) 7.3% 0 8.9%;
}
.footer__logo { width: 19%; }

.social { display: flex; gap: 12px; }
.social a {
  width: clamp(44px, 5vw, 70px);
  height: clamp(44px, 5vw, 70px);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: transform .2s, background .2s;
}
.social a:hover { transform: scale(1.08); background: #ffe4e6; }
.social svg { width: 55%; height: 55%; fill: var(--red); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  body { font-size: 16px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px 0;
  }
  .about__photo { max-width: 420px; margin: 0 auto; position: static; }
  .about__origin { margin: 20px 0 0; }
  .about__text { padding-top: 0; }

  .talk__grid { flex-direction: column; }
  .talk__grid::before { display: none; }
  .talk__logo {
    width: 100%;
    margin: 0;
    background: var(--white);
    padding: 24px 20px 28px;
  }
  .talk__logo img { width: 100%; max-width: 380px; margin: 0 auto; }
  .talk__videos {
    width: 100%;
    margin: 0;
    padding: 24px 20px 0;
  }
  .videos { max-width: 560px; }

  .run { padding: 60px 0 70px; }
  .run__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  .run__logo { max-width: 340px; margin: 0 auto; order: -1; }
  .run__col--right { text-align: left; align-items: flex-start; padding-top: 0; }

  .footer__line { margin: 0 20px; }
  .footer__grid {
    flex-direction: column;
    gap: 36px;
    padding: 50px 20px 0;
  }
  .footer__logo { width: 180px; }
  .footer { padding-bottom: 70px; }
}



@media (max-width: 480px) {
  .videos { grid-template-columns: 1fr; gap: 12px; }
}

/* Logo e menu sobre o hero, com links que se ajustam à largura disponível. */
@media (max-width: 700px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .hero__logo {
    position: static;
    width: 140px;
    margin: 20px auto 8px;
    grid-row: 1;
  }
  .main-nav {
    position: static;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    padding: 0 16px 16px;
  }
  .main-nav a {
    justify-content: center;
    font-size: clamp(17px, calc(3vw + 5px), 21px);
    min-height: 44px;
  }

}
/* Informações e última linha do rodapé. */
.footer { padding-bottom: 24px; }
.footer__grid { gap: 32px; }
.footer__logo { flex-shrink: 0; }
.footer__contact {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-style: normal;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.footer__contact a:hover { color: var(--red); }
.footer .social { flex-shrink: 0; }
.footer__copyright {
  margin: 48px 20px 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  color: #bbb;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .footer__contact { flex: initial; max-width: 460px; }
  .footer__copyright { margin-top: 36px; }
}