/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.5s var(--ease-premium), background 0.4s var(--ease-premium), color 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ===== Navbar inteligente ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform 0.7s var(--ease-premium), background 0.5s var(--ease-premium), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 22, 20, 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(207, 171, 93, 0.16);
}
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 14px; color: #fff; min-height: 48px; }
.logo-mark { width: 48px; height: 48px; object-fit: contain; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-brand); font-weight: 300; font-size: 1.7rem; letter-spacing: 0.04em; }
.logo-sub { font-family: var(--font-brand); font-size: 0.5rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-top: 7px; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative; font-size: 0.82rem; color: #d6ddda; padding: 6px 0;
  transition: color 0.4s var(--ease-premium);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-premium);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: #fff;
  transition: transform 0.5s var(--ease-premium), opacity 0.3s;
}
.menu-toggle::before { top: 18px; } .menu-toggle span { top: 24px; } .menu-toggle::after { top: 30px; }
body.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span { opacity: 0; }
body.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.section-hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 130px 0 90px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deep), #101c19 60%, var(--bg-green-2));
}
.section-hero::before { /* camada 1: foto real do escritório */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--hero-image, none); background-size: cover; background-position: 70% 60%; opacity: 0.5;
}
.section-hero::after { /* camada 2: máscara de legibilidade */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 22, 20, 0.97) 0%, rgba(13, 22, 20, 0.8) 46%, rgba(13, 22, 20, 0.4) 100%),
    linear-gradient(180deg, rgba(13, 22, 20, 0.55) 0%, rgba(13, 22, 20, 0) 30%, rgba(13, 22, 20, 0.7) 100%);
}
.hero-glow { /* camada 3: luz */
  position: absolute; z-index: 3; pointer-events: none; width: 760px; height: 760px; right: -280px; top: 6%;
  border: 1px solid rgba(207, 171, 93, 0.1); border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(207, 171, 93, 0.1), transparent 60%);
}
.hero-container { position: relative; z-index: 4; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { margin: 28px 0 38px; font-size: 1.1rem; color: #c0cbc7; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #98a5a0;
}
.hero-facts b { color: var(--gold-soft); font-weight: 600; }

.hero-card {
  border: 1px solid rgba(207, 171, 93, 0.28); padding: clamp(28px, 4vw, 48px);
  background: rgba(13, 28, 24, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-card .mono { font-family: var(--font-serif); font-size: 4.5rem; line-height: 0.8; color: var(--gold); }
.hero-card blockquote { margin: 18px 0 26px; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 300; font-style: italic; }
.hero-card ul { border-top: 1px solid var(--line-dark); }
.hero-card li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.86rem; color: #cbd5d1; }
.hero-card li b { color: var(--gold-soft); font-weight: 500; text-align: right; }

/* ===== Sobre ===== */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.portrait { position: relative; max-width: 460px; }
.portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: 0; }
.portrait-frame {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-green-2), var(--bg-deep));
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--gold-soft);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { border: 1px dashed rgba(236, 213, 150, 0.55); padding: 22px; font-size: 0.82rem; line-height: 1.5; color: var(--gold-soft); }
.placeholder strong { display: block; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; margin-bottom: 6px; }
.portrait-badge {
  position: absolute; z-index: 2; left: -18px; bottom: 34px; background: var(--bg-deep); color: #fff;
  padding: 14px 20px; border-left: 2px solid var(--gold);
}
.portrait-badge strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; }
.portrait-badge span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }

