/* ==========================================================================
   Paulo Siqueira Jr. — Advocacia & Consultoria Jurídica
   Tokens alinhados ao mockup de referência
   ========================================================================== */

:root {
  /* Cores */
  --navy: #001E4A;
  --navy-hover: #00214F;
  --link-hover: #33436A;
  --beige: #EAE7E0;
  --contact-bg: #E9E9E9;
  --surface-soft: #F5F4F1;
  --white: #FFFFFF;

  --text: #1C2430;
  --text-body: #4A5262;
  --text-muted: #5B6472;
  --text-num: #9AA1AC;

  --border-input: #D8D6D0;
  --border-hairline: rgba(255, 255, 255, 0.15);

  --on-navy-strong: rgba(255, 255, 255, 0.75);
  --on-navy-soft: rgba(255, 255, 255, 0.65);
  --on-navy-faint: rgba(255, 255, 255, 0.5);

  /* Tipografia */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Forma */
  --radius-btn: 4px;
  --radius-media: 6px;

  /* Layout */
  --content-width: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: 96px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

a { text-decoration: none; color: var(--navy); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * 64px);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Rótulo de seção (eyebrow) ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.4;
}
.eyebrow-light { color: var(--on-navy-strong); }

.eyebrow-marks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow-bars { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.eyebrow-bars i { display: block; width: 4px; background: var(--navy); }
.eyebrow-bars i:nth-child(1) { height: 10px; }
.eyebrow-bars i:nth-child(2) { height: 16px; }
.eyebrow-bars i:nth-child(3) { height: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 17px 30px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--surface-soft); color: var(--navy); }

.btn-light {
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  padding: 11px 20px;
}
.btn-light:hover { background: var(--beige); color: var(--navy); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  background: var(--navy);
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-mark { height: 32px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--on-navy-strong); }
.nav a.btn-light,
.nav a.btn-light:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 520px;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  /* A coluna da foto encosta no fim da seção: como a faixa navy dos
     pilares vem logo abaixo, a base do recorte fica alinhada ao topo dela. */
  align-items: end;
  padding-top: 100px;
  padding-bottom: 0;
}

.hero-text { padding-bottom: 90px; }

.hero-text h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Recorte sem fundo: sem moldura, sem cor de fundo e apoiado na base. */
.hero-image {
  height: 740px;
  align-self: end;
}
.hero-image picture { display: block; width: 100%; height: 100%; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ---------- Pilares (faixa navy) ---------- */
.features {
  background: var(--navy);
  padding: 64px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 21px;
  color: var(--white);
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-navy-soft);
}

/* ---------- Sobre ---------- */
.about {
  padding: var(--section-y) 0;
  background: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
}
.about-image {
  height: 480px;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--beige);
}
.about-image picture { display: block; width: 100%; height: 100%; }
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.about-text h2 {
  font-size: 34px;
  margin: 14px 0 22px;
}
.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin: 0 0 20px;
}
.about-oab {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--navy) !important;
  margin: 0 !important;
}

/* ---------- Cabeçalho de seção ---------- */
.section-head { margin-bottom: 48px; }
.section-head-center { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: 34px;
  margin: 14px 0 0;
}

/* ---------- Áreas de Atuação ---------- */
.areas {
  padding: var(--section-y) 0;
  background: var(--beige);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.area-card {
  background: var(--white);
  padding: 32px 26px;
  border-top: 3px solid var(--navy);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 30, 74, 0.10);
}
.area-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-num);
  margin-bottom: 16px;
}
.area-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.area-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Artigos ---------- */
.articles-section {
  padding: var(--section-y) 0;
  background: var(--white);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.article-thumb {
  height: 190px;
  border-radius: var(--radius-media);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--beige);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.article-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.link-more {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.link-more:hover { color: var(--link-hover); text-decoration: underline; }

/* ---------- Contato ---------- */
.contact-section {
  padding: var(--section-y) 0;
  background: var(--contact-bg);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  box-shadow: 0 20px 50px rgba(0, 30, 74, 0.08);
}

.contact-info {
  background: var(--navy);
  padding: 56px 48px;
  color: var(--white);
}
.contact-info h2 {
  font-size: 28px;
  color: var(--white);
  margin: 14px 0 18px;
}
.contact-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-navy-strong);
  margin: 0 0 36px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.contact-list span { word-break: break-word; }
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-oab {
  font-size: 13px;
  color: var(--on-navy-strong);
  opacity: 0.75;
  margin-top: 26px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 56px 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  color: var(--text);
  background: var(--white);
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form .btn-block { padding: 16px 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-navy-soft);
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-links a { color: var(--on-navy-strong); }
.footer-links a:hover { color: var(--white); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--on-navy-strong);
}
.footer-item { word-break: break-word; }

.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-navy-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-social a:hover { color: var(--white); border-color: var(--white); }
.footer-social .icon { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--on-navy-faint);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --section-y: 72px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 72px;
    padding-bottom: 0;
  }
  /* Empilhado, o recorte continua embaixo para encostar na faixa navy. */
  .hero-text { padding-bottom: 0; }
  .hero-image { height: 520px; }
  .hero-lead { max-width: none; }

  .features-grid { grid-template-columns: 1fr; gap: 36px; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 360px; }

  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-grid { grid-template-columns: 1fr; gap: 40px; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-info,
  .contact-form-wrap { padding: 40px 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0 8px;
  }
  .nav.open { display: flex; }
  .header-cta { width: 100%; }

  .hero-text h1 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .hero-image { height: 400px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-watermark { width: 320px; right: -80px; }

  .section-title { font-size: 26px; }
  .about-text h2 { font-size: 26px; }
  .contact-info h2 { font-size: 24px; }

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

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Artigos — vitrine na home, página de arquivo e página do artigo
   ========================================================================== */

/* ---------- Vitrine na home ---------- */
.articles-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.article-cat {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-num);
  margin-bottom: 8px;
}
.article-card h3 { line-height: 1.35; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--link-hover); }
.articles-cta { text-align: center; margin-top: 56px; }

