/*
Theme Name:   Laureano & Medeiros
Theme URI:    https://laureanomedeiros.adv.br
Description:  Tema-filho do GeneratePress para o site da Laureano & Medeiros Sociedade de Advogados. Todo CSS custom vive aqui.
Author:       Laureano & Medeiros
Template:     generatepress
Version:      2.0.0
Text Domain:  lm-child
*/


:root { --green:#183c32; --green-deep:#102f28; --green-mid:#214a3f; --orange:#f2912e; --ivory:#f3ebdd; --paper:#fffaf3; --white:#fff; --muted-light:rgba(255,255,255,.68); --line-light:rgba(255,255,255,.14); --line-dark:rgba(24,60,50,.14); }

/* ==========================================================================
   ESTILO BASE — vale para blog, paginas internas e resultados de busca.
   A home tem folha propria (assets/css/home.css), carregada so la.
   ========================================================================== */

/* Tudo abaixo vale SO fora da home. A home tem assets/css/home.css.
   Sem este escopo, regras como h1{color:verde} tornam o titulo
   invisivel sobre o fundo verde do hero. */

body:not(.home){
  background: var(--paper);
  color: var(--green);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 1.0625rem;   /* 17px: publico majoritariamente 55+ */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body:not(.home) h1, body:not(.home) h2, body:not(.home) h3, body:not(.home) h4{ font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.2; color: var(--green); }
body:not(.home) h1{ font-size: clamp(2rem, 4vw, 2.75rem); }
body:not(.home) h2{ font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
body:not(.home) h3{ font-size: 1.3rem; margin-top: 1.75rem; }
body:not(.home) a{ color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
body:not(.home) a:hover{ color: var(--orange); }
body:not(.home) /* Corpo de texto do artigo: medida de leitura confortavel */
.entry-content{ max-width: 68ch; }
body:not(.home) .entry-content p, body:not(.home) .entry-content li{ margin-bottom: 1.15rem; }
body:not(.home) .entry-content img{ max-width: 100%; height: auto; border-radius: 6px; }
body:not(.home) .entry-content blockquote{
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem; margin-left: 0;
  font-style: italic; color: var(--green-mid);
}
body:not(.home) .entry-content table{ width: 100%; border-collapse: collapse; }
body:not(.home) .entry-content th, body:not(.home) .entry-content td{ border: 1px solid var(--line-dark); padding: .6rem .75rem; text-align: left; }
body:not(.home) /* FAQ das paginas internas: mesmo padrao visual da home */
.entry-content details{
  border-bottom: 1px solid var(--line-dark);
  padding: 1rem 0;
}
body:not(.home) .entry-content summary{ cursor: pointer; font-weight: 700; list-style: none; }
body:not(.home) .entry-content summary::-webkit-details-marker{ display: none; }
body:not(.home) .entry-content summary::after{ content: "+"; float: right; color: var(--orange); font-weight: 400; }
body:not(.home) .entry-content details[open] summary::after{ content: "–"; }
body:not(.home) /* Cabecalho e rodape do GeneratePress nas paginas internas */
.site-header{ background: var(--green); }
body:not(.home) .site-header a, body:not(.home) .site-header .main-navigation a{ color: #fff; }
body:not(.home) .site-footer{ background: var(--green); color: var(--muted-light); }
body:not(.home) .site-footer a{ color: #fff; }
body:not(.home) /* Piso de acessibilidade */
a:focus-visible, body:not(.home) button:focus-visible, body:not(.home) summary:focus-visible, body:not(.home) input:focus-visible{
  outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px;
}
body:not(.home) img{ max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {html{ scroll-behavior: auto; }
*, *::before, *::after{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* ==========================================================================
   LAYOUT PROPRIO — zera os espacamentos do GeneratePress
   Aplicado so em paginas que contem um bloco .lm (classe lm-page no body).
   ========================================================================== */
body.lm-page #page,
body.lm-page .site-content,
body.lm-page .content-area,
body.lm-page .site-main,
body.lm-page .entry-content,
body.lm-page .inside-article,
body.lm-page .grid-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body.lm-page .entry-content > * { margin-top: 0; margin-bottom: 0; }
body.lm-page .entry-header,
body.lm-page .page-header,
body.lm-page .entry-title,
body.lm-page #right-sidebar,
body.lm-page #left-sidebar { display: none !important; }
body.lm-page { background: var(--green); }
/* ==========================================================================
   BLOG E ARTIGOS
   --------------------------------------------------------------------------
   O indice e o artigo usam o markup do GeneratePress, entao estas regras
   nao ficam sob .lm — sao escopadas por classe de body do WordPress.
   ========================================================================== */

/* --- Cabecalho e rodape injetados nas paginas internas --- */
.lm-chrome { background: var(--green); }
.lm-chrome .site-header { position: static; }

/* --- Faixa de titulo do blog --- */
body.blog .site-content::before,
body.archive .site-content::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line-dark);
}

body.blog .site-content,
body.archive .site-content,
body.single .site-content,
body.page:not(.lm-page) .site-content {
  background: var(--paper);
  padding: 3.5rem 1.5rem 5rem;
}
body.blog .content-area,
body.archive .content-area,
body.single .content-area,
body.page:not(.lm-page) .content-area {
  max-width: 1120px;
  margin: 0 auto;
}

/* --- Indice: grade de artigos --- */
body.blog .site-main,
body.archive .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
body.blog .site-main > article,
body.archive .site-main > article {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.blog .site-main > article:hover,
body.archive .site-main > article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(24,60,50,.10);
}
body.blog .inside-article,
body.archive .inside-article {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
body.blog .entry-title,
body.archive .entry-title {
  font-size: 1.3rem !important;
  margin: 0 !important;
  line-height: 1.25;
}
body.blog .entry-title a,
body.archive .entry-title a { text-decoration: none; }
body.blog .entry-title a:hover,
body.archive .entry-title a:hover { color: var(--orange); }
body.blog .entry-meta,
body.archive .entry-meta {
  font-size: .8125rem;
  color: var(--green-mid);
  order: -1;
  text-transform: uppercase;
  letter-spacing: .06em;
}
body.blog .entry-summary p,
body.archive .entry-summary p { margin: 0; }
body.blog .read-more,
body.archive .read-more {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--orange);
}
body.blog .post-image img,
body.archive .post-image img { border-radius: 0; width: 100%; object-fit: cover; aspect-ratio: 16/9; }

/* --- Artigo: leitura --- */
body.single .site-main { max-width: 720px; margin: 0 auto; }
body.single .entry-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: .75rem;
  line-height: 1.12;
}
body.single .entry-meta {
  font-size: .875rem;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2.5rem;
  display: block;
}
body.single .entry-content { font-size: 1.125rem; line-height: 1.75; }
body.single .entry-content h2 { margin-top: 3rem; margin-bottom: .75rem; }
body.single .entry-content h3 { margin-top: 2.25rem; margin-bottom: .5rem; }
body.single .entry-content > p:first-of-type { font-size: 1.25rem; color: var(--green-mid); }

/* Chamada no fim do artigo */
.lm-artigo-cta {
  margin: 4rem 0 0;
  padding: 2.25rem;
  background: var(--green);
  border-radius: 12px;
  color: var(--white);
  text-align: center;
}
.lm-artigo-cta p { color: var(--muted-light); margin: .5rem 0 1.5rem; }
.lm-artigo-cta strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
}
.lm-artigo-cta a {
  display: inline-block;
  background: var(--orange);
  color: var(--green) !important;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none !important;
}
.lm-artigo-cta a:hover { background: var(--white); }

/* Aviso de conteudo informativo — exigido pelo tom do Provimento 205 */
.lm-aviso {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--orange);
  background: rgba(242,145,46,.07);
  font-size: .9375rem;
  color: var(--green-mid);
}

/* --- Paginacao --- */
.paging-navigation { grid-column: 1 / -1; padding-top: 1.5rem; }
.paging-navigation .page-numbers {
  display: inline-block; padding: .5rem .85rem; margin-right: .35rem;
  border: 1px solid var(--line-dark); border-radius: 6px; text-decoration: none;
}
.paging-navigation .page-numbers.current { background: var(--green); color: var(--white); }

@media (max-width: 640px) {
  body.blog .site-content, body.archive .site-content,
  body.single .site-content { padding: 2rem 1rem 3rem; }
}