/* ====================================================
   ESTILOS - ALEX LOPES GUIMARÃES ADVOCACIA & PORTAL
==================================================== */
:root {
  --primary: #0a192f;
  --primary-light: #172a45;
  --primary-dark: #050d18;
  --accent: #c5a059;
  --accent-light: #dfbe7d;
  --accent-hover: #b08d46;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Cinzel', serif;
  color: var(--primary);
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Barra Superior */
.top-bar {
  background-color: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .contact-info span {
  margin-right: 15px;
}

.btn-portal-quick {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-portal-quick:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* Navbar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.brand-symbol {
  font-size: 1.8rem;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent);
}

.btn-nav-portal {
  background-color: var(--primary);
  color: var(--bg-white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s !important;
}

.btn-nav-portal:hover {
  background-color: var(--accent) !important;
  color: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--bg-white);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline-gold:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.96), rgba(23, 42, 69, 0.92)),
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--bg-white);
  padding: 90px 0 110px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 {
  color: var(--bg-white);
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Seções Gerais */
.section {
  padding: 70px 0;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Sobre */
.section-about {
  background-color: var(--bg-white);
}

.about-text .lead {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.mvv-card {
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.mvv-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.mvv-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Card do Advogado */
.lawyer-card {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.lawyer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-ph {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.lawyer-card h3 {
  color: var(--bg-white);
  font-size: 1.15rem;
}

.lawyer-role {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
}

.lawyer-oab {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
}

.lawyer-highlights {
  list-style: none;
  margin-bottom: 25px;
}

.lawyer-highlights li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #e2e8f0;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.highlight-card {
  background: linear-gradient(145deg, #f8fafc, #edf2f7);
  border-top: 4px solid var(--accent);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Seção do Portal */
.section-portal {
  background-color: #f1f5f9;
}

.portal-box {
  background-color: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 30px auto 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Abas e Formulários do Portal */
.portal-header-bar {
  background: var(--primary);
  color: var(--bg-white);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.portal-header-bar h3 {
  color: var(--bg-white);
  font-size: 1.3rem;
}

.portal-body {
  padding: 35px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.password-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.portal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-light);
}

.portal-tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
}

.portal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  background-color: var(--bg-white);
}

/* Cartões de Processo e Linha do Tempo */
.process-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 25px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}

.process-badge {
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--bg-white);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Painel de Gestão */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 15px;
}

.admin-table th, .admin-table td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  background-color: var(--bg-light);
  font-weight: 600;
}

/* Contato */
.section-contact {
  background-color: var(--bg-white);
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-details {
  margin-top: 25px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item .icon {
  font-size: 1.3rem;
  color: var(--accent);
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-form-box {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-form-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Rodapé */
.footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 20px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3, .footer h4 {
  color: var(--bg-white);
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .mvv-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
