/*
Theme Name: Adrielly crizolle advocacia
Theme URI: https://adriellyadvsaude.com.br/
Author: Evandro Bitencourt
Author URI: https://flyingweb.com.br/
Description: Tema WordPress do zero para advocacia em Direito à Saúde (layout baseado no modelo fornecido).
Requires PHP: 8.0
Version: 1.0
Text Domain: adv
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

:root{
  --brand-green: #2D5541;
  --brand-green-2: #3E624F;
  --brand-bg: #F8F9F9;

  --text-dark: #1f2937;
  --text-muted: #6B7280;

  --border-soft: rgba(31,41,55,.10);
  --shadow-soft: 0 6px 18px rgba(31,41,55,.08);

  /* CONTROLE ÚNICO DO TAMANHO DA LOGO */
  --logo-h: 52px; /* 28px | 32px | 36px */
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  background: var(--brand-bg);
  color: var(--text-dark);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; }
a:hover{ color: inherit; }

/* =================
   HEADER
   ================= */
.site-header{
  background: #fff;
  border-bottom: 1px solid rgba(31,41,55,.08);
}

/* Navbar mais “justa” */
.site-header .navbar{
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Marca/Logo (container) */
.site-header .navbar-brand{
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  height: var(--logo-h) !important;
}

/* WP logo: figure + link + img */
.site-logo .custom-logo{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: var(--logo-h) !important;
  display: inline-flex !important;
  align-items: center !important;
}

.site-logo .custom-logo-link{
  display: inline-flex !important;
  align-items: center !important;
  height: var(--logo-h) !important;
  line-height: 0 !important;
}

/* TRAVA a imagem SEM chance de esticar */
.site-logo img,
.site-logo .img-logo,
.site-logo .custom-logo-link img{
  height: var(--logo-h) !important;
  max-height: var(--logo-h) !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  object-fit: contain !important;
}

/* Menu */
.navbar-nav .menu-item a{
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: .35rem .25rem;
  border-radius: 10px;
}
.navbar-nav .menu-item a:hover{
  color: var(--brand-green-2);
}

/* Botão do header */
.btn-assessoria{
  background: var(--brand-green-2);
  color: #fff !important;
  border-radius: 999px;
  padding: .55rem 1rem;
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 600;
}
.btn-assessoria:hover{
  background: var(--brand-green);
  color: #fff !important;
}

/* Badge (avatar) */
.user-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,85,65,.12);
  color: var(--brand-green);
  font-weight: 700;
}

/* Hamburger (BS 5.0.2) */
.navbar-toggler{
  border: 1px solid rgba(31,41,55,.12);
  border-radius: 12px;
  padding: .35rem .55rem;
}
.navbar-toggler:focus{ box-shadow: none; }
.navbar-toggler-icon{
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45,85,65,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header - social icon pill (igual print) */
.social-pill{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(45,85,65,.12);
  color: var(--brand-green);
  border: 1px solid rgba(45,85,65,.18);
}

.social-pill:hover{
  background: rgba(45,85,65,.18);
  color: var(--brand-green);
}
.social-pill i{
  font-size: 1.05rem;
  line-height: 1;
}

/* =================
   MAIN / BLOG CARDS
   ================= */
.site-main{ min-height: 60vh; }

.card{
  border: 1px solid var(--border-soft) !important;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card .card-body{ padding: 1.1rem; }
.card-img-top{
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.object-fit-cover{ object-fit: cover; }

.badge.text-bg-light{
  background: rgba(45,85,65,.10) !important;
  color: var(--brand-green) !important;
  border-color: rgba(45,85,65,.18) !important;
  font-weight: 600;
}

.btn-outline-secondary{ border-radius: 999px; }

/* Paginação */
.pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.12);
  color: var(--text-dark);
  text-decoration: none;
}
.pagination .page-numbers.current{
  background: var(--brand-green-2);
  border-color: var(--brand-green-2);
  color: #fff;
}

/* =================
   FOOTER
   ================= */
.site-footer{
  background: var(--brand-green);
  color: rgba(255,255,255,.92);
}

.footer-title,
.footer-title-sm{
  color: #fff;
  font-weight: 700;
}

.footer-text{
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}

.footer-links a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  display: inline-block;
  padding: .15rem 0;
}
.footer-links a:hover{
  color: #fff;
  text-decoration: underline;
}

