/* =====================================================
   SÁ & SCHERER ADVOGADOS — SITE INSTITUCIONAL
   Base styles compartilhados entre as 5 páginas
   ===================================================== */

:root {
  --navy:        #0a2540;
  --navy-deep:   #061a2e;
  --navy-soft:   #14365a;
  --gold:        #c9a961;
  --gold-bright: #d9b975;
  --gold-deep:   #a08440;
  --white:       #ffffff;
  --off-white:   #f7f6f2;
  --gray-50:     #f3f3f1;
  --gray-100:   #e8e8e6;
  --gray-200:   #d1d1cd;
  --gray-400:   #8b8b86;
  --gray-600:   #5a5a55;
  --gray-800:   #2a2a28;

  --serif:       "Playfair Display", Georgia, serif;
  --sans:        "Source Sans 3", system-ui, sans-serif;

  --shadow-sm:   0 2px 12px rgba(10, 37, 64, .08);
  --shadow-md:   0 8px 32px rgba(10, 37, 64, .12);
  --shadow-lg:   0 24px 60px rgba(10, 37, 64, .18);

  --radius-sm:   2px;
  --radius-md:   4px;

  --header-h:    84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========== UTILS ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.light { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.h-display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 500; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; }
.h-card { font-size: 1.35rem; font-weight: 500; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--gray-600); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all .35s cubic-bezier(.2, .8, .2, 1);
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .6);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--off-white);
}

.btn-arrow {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold);
  transition: gap .25s ease;
}
.btn-arrow:hover { gap: 14px; color: var(--navy); border-color: var(--navy); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  letter-spacing: .01em;
}
.site-header__logo img { height: 52px; width: auto; object-fit: contain; }
.site-header__logo span { font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: .02em;
  position: relative;
  padding: 8px 0;
  transition: color .25s ease;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}
.site-header__cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: all .3s ease;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all .3s ease;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top:  7px; }

/* ========== HERO base ========== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 110px);
  background: var(--navy);
  color: var(--off-white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(201, 169, 97, .12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(20, 54, 90, .8) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  color: var(--off-white);
  margin: 22px 0 24px;
  max-width: 900px;
}
.hero .lead {
  color: rgba(247, 246, 242, .82);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 720px;
  margin-bottom: 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero compacto pra páginas internas */
.hero-compact {
  padding: clamp(80px, 10vw, 120px) 0 clamp(50px, 7vw, 80px);
}
.hero-compact h1 { max-width: 800px; }

/* ========== SECTIONS ========== */
.section {
  padding: clamp(70px, 9vw, 110px) 0;
}
.section--light { background: var(--off-white); }
.section--white { background: var(--white); }
.section--cream { background: var(--gray-50); }
.section--dark {
  background: var(--navy);
  color: var(--off-white);
}
.section--dark h2, .section--dark h3 { color: var(--off-white); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; max-width: 740px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 18px 0 16px; color: var(--navy); }
.section--dark .section-head h2 { color: var(--off-white); }
.section-head p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
}
.section--dark .section-head p { color: rgba(247, 246, 242, .75); }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all .35s cubic-bezier(.2, .8, .2, 1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.card__num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
  font-style: italic;
}
.card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.card p {
  color: var(--gray-600);
  font-size: .98rem;
  line-height: 1.65;
}
.card__list {
  list-style: none;
  margin-top: 18px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--gray-600);
  font-size: .96rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* ========== SOCIOS CARDS ========== */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.socio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all .35s ease;
}
.socio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.socio-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--navy);
  overflow: hidden;
}
.socio-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(85%);
  transition: filter .4s ease, transform .8s ease;
}
.socio-card:hover .socio-card__photo img {
  filter: saturate(100%);
  transform: scale(1.03);
}
.socio-card__body { padding: 28px 28px 32px; }
.socio-card__role {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.socio-card__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.socio-card__oab {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}
.socio-card__bio {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.testimonial {
  background: var(--white);
  padding: 28px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  position: relative;
}
.testimonial::before {
  content: "“";
  font-family: var(--serif);
  font-size: 3.6rem;
  color: var(--gold);
  position: absolute;
  top: 8px;
  left: 18px;
  line-height: 1;
  opacity: .6;
}
.testimonial p {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--gray-800);
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.testimonial__stars {
  margin-top: 18px;
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
}

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.step p {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--navy);
  color: var(--off-white);
  padding: clamp(70px, 9vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(201, 169, 97, .14) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-section h2 {
  color: var(--off-white);
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.cta-section p {
  color: rgba(247, 246, 242, .78);
  font-size: 1.15rem;
  margin-bottom: 36px;
}
.cta-section__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 246, 242, .72);
  padding: 80px 0 32px;
  font-size: .95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer__brand img { width: 110px; height: auto; margin-bottom: 22px; opacity: 1; }

/* SOCIAL LINKS (rodapé) */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: rgba(247, 246, 242, .78);
  transition: all .25s ease;
}
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-footer__brand h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--off-white);
  margin-bottom: 8px;
  font-weight: 500;
}
.site-footer__brand p { line-height: 1.7; max-width: 360px; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold-bright);
  margin-bottom: 22px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { transition: color .25s ease; }
