/* ============================================================
   Araújo Pelarin Scalet Sociedade de Advogados
   Identidade visual: editorial sóbrio, gravidade institucional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Design tokens ===== */
:root {
  --bg: #fbfaf7;            /* off-white quente */
  --bg-alt: #f4f1ea;        /* fundo seções alternadas */
  --ink: #1a1a1a;           /* texto principal */
  --ink-soft: #4a4a4a;      /* texto secundário */
  --ink-muted: #6e6e6e;     /* texto discreto */
  --line: #e0dbd1;          /* divisores */
  --primary: #012547;       /* azul institucional (cor exata do logo) */
  --primary-dark: #001638;
  --silver: #b8b5ad;        /* prata do logo (acento secundário) */
  --accent: #9c7e3c;        /* dourado discreto p/ acentos */
  --content-w: 1100px;
  --narrow-w: 760px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 5rem;
  --space-10: 7rem;
}

/* ===== Tipografia ===== */
.serif, h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Source Sans 3', sans-serif; color: var(--ink); }
p { margin-bottom: 1em; max-width: 70ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-num {
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ===== Layout helpers ===== */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--narrow-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-10) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-alt); }
.divider { border-top: 1px solid var(--line); margin: 0; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--content-w);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.brand-text { font-size: 1.05rem; line-height: 1.1; }
.brand-text small {
  display: block;
  font-size: 0.7rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 2rem; align-items: center;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 500; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-toggle { display: none; font-size: 1.4rem; color: var(--primary); padding: 0.5rem; }

/* ===== Hero ===== */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta span::before {
  content: ''; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}
.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 22ch;
}
.hero .lead {
  margin-bottom: 2.5rem;
  max-width: 58ch;
}
.hero-actions {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.98rem; font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--bg);
  transition: all 0.2s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: var(--bg); }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  transition: gap 0.2s;
}
.btn-link:hover { gap: 0.9rem; }
.btn .arrow, .btn-link .arrow { transition: transform 0.2s; }
.btn:hover .arrow, .btn-link:hover .arrow { transform: translateX(3px); }

/* ===== Sections gerais ===== */
.section-head {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.section-head .section-num { white-space: nowrap; }
.section-head h2 { max-width: 24ch; }

/* ===== Cards (Áreas de atuação) ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.area-card {
  padding: 2.2rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s;
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none; color: inherit;
}
.area-card:hover { background: var(--bg-alt); }
.area-card-num {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.area-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  line-height: 1.3;
}
.area-card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.area-card-cta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.area-card:hover .area-card-cta { gap: 0.8rem; }

/* ===== Sobre / texto institucional ===== */
.prose { max-width: 68ch; }
.prose p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.3em; }
.prose p strong { color: var(--ink); font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
}
.split .split-aside h2 { margin-bottom: 1.5rem; }
.split .split-aside .eyebrow { margin-bottom: 0.5rem; }

