/* ==========================================================================
   TV Escola · Landing page
   Mobile first. Breakpoints do layout: 360px (base), 992px (lg), 1400px (xxl).
   Valores medidos a partir do PNG; ajustar quando houver acesso ao Figma.
   ========================================================================== */

:root {
  /* Cores */
  --c-brand: #ff7a00;
  --c-brand-hover: #ff8f26;
  --c-brand-dark: #b84f00;      /* laranja para texto pequeno sobre fundo claro (contraste AA) */
  --c-brand-soft: #ffd8ad;
  --c-ink: #111111;             /* confirmado pela logo */
  --c-ink-soft: #3d3d3d;
  --c-muted: #555555;           /* confirmado pela logo */
  --c-surface: #ffffff;
  --c-sand: #f3f2ee;
  --c-line: #e8e6e0;
  --c-dark: #121212;
  --c-black: #000000;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #9a9a9a;

  /* Barras de cor (padrão de TV) */
  --bar-gray: #c0c0c0;
  --bar-yellow: #c0c000;
  --bar-cyan: #00c0c0;
  --bar-green: #00c000;
  --bar-magenta: #c000c0;
  --bar-red: #c00000;
  --bar-blue: #0000c0;

  /* Tipografia (provisória) */
  --font-heading: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;

  /* Forma e espaçamento */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --gutter: 24px;
  --section-y: 64px;
}

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

/* Base
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

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

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

@media (min-width: 1400px) {
  .container { max-width: calc(1256px + var(--gutter) * 2); }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

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

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

/* Botões e links
   ========================================================================== */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: var(--c-brand);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.btn-brand:hover {
  background: var(--c-brand-hover);
  color: var(--c-ink);
}

.btn-brand:active { transform: translateY(1px); }

.link-plain {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--c-ink);
  text-decoration: none;
}

.link-plain:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kicker {
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-brand);
}

.kicker-dark { color: var(--c-brand-dark); }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-ink);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}

.play-btn .icon {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.play-btn-light {
  width: 56px;
  height: 56px;
  background: var(--c-surface);
  color: #1f5bd6;
}

a:hover > .play-btn { transform: translate(-50%, -50%) scale(1.08); }

/* Header
   ========================================================================== */
.site-header {
  padding-block: 16px;
}

.brand {
  display: inline-flex;
}

.brand img {
  width: 248px;
  height: auto;
}

.live-pill {
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-ink);
  color: var(--c-on-dark);
  font-size: 0.8125rem;
  text-decoration: none;
}

.live-pill:hover { color: var(--c-on-dark); background: #000; }

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .35; }
}

@media (min-width: 992px) {
  .brand img { width: 259px; }
}

/* Hero
   ========================================================================== */
.hero {
  padding: 24px 0 var(--section-y);
}

.hero-title {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  text-align: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-ink);
}

.video-lite,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.badge-highlight {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--c-brand-soft);
  color: var(--c-ink);
  font-size: 0.8125rem;
  pointer-events: none;
}

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

  .hero-text {
    font-size: 1.375rem;
    margin-bottom: 40px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
  }

  .video-frame { border-radius: var(--radius-lg); }

  .badge-highlight {
    right: auto;
    left: 20px;
    top: 20px;
  }
}

/* Aviso: novo site
   ========================================================================== */
.notice {
  background: var(--c-brand);
  padding-block: 40px;
}

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

.notice-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-on-dark);
}

.notice-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.notice-text {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--c-ink);
}

@media (min-width: 992px) {
  .notice-inner {
    flex-direction: row;
    align-items: center;
  }
}

/* Seção: também no canal
   ========================================================================== */
.channel {
  background: var(--c-sand);
  padding-block: var(--section-y);
}

.section-title {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  margin-bottom: 24px;
}

.card-feature,
.card-social {
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--c-surface);
  overflow: hidden;
}

.card-feature {
  display: flex;
  flex-direction: column;
}

.card-feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-ink);
}

.card-feature-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-feature-body {
  padding: 32px 24px;
}

.card-title {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
}

.card-social {
  padding: 32px 24px;
}

.social-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.social-list li + li { border-top: 1px solid var(--c-line); }

.social-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  text-decoration: none;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
  transition: background-color .2s ease;
}

.social-item:hover { background: var(--c-sand); }

.social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-sand);
}

.social-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}

.social-label small {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.social-arrow { transition: transform .2s ease; }

.social-item:hover .social-arrow { transform: translate(2px, -2px); }

@media (min-width: 992px) {
  .card-feature { flex-direction: row; }

  .card-feature-media {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 368px;
  }

  .card-feature-body {
    align-self: center;
    padding: 40px;
  }

  .card-social { padding: 40px 32px; }
}

/* Seção: parcerias
   ========================================================================== */
.partners {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding-block: calc(var(--section-y) + 12px) var(--section-y);
}

.color-strip,
.tv-bars-main,
.tv-bars-sub {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.color-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: linear-gradient(90deg,
    var(--bar-gray) 0 14.286%, var(--bar-yellow) 0 28.571%, var(--bar-cyan) 0 42.857%,
    var(--bar-green) 0 57.143%, var(--bar-magenta) 0 71.429%, var(--bar-red) 0 85.714%,
    var(--bar-blue) 0 100%);
}

.partners-title {
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.partners-text {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

.partners .btn-brand { width: 100%; }

.tv-bars {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-black);
}

.tv-bars-main { aspect-ratio: 596 / 245; }
.tv-bars-sub { aspect-ratio: 596 / 40; }

.tv-bars-main span:nth-child(1) { background: var(--bar-gray); }
.tv-bars-main span:nth-child(2) { background: var(--bar-yellow); }
.tv-bars-main span:nth-child(3) { background: var(--bar-cyan); }
.tv-bars-main span:nth-child(4) { background: var(--bar-green); }
.tv-bars-main span:nth-child(5) { background: var(--bar-magenta); }
.tv-bars-main span:nth-child(6) { background: var(--bar-red); }
.tv-bars-main span:nth-child(7) { background: var(--bar-blue); }

.tv-bars-sub span:nth-child(1) { background: var(--bar-blue); }
.tv-bars-sub span:nth-child(3) { background: var(--bar-magenta); }
.tv-bars-sub span:nth-child(5) { background: var(--bar-cyan); }
.tv-bars-sub span:nth-child(7) { background: var(--bar-gray); }
.tv-bars-sub span:nth-child(even) { background: var(--c-dark); }

.tv-bars-base {
  display: grid;
  place-items: center;
  padding-block: 20px;
}

.tv-bars-base img {
  width: 96px;
  height: auto;
}

@media (min-width: 992px) {
  .color-strip { height: 16px; }

  .partners-text { margin-bottom: 40px; }

  .partners .btn-brand { width: auto; }

  .tv-bars-base { padding-block: 32px; }

  .tv-bars-base img { width: 116px; }
}

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--c-black);
  color: var(--c-on-dark);
  padding-top: 56px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
}

.footer-brand img {
  display: block;
  width: 248px;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--c-on-dark);
}

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

.footer-social-label { display: none; }

.footer-bottom {
  margin-inline: 24px;
  padding: 24px 0 48px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-copy {
  color: var(--c-on-dark-muted);
  margin-bottom: 16px;
}

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

@media (min-width: 992px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand img { width: 165px; }

  .footer-social-label { display: inline; }

  .footer-bottom { margin-inline: 40px; }
}

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