:root {
    --bg: #050505;
    --surface: #0e0d0b;
    --surface-soft: #18140e;
    --text: #f7f1e6;
    --text-strong: #ffffff;
    --muted: #c9c0ad;
    --gold: #d7aa45;
    --gold-dark: #b78120;
    --gold-soft: #f0d485;
    --line: rgba(215, 170, 69, .28);
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
    --radius: 22px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(215, 170, 69, .16), transparent 30rem),
        radial-gradient(circle at bottom right, rgba(215, 170, 69, .08), transparent 34rem),
        var(--bg);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--gold);
    color: #090909;
    padding: 10px 14px;
    z-index: 999;
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 5, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    width: min(430px, 58vw);
    text-decoration: none;
}

.brand img {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: .94rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.main-nav a {
    text-decoration: none;
    color: rgba(247, 241, 230, .78);
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--gold-soft);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gold-soft);
}

.section {
    padding: 92px 0;
}

.hero {
    padding-top: 76px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.02), rgba(215,170,69,.06)),
        var(--bg);
}

.hero-grid,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 56px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    font-size: .82rem;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
    margin: 0;
}

h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-strong);
}

h2 {
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    font-weight: 500;
    color: var(--text-strong);
}

h3 {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-strong);
}

.hero-subtitle {
    margin: 10px 0 18px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: clamp(.92rem, 2vw, 1.2rem);
}

.lawyers {
    display: grid;
    gap: 6px;
    margin: 0 0 26px;
    color: rgba(247, 241, 230, .88);
    font-size: .98rem;
}

.hero-description,
.section-heading p,
.about-text p,
.business p,
.contact-text p {
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-description {
    max-width: 680px;
    margin: 0 0 14px;
}

.hero-description.secondary {
    font-size: 1rem;
}

.actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #090909;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
    box-shadow: 0 14px 32px rgba(215, 170, 69, .22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffe39b, var(--gold));
}

.btn-secondary {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    color: var(--gold-soft);
    border-color: rgba(215, 170, 69, .48);
}

.hero-card,
.contact-card,
.business-box,
.area-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    min-height: 390px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "RG";
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 8rem;
    line-height: .8;
    color: rgba(215, 170, 69, .10);
    letter-spacing: -.1em;
}

.hero-logo-art {
    position: relative;
    margin: 0 auto 24px;
    width: min(220px, 72%);
}

.hero-logo-art img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.hero-card strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.2;
    position: relative;
    color: var(--text-strong);
}

.hero-card span {
    color: var(--muted);
    position: relative;
}

.card-line {
    width: 120px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 24px;
}

.about {
    background:
        radial-gradient(circle at center right, rgba(215, 170, 69, .08), transparent 26rem),
        #090909;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: #070707;
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
}

.photo-team::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .78) 100%),
        linear-gradient(135deg, rgba(215, 170, 69, .12), rgba(0, 0, 0, 0) 42%);
    pointer-events: none;
}

.photo-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    display: grid;
    gap: 5px;
    padding-top: 16px;
    border-top: 1px solid rgba(240, 212, 133, .45);
}

.photo-caption span {
    color: var(--text-strong);
    font-size: .92rem;
    letter-spacing: .04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}

