/* ============================
   TV Cidade — estilos
============================ */

:root {
  --bg: #000000;
  --bg-alt: #01001e;
  --header-bg: #0a0f17;
  --navy-hero: #021a43;
  --navy-sponsors: #01173b;
  --navy-destaques: #021238;
  --panel: #0e1526;
  --panel-light: #141d33;
  --border: #1e2942;

  --accent: #1f7cf2;
  --accent-2: #4fc3ff;
  --accent-grad: linear-gradient(135deg, #1f7cf2, #4fc3ff);

  --live: #ff3b46;
  --whatsapp: #25d366;

  --text: #f2f5fb;
  --text-dim: #9fadc7;
  --text-dimmer: #6c7a99;

  --radius: 14px;
  --container: 1180px;

  --font-title: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* height:auto neutraliza os atributos width/height do HTML (usados para evitar
   layout shift), que senão travam a altura e anulam qualquer aspect-ratio. */
img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0 0 .5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-live {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 124, 242, .35);
}
.btn-live:hover { box-shadow: 0 10px 26px rgba(31, 124, 242, .5); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #05210f;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 59, 70, .6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 70, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 59, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 70, 0); }
}

/* ---------- Section titles ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 40px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--accent-grad);
  border-radius: 3px;
}
.section-title.align-left { text-align: left; padding-bottom: 14px; }
.section-title.align-left::after { left: 0; transform: none; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ============================
   HEADER
============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 15, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.4); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
}

.brand { flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: #fff; border-color: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   LIVE / HERO
============================ */
.live-section {
  padding: 64px 0 56px;
  background: var(--navy-hero);
  text-align: center;
}
.live-section h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.live-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.player-wrap { max-width: 1300px; margin: 0 auto; }
.player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  border: 1px solid var(--border);
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================
   SPONSORS
============================ */
.sponsors { padding: 40px 0; background: var(--navy-sponsors); }
.sponsors-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--text-dimmer);
  margin-bottom: 20px;
}
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.sponsor-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.sponsor-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.sponsor-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }

/* ============================
   CAROUSEL / DESTAQUES
============================ */
.destaques { padding: 64px 0; background: var(--navy-destaques); }
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide {
  min-width: 100%;
}
.carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,7,13,.55);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.carousel-arrow:hover { background: rgba(31,124,242,.7); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--accent-2); }

/* ============================
   VIDEOS
============================ */
.videos { padding: 40px 0 72px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0,0,0,.4);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 59, 70, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.video-card:hover .video-play span { transform: scale(1.1); }
.video-info { padding: 14px 16px 18px; }
.video-info h3 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-info span {
  font-size: .8rem;
  color: var(--text-dimmer);
}

.videos-cta { text-align: center; margin-top: 40px; }

/* ============================
   SOBRE
============================ */
.sobre { padding: 72px 0; background: var(--bg-alt); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.sobre-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
}
.sobre-content p { color: var(--text-dim); font-size: 1.05rem; }

.sobre-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.sobre-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.sobre-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.sobre-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.sobre-card h3 { font-size: 1rem; margin-bottom: 4px; }
.sobre-card p { font-size: .82rem; color: var(--text-dimmer); margin: 0; }

/* ============================
   CONTATO
============================ */
.contato { padding: 72px 0; }
.contato-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contato-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 6px;
}
.contato-form label {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 10px;
}
.contato-form input,
.contato-form textarea {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contato-info {
  display: grid;
  gap: 16px;
  align-content: start;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.info-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.info-card strong { display: block; font-size: .85rem; color: var(--accent-2); margin-bottom: 4px; }
.info-card span { color: var(--text-dim); font-size: .95rem; }
.contato-logo { width: 120px; height: auto; margin: 12px auto 0; opacity: .85; }

/* ============================
   VIDEO DESTAQUE FINAL
============================ */
.destaque-final { padding: 64px 0 88px; background: var(--bg); }
.destaque-final-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 50.6%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.destaque-final-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================
   FOOTER
============================ */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo { height: 60px; width: auto; margin-bottom: 12px; }
.footer-col p { color: var(--text-dim); font-size: .9rem; margin: 0 0 8px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; color: #fff; }
.footer-col a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  transition: border-color .2s ease, color .2s ease;
}
.footer-social a:hover { border-color: var(--accent-2); color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 18px 0;
}
.footer-bottom p { margin: 0; color: var(--text-dimmer); font-size: .82rem; }

/* ============================
   VIDEO MODAL
============================ */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.video-modal-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ============================
   SCROLL REVEAL
============================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-img img { aspect-ratio: 16 / 9; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(10,15,23,.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .btn-live span:not(.dot-live) { display: none; }
  .sobre-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .header-inner { padding: 10px 16px; }
  .brand-logo { height: 42px; }
}
