/* =========================================================
   Abreu e Rocha Advogados — Identidade visual
   Cores:  Navy #000c2a | Azul #6d9bf7 | Amarelo #ffc05e
           Cinza #333333 | Verde #8bbeb2
   Tipografia: Bricolage Grotesque (títulos) + Outfit (texto)
   ========================================================= */

:root {
  --navy: #000c2a;
  --blue: #6d9bf7;
  --yellow: #ffc05e;
  --gray: #333333;
  --green: #8bbeb2;
  --white: #ffffff;
  --off-white: #f6f8fc;
  --border: #e3e8f2;

  --font-title: "Bricolage Grotesque", sans-serif;
  --font-body: "Outfit", sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --max-width: 1180px;

  --shadow-soft: 0 1px 2px rgba(0,12,42,.04), 0 12px 32px rgba(0,12,42,.06);
  --shadow-lift: 0 8px 16px rgba(0,12,42,.08), 0 30px 60px -12px rgba(0,12,42,.22);
  --glass-bg: rgba(255,255,255,0.66);
  --glass-border: rgba(255,255,255,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { max-width: 65ch; }

.text-gradient {
  background: linear-gradient(100deg, var(--blue) 0%, var(--green) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--navy {
  background: var(--navy);
  color: #cdd7ee;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #b9c4de; }

.section--offwhite { background: var(--off-white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section--navy .eyebrow { color: var(--yellow); }

.lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 62ch;
}

.section--navy .lead { color: #cdd7ee; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), background 0.15s ease, color 0.15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(255,192,94,.35), 0 1px 0 rgba(255,255,255,.4) inset;
}
.btn--primary:hover { background: #ffcd7a; box-shadow: 0 10px 24px rgba(255,192,94,.45), 0 1px 0 rgba(255,255,255,.4) inset; }

.btn--outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

.section--navy .btn--outline {
  border-color: #4f6fb0;
  color: var(--white);
}
.section--navy .btn--outline:hover { background: var(--blue); border-color: var(--blue); }

.btn--whatsapp {
  background: var(--green);
  color: var(--navy);
}
.btn--whatsapp:hover { background: #79ad9f; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(227,232,242,0.8);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(0,12,42,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 50px; width: auto; max-width: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav-links a {
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--blue); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--yellow);
}

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--navy); display: block;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(109,155,247,0.28), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, rgba(255,192,94,0.14), transparent 60%),
    radial-gradient(500px 400px at 60% 120%, rgba(139,190,178,0.16), transparent 60%),
    var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

/* Hero with background video (Manifesto da Marca) */
.hero--video { background: var(--navy); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,12,42,.82) 0%, rgba(0,12,42,.6) 45%, rgba(0,12,42,.88) 100%),
    radial-gradient(700px 500px at 82% 15%, rgba(109,155,247,0.22), transparent 60%);
}
.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 108px;
  padding-bottom: 116px;
  max-width: 760px;
}
.hero .eyebrow {
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,192,94,0.1);
  border: 1px solid rgba(255,192,94,0.25);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
}
.hero .eyebrow .dot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255,192,94,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,192,94,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,192,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,192,94,0); }
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p.lead { color: #cdd7ee; }

.page-hero {
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(109,155,247,0.24), transparent 60%),
    radial-gradient(500px 400px at 0% 120%, rgba(255,192,94,0.12), transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero p.lead { color: #cdd7ee; margin-top: 14px; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0) translateY(0);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  box-shadow: var(--shadow-soft);
}
.card:hover {
  box-shadow: var(--shadow-lift);
  border-color: rgba(109,155,247,0.35);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(109,155,247,0.14), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--off-white), #eef2fb);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px -8px rgba(0,12,42,.25);
  transform: translateZ(20px);
}
.card .icon-wrap img { width: 40px; height: 40px; object-fit: contain; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; color: #4a4f5c; }

.card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.92rem;
}
.card .card-link,
.area-block .card-link,
.partner-card .card-link { margin-top: 16px; }

/* Section header */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Practice area detail rows ---------- */
.area-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.area-block:last-child { border-bottom: none; }
.area-block .icon-wrap {
  width: 88px; height: 88px;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--off-white), #eef2fb);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 22px -10px rgba(0,12,42,.3);
}
.area-block .icon-wrap img { width: 52px; height: 52px; object-fit: contain; }
.area-block h3 { margin-bottom: 8px; font-size: 1.4rem; }
.area-block ul { margin: 14px 0 0 20px; color: #4a4f5c; font-size: 0.95rem; }
.area-block li { margin-bottom: 6px; }

/* ---------- Manifesto ---------- */
.manifesto {
  border-left: 3px solid var(--yellow);
  padding-left: 28px;
}
.manifesto p { margin-bottom: 18px; color: #4a4f5c; }
.manifesto p:first-child {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- DNA tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tag {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.tag--accent { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.testimonial .stars { color: var(--yellow); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p.quote { font-size: 0.98rem; color: #4a4f5c; margin-bottom: 18px; }
.testimonial .author { font-weight: 600; color: var(--navy); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #ffc05e 0%, #ffb347 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(255,150,40,.45);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #3a2e12; }
.cta-band .btn--primary { background: var(--navy); color: var(--white); }
.cta-band .btn--primary:hover { background: #12204a; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.contact-card a, .contact-card p { color: #4a4f5c; font-size: 0.98rem; }
.contact-card a:hover { color: var(--blue); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: #7c8296; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9fabce;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1c2a4d;
}
.footer-grid .logo img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-grid p { color: #8f9bc0; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #9fabce;
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #6f7ba0;
}

/* ---------- Partners / Sócios ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.partner-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 24px -10px rgba(0,12,42,.35);
}
.partner-avatar--a { background: linear-gradient(150deg, var(--blue), var(--green)); }
.partner-avatar--b { background: linear-gradient(150deg, var(--yellow), #ffe0ac); }

.partner-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.partner-role {
  display: block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.partner-card p { font-size: 0.96rem; color: #4a4f5c; margin-bottom: 14px; }
.partner-quote {
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
  margin-top: 18px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--navy);
}
.partner-quote cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  color: #7c8296;
}

/* ---------- Novidades / Artigos ---------- */
.topic-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue);
  margin-bottom: 14px;
}
.card .topic-tag { align-self: flex-start; }
.grid--3 .card { display: flex; flex-direction: column; }
.grid--3 .card p { flex-grow: 1; }

.article-full { padding: 56px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.article-full:last-child { border-bottom: none; }
.article-full h2 { margin: 10px 0 18px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  color: #7c8296;
  font-size: 0.86rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.article-meta .author { font-weight: 700; color: var(--navy); }
.article-full > .container > p,
.article-full .article-body p { color: #4a4f5c; margin-bottom: 16px; max-width: 780px; }
.article-body ul { margin: 8px 0 20px 20px; color: #4a4f5c; font-size: 0.96rem; max-width: 780px; }
.article-body li { margin-bottom: 8px; }
.article-refs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 780px; }
.article-refs h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-refs ol { margin: 0; padding-left: 20px; color: #7c8296; font-size: 0.82rem; line-height: 1.65; }
.article-refs li { margin-bottom: 10px; }
.back-to-top-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--blue); font-size: 0.9rem; }

/* ---------- Manual do Cliente ---------- */
.callout {
  background: var(--off-white);
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  max-width: 780px;
}
.callout p { margin: 0; color: #333; font-size: 0.96rem; }
.callout strong { color: var(--navy); }
.callout--quote { border-left-color: var(--blue); font-family: var(--font-title); font-style: italic; color: var(--navy); }
.callout--quote p { color: var(--navy); font-size: 1.05rem; }
.manual-area .faq-item:last-child { border-bottom: none; }
.manual-area .article-body + .faq-item,
.manual-area h4.faq-heading {
  margin-top: 8px;
}
h4.faq-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  margin: 28px 0 4px;
}
.responsible-tag { font-size: 0.86rem; color: #7c8296; margin-bottom: 20px; display: block; }
.responsible-tag strong { color: var(--navy); }

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-switcher__btn:hover { border-color: var(--blue); }
.lang-switcher__arrow { font-size: 0.65rem; transition: transform .2s ease; }
.lang-switcher.is-open .lang-switcher__arrow { transform: rotate(180deg); }
.lang-switcher__menu {
  list-style: none;
  margin: 0; padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-switcher__menu li {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
}
.lang-switcher__menu li:hover { background: var(--off-white); color: var(--navy); }
.lang-switcher__menu li.is-active { color: var(--blue); font-weight: 700; }

/* Hide Google Translate default UI — we drive translation via our own switcher */
iframe.skiptranslate,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-gadget-icon,
#goog-gt-tt, .goog-te-balloon-frame,
.goog-tooltip, .goog-tooltip:hover,
.goog-text-highlight { display: none !important; background: none !important; box-shadow: none !important; }
html body { top: 0px !important; }
html { top: 0px !important; }
#google_translate_element { display: none !important; }

/* ---------- Videos ---------- */
.video-feature {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 12, 42, 0.12);
}
.video-feature video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-feature .video-caption {
  padding: 14px 20px;
  color: var(--white);
  background: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: none;
}
.video-feature--sm .video-caption { font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question .plus {
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
  padding: 0 4px 22px;
  color: #4a4f5c;
  font-size: 0.96rem;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Aviso de cookies ---------- */
.ar-cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--navy);
  color: #e7ecf7;
  padding: 14px 24px;
  box-shadow: 0 -6px 20px rgba(0, 12, 42, 0.2);
}
.ar-cookie-notice__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 760px;
}
.ar-cookie-notice__text a {
  color: var(--yellow);
  text-decoration: underline;
}
.ar-cookie-notice__btn {
  flex-shrink: 0;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ar-cookie-notice__btn:hover { transform: translateY(-2px); }

/* enquanto o aviso de cookies está visível, o WhatsApp e o assistente
   "sobem" para não ficar cobertos por ele */
body.ar-cookie-visible .float-whatsapp,
body.ar-cookie-visible .ar-assistant-toggle,
body.ar-cookie-visible .ar-assistant-panel {
  transition: bottom 0.2s ease;
}
body.ar-cookie-visible .float-whatsapp { bottom: calc(96px + 66px); }
body.ar-cookie-visible .ar-assistant-toggle { bottom: calc(22px + 66px); }
body.ar-cookie-visible .ar-assistant-panel { bottom: calc(92px + 66px); }

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 199;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--navy);
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 26px rgba(0, 12, 42, 0.28);
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: translateY(-3px); }
.float-whatsapp .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31,157,85,0.25);
}

/* ---------- Virtual assistant ---------- */
.ar-assistant-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 12, 42, 0.35);
  transition: transform 0.2s ease;
}
.ar-assistant-toggle:hover { transform: scale(1.06); }
.ar-assistant-toggle img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ar-assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 200;
  width: 340px;
  max-width: calc(100vw - 44px);
  max-height: 70vh;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 12, 42, 0.32);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ar-assistant-panel.open { display: flex; }

.ar-assistant-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ar-assistant-header .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.ar-assistant-header .avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.ar-assistant-header .title { font-weight: 700; font-size: 0.95rem; }
.ar-assistant-header .subtitle { font-size: 0.78rem; color: #b9c4de; }
.ar-assistant-close, .ar-assistant-reset {
  background: none; border: none; color: #b9c4de;
  font-size: 1.2rem; cursor: pointer; line-height: 1;
  padding: 2px;
}
.ar-assistant-reset {
  margin-left: auto;
  font-size: 1.05rem;
}
.ar-assistant-close { margin-left: 6px; }
.ar-assistant-close:hover, .ar-assistant-reset:hover { color: var(--white); }

/* Persona financeira (Laura Prado) — troca de tema no mesmo painel */
.ar-assistant-panel.ar-theme-laura .ar-assistant-header {
  background: #274b3f;
}
.ar-assistant-panel.ar-theme-laura .ar-assistant-header .avatar {
  background: var(--green);
}
.ar-assistant-panel.ar-theme-laura .ar-assistant-close,
.ar-assistant-panel.ar-theme-laura .ar-assistant-reset { color: #cfe3db; }
.ar-assistant-panel.ar-theme-laura .ar-assistant-header .subtitle { color: #cfe3db; }
.ar-assistant-panel.ar-theme-laura .ar-assistant-form button {
  background: #274b3f;
}
.ar-assistant-panel.ar-theme-laura .ar-assistant-form input:focus {
  outline-color: var(--green);
}

/* Persona de privacidade / LGPD (Rafael Dantas) — troca de tema no mesmo painel */
.ar-assistant-panel.ar-theme-rafael .ar-assistant-header {
  background: #3a3560;
}
.ar-assistant-panel.ar-theme-rafael .ar-assistant-header .avatar {
  background: #8b85c9;
}
.ar-assistant-panel.ar-theme-rafael .ar-assistant-close,
.ar-assistant-panel.ar-theme-rafael .ar-assistant-reset { color: #d6d3ec; }
.ar-assistant-panel.ar-theme-rafael .ar-assistant-header .subtitle { color: #d6d3ec; }
.ar-assistant-panel.ar-theme-rafael .ar-assistant-form button {
  background: #3a3560;
}
.ar-assistant-panel.ar-theme-rafael .ar-assistant-form input:focus {
  outline-color: #8b85c9;
}

.ar-assistant-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ar-msg {
  background: var(--off-white);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--gray);
  max-width: 90%;
  line-height: 1.5;
}
.ar-msg.from-user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
}
.ar-msg.from-laura {
  border-left: 3px solid var(--green);
  background: #eef5f2;
}
.ar-msg.from-rafael {
  border-left: 3px solid #8b85c9;
  background: #f1f0f9;
}
.ar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ar-option-btn {
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ar-option-btn:hover { background: var(--blue); color: var(--white); }
.ar-option-btn--inert {
  opacity: 0.55;
  cursor: default;
  border-style: dashed;
}
.ar-option-btn--inert:hover { background: var(--white); color: inherit; }
.ar-theme-laura .ar-option-btn {
  border-color: var(--green);
  color: #2f5b4d;
}
.ar-theme-laura .ar-option-btn:hover { background: var(--green); color: var(--navy); }
.ar-theme-rafael .ar-option-btn {
  border-color: #8b85c9;
  color: #4a4581;
}
.ar-theme-rafael .ar-option-btn:hover { background: #8b85c9; color: var(--white); }

/* Botão de call-to-action (envio via WhatsApp) — se destaca das opções de navegação */
.ar-option-btn--cta {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  padding: 10px 14px;
}
.ar-option-btn--cta:hover { background: #1fb257; border-color: #1fb257; color: var(--white); }

/* Upload de documento (verificação de identidade do titular de dados — Rafael) */
.ar-upload { flex-direction: column; align-items: flex-start; }
.ar-option-btn--upload { width: 100%; text-align: center; }
.ar-option-btn--ghost {
  background: transparent;
  border-style: dashed;
  opacity: 0.75;
  font-weight: 500;
}
.ar-option-btn--ghost:hover { background: var(--off-white); color: inherit; }
.ar-upload-status {
  font-size: 0.78rem;
  color: var(--gray);
  padding: 2px 4px;
}

.ar-assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.ar-assistant-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.ar-assistant-form input:focus { outline: 2px solid var(--blue); }
.ar-assistant-form button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Responsive ---------- */

/* Tablets (portrait/landscape) */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-header .logo img { height: 40px; }
  .nav-links { gap: 22px; font-size: 0.92rem; }
  .nav-cta { gap: 12px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
  .hero .container { padding-top: 76px; padding-bottom: 76px; }
  .section { padding: 72px 0; }
  .cta-band { padding: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn--outline { display: none; }
  .menu-toggle { display: flex; }
  .site-header .logo img { height: 34px; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .site-header.open .nav-links a {
    padding: 18px 24px;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .area-block { grid-template-columns: 64px 1fr; }
  .area-block .icon-wrap { width: 64px; height: 64px; }
  .area-block .icon-wrap img { width: 36px; height: 36px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }

  .float-whatsapp span.label { display: none; }
  .float-whatsapp { padding: 14px; }
  .ar-assistant-panel { left: 12px; right: 12px; width: auto; bottom: 84px; }
  .ar-assistant-toggle { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .float-whatsapp { right: 16px; bottom: 82px; }

  .ar-cookie-notice { justify-content: flex-start; text-align: left; padding: 16px; }
  .ar-cookie-notice__btn { width: 100%; text-align: center; }
  body.ar-cookie-visible .float-whatsapp { bottom: calc(82px + 156px); }
  body.ar-cookie-visible .ar-assistant-toggle { bottom: calc(16px + 156px); }
  body.ar-cookie-visible .ar-assistant-panel { bottom: calc(84px + 156px); }
}

@media (max-width: 480px) {
  .site-header .logo img { height: 28px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .cta-band h2 { font-size: 1.4rem; }
  .card { padding: 24px; }
  .contact-card { padding: 24px; }
}

/* =========================================================
   Vídeo institucional de boas-vindas (splash antes da home)
   ========================================================= */
.body-lock { overflow: hidden; }

.video-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .5s ease;
}

.video-intro--hide { opacity: 0; pointer-events: none; }

.video-intro__video {
  width: 100%;
  height: 100%;
  /* "contain" (não "cover"): em telas estreitas/retrato (celular, tablet em pé) o vídeo é
     widescreen (16:9) e um "cover" cortaria as laterais, cortando fora a personagem e os
     ícones das áreas de atuação. Com "contain" o quadro inteiro sempre aparece; como o
     fundo do vídeo e do container são o mesmo navy, eventuais tarjas ficam invisíveis. */
  object-fit: contain;
  background: var(--navy);
  display: block;
}

.video-intro__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  text-align: center;
  padding: 0 24px;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .35s ease;
}

.video-intro__caption.is-visible { opacity: 1; }

.video-intro__skip,
.video-intro__sound {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,12,42,.45);
  color: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}

.video-intro__skip:hover,
.video-intro__sound:hover { background: rgba(0,12,42,.7); border-color: #fff; }

.video-intro__skip { top: 24px; right: 24px; }
.video-intro__sound { bottom: 24px; right: 24px; }

@media (max-width: 640px) {
  .video-intro__skip, .video-intro__sound {
    padding: 10px 14px;
    font-size: .82rem;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* Telas em retrato (celular e tablet na vertical): o vídeo é 16:9 e fica "em pé" no
   meio da tela com faixas navy acima/abaixo (mesma cor do fundo, então não chama atenção
   como uma barra preta chamaria). A legenda é reposicionada para ficar logo abaixo do
   vídeo em vez de grudada no rodapé da tela, onde ficaria "solta" longe da imagem. */
@media (max-aspect-ratio: 4/5) {
  .video-intro__caption {
    bottom: auto;
    top: calc(50% + (100vw * 9 / 32) + 18px);
  }
}

@media (max-aspect-ratio: 4/5) and (max-width: 640px) {
  .video-intro__caption { top: calc(50% + (100vw * 9 / 32) + 12px); }
}

/* =========================================================
   Notícias da Semana / Arquivo
   ========================================================= */
.week-item-date {
  display: block;
  font-size: .82rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.week-source {
  display: inline-block;
  margin-top: 10px;
  font-size: .88rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
