/* ===================================================================
   T2 DIGITAL — folha de estilos
   Marca: José Antonio Tatai / @josetatai — IA na Gestão Pública
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0C447C;
  --navy-dark: #082C4E;
  --cream: #F2EDE4;
  --graphite: #1F2933;
  --coral: #D85A30;
  --white: #FFFFFF;
  --line: rgba(31, 41, 51, 0.12);
  --line-on-navy: rgba(242, 237, 228, 0.18);

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: rgba(31,41,51,0.75); font-size: 1rem; margin: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-dark);
  letter-spacing: 0.01em;
}
.logo-text small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--graphite);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--coral); }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease;
}
.social-icons a:hover { background: var(--navy); color: var(--white); }
.social-icons svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--navy-dark);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- TICKER ---------- */
.ticker-bar {
  background: var(--navy-dark);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ticker-inner .tag-live {
  background: var(--coral);
  color: var(--white);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.ticker-inner .divider { opacity: 0.5; }

/* ---------- COVER (estilo capa de Facebook) ---------- */
.cover { position: relative; background: var(--cream); }

.cover-banner {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.cover-banner svg.pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.cover-profile {
  max-width: var(--max-width);
  margin: -64px auto 0;
  padding: 0 24px 32px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.cover-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--cream);
  box-shadow: 0 10px 26px rgba(8, 44, 78, 0.28);
  flex-shrink: 0;
}

.cover-caption { padding-bottom: 6px; }
.cover-caption h1 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 4px;
}
.cover-caption p {
  margin: 0;
  color: rgba(31,41,51,0.78);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- HERO STATEMENT ---------- */
.hero-statement {
  background: var(--cream);
  padding: 8px 0 56px;
}
.hero-statement .wrap { max-width: 760px; text-align: left; }
.hero-statement h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.hero-statement p.lead {
  font-size: 1.08rem;
  color: rgba(31,41,51,0.82);
  max-width: 640px;
}

/* ---------- SECTIONS shared ---------- */
section { padding: 64px 0; }
.cream-bg { background: var(--cream); }

/* ---------- JT NEWS ---------- */
.jtnews-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}

.card-media {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--coral) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242,237,228,0.85);
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  margin-bottom: 14px;
}

.tag-example {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.jtnews-featured h3 { font-size: 1.5rem; }
.jtnews-featured h3 a:hover { color: var(--coral); }
.jtnews-featured p.excerpt { color: rgba(31,41,51,0.78); margin: 0 0 8px; }
.card-meta { font-size: 0.8rem; color: rgba(31,41,51,0.55); }

.jtnews-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.jtnews-secondary .card-media { aspect-ratio: 4 / 3; font-size: 1.1rem; }
.jtnews-secondary h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--navy-dark);
}
.jtnews-secondary h4 a:hover { color: var(--coral); }

.jtnews-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.jtnews-sidebar h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.jtnews-sidebar .sidebar-sub {
  font-size: 0.78rem;
  color: rgba(31,41,51,0.55);
  margin: 0 0 18px;
}
.jtnews-sidebar ul { list-style: none; margin: 0; padding: 0; }
.jtnews-sidebar li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.jtnews-sidebar li:first-child { padding-top: 0; }
.jtnews-sidebar a {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}
.jtnews-sidebar a:hover { color: var(--coral); }
.jtnews-sidebar .li-meta { font-size: 0.76rem; color: rgba(31,41,51,0.5); }

/* ---------- INFODICAS ---------- */
.infodicas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.dica-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.dica-card .dica-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
  display: block;
}
.dica-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.dica-card p.dica-desc {
  font-size: 0.92rem;
  color: rgba(31,41,51,0.78);
  margin: 0 0 14px;
}
.prompt-box {
  background: var(--cream);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--graphite);
  line-height: 1.5;
}
.prompt-box .prompt-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ---------- QUEM SOMOS ---------- */
.quemsomos { background: var(--navy-dark); color: var(--cream); }
.quemsomos .eyebrow { color: var(--coral); }
.quemsomos h2 { color: var(--white); }
.qs-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
}
.qs-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid rgba(242,237,228,0.15);
}
.qs-text p { color: rgba(242,237,228,0.85); font-size: 1rem; }
.qs-text .btn-outline {
  border-color: var(--cream);
  color: var(--cream);
  margin-top: 6px;
}
.qs-text .btn-outline:hover { background: var(--cream); color: var(--navy-dark); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(242,237,228,0.75);
  border-top: 1px solid var(--line-on-navy);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-on-navy);
  margin-bottom: 20px;
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(242,237,228,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background 0.18s ease;
}
.footer-social a:hover { background: var(--coral); }
.footer-social svg { width: 16px; height: 16px; }
.footer-legal { font-size: 0.8rem; margin: 0; max-width: 720px; }

/* ---------- ARTICLE TEMPLATE PAGE ---------- */
.materia { padding: 48px 0 80px; }
.materia-hero { max-width: 760px; margin: 0 auto 32px; }
.materia-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 8px;
}
.materia-meta {
  font-size: 0.85rem;
  color: rgba(31,41,51,0.6);
  margin: 0;
}
.materia-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(31,41,51,0.88);
}
.materia-body p { margin: 0 0 20px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 24px;
}
.back-link:hover { color: var(--coral); }

/* ---------- SCROLL REVEAL (sutil) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .jtnews-grid { grid-template-columns: 1fr; }
  .jtnews-sidebar { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .jtnews-secondary { grid-template-columns: 1fr 1fr; }
  .infodicas-grid { grid-template-columns: 1fr 1fr; }
  .qs-inner { grid-template-columns: 1fr; text-align: center; }
  .qs-photo { max-width: 200px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .cover-banner { height: 200px; }
  .cover-profile { margin-top: -48px; gap: 14px; }
  .cover-photo { width: 96px; height: 96px; border-width: 4px; }
  .jtnews-secondary { grid-template-columns: 1fr; }
  .infodicas-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
