/* =========================================
   VARIÁVEIS
   ========================================= */
:root {
    /* Cores oficiais Borges Macedo */
    --navy:       #284264;  /* azul da marca */
    --navy-dk:    #1a2d45;  /* azul escuro — hero, footer */
    --navy-deep:  #0E1D2E;  /* azul quase preto */
    --ink:        #0C1520;  /* fundo mais escuro */
    --ink-mid:    #111F30;
    --ink-lite:   #1A2E44;

    --cream:      #FAF8F4;
    --cream-mid:  #F3F0EA;

    --gold:       #B4891C;  /* dourado da marca */
    --gold-lt:    #D4A830;
    --gold-dk:    #8A6614;

    --t-dark:     #1C1814;
    --t-muted:    #68635F;
    --t-faint:    #A0A8B0;
    --t-light:    #E8E4DC;
    --t-light-m:  #7A8898;

    --rule-d:     rgba(232,228,220,0.1);
    --rule-l:     rgba(28,24,20,0.09);
    --gold-rule:  rgba(180,137,28,0.3);

    --hh: 72px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    background: var(--cream);
    color: var(--t-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* cursor personalizado ativo */
}
@media (pointer: coarse) {
    body { cursor: auto; }
    .cursor, .cursor-ring { display: none !important; }
}

img { display:block; max-width:100%; }
a   { color:inherit; text-decoration:none; }
ul  { list-style:none; }
button { font-family:inherit; cursor:none; border:none; background:none; }
@media (pointer: coarse) { button { cursor:auto; } }

/* =========================================
   CURSOR PERSONALIZADO
   ========================================= */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .25s;
    will-change: transform;
}
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border: 1px solid rgba(180,137,28,.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width .35s var(--ease-out), height .35s var(--ease-out),
                border-color .25s, opacity .25s;
    will-change: transform;
}
.cursor.is-hover {
    width: 14px; height: 14px;
    background: var(--gold-lt);
}
.cursor-ring.is-hover {
    width: 56px; height: 56px;
    border-color: rgba(180,137,28,.2);
}
.cursor.is-click { transform: translate(-50%,-50%) scale(.75); }

/* =========================================
   TIPOGRAFIA BASE
   ========================================= */
.sec-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.sec-label--light { color: var(--gold-lt); }

.sec-heading {
    font-family: 'Spectral', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--t-dark);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--hh);
    transition: background .4s var(--ease-std), box-shadow .4s;
}
.header.over-light {
    background: rgba(244,239,230,.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--rule-l);
}

.hd-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.logo { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo-img { height:44px; width:auto; transition: opacity .3s; }
/* versão clara → visível no hero escuro, some no header claro */
.logo-img--light { display:block; }
.logo-img--dark  { display:none; }
.header.over-light .logo-img--light { display:none; }
.header.over-light .logo-img--dark  { display:block; }
/* texto fallback: oculto por padrão, JS mostra se imagem falhar */
#logoText { display:none; }
.logo-wordmark { display:flex; flex-direction:column; line-height:1.1; }
.logo-name {
    font-family: 'Spectral', serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--t-light);
    transition: color .3s;
}
.logo-sub {
    font-size: .55rem;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: var(--t-light-m);
    transition: color .3s;
}
.header.over-light .logo-name { color: var(--t-dark); }
.header.over-light .logo-sub  { color: var(--t-muted); }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.nav-link {
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: .5px;
    color: var(--t-light-m);
    padding: 8px 14px;
    position: relative;
    transition: color .25s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--t-light); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold-lt); }

.header.over-light .nav-link       { color: var(--t-muted); }
.header.over-light .nav-link:hover { color: var(--t-dark); }

/* CTA header */
.hd-cta {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--t-light);
    border: 1px solid var(--rule-d);
    padding: 9px 20px;
    transition: border-color .25s, color .25s, background .25s;
    flex-shrink: 0;
}
.hd-cta:hover { border-color: var(--gold-rule); color: var(--gold-lt); }
.header.over-light .hd-cta { color: var(--t-dark); border-color: var(--rule-l); }
.header.over-light .hd-cta:hover { border-color: var(--gold); color: var(--gold-dk); }