.about-copy p { color: var(--muted); margin-top: 22px; max-width: 600px; }
.about-copy p.pending, .pending { color: var(--gold-ink); font-style: italic; }
.pillars { margin-top: 34px; display: grid; gap: 0; }
.pillar { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pillar b { font-family: var(--font-serif); color: var(--gold-ink); font-size: 1.2rem; font-weight: 500; }
.pillar strong { display: block; font-size: 0.92rem; }
.pillar span { font-size: 0.86rem; color: var(--muted); }
.creds { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.cred { padding: 16px 18px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
.cred:last-child { border-right: 0; }
.cred small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 4px; }
.cred span { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.about-copy .btn { margin-top: 36px; }

/* ===== Áreas de atuação (seamless grid 1:1) ===== */
.areas { background: var(--paper); }
.areas-head { max-width: 760px; margin-bottom: 64px; }
.area-block + .area-block { margin-top: 72px; }
.area-title { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.area-title h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.area-title p { color: var(--muted); font-size: 0.9rem; max-width: 520px; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1px 0 0 1px; }
.area-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 30px 28px; background: var(--paper);
  border: 1px solid var(--line); margin: -1px 0 0 -1px;
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s var(--ease-premium), background 0.6s var(--ease-premium);
}
.area-card:hover {
  transform: translateY(-4px); z-index: 10; background: #fff;
  box-shadow: 0 20px 45px -10px rgba(13, 22, 20, 0.22), 0 0 20px rgba(207, 171, 93, 0.12);
}
.area-icon { width: 34px; height: 34px; stroke: var(--gold-ink); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease-premium), stroke 0.4s; }
.area-card:hover .area-icon { transform: translateY(-4px); stroke: var(--gold); }
.area-card h4 { font-size: 1.55rem; line-height: 1.15; margin: 14px 0 10px; }
.area-card p { font-size: 0.88rem; color: var(--muted); }
.area-link {
  align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 40% 1px no-repeat;
  transition: background-size 0.6s var(--ease-premium); min-height: 24px;
}
.area-card:hover .area-link { background-size: 100% 1px; }
@media (min-width: 981px) { .area-card { aspect-ratio: 1 / 1; } }

/* ===== Abrangência ===== */
.region { background: var(--bg-green); color: #fff; }
.region-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.region-list { margin-top: 30px; }
.region-list li { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--line-dark); color: #c3cdc9; font-size: 0.95rem; }
.region-list li b { color: var(--gold); font-family: var(--font-serif); font-weight: 500; }
.region-visual { display: grid; gap: 0; }
.office-photo { margin: 0; overflow: hidden; border: 1px solid rgba(207, 171, 93, 0.28); border-bottom: 0; aspect-ratio: 4 / 3; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-premium); }
.region-visual:hover .office-photo img { transform: scale(1.03); }
.address-card { border: 1px solid rgba(207, 171, 93, 0.28); padding: clamp(28px, 4vw, 46px); background: linear-gradient(145deg, #0b1714, var(--bg-green-2)); }
.address-card small { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.address-card address { font-style: normal; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.35; font-weight: 300; }
.address-card .btn { margin-top: 28px; }

/* ===== Metodologia ===== */
.method { background: var(--ivory); }
.method-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.step { position: relative; padding: 34px 28px 10px 0; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--gold); transition: width 1.6s var(--ease-premium); }
.method-grid.is-in .step::before { width: 56%; }
.step-num { font-family: var(--font-serif); font-size: 4.2rem; line-height: 0.9; color: var(--ink); opacity: 0.14; }
.step h3 { font-size: 1.6rem; margin: 14px 0 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 100px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 48px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.faq-title { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.faq-sign { position: relative; flex: none; width: 18px; height: 18px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--gold-ink); transition: transform 0.5s var(--ease-premium); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-sign::after { transform: rotate(0); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-premium); }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-content { overflow: hidden; }
.faq-content p { padding: 0 40px 26px 0; color: var(--muted); font-size: 0.96rem; }

/* ===== CTA final ===== */
.cta { background: var(--bg-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(207, 171, 93, 0.09); border-radius: 50%; }
.cta .container { position: relative; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; font-weight: 300; max-width: 880px; margin: 0 auto; }
.cta h2 em { font-style: italic; color: var(--gold); }
.cta p { margin: 26px auto 40px; max-width: 540px; color: #aeb9b5; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-footer); color: var(--text-footer); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; margin-bottom: 48px; }
.footer-desc { margin-top: 18px; font-size: 0.92rem; max-width: 360px; opacity: 0.85; }
.footer-heading { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; font-weight: 600; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-links a, .footer-contact a { display: inline-block; transition: color 0.3s, transform 0.4s var(--ease-premium); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; transform: translateX(3px); }
.footer-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 0 0 26px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.8; }
.footer-legal { margin-top: 18px; font-size: 0.74rem; opacity: 0.6; max-width: 820px; }
.credit-link { text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s; }
.credit-link:hover { color: #fff; }

/* ===== LGPD ===== */
.lgpd {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70; max-width: 520px;
  background: rgba(13, 28, 24, 0.97); color: #cfd8d4; border: 1px solid rgba(207, 171, 93, 0.3);
  padding: 18px 20px; font-size: 0.82rem; display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.lgpd.is-visible { display: flex; }
.lgpd button { min-height: 44px; padding: 0 20px; background: var(--gold); color: var(--bg-deep); border: 0; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; cursor: pointer; }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  body.menu-open .site-header { background: var(--bg-deep); }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 84px 0 0 0; background: var(--bg-deep); padding: 24px;
  }
  body.menu-open .nav-links a { font-size: 1.4rem; font-family: var(--font-serif); padding: 18px 0; border-bottom: 1px solid var(--line-dark); min-height: 48px; }
  .hero-container, .about-grid, .region-grid, .faq-grid { grid-template-columns: 1fr; }
  .section-hero::after { background: linear-gradient(180deg, rgba(13, 22, 20, 0.9), rgba(13, 22, 20, 0.82)); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .area-title { flex-direction: column; gap: 8px; }
  .portrait { margin: 0 auto 28px; }
}
@media (max-width: 620px) {
  .container { width: min(var(--container), 100% - 40px); }
  .area-grid, .method-grid, .creds { grid-template-columns: 1fr; }
  .cred { border-right: 0; border-bottom: 1px solid var(--line); }
  .cred:last-child { border-bottom: 0; }
  .portrait::before { inset: 14px -10px -14px 10px; }
  .portrait-badge { left: 0; }
  .hero-actions .btn { width: 100%; }
  .reveal-left, .reveal-right { transform: translate(0, 24px); }
}
/* ==========================================================================
   WIDGET DE WHATSAPP (PADRÃO OFICIAL: FAB, MODAL CHAT & TEASER)
   ========================================================================== */
:root {
  --wa-accent: #25D366;
  --wa-accent-hover: #20BA5A;
  --wa-ink: #111827;
  --wa-ink-2: #374151;
  --wa-ink-3: #6B7280;
  --wa-line: #D1D5DB;
  --wa-line-soft: #E5E7EB;
  --wa-chip-border: #D1D5DB;
  --wa-bubble-in: #F3F4F6;
  --wa-bubble-out: #111827;
  --wa-surface: #FFFFFF;
  --wa-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.wa-ico {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488 11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l-.999 3.648 3.748-.984zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01a1.1 1.1 0 0 0-.792.372c-.272.297-1.04 1.016-1.04 2.479s1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E");
}

.wa-ico--lg {
  width: 1.7rem;
  height: 1.7rem;
}

/* Floating Action Button (FAB) */
#whatsappFab {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 46;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transform: translateY(120%) scale(0.6);
  opacity: 0;
  transition: transform 0.4s var(--wa-ease), opacity 0.4s ease, box-shadow 0.3s ease;
  text-decoration: none;
  pointer-events: auto;
}

#whatsappFab.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.menu-open #whatsappFab.is-visible {
  transform: translateY(120%) scale(0.6);
  opacity: 0;
}

@media (min-width: 768px) {
  #whatsappFab {
    right: 36px;
    bottom: 36px;
    width: 64px;
    height: 64px;
  }
  #whatsappFab .wa-ico {
    width: 2rem;
    height: 2rem;
  }
}

@media (min-width: 768px) and (hover: hover) {
  #whatsappFab.is-visible:hover {
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
    transform: scale(1.06);
    background: var(--wa-accent-hover);
  }
}

/* Chat Widget (Modal Desktop) */
.wa-widget {
  position: fixed;
  right: 36px;
  bottom: 116px;
  z-index: 59;
  width: 285px;
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.9) translateY(4px);
  pointer-events: none;
  transition: opacity 0.35s var(--wa-ease), transform 0.4s var(--wa-ease);
  font-family: var(--font-sans);
}

.wa-widget.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.wa-panel {
  position: relative;
  background: var(--wa-surface);
  border: 1.5px solid var(--wa-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.wa-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--wa-surface);
  border-right: 1.5px solid var(--wa-line);
  border-bottom: 1.5px solid var(--wa-line);
  border-bottom-right-radius: 3px;
  bottom: -8px;
  right: 28px;
  transform: rotate(45deg);
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--wa-line-soft);
}

.wa-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.wa-head b {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wa-ink);
  display: block;
  font-family: var(--font-sans);
}

.wa-head small {
  font-size: 0.68rem;
  color: var(--wa-ink-3);
  display: block;
}

.wa-scroll {
  max-height: min(58vh, 380px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #D1D5DB transparent;
}

.wa-scroll::-webkit-scrollbar {
  width: 5px;
}

.wa-scroll::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 5px;
}

.wa-thread {
  display: flex;
  flex-direction: column;
}

.wa-bubble {
  max-width: 88%;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 13px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  animation: waMsgIn 0.35s var(--wa-ease) both;
  flex-shrink: 0;
}

.wa-bubble--in {
  background: var(--wa-bubble-in);
  color: var(--wa-ink);
  border-top-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--wa-line-soft);
}