/* ---------- Página de arquivo ---------- */
.arquivo {
  padding: var(--section-y) 0;
  background: var(--white);
}
.arquivo-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 620px;
  margin: 18px 0 0;
}

.arquivo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px 32px;
  /* Com poucos artigos, o limite evita uma coluna vazia à direita;
     a partir do terceiro, a grade quebra em linhas. */
  max-width: 1040px;
}
.arquivo-capa {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 22px;
}
.arquivo-capa picture { display: block; height: 100%; }
.arquivo-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.arquivo-card:hover .arquivo-capa img { transform: scale(1.03); }

.arquivo-cat {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-num);
  margin-bottom: 10px;
}
.arquivo-card h2 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.arquivo-card h2 a { color: var(--navy); }
.arquivo-card h2 a:hover { color: var(--link-hover); }
.arquivo-resumo {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.arquivo-meta,
.artigo-meta {
  font-size: 13px;
  color: var(--text-num);
}

/* ---------- Página do artigo ---------- */
.artigo { padding: 72px 0 var(--section-y); }

.artigo-topo {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.artigo-voltar {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.artigo-voltar:hover { color: var(--navy); }
.artigo-topo h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  margin: 14px 0 20px;
}

.artigo-capa {
  max-width: 980px;
  margin: 56px auto 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--beige);
}
.artigo-capa picture { display: block; height: 100%; }
.artigo-capa img { width: 100%; height: 100%; object-fit: cover; }

.artigo-corpo {
  max-width: 720px;
  margin: 64px auto 0;
}
.artigo-corpo p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 24px;
}
.artigo-corpo h2 {
  font-size: 26px;
  margin: 60px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--beige);
}
.artigo-corpo h3 {
  font-size: 20px;
  margin: 44px 0 16px;
}
.artigo-corpo h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 34px 0 14px;
}

.artigo-lista {
  margin: 0 0 26px;
  padding: 0;
}
.artigo-lista li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
}
.artigo-lista li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 2px;
  background: var(--navy);
}

.artigo-corpo blockquote {
  margin: 0 0 28px;
  padding: 24px 28px;
  background: var(--beige);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.artigo-epigrafe {
  margin: 0 0 56px;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--navy);
}
.artigo-epigrafe blockquote {
  margin: 0 0 10px;
  padding: 0;
  background: none;
  border: none;
  font-size: 19px;
  line-height: 1.6;
  font-style: italic;
  color: var(--navy);
}
.artigo-epigrafe figcaption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-num);
}

.artigo-destaque {
  font-family: var(--font-head);
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  color: var(--navy) !important;
  padding: 28px 32px;
  background: var(--beige);
  border-radius: var(--radius-btn);
  margin: 12px 0 32px !important;
}

.artigo-ref {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--text-muted) !important;
  padding-left: 28px;
  text-indent: -28px;
  margin-bottom: 14px !important;
  word-break: break-word;
}

.artigo-cta {
  max-width: 720px;
  margin: 72px auto 0;
  padding: 44px 48px;
  background: var(--navy);
  border-radius: var(--radius-media);
  text-align: center;
}
.artigo-cta h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 10px;
}
.artigo-cta p {
  font-size: 15px;
  color: var(--on-navy-strong);
  margin-bottom: 26px;
}
.artigo-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
}
.artigo-cta .btn-primary:hover { background: var(--beige); color: var(--navy); }

@media (max-width: 768px) {
  .arquivo-grid { grid-template-columns: 1fr; gap: 44px; }
  .artigo { padding: 48px 0 var(--section-y); }
  .artigo-corpo { margin-top: 44px; }
  .artigo-capa { margin-top: 40px; }
  .artigo-corpo p,
  .artigo-lista li { font-size: 16px; }
  .artigo-corpo h2 { font-size: 22px; margin-top: 44px; }
  .artigo-corpo blockquote { padding: 20px 22px; }
  .artigo-destaque { font-size: 18px !important; padding: 24px; }
  .artigo-cta { padding: 36px 28px; }
}