/* Toggle mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1px;
    background: var(--t-light);
    transition: transform .3s var(--ease-out), opacity .25s, background .3s;
}
.header.over-light .nav-toggle span { background: var(--t-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }


/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100dvh;
    background: var(--ink) url('https://borgesmacedoadvocacia.com.br/wp-content/uploads/2026/06/hero-bm-1920.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--hh);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 21, 32, 0.90);
    z-index: 0;
}

/* Grain texture SVG */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 240px;
    opacity: .038;
    pointer-events: none;
    z-index: 1;
}

/* Sutil gradiente radial — luz suave no canto */
.hero::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 70%; height: 140%;
    background: radial-gradient(ellipse at center,
        rgba(180,137,28,.07) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px 140px;
}

/* Olho de herói — linha fina + texto */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--t-light-m);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.hero-eyebrow.visible { opacity: 1; transform: translateY(0); }

.eyebrow-rule {
    display: block;
    width: 40px; height: 1px;
    background: var(--gold-rule);
}

/* Título principal */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
}
.hero-line { display: block; overflow: hidden; line-height: .95; }
.hero-line--em .word-inner {
    font-style: italic;
    font-weight: 300;
    color: var(--gold-lt);
}

.word-mask { display: block; overflow: hidden; }
.word-inner {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(4.5rem, 13vw, 14rem);
    font-weight: 300;
    letter-spacing: -.01em;
    color: var(--t-light);
    transform: translateY(0);
}

/* Subtítulo e scroll cue */
.hero-sub {
    font-size: .72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--t-light-m);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.hero-sub.visible { opacity: 1; transform: translateY(0); }

.hero-scroll-cue {
    position: absolute;
    bottom: 44px;
    right: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--t-light-m);
    transition: color .25s;
    opacity: 0;
    transform: translateY(6px);
}
.hero-scroll-cue:hover { color: var(--gold-lt); }
.hero-scroll-cue.visible { opacity: 1; transform: translateY(0); transition-property: opacity, transform, color; transition-duration: .7s, .7s, .25s; }

.scroll-arrow {
    display: inline-block;
    animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-band {
    background: var(--ink-mid);
    border-top: 1px solid var(--rule-d);
    border-bottom: 1px solid var(--rule-d);
    padding: 18px 0;
    overflow: hidden;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee-inner span {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--t-light-m);
    white-space: nowrap;
    text-transform: uppercase;
}
.m-sep { color: var(--gold) !important; font-style: normal !important; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-band:hover .marquee-inner { animation-play-state: paused; }

/* =========================================
   ÁREAS
   ========================================= */
.areas {
    background: var(--cream);
    padding: 120px 0;
}
.areas-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0 80px;
    align-items: start;
}
.areas-wrap .sec-intro { position: sticky; top: calc(var(--hh) + 40px); }
.areas-wrap .sec-intro .sec-heading { color: var(--t-dark); }

.areas-list {
    border-top: 1px solid var(--rule-l);
}

/* Item accordion */
.area-item {
    border-bottom: 1px solid var(--rule-l);
}

.area-head {
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr 24px;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    text-align: left;
    transition: opacity .2s;
}
.area-head:hover { opacity: .75; }

.area-num {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--t-faint);
    letter-spacing: 2px;
    transition: color .3s;
}
.area-item.is-open .area-num { color: var(--gold); }

.area-name {
    font-family: 'Spectral', serif;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 300;
    color: var(--t-dark);
    transition: color .25s;
}
.area-head:hover .area-name,
.area-item.is-open .area-name { color: var(--ink); }

/* Toggle ícone (+/−) */
.area-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    flex-shrink: 0;
    position: relative;
    color: var(--t-faint);
}
.area-toggle::before,
.area-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform .4s var(--ease-out), opacity .3s;
}
.area-toggle::before { width: 14px; height: 1px; }
.area-toggle::after  { width: 1px; height: 14px; }
.area-item.is-open .area-toggle::after { transform: rotate(90deg); opacity: 0; }
.area-item.is-open .area-toggle { color: var(--gold); }

