/* =====================================================
   Mendes & Costa — Advogados Associados
   Paleta: navy profundo + dourado + creme
   Tema escuro sofisticado, serifas clássicas (autoridade)
   ===================================================== */

:root {
  --navy:    #0d1b2b;
  --navy-2:  #11233a;
  --navy-3:  #17304c;
  --navy-4:  #1e3a5c;
  --cream:   #eef2f7;
  --muted:   #93a6bd;
  --muted-2: #6f8299;
  --gold:    #c6a15b;
  --gold-lt: #ddc189;
  --gold-dk: #a9853f;
  --line:    rgba(238, 242, 247, .12);
  --line-soft: rgba(238, 242, 247, .07);
  --paper:   #f5f1e8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Mulish', system-ui, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--navy); color: var(--cream); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--gold); margin-bottom: 18px; }
.eyebrow__line { width: 32px; height: 1px; background: var(--gold); opacity: .6; }
.eyebrow--center { justify-content: center; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: .3px; color: var(--cream); }
.section-title em { font-style: italic; color: var(--gold); }
.section-title--light { color: var(--cream); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 16px auto 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(38px, 5vw, 58px); }

/* ---------- botões ---------- */
.btn { --pad-y: 14px; --pad-x: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: var(--pad-y) var(--pad-x); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn--lg { --pad-y: 17px; --pad-x: 34px; font-size: .86rem; }
.btn--gold { background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #1c1608; box-shadow: 0 12px 28px -14px rgba(198,161,91,.8); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(198,161,91,1); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

/* ---------- topbar ---------- */
.topbar { background: #0a1522; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.topbar__item { letter-spacing: .04em; }
.topbar__phone { color: var(--gold-lt); font-weight: 600; letter-spacing: .02em; }
.topbar__phone:hover { color: #fff; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(13,27,43,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .4s, background .4s; }
.header.is-stuck { box-shadow: 0 14px 40px -24px #000; background: rgba(10,21,34,.94); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__crest { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--gold); letter-spacing: 0; flex-shrink: 0; white-space: nowrap; line-height: 1; }
.logo__crest span { color: var(--muted); font-size: .68rem; margin: 0 1px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--cream); letter-spacing: .2px; }
.logo__text i { font-style: normal; font-size: .64rem; text-transform: uppercase; letter-spacing: .24em; color: var(--gold); margin-top: 2px; }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; font-size: .92rem; color: var(--muted); position: relative; padding: 4px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--navy-3); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(198,161,91,.1), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: auto, 100% 46px;
  mask-image: linear-gradient(180deg, #000, transparent 80%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.04; letter-spacing: .3px; margin-bottom: 24px; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { color: var(--muted); font-size: 1.14rem; max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__meta { display: flex; align-items: center; gap: 24px; }
.hero__meta > div:not(.divider) { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--gold); line-height: 1; }
.hero__meta span { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }
.divider { width: 1px; height: 40px; background: var(--line); }

.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -34px #000; }
.hero__frame img { width: 100%; aspect-ratio: 5/6; object-fit: cover; filter: grayscale(.25) brightness(.92); }
.hero__frame-line { position: absolute; inset: 14px; border: 1px solid rgba(198,161,91,.4); pointer-events: none; }
.hero__quote { position: absolute; left: -24px; bottom: 34px; max-width: 280px; background: var(--gold); color: #1c1608; padding: 20px 24px 22px; border-radius: 4px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.hero__quote-mark { font-family: var(--font-display); font-size: 3rem; line-height: 0; position: relative; top: 14px; }
.hero__quote p { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.4; margin-top: 6px; }

/* ---------- trust ---------- */
.trust { padding: 8px 0 4px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--navy-2); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold); padding: 34px 24px; }
.trust__item { text-align: center; position: relative; }
.trust__item:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 1px; height: 42px; background: var(--line); }
.trust__item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.trust__item span { color: var(--muted); font-size: .84rem; margin-top: 6px; display: block; letter-spacing: .03em; }

/* ---------- áreas ---------- */
.areas { padding: clamp(58px, 8vw, 100px) 0; }
.areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { position: relative; background: var(--navy-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 30px 26px 32px; transition: transform .4s var(--ease), border-color .4s, background .4s; overflow: hidden; }
.area::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--gold); transition: width .4s var(--ease); }
.area:hover { transform: translateY(-6px); border-color: var(--line); background: var(--navy-3); }
.area:hover::before { width: 100%; }
.area__ico { font-size: 1.9rem; display: block; margin-bottom: 16px; }
.area h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; margin-bottom: 10px; color: var(--cream); }
.area p { color: var(--muted); font-size: .92rem; }
.area__arrow { position: absolute; right: 22px; bottom: 24px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; font-size: 1.1rem; }
.area:hover .area__arrow { opacity: 1; transform: none; }

