/*
Theme Name: JMT Advocacia
Theme URI: https://jacobalcaraz.com.br
Author: JMT Advocacia Criminal
Author URI: https://jacobalcaraz.com.br
Description: Tema base para JMT Advocacia Criminal
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Proprietary
Text Domain: jmt-advocacia
*/

/* =========================================
   CSS Variables
   ========================================= */
:root {
  --jmt-navy: #1b2d4f;
  --jmt-navy-secondary: #2a4270;
  --jmt-navy-dark: #152440;
  --jmt-navy-card: #223759;
  --jmt-gold: #c9a84c;
  --jmt-foreground: #e8ecf2;
  --jmt-muted: #a0b4cc;
  --jmt-radius: 0.2rem;
  --jmt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --jmt-font:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
}

/* =========================================
   Global Base
   ========================================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--jmt-font);
  padding-top: 80px; /* compensar navbar fixa */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--jmt-font);
  font-weight: 600;
  letter-spacing: 0.2px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.jmt-perfil {
  overflow: hidden;
}

/* =========================================
   Container customizado (max-width 1280px)
   ========================================= */
.jmt-container {
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .jmt-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .jmt-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* =========================================
   Navbar
   ========================================= */
.jmt-navbar {
  height: 80px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: #fff !important;
}

.jmt-navbar > .jmt-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo no header */
.jmt-navbar .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.jmt-navbar .custom-logo {
  height: 64px;
  width: auto !important;
}

.jmt-navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--jmt-navy);
  text-decoration: none;
  flex-shrink: 0;
}

/* Botão hambúrguer */
.jmt-toggler {
  color: var(--jmt-navy);
  padding: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  line-height: 1;
}

.jmt-toggler:focus {
  box-shadow: none !important;
  outline: none;
}

/* Links de navegação */
.jmt-navbar .navbar-nav {
  gap: 2rem;
}

.jmt-nav-link {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--jmt-navy) !important;
  transition: color var(--jmt-transition) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  white-space: nowrap;
}

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

/* Dropdown do Bootstrap (submenus, se houver) */
.jmt-navbar .dropdown-menu {
  border-radius: var(--jmt-radius);
  border-color: var(--jmt-navy-secondary);
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(27, 45, 79, 0.12);
  min-width: 12rem;
}

.jmt-navbar .dropdown-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jmt-navy);
  padding: 0.5rem 1rem;
  transition:
    color var(--jmt-transition),
    background-color var(--jmt-transition);
}

.jmt-navbar .dropdown-item:hover,
.jmt-navbar .dropdown-item:focus {
  color: var(--jmt-gold);
  background-color: rgba(201, 168, 76, 0.06);
}

/* Menu colapsado (mobile) */
@media (max-width: 767.98px) {
  .jmt-navbar > .jmt-container {
    flex-wrap: wrap;
  }

  .jmt-navbar .navbar-collapse {
    flex-basis: 100%;
    background: #fff;
    border-top: 1px solid rgba(27, 45, 79, 0.08);
    padding: 1rem 0 1.25rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .jmt-navbar .navbar-nav {
    gap: 0;
    width: 100%;
  }

  .jmt-nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(27, 45, 79, 0.06);
    display: block;
    font-size: 0.9375rem !important;
  }

  .jmt-navbar .navbar-nav .nav-item:last-child .jmt-nav-link {
    border-bottom: none;
  }
}

/* =========================================
   Footer
   ========================================= */
.jmt-footer {
  background-color: var(--jmt-navy);
  color: var(--jmt-foreground);
  padding: 4rem 0;
}

.jmt-footer-inner {
  max-width: 64rem; /* max-w-5xl */
  margin-left: auto;
  margin-right: auto;
}

/* Logo no footer */
.jmt-footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.jmt-footer .custom-logo {
  height: 80px;
  width: auto !important;
}

.jmt-footer-logo-text {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.jmt-footer-tagline {
  font-size: 0.875rem;
  color: var(--jmt-muted);
  line-height: 1.625;
  margin-bottom: 0;
}

.jmt-footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jmt-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.jmt-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.jmt-footer-nav li:last-child {
  margin-bottom: 0;
}

.jmt-footer-link {
  font-size: 0.875rem;
  color: var(--jmt-muted);
  text-decoration: none;
  transition: color var(--jmt-transition);
}

.jmt-footer-link:hover,
.jmt-footer-link:focus {
  color: var(--jmt-gold);
}

.jmt-footer-link--break {
  word-break: break-all;
}

.jmt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--jmt-muted);
}

.jmt-footer-bottom p {
  margin: 0;
}

.jmt-footer-bottom p + p {
  margin-top: 0.5rem;
}

/* =========================================
   Utilitários do design de referência
   ========================================= */