.footer-muted{ color: rgba(255,255,255,.72); }
.footer-hr{ border-color: rgba(255,255,255,.18); }

.social-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.social-icon:hover{
  background: rgba(255,255,255,.18);
  color: #fff;
}


/* =========================
   SIDEBAR (BLOG)
   ========================= */
.site-main aside,
.site-main .sidebar,
.site-main #secondary{
  position: relative;
}

.site-main aside .widget-wrapper{
  background: #fff;
  border: 1px solid rgba(31,41,55,.10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31,41,55,.06);
  padding: 18px 18px;
  margin-bottom: 18px;
}

/* Títulos dos widgets */
.site-main aside .widget-title{
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  color: #111827;
}

/* Separador visual suave depois do título */
.site-main aside .widget-title::after{
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: rgba(45,85,65,.35);
  margin-top: 10px;
}

/* Listas (Categorias / Recentes / Arquivos) */
.site-main aside ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-main aside ul li{
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31,41,55,.08);
}

.site-main aside ul li:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

/* Links */
.site-main aside a{
  color: #0f3a2a;
  text-decoration: none;
  font-weight: 600;
}

.site-main aside a:hover{
  color: var(--brand-green-2);
  text-decoration: underline;
}

/* Recent posts: deixa mais “limpo” */
.site-main aside .widget_recent_entries li a{
  display: inline-block;
  line-height: 1.35;
}

/* =========================
   SEARCH (widget padrão do WP)
   ========================= */
.site-main aside .wp-block-search,
.site-main aside .search-form{
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.site-main aside .search-field{
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(31,41,55,.14);
  padding: 0 14px;
  outline: none;
}

.site-main aside .search-field:focus{
  border-color: rgba(45,85,65,.45);
  box-shadow: 0 0 0 4px rgba(45,85,65,.10);
}

.site-main aside .search-submit{
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--brand-green-2);
  color: #fff;
  font-weight: 700;
}

.site-main aside .search-submit:hover{
  background: var(--brand-green);
}

/* Conteúdo do post */
.content-post{
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1.02rem;
}

.content-post h2, .content-post h3, .content-post h4{
  margin-top: 1.6rem;
  margin-bottom: .75rem;
  font-weight: 800;
  color: #111827;
}

.content-post p{
  margin-bottom: 1rem;
}

.content-post img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.content-post a{
  color: var(--brand-green-2);
  text-decoration: underline;
}

.content-post blockquote{
  border-left: 4px solid rgba(45,85,65,.35);
  padding-left: 1rem;
  color: #374151;
  background: rgba(45,85,65,.06);
  border-radius: 12px;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

/* Comments: links de navegação */
.comment-navigation a{
  color: var(--brand-green-2);
  font-weight: 700;
  text-decoration: none;
}
.comment-navigation a:hover{
  text-decoration: underline;
}

/* Comment form inputs */
.comment-respond .form-control{
  border-radius: 12px;
  border: 1px solid rgba(31,41,55,.14);
  padding: .65rem .9rem;
}
.comment-respond .form-control:focus{
  border-color: rgba(45,85,65,.45);
  box-shadow: 0 0 0 4px rgba(45,85,65,.10);
}

/* 404 page */
.error404 .card {
  border-radius: 20px;
}

.error404 h1 {
  letter-spacing: -2px;
}

.error404 .btn-assessoria {
  padding: .75rem 1.5rem;
  font-size: 1rem;
}

/* =========================
   “Sticky” opcional no desktop
   (sidebar fica acompanhando)
   ========================= */
@media (min-width: 992px){
  .site-main aside{
    position: sticky;
    top: 90px; /* ajuste conforme altura do seu header */
  }
}

/* =================
   RESPONSIVO
   ================= */
@media (max-width: 991.98px){
  .navbar-nav{ padding-top: .75rem; }
  .navbar-nav .menu-item a{ padding: .55rem .25rem; }
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float:right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}
