/* de Andrade Advogados Associados - modelo 2 */
:root {
    --navy: #000034;
    --navy-2: #0b1450;
    --navy-deep: #00001f;
    --gold: #c59e5b;
    --gold-2: #d9b97f;
    --gold-dark: #8a6a32;
    --gold-soft: #f4ecdd;
    --ink: #1b1f2e;
    --muted: #5f6577;
    --line: #e6e8ef;
    --bg: #f6f7fb;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 52, .28);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --head: "Montserrat", system-ui, sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
svg { flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.header.is-solid { box-shadow: 0 10px 30px -18px rgba(0, 0, 52, .35); }
.header .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: "Pinyon Script", cursive; font-weight: 400; font-size: 30px; color: var(--navy); }
.brand-text small { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: stretch; }
.nav a { display: flex; align-items: center; padding: 0 20px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--navy); transition: background .25s, color .25s; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.phone { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--navy); }
.phone .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; transition: background .25s, color .25s; }
.phone:hover .ic { background: var(--gold); color: var(--navy); }
.phone svg { width: 18px; height: 18px; }
.menu-btn { display: none; border: 0; background: none; width: 44px; height: 44px; align-self: center; cursor: pointer; color: var(--navy); padding: 0; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 14.5px; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 12px 28px -12px rgba(197, 158, 91, .8); }
.btn-line { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-line:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 12px 28px -12px rgba(0, 0, 52, .6); }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--gold); }
.btn.is-ok { background: #2f7a4b; color: #fff; }
.btn.is-fail { background: #b3261e; color: #fff; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

/* ---------- Hero (home) and page hero ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.kicker.dark { color: var(--gold-dark); }

.hero, .page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-bg { position: absolute; inset: -12% 0 -12% 0; background: url("../img/hero-justica.jpg") no-repeat right -40px center / auto 115%; will-change: transform; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 30%, rgba(0, 0, 52, .82) 55%, rgba(0, 0, 52, .35) 100%); }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 2; }
.hero { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; align-items: center; padding: 90px 0 170px; }
.hero-inner { max-width: 660px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 800; margin: 20px 0 22px; }
.hero h1 span, .page-hero h1 span { color: var(--gold-2); }
.hero p { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.scroll-hint { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 2; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -8px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

.page-hero { padding: 96px 0 100px; }
.page-hero .hero-bg { background-size: auto 140%; background-position: right -80px center; opacity: .75; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-top: 16px; max-width: 820px; }
.page-hero p { margin-top: 16px; max-width: 620px; color: rgba(255, 255, 255, .76); font-size: 17.5px; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .55); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- Quick contact ---------- */
.quick { position: relative; z-index: 5; margin-top: -110px; }
.quick-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 34px 40px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.quick-card h2 { font-size: 24px; color: var(--navy); }
.quick-card h2 + p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.quick-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.quick-form input { font: inherit; font-size: 15px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.quick-form input:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(197, 158, 91, .15); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg); }
.head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--navy); margin-top: 14px; font-weight: 800; }
.head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.area .ic { width: 56px; height: 56px; border-radius: 12px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; transition: background .3s, color .3s; }
.area:hover .ic { background: var(--gold); color: var(--navy); }
.area .ic svg { width: 26px; height: 26px; }
.area h3 { font-size: 19px; color: var(--navy); margin-top: 6px; }
.area p { color: var(--muted); font-size: 15px; }
.more { margin-top: auto; padding-top: 6px; font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }
.more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.area:hover .more svg { transform: translateX(4px); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: center; padding: 10px 12px; }
.value .ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--gold); color: var(--navy); display: grid; place-items: center; transition: background .3s, color .3s; }
.value:hover .ic { background: var(--navy); color: var(--gold-2); }
.value .ic svg { width: 30px; height: 30px; }
.value h3 { font-size: 18px; color: var(--navy); }
.value p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-photo { position: relative; }
.split-photo img { border-radius: 16px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.split-photo .badge { position: absolute; right: -24px; bottom: 32px; background: var(--navy); color: var(--white); border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow); }
.split-photo .badge b { display: block; font-family: var(--head); font-size: 34px; color: var(--gold-2); line-height: 1; }
.split-photo .badge span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.split h2 { font-size: clamp(30px, 3.4vw, 40px); color: var(--navy); font-weight: 800; margin-top: 14px; }
.split p { margin-top: 18px; color: var(--muted); font-size: 16.5px; }
.checks { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; background: var(--navy); border-radius: 16px; padding: 56px 32px; color: var(--white); margin-top: 90px; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(42px, 5.4vw, 64px); color: var(--gold-2); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .75); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 40px 32px 34px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -22px; left: 32px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--head); font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(197, 158, 91, .9); }
.step h3 { font-size: 20px; color: var(--navy); }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Services (area pages) */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service { display: flex; flex-direction: column; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service .num { font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.service h3 { font-size: 22px; color: var(--navy); margin-top: 8px; }
.service blockquote { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--gold); font-style: italic; font-size: 16px; color: var(--gold-dark); line-height: 1.5; }
.service p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }
.service ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.service li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--gold); }
.service .wa { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--navy); align-self: flex-start; }
.service .wa svg { width: 18px; height: 18px; color: #25a35a; }
.service .wa:hover { color: var(--gold-dark); }
.other-areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* CTA band */
.cta { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(197, 158, 91, .3); box-shadow: 0 0 0 50px rgba(197, 158, 91, .05), 0 0 0 110px rgba(197, 158, 91, .03); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta h2 span { color: var(--gold-2); }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .72); }