.gold-accent {
  color: var(--jmt-gold);
}

.section-divider {
  background: linear-gradient(90deg, transparent, var(--jmt-gold), transparent);
  height: 1px;
  border: none;
  margin: 4rem 0;
}

.btn-premium {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--jmt-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jmt-navy);
  background-color: var(--jmt-gold);
  border: 2px solid var(--jmt-gold);
  border-radius: var(--jmt-radius);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--jmt-transition);
}

.btn-premium:hover {
  color: var(--jmt-gold);
  background-color: transparent;
  border-color: var(--jmt-gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.btn-premium:active {
  transform: scale(0.98);
}

.card-premium {
  border: 1px solid var(--jmt-navy-secondary);
  border-radius: var(--jmt-radius);
  background-color: var(--jmt-navy-card);
  transition: all var(--jmt-transition);
}

.card-premium:hover {
  border-color: var(--jmt-gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

/* Animações do design de referência */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.1s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.3s forwards;
}

/* =========================================
   Widget Equipe (Elementor)
   ========================================= */
.jmt-equipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .jmt-equipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .jmt-equipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .jmt-equipe-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.jmt-equipe-item {
  cursor: pointer;
  padding: 0 0.5rem 1rem;
}

.jmt-equipe-foto {
  overflow: hidden;
  background-color: #f3f4f6;
  margin-bottom: 1rem;
}

.jmt-equipe-img {
  width: 100%;
  height: inherit;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity var(--jmt-transition);
}

.jmt-equipe-item:hover .jmt-equipe-img {
  opacity: 0.8;
}

.jmt-equipe-nome {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--jmt-navy);
  line-height: 1.25;
  margin: 0;
  transition: color var(--jmt-transition);
}

.jmt-equipe-item:hover .jmt-equipe-nome {
  color: var(--jmt-gold);
}

.jmt-equipe-cargo {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jmt-navy-secondary);
  margin: 0.25rem 0 0;
}

.jmt-equipe-oab {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.125rem 0 0;
}

/* =========================================
   Single Equipe — Perfil do Membro
   ========================================= */
.jmt-perfil-section {
  padding: 5rem 0 6rem;
  background: #fff;
  color: #111827;
}

.jmt-perfil-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--jmt-gold);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--jmt-transition);
}

.jmt-perfil-back:hover {
  color: var(--jmt-navy);
}

.jmt-perfil-header {
  margin-bottom: 3.5rem;
}

.jmt-perfil-nome {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--jmt-navy);
  margin-bottom: 0.375rem;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.jmt-perfil-cargo {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--jmt-navy-secondary);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.jmt-perfil-oab-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--jmt-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.jmt-perfil-foto-wrap {
  width: 100%;
  max-width: 22rem;
}

.jmt-perfil-foto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 12px 36px rgba(27, 45, 79, 0.18);
  object-fit: cover;
  object-position: top;
}

/* Bio — edição do WP */
.jmt-perfil-bio {
  margin-bottom: 3rem;
}

.jmt-perfil-bio p {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.45rem;
}

.jmt-perfil-bio p:last-child {
  margin-bottom: 0;
}

.jmt-perfil-bio ul,
.jmt-perfil-bio ol {
  list-style-type: disc;
}

.jmt-perfil-bio ul li,
.jmt-perfil-bio ol li {
  margin-bottom: 0.5rem;
}

/* Marker */

.jmt-perfil-bio ul li::marker,
.jmt-perfil-bio ol li::marker {
  color: var(--jmt-gold);
}

.jmt-perfil-bio strong {
  color: var(--jmt-navy);
  font-weight: 700;
}

.jmt-perfil-bio h2,
.jmt-perfil-bio h3 {
  color: var(--jmt-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.jmt-perfil-bio ul,
.jmt-perfil-bio ol {
  padding-left: 1.5rem;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* CTA de contato */
.jmt-perfil-cta {
  border-top: 2px solid var(--jmt-gold);
  padding-top: 2rem;
}

.jmt-perfil-cta-text {
  color: #374151;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.jmt-perfil-cta-text strong {
  color: var(--jmt-navy);
}

.jmt-perfil-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 18rem;
}

/* Botão outline navy com borda gold */
.jmt-btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--jmt-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--jmt-navy);
  border: 2px solid var(--jmt-gold);
  border-radius: var(--jmt-radius);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--jmt-transition);
}

.jmt-btn-outline:hover {
  color: var(--jmt-gold);
  background-color: transparent;
  border-color: var(--jmt-gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

hr {
  background-color: var(--jmt-gold);
  height: 2px;
  border: 0;
  opacity: 1;
}

.jmt-oab {
  color: var(--jmt-navy);
}
