/* ============================================================
   Alexandre Aleluia — Design System
   ============================================================ */

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; line-height: 1.7; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; }

/* ── Variáveis CSS ────────────────────────────────────── */
:root {
  /* Cores */
  --color-primary:     #E87722;
  --color-secondary:   #1B3A6B;
  --color-gold:        #C9952A;

  /* Fundos */
  --color-dark:        #0E1117;
  --color-dark-mid:    #1A2030;
  --color-light:       #F5F0E8;
  --color-surface:     #FFFFFF;

  /* Texto */
  --color-text:        #1C1C1C;
  --color-text-muted:  #6B6B6B;
  --color-text-light:  #FFFFFF;

  /* Bordas */
  --color-border:      rgba(255,255,255,0.08);
  --color-border-warm: rgba(232,119,34,0.25);

  /* Overlays */
  --overlay-dark:      rgba(14,17,23,0.55);
  --overlay-warm:      rgba(14,10,5,0.45);

  /* Tipografia */
  --font-display: 'Cinzel', serif;
  --font-serif:   'EB Garamond', serif;
  --font-body:    'Inter', sans-serif;

  /* Escala */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-hero: 4.5rem;

  /* Espaçamento de seções */
  --section-py: 96px;

  /* Sombras */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);

  /* Raios */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;
}

/* ── Tipografia ───────────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-serif   { font-family: var(--font-serif); }
.font-body    { font-family: var(--font-body); }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn-lg { padding: 18px 36px; font-size: var(--text-base); }

/* ── Tags / Badges ────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* Categorias de blog */
.tag-liberdade              { background: #1B3A6B; color: #fff; }
.tag-familia-e-valores      { background: #6B3A1B; color: #fff; }
.tag-salvador-e-bahia       { background: #C9952A; color: #fff; }
.tag-politica               { background: #3A1B6B; color: #fff; }
.tag-pensamento-conservador { background: #1B4A3A; color: #fff; }
.tag-mandato                { background: #E87722; color: #fff; }

/* Temas de projetos */
.tag-liberdade  { background: #1B3A6B; color: #fff; }
.tag-familia    { background: #6B3A1B; color: #fff; }
.tag-cidade     { background: #2A4A1B; color: #fff; }
.tag-fe         { background: #4A2A6B; color: #fff; }
.tag-seguranca  { background: #4A1B1B; color: #fff; }
.tag-valores    { background: #1B4A3A; color: #fff; }
.tag-saude      { background: #1B3A4A; color: #fff; }
.tag-historia   { background: #C9952A; color: #fff; }

/* Status de projetos — base */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.6;
  white-space: nowrap;
}
.badge-sancionado    { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-aprovado      { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-em-tramitacao { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-aguardando    { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.badge-arquivado     { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--color-text);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-dark {
  background: var(--color-dark-mid);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

/* Card de blog */
.card-blog .card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-blog .card-body {
  padding: 20px;
}
.card-blog .card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.35;
  margin: 8px 0 10px;
  color: var(--color-text);
}
.card-blog .card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-blog .card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Card de projeto */
.card-projeto .card-body { padding: 24px; }
.card-projeto .card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-projeto .card-numero {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}
.card-projeto .card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-text);
  margin: 0 0 10px;
}
.card-projeto .card-resumo {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-projeto .card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.card-projeto .card-link:hover { text-decoration: underline; }

/* ── Grid de cards ────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

/* ── Layout utilitários ───────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-py) 0;
}
.section-light {
  background: var(--color-light);
  color: var(--color-text);
}
.section-dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}
.section-mid {
  background: var(--color-dark-mid);
  color: var(--color-text-light);
}

/* Cabeçalho de seção */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: rgba(255,255,255,0.85); }

/* ── Filtro de projetos/blog ──────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.section-light .filter-btn {
  border-color: rgba(0,0,0,0.15);
  color: var(--color-text-muted);
}
.section-light .filter-btn:hover,
.section-light .filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── CTA section ─────────────────────────────────────── */
.cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Páginas internas hero compacto ──────────────────── */
.page-hero {
  padding: 120px 0 80px;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,107,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Textos corridos (páginas Sobre, etc.) ───────────── */
.prose {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 760px;
}
.prose p { margin: 0 0 1.4em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.04em;
  margin: 2em 0 0.7em;
  color: var(--color-text);
}
.prose-light {
  color: rgba(255,255,255,0.85);
}
.prose-light h2 { color: #fff; }

/* ── Galeria com lightbox ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: rgba(255,255,255,0.7);
  cursor: pointer; background: none; border: none; line-height: 1;
}
.lightbox-close:hover { color: #fff; }

/* ── Ficha rápida (página Sobre) ──────────────────────── */
.ficha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 60px;
}
.ficha-item { display: flex; flex-direction: column; gap: 4px; }
.ficha-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.ficha-value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
}

/* ── Compartilhamento (post individual) ──────────────── */
.share-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  flex-wrap: wrap;
}
.share-label { font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,0.6); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  border: none;
}
.share-btn:hover { opacity: 0.8; }
.share-wa   { background: #25D366; color: #fff; }
.share-x    { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.share-fb   { background: #1877F2; color: #fff; }
.share-copy { background: var(--color-dark-mid); color: #fff; border: 1px solid var(--color-border); }

/* ── Contador animado ─────────────────────────────────── */
.count-up { display: inline-block; }

/* ── Barra de anúncio topo ────────────────────────────── */
.anuncio-bar {
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  z-index: 200;
}
.anuncio-bar a { text-decoration: none; display: block; }

/* ── Paginação ────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-link {
  padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
}
.page-link:hover, .page-link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Formulário de contato ────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.8);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-dark-mid);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); }
.form-control::placeholder { color: rgba(255,255,255,0.3); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control option { background: var(--color-dark); }

/* ── Cookie banner ────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--color-dark-mid);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner p {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  flex: 1;
  min-width: 200px;
}
#cookie-banner a { color: var(--color-primary); }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-accept {
  padding: 9px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}
.cookie-reject {
  padding: 9px 20px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* ── Flash messages ───────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: var(--text-sm);
}
.flash-success { background: #1a3a1a; color: #6fcf6f; border: 1px solid #2d7a2d; }
.flash-error   { background: #3a1a1a; color: #cf6f6f; border: 1px solid #7a2d2d; }
.flash-info    { background: #1a2a3a; color: #6fa8cf; border: 1px solid #2d5a7a; }

/* ── Scroll up btn ────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--color-primary);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.2rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ── Responsividade global ────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 64px; --text-hero: 2.8rem; }
  .container { padding: 0 16px; }
  .section-title { font-size: var(--text-2xl); }
  .page-hero { padding: 100px 0 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .ficha-bar { gap: 20px; }
}