/* Corpo accordion */
.area-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .65s var(--ease-out);
}
.area-item.is-open .area-body {
    max-height: 600px;
}
.area-body-inner {
    padding: 4px 0 0 96px; /* alinha com o texto do título */
}
.area-body-inner p {
    font-size: .95rem;
    color: var(--t-muted);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 24px;
    padding-top: 4px;
}
.area-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}
.area-topics li {
    font-size: .82rem;
    color: var(--t-muted);
    padding-left: 16px;
    position: relative;
}
.area-topics li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .75rem;
}
.area-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--t-dark);
    padding-bottom: 24px;
    transition: color .2s, gap .2s;
}
.area-cta:hover { color: var(--gold-dk); gap: 14px; }
.area-cta span { transition: transform .2s; }
.area-cta:hover span { transform: translateX(4px); }

/* =========================================
   SOBRE
   ========================================= */
.sobre {
    background: var(--cream-mid);
    padding: 120px 0 120px;
    border-top: 1px solid var(--rule-l);
}
.sobre-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Pull quote */
.pull-quote {
    text-align: center;
    padding: 0 80px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.pq-ornament {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold-rule), transparent);
}
.pull-quote blockquote {
    font-family: 'Spectral', serif;
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.35;
    color: var(--t-dark);
    max-width: 820px;
}
.pull-quote blockquote::before { content: none; }

/* Corpo do sobre */
.sobre-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.sobre-text .sec-label { margin-bottom: 24px; }
.sobre-text p {
    font-size: 1rem;
    color: var(--t-muted);
    line-height: 1.85;
    margin-bottom: 18px;
    max-width: 560px;
}
.sobre-valores {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule-l);
}
.sobre-valores li {
    font-size: .88rem;
    color: var(--t-muted);
    padding: 14px 0 14px 18px;
    border-bottom: 1px solid var(--rule-l);
    position: relative;
    transition: color .2s, padding-left .25s;
}
.sobre-valores li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 6px; height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}
.sobre-valores li:hover { color: var(--t-dark); padding-left: 22px; }

/* Números */
.sobre-nums {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--rule-l);
    padding-left: 48px;
    align-self: center;
}
.s-num {
    padding: 32px 0;
    border-bottom: 1px solid var(--rule-l);
}
.s-num:first-child { padding-top: 0; }
.s-num:last-child  { border-bottom: none; padding-bottom: 0; }

.s-val {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
    margin-bottom: 6px;
}
.counter {
    font-family: 'Spectral', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--t-dark);
}
.s-plus {
    font-family: 'Spectral', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
}
.s-label {
    display: block;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--t-faint);
}

/* =========================================
   FRASE / FILOSOFIA
   ========================================= */
.frase-sec {
    background: var(--cream);
    padding: 100px var(--px);
}
.frase-wrap {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.frase-ornamento {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin: 0 auto 48px;
    opacity: .55;
}
.frase-quote {
    font-family: 'Spectral', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--navy);
    margin: 0 0 36px;
    padding: 0;
    quotes: none;
}
.frase-sub {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--navy);
    opacity: .7;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 600px) {
    .frase-sec  { padding: 72px var(--px); }
    .frase-quote { font-size: 1.45rem; }
}

/* =========================================
   EQUIPE
   ========================================= */
/* =========================================
   COMO TRABALHAMOS — 3 PASSOS
   ========================================= */