/* Contact page */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--navy); padding: 0; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(197, 158, 91, .15); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s; }
.chip span:hover { border-color: var(--gold); color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(197, 158, 91, .3); }
.counter { font-size: 12.5px; color: var(--muted); text-align: right; }
.counter.warn { color: #a8741c; }
.counter.bad { color: #b3261e; }
.input-error { border-color: #d0453c !important; background: #fdf3f2 !important; }
.chips.input-error span { border-color: #d0453c; }
.form-error { display: none; color: #b3261e; font-size: 13px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 12.5px; }
.info { display: grid; gap: 16px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-size: 19px; color: var(--navy); }
.info-card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.info-card .btn { margin-top: 18px; width: 100%; }
.info-card.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.info-card.dark h3 { color: var(--white); }
.hours { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.hours strong { color: var(--gold-2); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .62); padding: 72px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer h4 { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold-2); }
.footer .brand-text b { color: var(--white); }
.footer .brand-text small { color: rgba(255, 255, 255, .55); }
.footer-note { max-width: 320px; margin-top: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Scroll effects (modelo 1: suave) ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-hint { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .phone { display: none; }
    .quick-card { grid-template-columns: 1fr; gap: 18px; }
    .areas { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .menu-btn { display: block; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); box-shadow: 0 16px 30px -12px rgba(0, 0, 52, .25); display: none; }
    .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
    .menu-open .nav { display: flex; }
    .hero { padding: 70px 0 160px; min-height: 0; }
    .hero-bg { background-position: right -260px center; }
    .hero::before, .page-hero::before { background: linear-gradient(90deg, rgba(0, 0, 52, .96) 40%, rgba(0, 0, 52, .7)); }
    .scroll-hint { display: none; }
    .steps { grid-template-columns: 1fr; row-gap: 44px; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split-photo { max-width: 440px; }
    .split-photo .badge { right: -8px; }
    .stats { grid-template-columns: 1fr; gap: 36px; }
    .services { grid-template-columns: 1fr; }
    .section { padding: 84px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 20px; }
    .header .wrap { min-height: 72px; }
    .brand-mark { display: none; }
    .quick-card { padding: 26px 22px; }
    .quick-form { grid-template-columns: 1fr; }
    .areas, .values { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .service { padding: 28px 24px; }
    .page-hero { padding: 70px 0 76px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .footer-grid { grid-template-columns: 1fr; }
}