/* ---------- o escritório ---------- */
.office { padding: clamp(56px, 8vw, 100px) 0; background: var(--navy-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.office__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.office__media { position: relative; }
.office__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); filter: grayscale(.2) brightness(.9); }
.office__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(198,161,91,.35); pointer-events: none; }
.office__tag { position: absolute; right: -18px; bottom: 30px; background: var(--gold); color: #1c1608; padding: 16px 22px; border-radius: 4px; text-align: center; box-shadow: 0 20px 36px -16px rgba(0,0,0,.6); }
.office__tag strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; display: block; line-height: 1; }
.office__tag span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; display: block; }
.office__copy p { color: var(--muted); font-size: 1.06rem; margin-top: 18px; }
.office__copy .section-title { text-align: left; }
.office__values { margin-top: 28px; display: grid; gap: 12px; }
.office__values li { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 500; }
.office__values span { color: var(--gold); }

/* ---------- método ---------- */
.method { padding: clamp(58px, 8vw, 100px) 0; background:
  radial-gradient(80% 60% at 50% 0%, rgba(198,161,91,.06), transparent 60%), #0a1522; }
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.method__step { padding: 32px 26px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--navy-2); position: relative; transition: transform .4s var(--ease), border-color .4s; }
.method__step:hover { transform: translateY(-6px); border-color: rgba(198,161,91,.4); }
.method__num { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 14px; opacity: .9; }
.method__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.method__step p { color: var(--muted); font-size: .94rem; }

/* ---------- depoimentos ---------- */
.reviews { padding: clamp(58px, 8vw, 100px) 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--navy-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 34px 30px; position: relative; transition: transform .4s var(--ease), border-color .4s; }
.review:hover { transform: translateY(-6px); border-color: rgba(198,161,91,.35); }
.review__mark { font-family: var(--font-display); font-size: 3.4rem; color: var(--gold); line-height: .5; opacity: .6; display: block; height: 26px; }
.review blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.55; color: var(--cream); margin-bottom: 22px; }
.review figcaption strong { display: block; font-weight: 700; color: var(--cream); }
.review figcaption span { color: var(--gold); font-size: .84rem; letter-spacing: .03em; }

/* ---------- cta ---------- */
.cta { padding: clamp(60px, 8vw, 104px) 0; background: var(--navy-2); border-top: 1px solid var(--line-soft); }
.cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.cta__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; }
.cta__title em { font-style: italic; color: var(--gold); }
.cta__copy p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; max-width: 44ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta__cards { display: grid; gap: 14px; }
.cta__card { display: flex; gap: 14px; background: var(--navy); border: 1px solid var(--line-soft); border-left: 2px solid var(--gold); border-radius: 4px; padding: 18px 22px; }
.cta__card span { font-size: 1.4rem; }
.cta__card strong { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 4px; color: var(--cream); }
.cta__card p { color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.footer { background: #0a1522; border-top: 1px solid var(--line); padding-top: 58px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); margin: 18px 0 20px; max-width: 36ch; }
.footer__social { display: flex; gap: 18px; }
.footer__social a { color: var(--gold-lt); font-weight: 600; font-size: .86rem; transition: color .25s; }
.footer__social a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--gold); margin-bottom: 14px; }
.footer__cols a, .footer__cols p { display: block; font-size: .92rem; margin-bottom: 8px; color: var(--muted); transition: color .25s; }
.footer__cols a:hover { color: var(--gold-lt); }
.footer__bottom { border-top: 1px solid var(--line-soft); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__bottom span { color: var(--muted-2); font-size: .82rem; }
.footer__credit strong { color: var(--gold-lt); }

/* ---------- whatsapp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); animation: pulse 2.6s ease-in-out infinite; transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__media { max-width: 440px; }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .office__inner { grid-template-columns: 1fr; gap: 44px; }
  .office__media { max-width: 440px; }
  .method__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .cta__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__item--mid { display: none; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: 0; right: 0; left: auto; height: 100vh; height: 100dvh; overflow-y: auto; width: min(82vw, 330px); flex-direction: column; gap: 4px; padding: 96px 30px 40px; background: var(--navy-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90; }
  .nav.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5), -30px 0 60px -20px #000; }
  .nav a { font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .trust__item:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .topbar__item:not(.topbar__phone) { display: none; }
  .topbar__inner { justify-content: center; }
  .areas__grid, .method__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item::after { display: none !important; }
  .hero__meta { flex-wrap: wrap; gap: 18px; }
  .logo__text i { display: none; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* menu mobile: botao X acima do painel */
.nav-toggle { position: relative; z-index: 95; }