.passos-sec {
    background: var(--cream-mid);
    padding: 120px 0;
    border-top: 1px solid var(--rule-l);
}
.passos-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.passos-intro {
    margin-bottom: 72px;
}
.passos-intro .sec-heading {
    color: var(--t-dark);
}
.passos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule-l);
}
.passo-card {
    padding: 48px 40px 48px 0;
    border-right: 1px solid var(--rule-l);
}
.passo-card:first-child {
    padding-left: 0;
}
.passo-card:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 40px;
}
.passo-card:not(:first-child):not(:last-child) {
    padding-left: 40px;
}
.passo-num {
    display: block;
    font-family: 'Spectral', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 32px;
}
.passo-titulo {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--t-dark);
    margin: 0 0 16px;
}
.passo-texto {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--t-muted);
    margin: 0;
}

/* =========================================
   FAQ — PERGUNTAS FREQUENTES
   ========================================= */
.faq-sec {
    background: var(--cream);
    padding: 120px 0;
    border-top: 1px solid var(--rule-l);
}
.faq-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0 80px;
    align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--hh) + 40px); }
.faq-intro .sec-heading { color: var(--t-dark); }
.faq-list { border-top: 1px solid var(--rule-l); }
.faq-item { border-bottom: 1px solid var(--rule-l); }
.faq-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    text-align: left;
    font-family: 'Spectral', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--t-dark);
    transition: color .2s;
}
.faq-head:hover { color: var(--ink); }
.faq-item.is-open .faq-head { color: var(--ink); }
.faq-toggle {
    flex-shrink: 0;
    width: 20px; height: 20px;
    position: relative;
    color: var(--t-faint);
    transition: color .3s;
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform .4s var(--ease-out), opacity .3s;
}
.faq-toggle::before { width: 14px; height: 1px; top: 50%; left: 3px; }
.faq-toggle::after  { width: 1px; height: 14px; left: 50%; top: 3px; }
.faq-item.is-open .faq-toggle::after { transform: rotate(90deg); opacity: 0; }
.faq-item.is-open .faq-toggle { color: var(--gold); }
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .55s var(--ease-out);
}
.faq-item.is-open .faq-body { max-height: 300px; }
.faq-body p {
    padding-bottom: 28px;
    font-size: .95rem;
    line-height: 1.85;
    color: var(--t-muted);
    max-width: 600px;
}

.equipe {
    background: var(--cream);
    padding: 140px 0;
    border-top: 1px solid var(--rule-l);
}
.equipe-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.equipe-wrap .sec-intro {
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
}

.equipe-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: 56px;
    justify-content: center;
}

/* Card membro */
.membro {
    display: flex;
    flex-direction: column;
}

.membro--rev {
    direction: ltr;
}
.membro--rev > * { direction: ltr; }

.membro-foto {
    position: relative;
    overflow: hidden;
    background: var(--ink-lite);
    height: 420px;
}
.membro-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .8s var(--ease-out);
}
.membro:hover .membro-foto img { transform: scale(1.04); }

.foto-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1A2B40, #0C1520);
    display: flex;
    align-items: center;
    justify-content: center;
}
.membro-foto:has(img[src]) .foto-fill,
.membro-foto:not(.no-img) .foto-fill { opacity: 0; }
.membro-foto.no-img .foto-fill { opacity: 1; }

.membro-info {
    padding: 28px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.membro-nome {
    font-family: 'Spectral', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--t-dark);
    line-height: 1.2;
}
.membro-oab {
    font-size: .75rem;
    letter-spacing: 2px;
    color: var(--t-faint);
    text-transform: uppercase;
}
.membro-bio {
    font-size: .92rem;
    color: var(--t-muted);
    line-height: 1.8;
    max-width: 400px;
    margin: 6px 0;
}
.membro-areas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.membro-areas span {
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-dk);
    border-bottom: 1px solid var(--gold-rule);
    padding-bottom: 2px;
}
.membro-link {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-top: 10px;
    transition: color .2s;
    width: fit-content;
}
.membro-link:hover { color: var(--t-dark); }

/* =========================================
   CONTATO — split screen
   ========================================= */
.contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Lado escuro */
.ct-dark {
    background: var(--ink);
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ct-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 240px;
    opacity: .03;
    pointer-events: none;
}
.ct-dark-inner { position: relative; z-index: 1; }