.wa-bubble--out {
  background: var(--wa-bubble-out);
  color: #FFFFFF;
  border-top-right-radius: 4px;
  align-self: flex-end;
  border: 1px solid #1E293B;
}

.wa-bubble--typing {
  padding: 11px 13px;
}

.wa-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.wa-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-ink-3);
  animation: waType 1.2s infinite ease-in-out;
}

.wa-dots span:nth-child(2) { animation-delay: 0.18s; }
.wa-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes waType {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes waMsgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.wa-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 5px;
  flex-shrink: 0;
}

.wa-chip {
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid var(--wa-chip-border);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--wa-ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wa-chip:hover {
  border-color: var(--wa-accent);
  color: #111827;
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.wa-quick-end {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--wa-ink-3);
  margin: 6px 2px 0;
}

.wa-cta {
  display: block;
  text-align: center;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--wa-line-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #16A34A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wa-cta:hover {
  color: #15803D;
  text-decoration: underline;
}

.wa-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--wa-line);
  background: #FFFFFF;
  color: #4B5563;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wa-close:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #EF4444;
}

.wa-close::before, .wa-close::after,
.wa-teaser-x::before, .wa-teaser-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.wa-close::before, .wa-teaser-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.wa-close::after, .wa-teaser-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Teaser de Notificação (Desktop) */
.wa-teaser {
  position: fixed;
  right: 36px;
  bottom: 116px;
  z-index: 58;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s var(--wa-ease), transform 0.4s var(--wa-ease);
  font-family: var(--font-sans);
}

