/* ============================================
   AIROLDI ADVOCACIA – style.css
   Paleta: Navy profundo + Dourado + Off-white
   ============================================ */

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

:root {
  --navy:        #1d3a6e;
  --navy-mid:    #162d56;
  --navy-light:  #22437f;
  --gold:        #b8963e;
  --gold-hover:  #cfa94e;
  --gold-pale:   #f5ead5;
  --gold-dim:    rgba(184,150,62,0.15);
  --white:       #ffffff;
  --off-white:   #f7f5f0;
  --text:        #1a1a2e;
  --text-muted:  #5a6476;
  --border:      #e5dfd4;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg:   0 12px 48px rgba(10,22,40,0.18);
  --transition:  0.3s ease;
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Lato', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ==============================
   HEADER
   ============================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  /* Faixa escura sempre visível — garante contraste antes e depois do scroll */
  background: rgba(8, 14, 28, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#header.scrolled {
  background: rgba(8, 14, 28, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.55);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link { display: inline-flex; align-items: center; }

.logo-img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  transition: height var(--transition), filter var(--transition), opacity var(--transition);
  /*
   * Filtro CSS → converte o logo para dourado (#b8963e) sobre fundo escuro.
   * brightness(0)→preto, invert(1)→branco, sepia+saturate+hue→dourado #b8963e
   * Para usar o logo original em fundos claros, remova este filtro.
   */
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(-5deg) brightness(0.82);
}

#header.scrolled .logo-img { height: 40px; }

/* Hover sutil no logo */
.logo-link:hover .logo-img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(-5deg) brightness(0.92);
  opacity: 0.9;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.btn-nav {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
}

.btn-nav:hover {
  background: var(--gold-hover) !important;
  color: var(--navy) !important;
}

.btn-nav::after { display: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(29,58,110,0.93) 0%, rgba(18,38,80,0.85) 55%, rgba(14,26,52,0.90) 100%),
    url('assets/img/hero-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

/* Gradiente escuro no topo — reforça contraste do header sobre o hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(8,14,28,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* fallback gradient when no photo is available */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 25% 55%, rgba(184,150,62,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(29,58,110,0.55) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
}

.btn-whatsapp i { font-size: 1.3rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-trust i { color: var(--gold); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 3px;
  animation: scrollDot 1.8s ease infinite;
}

/* ==============================
   STATS BAR
   ============================== */
.stats-bar {
  background: var(--gold);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

.stat-item strong {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-item span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-item p {
  color: rgba(10,22,40,0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ==============================
   SECTIONS BASE
   ============================== */
.section { padding: 6rem 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-tag.light { color: var(--gold); }

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-dark .section-header h2 { color: var(--white); }

.section-header h2 em { font-style: italic; color: var(--gold); }

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ==============================
   SOBRE
   ============================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.sobre-visual {
  position: relative;
}

.sobre-card {
  background: var(--navy);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.sobre-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.sobre-card blockquote {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 1rem;
}

.sobre-card cite {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
}

.sobre-text .section-tag { display: block; margin-bottom: 0.5rem; }

.sobre-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.sobre-text h2 em { font-style: italic; color: var(--gold); }

.sobre-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.sobre-text p strong { color: var(--navy); }

.sobre-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.sobre-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--text);
  font-weight: 600;
}

.sobre-list i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ==============================
   ÁREAS DE ATUAÇÃO
   ============================== */
.areas-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.area-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.area-card:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.area-featured {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.5);
  grid-row: span 1;
}

.area-featured:hover { background: rgba(201,168,76,0.12); }

.area-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.area-icon i { color: var(--gold); font-size: 1.3rem; }

.area-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.area-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.area-card p {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.area-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.area-card ul li {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding-left: 1.1rem;
  position: relative;
}

.area-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.area-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.area-cta:hover { background: var(--gold-hover); transform: translateX(3px); }

.area-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.area-cta-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ==============================
   DIFERENCIAIS
   ============================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.diff-item {
  padding: 2.25rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.diff-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.diff-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.diff-icon i { color: var(--gold); font-size: 1.3rem; }

.diff-item h4 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.diff-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ==============================
   CTA BANNER
   ============================== */
.cta-banner {
  background: linear-gradient(105deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  padding: 4rem 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.1rem 2.25rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.btn-whatsapp-lg:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.5);
}

.btn-whatsapp-lg i { font-size: 1.5rem; }

/* ==============================
   FAQ
   ============================== */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--gold); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gold); }
.faq-item.open .faq-question { color: var(--gold); }

.faq-icon {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.faq-answer p strong { color: var(--navy); }

/* ==============================
   CONTATO
   ============================== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contato-info .section-tag { display: block; margin-bottom: 0.5rem; }

.contato-info h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.28;
  margin-bottom: 1.25rem;
}

.contato-info h2 em { font-style: italic; color: var(--gold); }

.contato-info > p {
  color: rgba(255,255,255,0.62);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contato-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contato-item i {
  color: var(--gold);
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.contato-item div { display: flex; flex-direction: column; gap: 0.1rem; }
.contato-item strong { color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contato-item a, .contato-item span { color: var(--white); font-size: 0.97rem; font-weight: 500; }
.contato-item a:hover { color: var(--gold); }

/* Form */
.contato-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.form-group label span { color: var(--gold); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.form-check label { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-check label a { color: var(--gold); text-decoration: underline; }

.btn-submit {
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 4px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-loading { display: none; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline; }

.form-message {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ==============================
   FOOTER
   ============================== */
#footer {
  background: #0b1a38;
  color: rgba(255,255,255,0.6);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.25rem;
  /* Mesmo filtro dourado do header */
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(-5deg) brightness(0.82);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-links h5,
.footer-areas h5,
.footer-contact h5 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-areas ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a,
.footer-areas a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-areas a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.oab {
  color: rgba(255,255,255,0.4) !important;
  font-style: italic;
  font-size: 0.85rem !important;
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-disclaimer {
  font-style: italic;
}

/* ==============================
   WHATSAPP FLUTUANTE
   ============================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(37,211,102,0.65);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(-105%) translateY(-50%); }

.whatsapp-tooltip {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translateX(-100%) translateY(-50%);
  background: var(--navy);
  color: var(--white);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--navy);
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================== */
@media (max-width: 1024px) {
  .areas-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .area-featured {
    grid-column: span 2;
  }

  .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-visual { order: 2; }
  .sobre-text { order: 1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==============================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================== */
@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }

  /* Header */
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    padding: 6rem 2rem 3rem;
    transition: right var(--transition);
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
    z-index: 999;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
  }

  .main-nav a::after { display: none; }

  .btn-nav {
    margin-top: 1.5rem;
    display: block !important;
    text-align: center;
    width: 100%;
  }

  /* Nav overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
  }

  .nav-overlay.active { display: block; }

  /* Hero */
  .hero { padding: 7rem 0 4rem; background-attachment: scroll; }
  .hero h1 { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .btn-whatsapp, .btn-outline { text-align: center; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 0.6rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Áreas */
  .areas-grid { grid-template-columns: 1fr; }
  .area-featured { grid-column: span 1; }

  /* Diferenciais */
  .diff-grid { grid-template-columns: 1fr; }

  /* CTA Banner */
  .cta-banner-inner { flex-direction: column; text-align: center; gap: 2rem; }

  /* Contato */
  .contato-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .contato-form-wrap { padding: 2rem 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.4rem; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 54px; height: 54px; font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .section-header h2 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item strong { font-size: 2rem; }
}

/* ── Brand color overrides – sincroniza UI com Navy #1d3a6e · Gold #b8963e ──
   O logo aparece em dourado via CSS filter no header e footer (fundos escuros).
   Para uso em fundos claros, o filtro pode ser removido individualmente.
   ──────────────────────────────────────────────────────────────────────────── */

.logo-link { background: transparent; }

/* Gold accent exato do logo nos elementos de destaque */
.area-badge        { background: #b8963e; }
.hero-badge        { border-color: rgba(184,150,62,0.4); color: #b8963e; }
.section-tag       { color: #b8963e; }
.sobre-card        { border-left-color: #b8963e; }
.sobre-card i,
.sobre-card cite   { color: #b8963e; }
.sobre-list i,
.diff-icon i,
.contato-item i,
.footer-contact i  { color: #b8963e; }
.faq-icon,
.faq-question:hover,
.faq-item.open .faq-question { color: #b8963e; }
.faq-item.open     { border-color: #b8963e; }
.area-cta-outline  { color: #b8963e; border-color: rgba(184,150,62,0.4); }
.area-cta          { background: #b8963e; }
.area-cta:hover    { background: #cfa94e; }
.btn-nav           { background: #b8963e !important; }
.btn-nav:hover     { background: #cfa94e !important; }
.btn-submit:hover:not(:disabled) { background: #b8963e; border-color: #b8963e; }
.footer-social a:hover { background: #b8963e; border-color: #b8963e; }
.footer-links a:hover,
.footer-areas a:hover  { color: #b8963e; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #b8963e;
  box-shadow: 0 0 0 3px rgba(184,150,62,0.15);
}
.area-card ul li::before { color: #b8963e; }
.hero h1 em,
.sobre-text h2 em,
.section-header h2 em,
.contato-info h2 em { color: #b8963e; }
.hero-trust i { color: #b8963e; }
.sobre-list i { color: #b8963e; }
.cta-banner { border-top-color: #b8963e; border-bottom-color: #b8963e; }

/* Gold nav underline */
.main-nav a::after { background: #b8963e; }
.main-nav a:hover  { color: #b8963e; }