.ct-heading {
    font-family: 'Spectral', serif;
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--t-light);
    margin: 16px 0 24px;
}
.ct-sub {
    font-size: .9rem;
    color: var(--t-light-m);
    line-height: 1.8;
    max-width: 360px;
    margin-bottom: 52px;
}

.ct-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 52px; }
.ct-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule-d);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: padding-left .25s;
}
.ct-item:first-child { border-top: 1px solid var(--rule-d); }
.ct-item:hover { padding-left: 6px; }
.ct-item-label {
    font-size: .65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}
.ct-item-val {
    font-size: .95rem;
    color: var(--t-light-m);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ct-badge {
    font-size: .6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4fd47a;
    border: 1px solid rgba(79,212,122,.25);
    padding: 2px 8px;
}

.ct-item--wpp { cursor: pointer; }
.ct-item--wpp .ct-item-val { color: var(--t-light); }

.ct-wpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: 14px 28px;
    transition: background .25s, transform .2s;
}
.ct-wpp-btn:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
}

/* Lado claro — formulário */
.ct-light {
    background: var(--cream);
    padding: 60px 80px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.ct-right-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-map-wrap {
    width: 100%;
    flex: 1;
    overflow: hidden;
    filter: grayscale(15%);
    min-height: 200px;
}
.ct-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.ct-social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-social-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.ct-social-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.ct-social-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ct-social-label {
    font-size: .62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--t-mid);
}
.ct-social-name {
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
}

.ct-form { width: 100%; max-width: 440px; }

.form-heading {
    font-family: 'Spectral', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--t-dark);
    margin-bottom: 40px;
}

/* Campos com apenas linha inferior */
.field {
    margin-bottom: 32px;
    position: relative;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.field label {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-bottom: 10px;
    transition: color .2s;
}
.field:focus-within label { color: var(--gold-dk); }

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-l);
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: var(--t-dark);
    outline: none;
    transition: border-color .25s;
    -webkit-appearance: none;
}
.field textarea { resize: none; line-height: 1.7; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--t-dark); }

/* Dropdown customizado */
.cs {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--rule-l);
    padding: 10px 24px 10px 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: var(--t-dark);
    transition: border-color .25s;
    user-select: none;
}
.cs:focus,
.cs.is-open { border-bottom-color: var(--t-dark); outline: none; }
.cs-val { display: block; color: var(--t-faint); }
.cs.has-val .cs-val { color: var(--t-dark); }
.cs-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t-faint);
    transition: transform .25s;
}
.cs.is-open .cs-arrow { transform: translateY(-50%) rotate(180deg); }
.cs-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0; right: 0;
    background: var(--cream);
    border: 1px solid var(--rule-l);
    box-shadow: 0 12px 40px rgba(28,24,20,.1);
    list-style: none;
    padding: 6px 0;
    z-index: 20;
    display: none;
}
.cs.is-open .cs-list { display: block; }
.cs-opt {
    padding: 11px 16px;
    font-size: .9rem;
    color: var(--t-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cs-opt:hover { background: var(--cream-mid); color: var(--t-dark); }
.cs-opt.is-sel { color: var(--gold-dk); font-weight: 500; }
.field input.err,
.field textarea.err { border-bottom-color: #c0392b; }
.field input::placeholder,
.field textarea::placeholder { color: var(--t-faint); }

.form-submit {
    width: 100%;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--ink);
    padding: 16px;
    transition: background .25s, transform .2s;
    margin-top: 8px;
}
.form-submit:hover { background: var(--ink-lite); transform: translateY(-1px); }

.form-obs {
    font-size: .72rem;
    color: var(--t-faint);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}
.form-ok {
    margin-top: 20px;
    padding: 14px 20px;
    border: 1px solid rgba(79,212,122,.3);
    background: rgba(79,212,122,.04);
    font-size: .85rem;
    color: #3aaa5f;
}
.form-ok[hidden] { display: none; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--ink-mid);
    border-top: 1px solid var(--rule-d);
    padding: 12px 0;
}
.ft-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 60px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--rule-d);
    margin-bottom: 32px;
}
.logo-wordmark--light .logo-name { color: var(--t-light); }
.logo-wordmark--light .logo-sub  { color: var(--t-light-m); }
.ft-brand p {
    font-size: .85rem;
    color: var(--t-light-m);
    line-height: 1.75;
    margin-top: 16px;
    max-width: 260px;
}
.ft-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.ft-nav a {
    font-size: .82rem;
    color: var(--t-light-m);
    transition: color .2s;
    letter-spacing: .3px;
}
.ft-nav a:hover { color: var(--t-light); }