.wa-teaser.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-teaser-bubble {
  position: relative;
  display: block;
  max-width: 220px;
  background: #FFFFFF;
  border: 1.5px solid var(--wa-line);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--wa-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wa-teaser-bubble:hover {
  background: #F9FAFB;
  border-color: var(--wa-accent);
  transform: translateY(-2px);
}

.wa-teaser-bubble::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-right: 1.5px solid var(--wa-line);
  border-bottom: 1.5px solid var(--wa-line);
  border-bottom-right-radius: 3px;
  bottom: -7px;
  right: 26px;
  transform: rotate(45deg);
}

.wa-teaser-x {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--wa-line);
  background: #FFFFFF;
  color: #4B5563;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wa-teaser-x:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #EF4444;
}

.hidden { display: none; }
@media (min-width: 768px) {
  .md-block { display: block; }
}
/* Estilos Gerais do Blog e Artigos */
#blog-secao, #artigo-secao {
    padding: 140px 24px 90px;
    font-family: inherit;
}

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

.blog-title-section {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
    font-family: var(--font-serif, serif);
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
    display: block;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-serif, serif);
    color: var(--text-color, #111);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body, #333);
    margin-bottom: 16px;
}

.blog-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary, #0D2342);
}

/* Estilos de Post Único */
.artigo-single-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Layout de leitura em duas colunas: artigo à esquerda, sidebar do autor
   e "Outros Artigos" à direita. Colapsa para 1 coluna no mobile. */
.artigo-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.artigo-main { min-width: 0; }

.artigo-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 28px 24px;
}

.autor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    margin-bottom: 16px;
}

/* Variação sem foto do cliente (ver nota D.1): monograma com iniciais */
.autor-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary, #0D2342);
    color: #ffffff;
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1.1rem;
}

.autor-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted, #666);
    margin-bottom: 6px;
    display: block;
}

.autor-nome {
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color, #111);
    display: block;
    margin-bottom: 4px;
}

.autor-cargo {
    font-size: 0.85rem;
    color: var(--color-primary, #0D2342);
    font-weight: 600;
    display: block;
    margin-bottom: 14px;
}

.autor-bio {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted, #666);
    margin-bottom: 18px;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    margin: 0 0 14px 0;
}

.sidebar-date {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

.sidebar-date strong { color: var(--text-color, #111); }

.sidebar-heading {
    font-family: var(--font-serif, serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color, #111);
    margin-bottom: 16px;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-post-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-post-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color, #111);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sidebar-post-item:hover .sidebar-post-title { color: var(--color-primary, #0D2342); }

.sidebar-post-date { font-size: 0.78rem; color: var(--text-muted, #666); }

@media (max-width: 900px) {
    .artigo-layout { grid-template-columns: 1fr; gap: 40px; }
    .artigo-sidebar { position: static; }
}

.btn-voltar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary, #0D2342);
    margin-bottom: 24px;
    padding: 0;
    transition: opacity 0.2s ease;
}

.btn-voltar:hover {
    opacity: 0.8;
}

.artigo-meta-date {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    display: block;
    margin-bottom: 12px;
}

.artigo-main-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--font-serif, serif);
    color: var(--text-color, #111);
}

.artigo-divider {
    border: 0;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    margin: 24px 0 32px 0;
}

.artigo-text-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-body, #333);
    text-align: justify;
}

/* Destaque Premium de Negritos adaptável ao Branding do Cliente */
.artigo-text-body strong {
    font-weight: 700;
    color: var(--color-primary, #0D2342);
}

/* Citações em destaque com cor do Branding */
.blog-blockquote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-primary, #0D2342);
    border-left: 3px solid var(--color-primary, #0D2342);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
}


/* Layout em coluna: rodapé sempre ancorado ao fim da viewport */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex: none; }

/* Rotas do blog/artigo: navbar sempre sólida (sem hero por baixo) */
body.is-blog .site-header {
  background: rgba(13, 22, 20, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(207, 171, 93, 0.16);
  transform: none;
}
