/* =========================================================
   Staub & Staub Advogados — styles.css
   ========================================================= */

:root {
  --navy-950: #0e1c3f;
  --navy-900: #16264f;
  --navy-800: #1b316b;
  --navy-700: #2a4080;
  --gold: #b6944f;
  --gold-light: #d9bd82;
  --cream: #f8f6f2;
  --cream-dark: #efebe3;
  --ink: #23262f;
  --ink-soft: #5b5f6b;
  --white: #ffffff;
  --border: #e4e0d6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --radius: 6px;
  --shadow-md: 0 12px 32px rgba(14, 28, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 28, 63, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; color: var(--navy-900); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
  background-size: 200% 100%;
  color: var(--navy-950);
  transition: background-position .4s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(182, 148, 79, .35);
}
.btn-lg { padding: 17px 40px; font-size: 16px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; }
.btn-ghost {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { background: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(14, 28, 63, 0.97);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img { height: 52px; width: auto; display: block; }
.footer-logo { height: 48px; }
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-cta { white-space: nowrap; padding: 10px 22px; font-size: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 70px;
  width: 100%;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 78% 30%, rgba(182,148,79,.12), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 100%, rgba(42,64,128,.5), transparent 70%);
}
.hero-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  max-width: 1160px;
  height: auto;
  opacity: .12;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Typography accents ---------- */
h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero h1 em, .diferenciais h2 em, .cta-banner h2 em { color: var(--gold-light); }

.hero-trust {
  margin-top: 26px;
  font-size: 13.5px;
  color: rgba(255,255,255,.66);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg { color: var(--gold-light); flex-shrink: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none !important; }
  .hero-content > * { animation: none !important; }
}

/* hero entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-content > * { animation: fadeUp .8s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .58s; }

/* slow drift on the watermark */
@keyframes drift {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.04); }
}
.hero-art img { animation: drift 18s ease-in-out infinite alternate; }

/* ---------- Section generic ---------- */
section { padding: 100px 0; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-title { font-size: clamp(28px, 3.4vw, 38px); }
.section-title.center::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}
.section-sub { color: var(--ink-soft); max-width: 620px; font-size: 16.5px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.light { color: var(--white); }

/* ---------- Sobre ---------- */
.sobre { background: var(--cream); }
.sobre-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.sobre-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.sobre-text p { color: var(--ink-soft); font-size: 16.5px; }
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-800);
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Areas ---------- */
.areas {
  position: relative;
  overflow: hidden;
}
.areas::before {
  content: '§';
  position: absolute;
  right: -40px;
  top: 40px;
  font-family: var(--font-display);
  font-size: 560px;
  line-height: 1;
  color: rgba(27, 49, 107, .045);
  pointer-events: none;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.area-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(182,148,79,.16), rgba(217,189,130,.28));
  border: 1px solid rgba(182,148,79,.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.area-icon svg { width: 26px; height: 26px; }
.area-card h3 { font-size: 19px; margin-bottom: 10px; }
.area-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.diferenciais::before {
  content: 'STAUB';
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 700;
  letter-spacing: 30px;
  line-height: 1;
  color: rgba(255, 255, 255, .028);
  pointer-events: none;
  white-space: nowrap;
}
.diferenciais .container { position: relative; z-index: 1; }
.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.dif-item { text-align: center; padding: 0 12px; }
.dif-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  width: 42px; height: 42px;
  line-height: 40px;
  margin-bottom: 20px;
}
.dif-item h3 { color: var(--white); font-size: 20px; }
.dif-item p { color: rgba(255,255,255,.78); font-size: 15px; }

/* ---------- Socios ---------- */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.socio-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.socio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.socio-img {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--navy-950);
}
.socio-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.socio-info { padding: 28px 30px; }
.socio-info h3 { font-size: 20px; margin-bottom: 6px; }
.socio-oab {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 12px;
}
.socio-info p:not(.socio-oab) { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 80% 90% at 50% 110%, rgba(42, 64, 128, .55), transparent),
    var(--navy-950);
  padding: 96px 0;
  text-align: center;
  color: var(--white);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner h2 { color: var(--white); margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 38px); }
.cta-sub { margin: 0 0 34px; color: rgba(255,255,255,.75); font-size: 17px; max-width: 560px; }
.cta-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%;
  max-width: 760px;
}
.trust-badges li {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-badges li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-container { max-width: 860px; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 26px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  transition: transform .3s ease, background .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: background .3s ease;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); background: var(--gold); }
.faq-list details[open] .faq-icon::before,
.faq-list details[open] .faq-icon::after { background: var(--navy-950); }
.faq-list details p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 92%;
}

/* ---------- Contato ---------- */
.contato { background: var(--white); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.contato-lead { color: var(--ink-soft); margin-bottom: 32px; }
.contato-list { display: flex; flex-direction: column; gap: 22px; }
.contato-list li { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.contato-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contato-list a, .contato-list span { font-size: 16.5px; color: var(--navy-900); }
.contato-list a:hover { color: var(--gold); }
.contato-map {
  height: 340px;
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contato-map iframe { width: 100%; height: 100%; }

/* ---------- WhatsApp form ---------- */
.contato-form-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contato-form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 24px; }
#wa-form { display: flex; flex-direction: column; gap: 16px; }
#wa-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
#wa-form input, #wa-form select, #wa-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
#wa-form input:focus, #wa-form select:focus, #wa-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182,148,79,.15);
}
.btn-form { border: none; cursor: pointer; margin-top: 4px; }
.form-note { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(14,28,63,.92);
  border: 1px solid rgba(217,189,130,.5);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 90;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: var(--navy-800); }

/* ---------- Nav scrollspy ---------- */
.main-nav a.active { color: var(--gold-light); }
.main-nav a.active::after { width: 100%; }

/* ---------- Card tilt ---------- */
.area-card { will-change: transform; }
.area-card.tilting { transition: box-shadow .25s ease, border-color .25s ease; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-brand p { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-img { max-width: 420px; margin: 0 auto; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .dif-grid { grid-template-columns: 1fr; gap: 32px; }
  .socios-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  section { padding: 70px 0; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    height: 100vh;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right .3s ease;
    z-index: 99;
  }
  .main-nav.open { right: 0; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-grid {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-art img {
    height: auto;
    width: 150%;
    max-width: none;
    opacity: .1;
  }
  .logo-img { height: 38px; }
  .areas-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
