/*
Theme Name: Marcos Teixeira Advocacia
Author: Marcos Teixeira
Description: Tema personalizado para Marcos Teixeira Advocacia
Version: 1.0.0
*/

:root {
  --navy: #0B2545;
  --gold: #E8A020;
}

* { box-sizing: border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a2e;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}

.navbar-nav .nav-link {
  color: var(--navy) !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem !important;
  position: relative;
  transition: color 0.2s;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-gold:hover { background: #c98a18; color: #fff; transform: translateY(-1px); }

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

.btn-outline-navy-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-navy-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.8); }

/* ── Utilities ───────────────────────────────────────── */
.text-gold { color: var(--gold) !important; }
.bg-navy   { background-color: var(--navy) !important; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.gold-bar-center {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 2.5rem;
}

/* ── Hero ────────────────────────────────────────────── */
#hero {
  background-color: var(--navy);
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}

#hero .hero-right {
  min-height: 88vh;
  background-color: var(--navy);
  /* background-image é gerado dinamicamente via wp_add_inline_style() em functions.php */
}

/* ── Quem Somos ──────────────────────────────────────── */
#quem-somos { padding: 90px 0; background: #fff; }

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 2rem;
  border-right: 4px solid var(--gold);
}

/* ── Áreas de Atuação ────────────────────────────────── */
#areas { padding: 80px 0; background: #F5F5F5; }

.area-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  height: 100%;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.area-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }

.area-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Curiosidades ────────────────────────────────────── */
#curiosidades { padding: 80px 0; background: var(--navy); }

.curioso-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.curioso-card-img {
  height: 115px;
  overflow: hidden;
  background: #ccd4de;
}
.curioso-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.curioso-card-body { padding: 0.65rem 0.75rem 0.75rem; }
.curioso-card-body p { font-size: 0.72rem; font-weight: 600; line-height: 1.5; color: #222; margin-bottom: 0.4rem; }

.social-circle {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.social-circle:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── CTA Banner ──────────────────────────────────────── */
#cta-banner { padding: 60px 0; background: #fff; }

.cta-icon-wrap {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 65px 0 0;
  color: rgba(255,255,255,0.7);
}

footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--gold); }

.footer-logo { filter: brightness(0) invert(1); }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.footer-contact-row i { color: var(--gold); margin-top: 2px; width: 14px; flex-shrink: 0; }

.footer-social {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin-top: 50px;
  margin-bottom: 0;
}

/* ── Copyright ───────────────────────────────────────── */
.copyright-bar {
  background: #060e1a;
  padding: 0.9rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════════════════
   PÁGINAS INTERNAS
══════════════════════════════════════════════════════ */

/* ── Page Header — fundo navy, inspirado no visual geral ── */
.page-header {
  background: var(--navy);
  padding: 60px 0 50px;
}

.page-header-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

/* ── Breadcrumb ──────────────────────────────────────── */
.page-breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb-current { color: rgba(255,255,255,0.75); }

/* ── Post meta (data + categoria no header) ──────────── */
.post-meta {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ── Seção interna — fundo #F5F5F5 como em #areas ────── */
.inner-section {
  background: #F5F5F5;
  padding: 70px 0 80px;
}

/* ── Content card — caixa branca com sombra ──────────── */
.content-card {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
}

@media (max-width: 576px) {
  .content-card { padding: 1.5rem 1.25rem; }
}

/* ── Tipografia do conteúdo ──────────────────────────── */
.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #3a3a3a;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p { margin-bottom: 1.2rem; }
.entry-content p:last-child { margin-bottom: 0; }

.entry-content a { color: var(--gold); font-weight: 600; }
.entry-content a:hover { color: #c98a18; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.entry-content li { margin-bottom: 0.35rem; }

.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1.25rem;
  margin: 1.75rem 0;
  background: #faf8f4;
  border-radius: 0 6px 6px 0;
  color: #555;
  font-style: italic;
}

/* ── Featured image (single post, dentro do content-card) */
.post-featured-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ── Archive — grid de posts ─────────────────────────── */
.archive-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.archive-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.archive-card-img { height: 200px; overflow: hidden; }
.archive-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.archive-card:hover .archive-card-img img { transform: scale(1.04); }

.archive-card-img-placeholder {
  height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-card-body { padding: 1.25rem 1.25rem 1.5rem; }

.archive-card-date {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.archive-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.archive-card-excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

/* ── Paginação Bootstrap customizada ─────────────────── */
.pagination { gap: 4px; }

.pagination .page-link {
  color: var(--navy);
  border-color: rgba(11,37,69,0.18);
  font-weight: 600;
  border-radius: 6px !important;
  padding: 0.45rem 0.85rem;
  transition: all 0.2s;
}
.pagination .page-item.active .page-link {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
