/* ══════════════════════════════════════════════
   Seu Direito Brasil — style.css
   Paleta: azul marinho + dourado | Tom: sério, confiável
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores principais */
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #152d52;
  --navy-600: #1b3a68;
  --navy-500: #234d87;
  --gold-500: #c9a84c;
  --gold-400: #d4b85e;
  --gold-300: #e0c978;
  --gold-200: #ecdba5;
  --gold-100: #f7efd5;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e1e5eb;
  --gray-300: #c8ced8;
  --gray-400: #8d96a5;
  --gray-500: #5f6b7d;
  --gray-600: #404a59;
  --gray-700: #2d3544;
  --gray-800: #1a2030;
  --text-primary: #1a2030;
  --text-secondary: #404a59;
  --text-muted: #5f6b7d;
  --bg-body: #f8f9fb;
  --bg-card: #ffffff;
  --border: #e1e5eb;
  --success: #1b7a4a;
  --danger: #b91c1c;

  /* Tipografia */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;

  /* Espaçamento */
  --container: 1140px;
  --gap: 2rem;
  --radius: 6px;
  --radius-lg: 10px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.1);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);
}

/* ── Reset & Base ────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-500);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Navbar ─────────────────────── */

.site-header {
  background: var(--navy-900);
  border-bottom: 3px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-brand-text span {
  color: var(--gold-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--gold-400);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero p {
  color: var(--gray-300);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 600px;
}

/* ── Seção de Pilares ────────────────────── */

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-header .gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-500);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Pilares grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-200);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.pillar-card h3 a {
  color: var(--navy-800);
  text-decoration: none;
}

.pillar-card h3 a:hover {
  color: var(--gold-500);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Artigos recentes ────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-category {
  background: var(--gold-100);
  color: var(--navy-700);
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--navy-800);
}

.article-card h3 a:hover {
  color: var(--gold-500);
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex: 1;
}

.article-card .read-more {
  color: var(--navy-600);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.article-card .read-more:hover {
  color: var(--gold-500);
}

/* ── CTA Banner ──────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--gray-300);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}

.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
  color: var(--navy-900);
}

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border: 2px solid var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-700);
  color: var(--white);
}

/* ── Footer ──────────────────────────────── */

.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--gold-400);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

/* ── Blog listing ────────────────────────── */

.blog-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--gold-500);
}

.blog-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: var(--gray-300);
  margin-bottom: 0;
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover {
  border-color: var(--navy-500);
  color: var(--navy-700);
}

.cat-btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* ── Page content (sobre, contato, privacidade) ── */

.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--gold-500);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-300);
  margin-bottom: 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-100);
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* ── Aviso legal (disclaimer) ────────────── */

.legal-notice {
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-notice strong {
  color: var(--navy-800);
}

/* ── Team cards ──────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.team-card h4 {
  margin-bottom: 0.25rem;
  color: var(--navy-800);
}

.team-card .role {
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.9rem;
}

/* ── Contact form ────────────────────────── */

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(35, 77, 135, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Article single (gerado pelo build_site.py) ── */

.article-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-single h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.article-single h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-100);
}

.article-single h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-single p {
  color: var(--text-secondary);
  line-height: 1.85;
}

.article-single table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.article-single th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}

.article-single td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}

.article-single tr:nth-child(even) td {
  background: var(--gray-50);
}

.article-single blockquote {
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-single a {
  color: var(--navy-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-single a:hover {
  color: var(--gold-500);
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 3px solid var(--gold-500);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
