/*
Theme Name: LFA Administração Passivos Bancários
Theme URI: https://consultoriojuridico.com.br
Author: Leandro Fialho Advogados
Description: Landing page profissional para administração de passivos bancários
Version: 3.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A1628;
  --navy-mid: #0D1F3C;
  --navy-light: #142850;
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --off-white: #F8F6F1;
  --gray-light: #F0EDE8;
  --gray-text: #6B7280;
  --text-dark: #1A1A2E;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 18px 48px; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-logo .logo-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: #fff; }
.navbar-logo .logo-name span { color: var(--gold); }
.navbar-logo .logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 1px; }
.navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-nav a { color: rgba(255,255,255,0.75); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.navbar-nav a:hover { color: #fff; }
.navbar-cta { background: transparent; color: var(--gold); padding: 10px 22px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--gold); transition: all 0.3s; }
.navbar-cta:hover { background: var(--gold); color: var(--navy); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80&fit=crop') center/cover no-repeat;
  padding: 140px 0 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(13,31,60,0.85) 60%, rgba(10,22,40,0.75) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 24px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 40px; max-width: 620px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ===== SECTION LABELS ===== */
.section-label { font-size: 0.75rem; font-weight: 600; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-sub { font-size: 1.05rem; color: var(--gray-text); margin-bottom: 48px; max-width: 600px; }

/* ===== SOBRE ===== */
.sobre { padding: 100px 0; background: var(--off-white); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sobre-text h2 { margin-bottom: 24px; }
.sobre-text p { color: #4B5563; margin-bottom: 16px; font-size: 1.02rem; }
.sobre-text strong { color: var(--navy); }
.sobre-text .btn-primary { margin-top: 16px; }
.sobre-img img { width: 100%; height: 480px; object-fit: cover; object-position: center; }

/* ===== PROBLEMAS ===== */
.problemas { padding: 100px 0; background: #fff; }
.problemas h2 { margin-bottom: 12px; }

/* ===== SERVIÇOS ===== */
.servicos { padding: 100px 0; background: var(--navy); }
.servicos .section-label { color: var(--gold); }
.servicos h2 { color: #fff; }
.servicos .section-sub { color: rgba(255,255,255,0.6); }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card { background: var(--off-white); padding: 36px 28px; border-top: 3px solid transparent; transition: all 0.35s ease; opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--gold); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: #4B5563; line-height: 1.65; }

.card-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.card-dark:hover { border-top-color: var(--gold); background: rgba(255,255,255,0.08); }
.card-dark .card-icon { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.25); }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.65); }

/* ===== DIFERENCIAIS ===== */
.diferenciais { padding: 100px 0; background: var(--off-white); }
.diferenciais-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.diferencial { text-align: center; opacity: 0; transform: translateY(20px); transition: all 0.35s ease; will-change: transform, opacity; }
.diferencial.visible { opacity: 1; transform: translateY(0); }
.dif-icon { width: 64px; height: 64px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--gold); }
.dif-icon svg { width: 32px; height: 32px; }
.diferencial h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.diferencial p { font-size: 0.92rem; color: #4B5563; line-height: 1.6; }

/* ===== DEPOIMENTOS ===== */
.depoimentos { padding: 100px 0; background: var(--navy); }
.depoimentos .section-label { color: var(--gold); }
.depoimentos h2 { color: #fff; margin-bottom: 12px; }
.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.depoimento { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 36px 28px; opacity: 0; transform: translateY(20px); transition: all 0.35s ease;  will-change: transform, opacity;}
.depoimento.visible { opacity: 1; transform: translateY(0); }
.depo-stars { display: flex; gap: 4px; margin-bottom: 20px; }
.depoimento blockquote { font-family: var(--font-serif); font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.7; font-style: italic; margin-bottom: 28px; quotes: none; }
.depo-author { display: flex; align-items: center; gap: 16px; }
.depo-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.depo-author strong { display: block; color: #fff; font-size: 0.92rem; }
.depo-author span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: #fff; }
.faq-list { margin-top: 48px; max-width: 800px; }
.faq-item { border-bottom: 1px solid #E5E7EB; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; background: none; border: none; cursor: pointer; font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); text-align: left; gap: 16px; }
.faq-arrow { transition: transform 0.3s; flex-shrink: 0; color: var(--gold); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 20px; color: #4B5563; font-size: 0.97rem; line-height: 1.7; }

/* ===== CTA FINAL ===== */
.cta-final { padding: 100px 0; background: var(--gold); text-align: center; }
.cta-final h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.cta-final p { color: rgba(10,22,40,0.75); margin-bottom: 40px; font-size: 1.05rem; }
.cta-final .btn-primary { background: var(--navy); color: #fff; }
.cta-final .btn-primary:hover { background: var(--navy-mid); }

/* ===== CONTATO ===== */
.contato { padding: 100px 0; background: var(--off-white); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contato-info h2 { margin-bottom: 16px; }
.contato-info > p { color: #4B5563; margin-bottom: 32px; font-size: 1.02rem; }
.contato-items { display: flex; flex-direction: column; gap: 16px; }
.contato-item { display: flex; align-items: center; gap: 14px; color: var(--navy); font-size: 0.95rem; }
.contato-item svg { color: var(--gold); flex-shrink: 0; }
.contato-form { background: #fff; padding: 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #E5E7EB; background: var(--off-white); font-family: var(--font-sans); font-size: 0.95rem; color: var(--navy); transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */


/* =====================================================
   FAQ ACCORDION - Reference image style
   Light gray boxes, large bold question titles
   ===================================================== */
.faq-section {
  padding: 80px 0;
  background: #fff;
}
.faq-section .section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}
.faq-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #0d1b2a;
  margin-bottom: 12px;
  text-align: center;
}
.faq-intro {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-bottom: 48px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-accordion-item {
  background: #f0f2f5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  transition: box-shadow 0.2s;
}
.faq-accordion-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.faq-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-q-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.4;
  flex: 1;
}
.faq-chevron {
  flex-shrink: 0;
  color: #c9a84c;
  transition: transform 0.3s ease;
}
.faq-accordion-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-accordion-body.open {
  max-height: 600px;
}
.faq-accordion-body p {
  padding: 0 28px 22px;
  color: #3a4a5a;
  font-size: 0.97rem;
  line-height: 1.75;
  margin: 0;
}

/* =====================================================
   FOOTER - Rich multi-column layout, two-tone headings
   ===================================================== */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.80);
}
.footer-main {
  padding: 64px 0 48px;
}
.footer-grid-main {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.footer-col-brand {}
.footer-logo-wrap {
  margin-bottom: 12px;
}
.footer-logo-wrap img {
  max-height: 80px;
  width: auto;
}
.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #c9a84c;
}
.footer-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}
.footer-oab {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: #c9a84c;
  color: #c9a84c;
  background: rgba(201,168,76,0.08);
}
/* Footer Column Title */
.footer-col-title {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}
.footer-title-white {
  color: #ffffff;
}
.footer-title-gold {
  color: #c9a84c;
}
.footer-divider {
  height: 2px;
  background: linear-gradient(to right, #c9a84c 30%, transparent 100%);
  margin-bottom: 22px;
  border-radius: 2px;
}
/* Footer Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact-list svg {
  flex-shrink: 0;
  color: #c9a84c;
  margin-top: 2px;
}
.footer-contact-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}
.footer-contact-list a,
.footer-contact-list span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
}
.footer-contact-list a:hover {
  color: #c9a84c;
}
/* Footer Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}
.footer-links-list a:hover {
  color: #c9a84c;
  padding-left: 6px;
}
/* Footer Atendimento */
.footer-atendimento {
  margin-bottom: 20px;
}
.footer-atendimento p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-atendimento strong {
  color: #ffffff;
}
/* Footer Hours Card */
.footer-hours-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 16px;
}
.footer-hours-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.footer-hours-item strong {
  font-size: 0.85rem;
}
.footer-hours-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  margin: 0 0 14px;
  line-height: 1.5;
}
.footer-hours-card p:last-child {
  margin-bottom: 0;
}
/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 18px 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 580px) {
  .footer-grid-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =====================================================
   GLOBAL HEADING FONT - Playfair Display for all headings
   ===================================================== */
h1, h2, h3, h4, .hero-title, .section-heading, .card h3 {
  font-family: var(--font-serif);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .navbar-nav { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== HERO INNER GRID (Text + Form) ===== */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-align-right .hero-content { order: 1; }
.hero-align-right .hero-form-wrap { order: 2; }
.hero-align-left .hero-content { order: 2; }
.hero-align-left .hero-form-wrap { order: 1; }

/* ===== HERO FORM CARD ===== */
.hero-form-wrap { width: 100%; }
.hero-form-card {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.hero-form-header {
  background: #0A1628;
  padding: 20px 28px;
  text-align: center;
}
.hero-form-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}
.hero-form-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}
.hero-form-body {
  padding: 24px 28px 28px;
  background: #fff;
}
.hf-group {
  margin-bottom: 14px;
}
.hf-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0A1628;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hf-group input, .hf-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E5E7EB;
  background: #F8F6F1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #0A1628;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  border-radius: 1px;
}
.hf-group input:focus, .hf-group select:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.hf-group select { cursor: pointer; }
.hero-form-btn {
  width: 100%;
  padding: 14px;
  background: #C9A84C;
  color: #0A1628;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 6px;
}
.hero-form-btn:hover { background: #E2C47A; }
.hero-form-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ===== TRUSTINDEX SECTION ===== */
.trustindex-section {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid #F0EDE8;
}

/* ===== RESPONSIVE HERO FORM ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-align-right .hero-content, .hero-align-left .hero-content { order: 1; }
  .hero-align-right .hero-form-wrap, .hero-align-left .hero-form-wrap { order: 2; }
  .hero { padding-top: 142px; padding-bottom: 60px; min-height: auto; }
}

/* ===== NAVBAR CONTAINER FIX (logo alinhada à esquerda) ===== */
.navbar .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo .custom-logo-link { display: block; }
.navbar-logo img { display: block; }

/* ===== HERO FORM SCROLL (many fields) ===== */
.hero-form-body {
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #C9A84C #F8F6F1;
  padding: 20px 24px 24px;
}
.hero-form-body::-webkit-scrollbar { width: 5px; }
.hero-form-body::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 3px; }

/* Compact form groups */
.hf-group { margin-bottom: 11px; }
.hf-group label { font-size: 0.7rem; margin-bottom: 4px; }
.hf-group input, .hf-group select {
  padding: 9px 12px;
  font-size: 0.88rem;
}

/* ===== FIX: NAVBAR BRAND (logo alignment) ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.navbar-brand .custom-logo-link { display: block; line-height: 0; }
.navbar-brand img,
.navbar-brand .custom-logo { display: block; height: auto; }
.navbar-logo-text { text-decoration: none; display: flex; flex-direction: column; }
.navbar-logo-text .logo-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: #fff; }
.navbar-logo-text .logo-name span { color: var(--gold); }
.navbar-logo-text .logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 1px; }

/* ===== FIX: FOOTER TEXT CONTRAST ===== */
.footer-brand p { color: rgba(255,255,255,0.75) !important; font-size: 0.88rem; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,0.72) !important; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold) !important; }
.footer-col li span { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-bottom { color: rgba(255,255,255,0.65); }
.site-footer { color: rgba(255,255,255,0.72); }

/* ===== FIX: CARD TEXT SIZE & READABILITY ===== */
.card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.card p { font-size: 0.97rem; color: #374151; line-height: 1.7; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.78); font-size: 0.97rem; }

/* ===== FIX: NAVBAR INNER OVERRIDE (clear old .navbar-logo reference) ===== */
.navbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar .container.navbar-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }


/* ===== FIX: Section subtitle — prevent orphan word break ===== */
.section-sub {
  max-width: 100%;
  text-wrap: balance;
}
.problemas .section-sub,
.servicos .section-sub {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .problemas .section-sub,
  .servicos .section-sub {
    white-space: normal;
    max-width: 320px;
  }
}

/* ===== FIX: Card sections — explicit selectors for dynamic CSS targeting ===== */
.problemas .card h3 { font-size: 1.05rem; }
.problemas .card p { font-size: 0.95rem; line-height: 1.7; }
.servicos .card h3 { font-size: 1.05rem; }
.servicos .card p { font-size: 0.95rem; line-height: 1.7; }

/* ===== FIX: Footer social icons standardization ===== */
.footer-social a { 
  color: rgba(255,255,255,0.72) !important;
  line-height: 0;
  display: inline-flex;
}
.footer-social a:hover { color: #fff !important; }
.footer-social svg { width: 22px; height: 22px; }

/* ===== QUEM SOMOS SECTION ===== */
.quem-somos {
  padding: 100px 0;
  background: #ECEAE4;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.quem-somos .section-label { color: var(--gold); }
.quem-somos h2 { color: var(--text-dark); margin-bottom: 24px; }
.quem-somos .sobre-grid { align-items: center; }
.quem-somos .qs-text p {
  color: var(--gray-text);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.quem-somos .sobre-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  box-shadow: 8px 12px 32px rgba(10,22,40,0.18);
}
.quem-somos .btn-primary { margin-top: 24px; display: inline-block; }

/* ===== NAVBAR RESPONSIVENESS FIX ===== */
@media (max-width: 1100px) and (min-width: 961px) {
  .navbar-nav { gap: 20px; }
  .navbar-nav a { font-size: 0.72rem; }
  .navbar-cta { padding: 10px 16px; font-size: 0.7rem; }
}
@media (max-width: 960px) {
  .navbar-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: rgba(10, 22, 40, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
  }
  .navbar-nav.nav-open {
    display: flex;
    justify-content: flex-start;
  }
  .navbar-nav a { font-size: 1.1rem; color: rgba(255,255,255,0.85); letter-spacing: 0.1em; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
    position: relative;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-close-btn {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    display: none;
  }
  .nav-close-btn.is-visible { display: block; }

  /* WP Admin bar compensation — keeps nav full screen but pads content below admin bar */
  /* nav height and padding handled by header.php JS */
}
@media (max-width: 782px) {
  /* nav height and padding handled by header.php JS */
}
@media (max-width: 782px) {
  body.admin-bar .nav-close-btn {
    top: 66px !important;
  }
}
@media (min-width: 961px) {
  .nav-hamburger { display: none; }
  .nav-close-btn { display: none; }
}

/* ===== MOBILE FIXES v3 ===== */

/* Global: prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
*, *::before, *::after {
  max-width: 100%;
}
section, .container {
  overflow-x: clip;
  overflow-y: clip;
}

/* WhatsApp float button — always above hamburger nav overlay, anchored to viewport */
.wa-float-wrapper {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 10001 !important;
  left: auto !important;
}
.wa-float {
  position: relative !important;
  z-index: 10001 !important;
}

/* Hero form — no internal scroll on mobile */
.hero-form-card {
  overflow: visible !important;
  max-height: none !important;
}
@media (max-width: 960px) {
  .hero-form-card {
    overflow: visible !important;
    max-height: none !important;
  }
  .hero-form-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Cases de Sucesso carousel — full-width cards on mobile */
@media (max-width: 768px) {
  .depo-carousel-wrap {
    overflow: hidden !important;
    width: 100% !important;
  }
  .depo-carousel-track .depoimento {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .depoimentos { padding: 60px 0; }
  .depoimentos h2 { font-size: 2rem !important; }
}

/* Contato form — reduce padding and fix width on mobile */
@media (max-width: 600px) {
  .contato { padding: 60px 0; }
  .contato-form {
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .contato-grid { gap: 24px !important; }
}

/* General sections overflow fix */
@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
  }
  .hero-stats { display: flex; flex-wrap: wrap; gap: 16px 24px; }
  .sobre-grid { grid-template-columns: 1fr !important; }
  .quem-somos .sobre-grid { grid-template-columns: 1fr !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  section { overflow-x: hidden; }
}


/* ===== MOBILE FIXES v4 - CTA NAV HIDE ===== */
@media (max-width: 768px) {
  /* Hide CONSULTA ESTRATÉGICA button in navbar on mobile - CTAs already exist below hero */
  .navbar-cta {
    display: none !important;
  }
}
/* Navbar logo constrain + overflow on mobile */
@media (max-width: 600px) {
  .navbar {
    /* overflow:hidden removed - clips fixed menu overlay */
    max-width: 100vw !important;
  }
  .navbar-brand img,
  .navbar-brand .custom-logo {
    max-width: clamp(140px, calc(100vw - 80px), 220px) !important;
    width: auto !important;
  }
}
/* Sobre/Entenda section - force grid items to shrink at mobile */
@media (max-width: 600px) {
  .sobre-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .sobre-text,
  .sobre-img {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}
/* ===== END MOBILE FIXES v4 ===== */


/* ===== BACK TO TOP BUTTON ===== */
#lfa-back-to-top {
  position: fixed;
  bottom: 32px;
  left: 24px;
  right: auto;
  width: 48px;
  height: 48px;
  background: var(--gold, #C9A84C);
  color: #0A1628;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
#lfa-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#lfa-back-to-top:hover {
  background: #E2C47A;
  transform: translateY(-3px);
}
#lfa-back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: #0A1628;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  #lfa-back-to-top {
    bottom: 32px;
    left: 16px;
    right: auto;
    width: 44px;
    height: 44px;
  }
}
/* ===== END BACK TO TOP ===== */