.site-footer a:hover { color: var(--gold-bright); }

.site-footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  font-size: .85rem;
  color: rgba(247, 246, 242, .5);
  line-height: 1.7;
}
.site-footer__disclaimer { max-width: 720px; font-size: .82rem; }
.site-footer__legal { display: flex; gap: 18px; }

/* ========== WHATSAPP FLOAT ========== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
  z-index: 90;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ========== ARTIGO (texto) ========== */
.artigo-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.artigo-back {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  transition: gap .2s ease, color .2s ease;
}
.artigo-back:hover { gap: 14px; color: var(--navy); }

.artigo-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.artigo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artigo-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 40px;
}
.artigo-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 500;
}
.artigo-meta {
  font-size: 14px;
  color: var(--gray-600);
  font-style: italic;
}
.artigo-meta strong {
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
}

.artigo-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  padding-left: 24px;
  border-left: 3px solid var(--gold);
}

.artigo-body p {
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 22px;
  color: var(--gray-800);
}
.artigo-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  color: var(--navy);
  margin: 48px 0 20px;
  font-weight: 500;
  line-height: 1.25;
}
.artigo-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 32px 0 14px;
  font-weight: 500;
}
.artigo-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 28px;
}
.artigo-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  line-height: 1.65;
}
.artigo-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 1px;
  background: var(--gold);
}
.artigo-body strong { color: var(--navy); font-weight: 600; }
.artigo-body em { color: var(--gray-600); }
.artigo-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

.artigo-callout {
  margin: 36px 0;
  padding: 22px 26px;
  background: var(--gray-50);
  border-left: 3px solid var(--gold);
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.7;
}
.artigo-callout strong { color: var(--navy); }

.artigo-disclaimer {
  margin-top: 60px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.artigo-disclaimer strong { color: var(--navy); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.fade-up.delay-1 { animation-delay: .15s; }
.fade-up.delay-2 { animation-delay: .3s;  }
.fade-up.delay-3 { animation-delay: .45s; }
.fade-up.delay-4 { animation-delay: .6s;  }

/* Scroll reveal (intersection observer adiciona classe .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .socios-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 70px; }
  .hero-compact { padding: 80px 0 50px; }

  .site-header__cta { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-100%);
    transition: transform .35s ease;
    box-shadow: 0 12px 24px rgba(10, 37, 64, .08);
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
  }
  .site-nav.is-open { transform: translateY(0); }
  .menu-toggle { display: inline-flex; }

  .cards-grid--4, .cards-grid--3, .cards-grid--2 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 26px; height: 26px; }
}