.ft-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.ft-contact a,
.ft-contact span {
    font-size: .82rem;
    color: var(--t-light-m);
    transition: color .2s;
}
.ft-contact a:hover { color: var(--t-light); }

.ft-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ft-bottom p {
    font-size: .72rem;
    color: var(--t-light-m);
    letter-spacing: .3px;
}
.ft-disc { font-style: italic; }

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.wpp-float {
    position: fixed;
    bottom: 90px;
    right: 36px;
    z-index: 95;
    width: 56px; height: 56px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 4px 10px rgba(0,0,0,.25);
    transition: transform .25s var(--ease-out), box-shadow .25s;
}
.wpp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: wppPulse 2.4s var(--ease-out) infinite;
}
.wpp-float:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 30px rgba(37,211,102,.55), 0 6px 14px rgba(0,0,0,.3);
}
@keyframes wppPulse {
    0%   { transform: scale(1); opacity: .5; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================
   ANIMAÇÕES DE ENTRADA — desativadas, tudo visível
   ========================================= */
.reveal-block { opacity: 1; transform: none; }
.reveal-block.visible { opacity: 1; transform: none; }
.js-reveal { opacity: 1; transform: none; }
.js-reveal.visible { opacity: 1; transform: none; }

/* Delays em cascata para área items */
.area-item:nth-child(1) { transition-delay: .05s; }
.area-item:nth-child(2) { transition-delay: .12s; }
.area-item:nth-child(3) { transition-delay: .19s; }

/* =========================================
   MOBILE MENU (overlay)
   ========================================= */
@keyframes nav-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--hh);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--hh));
        height: calc(100dvh - var(--hh));
        z-index: 99;
        background: rgba(10, 15, 22, 0.88);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 52px 40px 60px;
        gap: 0;
        counter-reset: nav-counter;
        overflow-y: auto;
    }
    .nav.open { display: flex; }
    .nav-link {
        font-family: 'Spectral', serif;
        font-size: clamp(2rem, 8.5vw, 2.6rem);
        font-weight: 300;
        padding: 20px 0;
        color: rgba(232, 228, 220, 0.30);
        border-bottom: 1px solid rgba(232,228,220,0.06);
        width: 100%;
        letter-spacing: -.01em;
        display: flex;
        align-items: center;
        gap: 18px;
        transition: color .3s var(--ease-out), padding-left .3s var(--ease-out);
    }
    .nav-link::before {
        counter-increment: nav-counter;
        content: counter(nav-counter, decimal-leading-zero);
        font-family: 'Inter', sans-serif;
        font-size: .58rem;
        font-weight: 400;
        letter-spacing: 2px;
        color: rgba(180, 137, 28, 0.45);
        flex-shrink: 0;
        width: 22px;
        text-align: right;
        transition: color .3s;
    }
    .nav-link::after { display: none; }
    .nav-link:hover { color: var(--t-light); padding-left: 6px; }
    .nav-link:hover::before { color: var(--gold); }
    .nav-link.active { color: var(--gold-lt); }
    .nav-link.active::before { color: var(--gold); }
    .header.over-light .nav-link { color: rgba(232, 228, 220, 0.30); }
    .header.over-light .nav-link:hover { color: var(--t-light); }
    .header.over-light .nav-link.active { color: var(--gold-lt); }

    /* Animação escalonada ao abrir */
    .nav.open .nav-link { animation: nav-in .5s var(--ease-out) both; }
    .nav.open .nav-link:nth-child(1) { animation-delay: .04s; }
    .nav.open .nav-link:nth-child(2) { animation-delay: .10s; }
    .nav.open .nav-link:nth-child(3) { animation-delay: .16s; }
    .nav.open .nav-link:nth-child(4) { animation-delay: .22s; }
    .nav.open .nav-link:nth-child(5) { animation-delay: .28s; }

    .nav-toggle { display: flex; }
    .hd-cta span { display: none; }
    .hd-cta { padding: 9px 14px; font-size: .7rem; }
    .hd-wrap { padding: 0 24px; }
}

