/* ══════════════════════════════════════════
   SINAPSE — Design Profissional
   Dark / Light mode | Responsivo
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variáveis Light ── */
:root {
  --primary:   #1a3a6b;
  --secondary: #0ea5e9;
  --accent:    #76b900;
  --bg:        #ffffff;
  --bg-alt:    #f4f7fb;
  --bg-card:   #ffffff;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── Variáveis Dark ── */
[data-theme="dark"] {
  --bg:       #0f172a;
  --bg-alt:   #1e293b;
  --bg-card:  #1e293b;
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --border:   #334155;
  --shadow:   0 2px 16px rgba(0,0,0,0.3);
  --shadow-md:0 8px 32px rgba(0,0,0,0.4);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s, color 0.25s;
  overflow-x: hidden;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ══════════════════#1e4d8c;
   NAVBAR
══════════════════ */
.navbar-sinapse {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

[data-theme="dark"] .navbar-sinapse {
  background: #0f172a;
  border-bottom: 1px solid var(--border);
}

.navbar-sinapse .navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-sinapse .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 1.1rem 0.75rem !important;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

.navbar-sinapse .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

/* Theme toggle — só ícone, fundo transparente */
.btn-theme {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.btn-theme:hover { color: #fff; }
/* light: mostra lua | dark: mostra sol */
.btn-theme .icon-sun  { display: none; }
.btn-theme .icon-moon { display: inline; }
[data-theme="dark"] .btn-theme .icon-sun  { display: inline; }
[data-theme="dark"] .btn-theme .icon-moon { display: none; }

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.25) !important;
  padding: 0.3rem 0.5rem;
}
.navbar-toggler-icon { filter: invert(1); }

/* ══════════════════
   HERO
══════════════════ */
.hero {
  background: linear-gradient(to right, #0a1628 0%, #1a3a6b 50%, #1e6bc0 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; padding: 80px 0; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.35);
  border-radius: 3px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/*#f0b429;*/
.hero h1 em {
  font-style: normal;
  color: #c4a44a;
  text-shadow: 0 2px 12px rgba(196,164,74,0.4);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.btn-main {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-main:hover {
  background: #0284c7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14,165,233,0.4);
}

.btn-outline-light-sinapse {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.68rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-outline-light-sinapse:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* ══════════════════
   SECÇÕES
══════════════════ */
.section       { padding: 80px 0; background: var(--bg); }
.section-alt   { background: var(--bg-alt); }
.section-dark  { background: #0a1628; }
.section-dark .section-title  { color: #fff; }
.section-dark .section-content { color: rgba(255,255,255,0.7); }
.section-dark .section-divider { background: var(--secondary); }

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.section-divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.section-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.section-content ul { padding-left: 1.25rem; }
.section-content li { margin-bottom: 0.45rem; }
.section-content strong { color: var(--text); }

.section-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  max-height: 370px;
  transition: transform 0.4s;
}
.section-image:hover { transform: scale(1.02); }

/* ══════════════════
   CARDS
══════════════════ */
.card-sinapse {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-sinapse:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.card-sinapse .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s;
}
.card-sinapse:hover .card-img-top { transform: scale(1.04); }

.card-sinapse .card-body { padding: 1.4rem; }

.card-sinapse .card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.card-sinapse .card-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.card-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.btn-card {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s, color 0.2s;
}
.btn-card:hover { color: var(--primary); gap: 0.6rem; }

.card-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-placeholder svg { width: 52px; height: 52px; opacity: 0.25; fill: white; }

/* ══════════════════
   VÍDEO PLAYER
══════════════════ */
.video-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
  display: block;
}

.video-wrapper video { display: block; width: 100%; margin: 0 auto; }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video-play-btn:hover { background: rgba(0,0,0,0.45); }

.video-play-btn .play-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(14,165,233,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-play-btn:hover .play-circle {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(14,165,233,0.65);
}
.video-play-btn .play-circle i { color: #fff; font-size: 1.75rem; margin-left: 4px; }

/* ══════════════════
   SECTION HEADER (páginas internas)
══════════════════ */
.section-header {
  padding: 90px 0 48px;
  background: linear-gradient(135deg, #0a1628, var(--primary));
  color: #fff;
  text-align: center;
}
.section-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section-header p  { opacity: 0.7; }

/* ══════════════════
   GALERIA
══════════════════ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
}

.galeria-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.galeria-item:hover img { transform: scale(1.06); }

.galeria-item .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.25s;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem;
}
.galeria-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: fixed; top: 1.2rem; right: 1.4rem; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; opacity: 0.7; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 1.8rem; padding: 0.8rem 1rem; cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 0.8rem; }
.lightbox-next { right: 0.8rem; }

/* ══════════════════
   FOOTER
══════════════════ */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 0;
}

footer .footer-logo img { height: 20px; width: auto; }

footer .footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.45); margin-top: 0.75rem; }

footer h6 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.875rem;
}

footer ul li { margin-bottom: 0.4rem; }
footer a { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
footer a:hover { color: var(--secondary); }

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════
   ARTIGOS
══════════════════ */
.article-content { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.article-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.article-header-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }

/* ══════════════════
   UTILITÁRIOS
══════════════════ */
.badge-data {
  background: rgba(14,165,233,0.1);
  color: var(--secondary);
  border: 1px solid rgba(14,165,233,0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-primary-sinapse {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-sinapse:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════
   RESPONSIVO
══════════════════ */
@media (max-width: 991px) {
  .navbar-sinapse .nav-link { padding: 0.65rem 1rem !important; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-content { padding: 40px 0 36px; }
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 0.95rem; }
  .section { padding: 55px 0; }
  .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 480px) {
  .hero-content { padding: 32px 0 28px; }
  .hero .container { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p  { font-size: 0.9rem; max-width: 100%; }
  .hero-label { font-size: 0.65rem; }
}