.about-text p {
    margin: 18px 0 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.areas {
    background:
        radial-gradient(circle at top center, rgba(215, 170, 69, .07), transparent 28rem),
        #050505;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.area-card {
    padding: 26px;
    min-height: 250px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(215, 170, 69, .60);
}

.area-card h3 {
    margin-bottom: 14px;
}

.area-card p {
    color: var(--muted);
    margin: 0;
    font-size: .97rem;
}

.business {
    background:
        linear-gradient(135deg, #050505, #19150f);
    color: #fff;
}

.business-box {
    padding: 54px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 34px;
    background:
        linear-gradient(135deg, rgba(215, 170, 69, .12), rgba(255, 255, 255, .03));
    border-color: rgba(215, 170, 69, .28);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.business .eyebrow {
    color: var(--gold-soft);
}

.business p {
    color: rgba(247, 241, 230, .78);
    max-width: 780px;
}

.business .btn-primary {
    white-space: nowrap;
}

.contact {
    background:
        radial-gradient(circle at bottom left, rgba(215, 170, 69, .08), transparent 28rem),
        #080808;
}

.contact-grid {
    align-items: start;
}

.contact-card {
    padding: 34px;
    font-style: normal;
    display: grid;
    gap: 24px;
}

.contact-card div {
    display: grid;
    gap: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.contact-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-card span {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    font-weight: 700;
}

.contact-card strong,
.contact-card a {
    color: var(--text-strong);
    text-decoration: none;
    font-weight: 700;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1f8f4d;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(31, 143, 77, .28);
}

.site-footer {
    padding: 34px 0;
    background: #030303;
    color: #fff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    color: rgba(247, 241, 230, .62);
    margin: 4px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(247, 241, 230, .82);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-soft);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 76px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 12px;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .business-box {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        min-height: 260px;
    }

    .business-box {
        padding: 36px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 62px 0;
    }

    .brand {
        width: min(260px, 65vw);
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.4rem);
    }

    .hero-subtitle {
        letter-spacing: .08em;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .actions,
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-card,
    .contact-card,
    .business-box,
    .area-card {
        border-radius: 18px;
    }

    .hero-card {
        padding: 28px;
    }

    .hero-card strong {
        font-size: 1.55rem;
    }

    .photo-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .photo-caption span {
        font-size: .82rem;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
    }

    .site-footer {
        padding-bottom: 88px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* === Ajustes v3: contatos duplos e escolha de WhatsApp === */
.whatsapp-chooser {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.whatsapp-toggle {
    cursor: pointer;
    border: none;
}

.whatsapp-choice-panel {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    min-width: min(100%, 460px);
    border-radius: 24px;
    border: 1px solid rgba(215, 170, 69, .26);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)),
        rgba(10, 10, 10, .92);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .24);
}

.whatsapp-choice-panel[hidden] {
    display: none;
}

.whatsapp-choice-title {
    color: var(--text-soft);
    font-size: .96rem;
    line-height: 1.5;
}

.whatsapp-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-whatsapp-alt {
    color: #090909;
    background: linear-gradient(135deg, #f3d27a, var(--gold-dark));
    box-shadow: 0 14px 28px rgba(215, 170, 69, .2);
}

.btn-whatsapp-alt:hover {
    background: linear-gradient(135deg, #ffe8a6, var(--gold));
}

.btn-whatsapp-dark {
    color: var(--text);
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(215, 170, 69, .35);
}

.btn-whatsapp-dark:hover {
    color: var(--gold-soft);
    border-color: rgba(215, 170, 69, .6);
    background: rgba(255, 255, 255, .04);
}

.contact-card .contact-multi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-card .contact-multi a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
}

.contact-card .contact-multi a small {
    color: var(--text-soft);
    font-size: .88em;
    font-weight: 500;
}

.floating-whatsapp-stack {
    position: fixed;
    right: 22px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30;
}

.floating-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 198px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 18px 32px rgba(0, 0, 0, .3);
}

.floating-whatsapp.whatsapp-leandro {
    color: #090909;
    background: linear-gradient(135deg, #f3d27a, var(--gold-dark));
}

.floating-whatsapp.whatsapp-joao {
    color: #ffffff;
    background: linear-gradient(135deg, #17653b, #25d366);
}

.floating-whatsapp.whatsapp-leandro:hover,
.floating-whatsapp.whatsapp-joao:hover {
    transform: translateY(-2px);
}

@media (max-width: 860px) {
    .whatsapp-choice-buttons {
        flex-direction: column;
    }

    .whatsapp-chooser,
    .whatsapp-choice-panel,
    .contact-actions .btn-secondary {
        width: 100%;
    }

    .floating-whatsapp-stack {
        right: 14px;
        left: 14px;
        bottom: 14px;
    }

    .floating-whatsapp {
        width: 100%;
        min-width: 0;
    }

    .site-footer {
        padding-bottom: 150px;
    }
}


/* === Correção v4: botões flutuantes lado a lado, sem sobreposição === */
.floating-whatsapp-stack {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.floating-whatsapp-stack .floating-whatsapp {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: auto;
    min-width: 176px;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .floating-whatsapp-stack {
        flex-direction: column;
        align-items: stretch;
    }

    .floating-whatsapp-stack .floating-whatsapp {
        width: 100%;
        min-width: 0;
    }
}