/* ===== Equipe (Advogados) ===== */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.member {
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.member:last-child { border-right: none; }
.member-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  margin-bottom: 1.5rem;
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  font-style: italic;
}
.member h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.member-role {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.member-oab {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
  font-family: 'Newsreader', serif;
  font-style: italic;
}
.member-info {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Pull / quote-style block ===== */
.pull {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.8rem;
  margin: 2.5rem 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.5;
  max-width: 60ch;
}

/* ===== Listas estilizadas ===== */
.req-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
.req-list li {
  padding: 0.9rem 0 0.9rem 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.req-list li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 0; top: 0.95rem;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.req-list { counter-reset: item; }
.req-list li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 0.2rem; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 1.5rem 2rem 1.5rem 0;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: 'Newsreader', serif;
  letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 1.5rem;
  font-size: 1.5rem; font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 1.8rem 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 70ch;
}

/* ===== CTA box ===== */
.cta-box {
  background: var(--primary);
  color: #f1ede4;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  margin: var(--space-8) 0;
}
.cta-box h2 { color: #f1ede4; margin-bottom: 1rem; }
.cta-box p {
  color: rgba(241, 237, 228, 0.85);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-bottom: 2rem;
}
.cta-box .btn {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--bg);
}
.cta-box .btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cta-box .btn-ghost { background: transparent; color: #f1ede4; border-color: rgba(241, 237, 228, 0.4); }
.cta-box .btn-ghost:hover { background: rgba(241, 237, 228, 0.1); border-color: #f1ede4; }
.cta-box-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Atendimento (3 botões) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.contact-card {
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  background: var(--bg);
  text-align: left;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px rgba(30, 58, 95, 0.15);
}
.contact-card .ico { font-size: 1.4rem; margin-bottom: 0.5rem; }
.contact-card h4 { color: var(--primary); margin-bottom: 0.3rem; font-family: 'Newsreader', serif; font-size: 1.15rem; }
.contact-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.contact-card .btn-link { font-size: 0.92rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #c8d4e2;
  padding: 4.5rem 0 2rem;
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-brand h3 {
  font-family: 'Newsreader', serif;
  color: #f1ede4;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.footer-brand p { font-size: 0.92rem; line-height: 1.6; max-width: 36ch; color: #c8d4e2; }
.footer-logo {
  width: 90px; height: auto; margin-bottom: 1.4rem;
  opacity: 0.95;
}
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1ede4;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.93rem; line-height: 1.6; }
.footer-col a { color: #c8d4e2; transition: color 0.2s; }
.footer-col a:hover { color: #f1ede4; }
.footer-meta {
  max-width: var(--content-w);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(241, 237, 228, 0.18);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(200, 212, 226, 0.85);
}
.footer-meta p { max-width: none; margin-bottom: 0.8rem; }
.footer-meta strong { color: #f1ede4; font-weight: 500; }
.footer-bottom {
  max-width: var(--content-w);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem;
  color: rgba(200, 212, 226, 0.7);
}
.footer-bottom a { color: rgba(200, 212, 226, 0.85); border-bottom: 1px solid rgba(200, 212, 226, 0.3); }
.footer-bottom a:hover { color: #f1ede4; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed;
  bottom: 1.8rem; right: 1.8rem;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 90;
  box-shadow: 0 6px 20px -3px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ===== Banner LGPD ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  max-width: 480px;
  background: var(--ink);
  color: var(--bg);
  padding: 1.4rem 1.5rem;
  z-index: 95;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.3);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 1rem; max-width: none; color: rgba(251, 250, 247, 0.9); }
.cookie-banner a { color: var(--bg); border-bottom: 1px solid rgba(251, 250, 247, 0.4); }
.cookie-banner-actions { display: flex; gap: 0.7rem; }
.cookie-banner button {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cookie-banner button.secondary {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(251, 250, 247, 0.4);
}

/* ===== Avisos institucionais (callouts informativos) ===== */
.note {
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; color: var(--accent); }

/* ===== Page header (LPs internas) ===== */
.page-header {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-header .breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.page-header .breadcrumb a { color: var(--ink-muted); border-bottom: 1px dotted var(--ink-muted); }
.page-header h1 { margin-bottom: 1.2rem; max-width: 20ch; }
.page-header .lead { max-width: 58ch; }

/* ===== Política de Privacidade ===== */
.policy {
  max-width: var(--narrow-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.policy h1 { margin-bottom: 0.8rem; }
.policy .updated { color: var(--ink-muted); font-style: italic; font-family: 'Newsreader', serif; margin-bottom: 3rem; }
.policy h2 {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--primary);
}
.policy p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.2em; max-width: none; }

/* ===== Responsivo ===== */
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 0.8rem; }
  .area-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .member { border-right: none; }
  .hero { padding: 3rem 0 2.5rem; }
  body { font-size: 16px; }
  .cookie-banner { left: 1rem; right: 1rem; padding: 1.2rem; }
  .wa-float { bottom: 1.2rem; right: 1.2rem; width: 54px; height: 54px; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-box-actions { flex-direction: column; }
  .cta-box-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .brand-text small { display: none; }
}

/* ===== Reveal animation (sutil, uma vez ao carregar) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-meta, .hero h1, .hero .lead, .hero-actions {
  animation: fadeUp 0.7s ease-out backwards;
}
.hero h1 { animation-delay: 0.1s; }
.hero .lead { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }

/* Print friendly */
@media print {
  .site-header, .wa-float, .cookie-banner, .cta-box { display: none; }
}