/* =========================================
   RESPONSIVIDADE GERAL
   ========================================= */
@media (max-width: 1100px) {
    .areas-wrap { grid-template-columns: 240px 1fr; gap: 0 48px; }
    .sobre-body { grid-template-columns: 1fr 260px; gap: 48px; }
    .membro { grid-template-columns: 340px 1fr; }
    .membro-info { padding: 48px; }
}

@media (max-width: 900px) {
    .faq-wrap {
        grid-template-columns: 1fr;
    }
    .faq-intro { position: static; margin-bottom: 40px; }

    .areas-wrap {
        grid-template-columns: 1fr;
    }
    .areas-wrap .sec-intro {
        position: static;
        margin-bottom: 48px;
    }
    .area-body-inner { padding-left: 56px; }
    .area-head { grid-template-columns: 52px 1fr 20px; }

    .sobre-body { grid-template-columns: 1fr; }
    .sobre-nums {
        border-left: none;
        border-top: 1px solid var(--rule-l);
        padding: 40px 0 0;
        flex-direction: row;
        gap: 0;
    }
    .s-num {
        flex: 1;
        padding: 0 24px;
        border-bottom: none;
        border-right: 1px solid var(--rule-l);
    }
    .s-num:first-child { padding-left: 0; }
    .s-num:last-child  { border-right: none; }
    .pull-quote { padding: 0 0 72px; }

    .membro { grid-template-columns: 1fr; min-height: auto; }
    .membro-foto { height: 360px; }
    .membro--rev { direction: ltr; }
    .membro-info { padding: 40px; }
    .membro-bio  { max-width: 100%; }

    .contato { grid-template-columns: 1fr; min-height: auto; }
    .ct-dark  { padding: 80px 40px; }
    .ct-light { padding: 60px 40px; }
    .ct-map-wrap { flex: none; height: 280px; min-height: 280px; }
    .ct-map-wrap iframe { height: 280px; }

    .ft-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .areas { padding: 80px 0; }
    .sobre  { padding: 80px 0; }
    .equipe { padding: 80px 0; }
    .areas-wrap, .sobre-wrap, .equipe-wrap, .ft-wrap, .ft-bottom { padding: 0 24px; }
    .hero-wrap { padding: 60px 24px 120px; }
    .hero-scroll-cue { right: 24px; }
    .pull-quote blockquote { font-size: 1.4rem; }

    .sobre-nums { flex-direction: column; }
    .s-num { border-right: none; border-bottom: 1px solid var(--rule-l); padding: 24px 0; }
    .s-num:last-child { border-bottom: none; }

    .passos-sec { padding: 80px 24px; }
    .passos-grid { grid-template-columns: 1fr; gap: 24px; }
    .passos-titulo { margin-bottom: 40px; }

    .field-row { grid-template-columns: 1fr; }
    .ct-dark, .ct-light { padding: 60px 24px; }

    .ft-wrap { grid-template-columns: 1fr; }
    .ft-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    .wpp-float { bottom: 80px; right: 20px; width: 46px; height: 46px; }

    .membro-info { padding: 32px 24px; }
    .equipe-list { grid-template-columns: minmax(0, 360px); }

    /* Área accordion — alinha com o texto sem offset excessivo */
    .area-body-inner { padding-left: 24px; }
    .area-head { grid-template-columns: 40px 1fr 20px; gap: 16px; padding: 24px 0; }

    /* FAQ */
    .faq-wrap { padding: 0 24px; }
    .faq-sec  { padding: 72px 0; }

    /* Contato */
    .ct-heading { font-size: 2.4rem; }
    .ct-social-links { grid-template-columns: 1fr; gap: 12px; }
    .ct-social-btn { padding: 14px 16px; gap: 12px; }
    .ct-map-wrap { height: 220px; min-height: 220px; }
    .ct-map-wrap iframe { height: 220px; }

    /* Hero */
    .word-inner { font-size: clamp(3rem, 11vw, 6rem); }

    /* Passos — quando empilhados */
    .passo-card { padding: 32px 0; border-right: none; border-bottom: 1px solid var(--rule-l); }
    .passo-card:last-child { padding-left: 0; padding-right: 0; border-bottom: none; }
    .passo-card:not(:first-child):not(:last-child) { padding-left: 0; }

    /* Rodapé */
    .ft-brand img { max-height: 48px; width: auto; }
}

