/* =========================================================
   Malacarne Assessoria Jurídica — Site
   Layout aplicado do PDF de referência
   ========================================================= */

:root {
    --bg: #0d0b08;
    --bg-soft: #131009;
    --bg-card: #171310;
    --line: rgba(200, 172, 122, 0.14);
    --line-strong: rgba(200, 172, 122, 0.32);
    --text: #ece1c9;
    --text-dim: #b4a988;
    --text-muted: #8b8168;
    --gold: #c9a227;
    --gold-soft: #d9b662;
    --green: #22c55e;
    --green-hover: #16a34a;
    --white: #ffffff;

    --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1180px;
    --gutter: clamp(20px, 4vw, 48px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* -------- Tipografia utilitária -------- */
.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.serif {
    font-family: var(--serif);
    font-weight: 500;
}

.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    letter-spacing: .04em;
    color: var(--text);
    font-variant: small-caps;
    text-transform: lowercase;
    margin-bottom: 2rem;
}

/* Small-caps look como no PDF */
.section-title::first-letter {
    text-transform: uppercase;
}

/* -------- Botões -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all .25s ease;
    line-height: 1;
}

.btn-whatsapp {
    background: var(--green);
    color: #06210f;
}

.btn-whatsapp:hover {
    background: var(--green-hover);
    color: #06210f;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, .25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
    padding: 14px 26px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: none;
    font-weight: 500;
    border-radius: 2px;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(4px);
}

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

.brand img {
    height: 90px;
    width: auto;
}

.header-contact {
    text-align: right;
    font-size: 13px;
    line-height: 1.85;
}

.header-tag {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.header-phone {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.header-email {
    color: var(--text-dim);
    font-size: 13px;
}

.header-email a:hover {
    color: var(--gold);
}

.mobile-toggle {
    display: none;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    padding-top: 56px;
    padding-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.hero-copy {
    padding: 32px 0 48px;
    max-width: 460px;
}

.hero-eyebrow {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 42px;
}

.hero-kicker {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 400;
    font-style: normal;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3rem);
    line-height: 1.02;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 28px;
}

.hero-lede {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 420px;
}

.hero-image {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #08111c;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    inset: 0;
}

/* Stats bar */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 0;
}

.stat {
    padding: 34px 28px 34px 0;
    border-right: 1px solid var(--line);
}

.stat:nth-child(2) {
    padding-left: 28px;
}

.stat:last-child {
    border-right: none;
    padding-left: 28px;
    padding-right: 0;
}

.stat-number {
    font-family: var(--serif);
    font-size: 1.65rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
    font-variant: small-caps;
}

.stat-desc {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    max-width: 260px;
}

/* =========================================================
   SEÇÕES GERAIS
========================================================= */
.section {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-note {
    color: var(--text-dim);
    font-size: 14px;
}

/* =========================================================
   ONDE ATUAMOS
========================================================= */
.two-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card {
    background: transparent;
    border: 1px solid var(--line);
    padding: 40px;
}

.card-num {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .22em;
    margin-bottom: 22px;
}

.card h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-variant: small-caps;
    letter-spacing: .04em;
    color: var(--text);
}

.card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--line-strong);
    margin: 22px 0;
    width: 60px;
}

.card ul {
    list-style: none;
}

.card ul li {
    color: var(--text-dim);
    font-size: 15px;
    padding: 6px 0;
}

/* =========================================================
   ETAPAS
========================================================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    padding-top: 22px;
    border-top: 1px solid var(--gold);
}

.step-num {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 500;
}

.step h4 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 14px;
}

.step p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   QUEM CONDUZ
========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: stretch;
}

.about-image {
    min-height: 560px;
    background: #08111c;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    inset: 0;
}

.about-copy {
    padding-top: 8px;
}

.about-copy .eyebrow {
    display: block;
    margin-bottom: 14px;
}

.about-copy h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text);
    font-variant: small-caps;
    letter-spacing: .04em;
    text-transform: lowercase;
    margin-bottom: 26px;
}

.about-copy h2::first-letter {
    text-transform: uppercase;
}

.about-copy p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 520px;
}

.about-divider {
    border: none;
    border-top: 1px solid var(--line-strong);
    width: 60px;
    margin: 28px 0 22px;
}

.formation {
    display: grid;
    gap: 10px;
}

.formation p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

/* =========================================================
   TESTEMUNHOS
========================================================= */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: transparent;
    border: 1px solid var(--line);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: .35em;
    margin-bottom: 18px;
}

.testimonial-text {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-divider {
    border: none;
    border-top: 1px solid var(--line-strong);
    width: 60px;
    margin: 16px 0 14px;
}

.testimonial-name {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.testimonial-source {
    color: var(--text-muted);
    font-size: 12.5px;
    font-style: italic;
}

/* =========================================================
   INSTAGRAM GRID
========================================================= */
.ig-header {
    margin-bottom: 32px;
}

.ig-header .eyebrow {
    display: block;
    margin-bottom: 10px;
}

.ig-header h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: .04em;
    color: var(--text);
}

.ig-header h2::first-letter {
    text-transform: uppercase;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.ig-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    display: block;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ig-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.ig-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

.ig-item:hover img {
    transform: scale(1.06);
}

.ig-note {
    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================================
   FAQ
========================================================= */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
}

.faq {
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}

.faq h4 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 12px;
}

.faq p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
}

/* =========================================================
   CONTATO / CTA
========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: start;
}

.contact-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.25;
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: .03em;
    color: var(--text);
    margin-bottom: 24px;
}

.contact-title::first-letter {
    text-transform: uppercase;
}

.contact-lede {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 520px;
}

.contact-list {
    margin-top: 34px;
    display: grid;
    gap: 8px;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

.contact-list a {
    color: var(--text-dim);
}

.contact-list a:hover {
    color: var(--gold);
}

.contact-address {
    max-width: 380px;
    margin-top: 8px;
}

.contact-form-card {
    border: 1px solid var(--line-strong);
    padding: 40px 36px;
    background: rgba(255, 255, 255, .015);
}

.contact-form-card h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.5rem;
    font-variant: small-caps;
    text-transform: lowercase;
    letter-spacing: .04em;
    color: var(--text);
    margin-bottom: 20px;
}

.contact-form-card h3::first-letter {
    text-transform: uppercase;
}

.contact-form-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: var(--bg-soft);
    padding: 64px 0 32px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.footer-about {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h5 {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.75;
    display: block;
    margin-bottom: 6px;
}

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

.footer-legal {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.7;
    max-width: 100%;
}

/* =========================================================
   WHATSAPP FLOATING
========================================================= */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(34, 197, 94, .35);
    transition: transform .2s ease;
}

.wa-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 960px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-image {
        min-height: 380px;
    }

    .about-image {
        min-height: 420px;
    }

    .two-cards,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

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

    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 24px 0;
    }

    .stat:nth-child(2),
    .stat:last-child {
        padding-left: 0;
    }

    .stat:last-child {
        border-bottom: none;
    }

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

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .header-contact {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 60px 0;
    }

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

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

    .card,
    .testimonial,
    .contact-form-card {
        padding: 26px;
    }

    .btn {
        padding: 16px 22px;
        font-size: 12px;
        width: 100%;
    }
}