/* =========================================
   TABLET — 768px (gap entre 900 e 600)
   ========================================= */
@media (max-width: 768px) {
    /* Espaçamentos gerais */
    .areas, .sobre, .equipe { padding: 72px 0; }
    .areas-wrap, .sobre-wrap, .equipe-wrap { padding: 0 24px; }
    .hero-wrap { padding: 56px 24px 100px; }
    .hero-scroll-cue { right: 24px; bottom: 32px; }

    /* Accordion — indentação menor */
    .area-body-inner { padding-left: 40px; }
    .area-head { grid-template-columns: 52px 1fr 20px; gap: 16px; }

    /* Seção sobre */
    .pull-quote { padding: 0 0 56px; }

    /* Equipe */
    .membro-foto { height: 300px; }
    .membro-info { padding: 36px 28px; }

    /* Contato */
    .contato { min-height: auto; }
    .ct-dark  { padding: 72px 32px; }
    .ct-light { padding: 60px 32px; }

    /* FAQ */
    .faq-wrap { padding: 0 24px; }
    .faq-head { padding: 20px 0; min-height: 44px; }

    /* Passos */
    .passos-sec   { padding: 72px 24px; }
    .passos-grid  { grid-template-columns: 1fr; gap: 24px; }
    .passos-intro { margin-bottom: 40px; }

    /* Rodapé */
    .ft-wrap    { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
    .ft-brand   { grid-column: auto; }
    .ft-bottom  { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .ft-brand img { max-height: 52px; width: auto; }

    /* WhatsApp flutuante */
    .wpp-float { bottom: 84px; right: 24px; }
}

/* =========================================
   TOUCH — alvos de toque mínimos de 44 px
   ========================================= */
@media (hover: none) and (pointer: coarse) {
    .area-head  { min-height: 56px; }
    .faq-head   { min-height: 56px; }
    .nav-link   { min-height: 44px; }
    .ct-item    { padding: 16px 0; }
    .wpp-float  { width: 52px; height: 52px; }
}

/* =========================================
   OTIMIZACAO MOBILE / ROBUSTEZ (ajustes finais)
   ========================================= */
.ct-light { min-width: 0; }
.ct-reviews, .ct-ig { width: 100%; max-width: 100%; overflow: hidden; }
.ct-reviews [class*="elfsight-app-"],
.ct-ig [class*="elfsight-app-"] { max-width: 100%; }
.ct-map-wrap iframe { max-width: 100%; }
.ct-item-val { overflow-wrap: anywhere; }

@media (max-width: 768px) {
    .equipe-list { grid-template-columns: minmax(0, 420px); gap: 40px; }
    .membro-info { padding-left: 0; padding-right: 0; }
}
@media (max-width: 600px) {
    .membro-info { padding-left: 0; padding-right: 0; }
    .hero-title span { font-size: clamp(1.6rem, 7vw, 2.6rem) !important; }
    .ft-bottom { padding-bottom: 80px; }
}
