/* ============================================================
   ADVOCACIA ALEF BORGES
   DARK LUXURY SYSTEM
============================================================ */


/* ============================================================
   VARIABLES
============================================================ */

:root {

    --bg: #0c1117;
    --bg-soft: #101720;
    --bg-card: #111923;
    --bg-deep: #070b10;

    --gold: #d9b87f;
    --gold-light: #ecd29f;
    --gold-dark: #a98750;

    --gold-glow:
        0 0 14px rgba(217, 184, 127, .22),
        0 0 34px rgba(217, 184, 127, .10);

    --text: #f0f0f0;
    --white: #ffffff;

    --muted: #a7adb4;
    --muted-2: #737b84;

    --line: rgba(217, 184, 127, .35);
    --line-soft: rgba(255, 255, 255, .09);

    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;

    --container: 1180px;

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --display:
        "Bodoni Moda",
        "Cormorant Garamond",
        Georgia,
        serif;

    --sans:
        "DM Sans",
        Arial,
        sans-serif;

    --header-height: 86px;

    --ease:
        cubic-bezier(.22, .61, .36, 1);

}


/* ============================================================
   LIGHT THEME
============================================================ */

[data-theme="light"] {

    --bg: #f4f0e8;
    --bg-soft: #ebe5da;
    --bg-card: #f9f6f0;
    --bg-deep: #ded6c8;

    --gold: #9b7439;
    --gold-light: #b38a4b;
    --gold-dark: #765421;

    --text: #17191d;
    --white: #101214;

    --muted: #5f625f;
    --muted-2: #7d7c77;

    --line: rgba(120, 85, 30, .38);
    --line-soft: rgba(20, 20, 20, .12);

}


/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-width: 320px;

    background: var(--bg);
    color: var(--text);

    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;

    transition:
        background .45s ease,
        color .45s ease;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

::selection {
    background: var(--gold);
    color: var(--bg);
}


/* ============================================================
   CONTAINER
============================================================ */

.container {
    width: 100%;
    padding-left: 46px;
    padding-right: 46px;
}


/* ============================================================
   TYPOGRAPHY
============================================================ */

h1,
h2,
h3,
blockquote {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(3.4rem, 6vw, 6.5rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4.6rem);
}

h3 {
    font-size: 1.65rem;
}

p {
    margin: 0;
}

.eyebrow {
    margin-bottom: 20px;

    color: var(--gold);

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .22em;
    line-height: 1.4;

    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 54px;
}

.section-heading h2 {
    margin-bottom: 22px;
}

.section-heading>p:last-child {
    max-width: 650px;
    color: var(--muted);
}

.section-heading-light>p:last-child {
    color: var(--muted);
}


/* ============================================================
   BUTTONS
============================================================ */

.button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 25px;

    border: 1px solid var(--gold);
    border-radius: 2px;

    background: rgba(217, 184, 127, .06);
    color: var(--text);

    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .18em;
    text-transform: uppercase;

    overflow: hidden;

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s var(--ease);
}

.button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(110deg,
            transparent 20%,
            rgba(255, 255, 255, .28) 48%,
            transparent 70%);

    transform: translateX(-130%);

    transition:
        transform .7s var(--ease);
}

.button:hover::before {
    transform: translateX(130%);
}

.button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0c1117;

    box-shadow: var(--gold-glow);

    transform: translateY(-2px);
}

.button-gold {
    animation: buttonGlow 3.8s ease-in-out infinite;
}

.button-header {
    min-height: 42px;
    padding-inline: 20px;
}

@keyframes buttonGlow {

    0%,
    100% {
        box-shadow:
            0 0 0 rgba(217, 184, 127, 0);
    }

    50% {
        box-shadow:
            0 0 16px rgba(217, 184, 127, .16),
            0 0 32px rgba(217, 184, 127, .06);
    }

}


/* ============================================================
   TEXT LINKS
============================================================ */

.text-link,
.card-link,
.contact-instagram,
.footer-contact-link {
    transition:
        color .3s ease,
        opacity .3s ease,
        transform .3s ease;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--gold);

    font-size: .76rem;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.text-link span {
    transition: transform .3s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.text-link:hover {
    color: var(--gold-light);
}

.text-link-light {
    color: var(--text);
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height);

    background:
        linear-gradient(180deg,
            rgba(7, 11, 16, .95),
            rgba(7, 11, 16, .76));

    border-bottom: 1px solid rgba(217, 184, 127, .12);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        background .4s ease,
        border-color .4s ease;
}

[data-theme="light"] .site-header {
    background:
        rgba(244, 240, 232, .93);
    border-bottom-color: rgba(120, 85, 30, .18);
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* ============================================================
   LOGO
============================================================ */

.logo {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    border: 1px solid var(--gold);

    background: var(--bg-deep);

    box-shadow:
        0 0 0 5px rgba(217, 184, 127, .04),
        0 0 24px rgba(217, 184, 127, .10);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.logo:hover {
    transform: scale(1.04);

    box-shadow:
        0 0 0 6px rgba(217, 184, 127, .06),
        0 0 30px rgba(217, 184, 127, .22);
}

.logo img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================================
   NAV
============================================================ */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 27px;

    margin-left: auto;
}

.main-nav a {
    position: relative;

    color: var(--muted);

    font-size: .69rem;
    font-weight: 600;

    letter-spacing: .13em;
    text-transform: uppercase;

    transition: color .3s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -9px;

    width: 100%;
    height: 1px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .3s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}


/* ============================================================
   HEADER ACTIONS
============================================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: transparent;
    color: var(--gold);

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.theme-toggle:hover {
    background: var(--gold);
    color: var(--bg);

    box-shadow: var(--gold-glow);

    transform: rotate(12deg);
}

.theme-icon {
    font-size: 1rem;
    line-height: 1;
}


/* ============================================================
   MOBILE MENU
============================================================ */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 1px solid var(--line);
    border-radius: 2px;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 1px;

    margin: 5px 0;

    background: var(--gold);

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ============================================================
   HERO
============================================================ */

.hero {
    position: relative;

    min-height: 100svh;

    display: flex;
    align-items: center;

    padding:
        calc(var(--header-height) + 70px) 0 80px;

    background:
        linear-gradient(90deg,
            rgba(12, 17, 23, .98) 0%,
            rgba(12, 17, 23, .94) 32%,
            rgba(12, 17, 23, .76) 65%,
            rgba(12, 17, 23, .88) 100%),
        url("../img/escritorio.jpg") center / cover no-repeat;

    overflow: hidden;
}

[data-theme="light"] .hero {
    background:
        linear-gradient(90deg,
            rgba(244, 240, 232, .98) 0%,
            rgba(244, 240, 232, .90) 38%,
            rgba(244, 240, 232, .70) 72%,
            rgba(244, 240, 232, .84) 100%),
        url("../img/escritorio.jpg") center / cover no-repeat;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 80% 50%,
            rgba(217, 184, 127, .10),
            transparent 38%);

    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;

    width: 100%;

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr) minmax(320px, .72fr);

    align-items: center;

    gap: 80px;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    max-width: 800px;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero-lead {
    max-width: 650px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 24px;

    margin-top: 38px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 42px;

    color: var(--muted-2);

    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-image-frame {
    position: relative;

    width: min(100%, 410px);

    border: 1px solid rgba(217, 184, 127, .35);

    padding: 10px;

    background:
        rgba(12, 17, 23, .50);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .42);
}

.hero-image-frame::before {
    content: "";

    position: absolute;

    inset: -1px;

    border: 1px solid rgba(217, 184, 127, .14);

    transform: translate(14px, 14px);

    z-index: -1;
}

.hero-image-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;

    filter: saturate(.72) contrast(1.05);
}


/* ============================================================
   SECTION LINES
============================================================ */

.section,
.statement,
.hero {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}


.section-line,
.statement-line,
.hero-line {
    position: absolute;

    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(217, 184, 127, .08) 8%,
            rgba(217, 184, 127, .72) 50%,
            rgba(217, 184, 127, .08) 92%,
            transparent 100%);

    transform: scaleX(0);

    transition:
        transform 1.4s var(--ease);

    pointer-events: none;
}

.section-line {
    top: 0;
}

.statement-line {
    top: 0;
}

.hero-line {
    transform: scaleX(1);
}

.hero-line-top {
    top: var(--header-height);
    opacity: .35;
}

.hero-line-bottom {
    bottom: 0;
    opacity: .55;
}

.section.is-visible .section-line,
.statement.is-visible .statement-line {
    transform: scaleX(1);
}


/* ============================================================
   GENERIC SECTIONS
============================================================ */

.section {
    padding: 120px 0;
}

.section-dark,
.section-navy {
    background: var(--bg);
    color: var(--text);
}

.section-light,
.section-paper {
    background: var(--bg);
    color: var(--text);
}


/* ============================================================
   POSITIONING
============================================================ */

.two-column {
    display: grid;
    grid-template-columns: .9fr 1fr;

    gap: 100px;

    align-items: start;
}

.two-column h2 {
    max-width: 620px;
}

.section-copy {
    max-width: 650px;
}

.section-copy p+p {
    margin-top: 25px;
}

.section-copy p {
    color: var(--muted);
}


/* ============================================================
   PROCESS
============================================================ */

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.process-card {
    min-height: 290px;

    padding: 30px 27px;

    background: var(--bg-card);

    border: 1px solid var(--gold);

    border-radius: 5px;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .02);

    transition:
        transform .4s var(--ease),
        box-shadow .4s ease,
        background .4s ease;
}

.process-card:hover {
    transform: translateY(-7px);

    box-shadow:
        var(--gold-glow),
        inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.process-card>span {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 38px;

    border-radius: 50%;

    background: var(--gold);
    color: #0c1117;

    font-size: .75rem;
    font-weight: 800;

    letter-spacing: .08em;
}

.process-card h3 {
    margin-bottom: 15px;

    font-size: 1.55rem;
}

.process-card p {
    color: var(--muted);

    font-size: .92rem;
    line-height: 1.75;
}


/* ============================================================
   AREAS
============================================================ */

.areas-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.area-card {
    position: relative;

    min-height: 280px;

    padding: 30px;

    background: var(--bg-card);

    border: 1px solid var(--line-soft);

    transition:
        transform .4s var(--ease),
        border-color .4s ease,
        box-shadow .4s ease;
}

.area-card:hover {
    transform: translateY(-6px);

    border-color: var(--gold);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, .22),
        0 0 24px rgba(217, 184, 127, .07);
}

.area-card-featured {
    border-color: var(--gold);
}

.area-number {
    display: inline-block;

    margin-bottom: 50px;

    color: var(--gold);

    font-family: var(--serif);
    font-size: 1.05rem;
}

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

.area-card p {
    color: var(--muted);

    font-size: .9rem;
    line-height: 1.75;
}

.area-card .card-link {
    margin-top: 25px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--gold);

    font-size: .68rem;
    font-weight: 700;

    letter-spacing: .13em;
    text-transform: uppercase;
}

.area-card .card-link span {
    transition: transform .3s ease;
}

.area-card:hover .card-link span {
    transform: translateX(5px);
}


/* ============================================================
   ABOUT
============================================================ */

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, .8fr) minmax(0, 1fr);

    align-items: center;

    gap: 90px;
}

.about-media {
    max-width: 460px;
}

.about-image-frame {
    position: relative;

    padding: 10px;

    border: 1px solid var(--gold);
}

.about-image-frame::after {
    content: "";

    position: absolute;

    inset: 14px -14px -14px 14px;

    border: 1px solid rgba(217, 184, 127, .22);

    z-index: -1;
}

.about-image-frame img {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    filter:
        grayscale(.12) saturate(.75) contrast(1.05);
}

.about-content h2 {
    max-width: 720px;

    margin-bottom: 28px;
}

.about-content>p {
    max-width: 690px;

    color: var(--muted);
}

.about-content>p+p {
    margin-top: 20px;
}

.about-signature {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 35px;

    color: var(--gold);

    font-family: var(--serif);
    font-size: 1.35rem;
}

.about-signature small {
    color: var(--muted-2);

    font-family: var(--sans);
    font-size: .66rem;

    letter-spacing: .15em;
    text-transform: uppercase;
}


/* ============================================================
   STATEMENT
============================================================ */

.statement {
    padding: 145px 0;

    background:
        linear-gradient(180deg,
            var(--bg-deep),
            var(--bg));
}

.statement-inner {
    max-width: 900px;
    text-align: center;
}

.statement blockquote {
    color: var(--text);

    font-family: var(--display);
    font-size: clamp(2.7rem, 5vw, 5rem);

    line-height: 1.06;
}


/* ============================================================
   ARTICLES
============================================================ */

.split-heading {
    display: grid;

    grid-template-columns: 1fr .65fr;

    gap: 80px;

    align-items: end;

    max-width: none;
}

.split-heading>p {
    color: var(--muted);

    line-height: 1.8;
}

.articles-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.article-card {
    min-height: 390px;

    display: flex;
    flex-direction: column;

    padding: 34px;

    background: var(--bg-card);

    border: 1px solid var(--line-soft);

    transition:
        transform .4s var(--ease),
        border-color .4s ease,
        box-shadow .4s ease;
}

.article-card:hover {
    transform: translateY(-7px);

    border-color: var(--gold);

    box-shadow:
        var(--gold-glow);
}

.article-category {
    margin-bottom: 60px;

    color: var(--gold);

    font-size: .66rem;
    font-weight: 700;

    letter-spacing: .16em;
    text-transform: uppercase;
}

.article-card h3 {
    margin-bottom: 18px;

    font-size: 1.85rem;
}

.article-card p {
    color: var(--muted);

    font-size: .91rem;
    line-height: 1.75;
}

.article-card .text-link {
    margin-top: auto;
}


/* ============================================================
   CONTACT
============================================================ */

.contact-grid {
    display: grid;

    grid-template-columns: 1fr .75fr;

    gap: 100px;

    align-items: center;
}

.contact-grid h2 {
    max-width: 600px;
}

.contact-grid>div:first-child>p:last-child {
    max-width: 580px;

    margin-top: 25px;

    color: var(--muted);
}

.contact-card {
    display: flex;
    flex-direction: column;

    padding: 42px;

    background: var(--bg-card);

    border: 1px solid var(--gold);

    box-shadow:
        var(--gold-glow);
}

.contact-label {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: .67rem;
    font-weight: 700;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.contact-card strong {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
}

.contact-card>span:not(.contact-label) {
    margin-top: 4px;

    color: var(--muted);
}

.contact-card .button {
    margin-top: 30px;
}

.contact-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 22px;

    color: var(--muted);

    font-size: .75rem;
    font-weight: 600;

    letter-spacing: .08em;
}

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

.contact-instagram svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;
}

.contact-instagram .fill {
    fill: currentColor;
    stroke: none;
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    width: 100%;
    position: relative;
    background: var(--bg-deep);
    color: var(--text);
    border-top: 1px solid var(--line);
}

/* Container do rodapé */
.site-footer .container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Área principal */
.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 70px;
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Marca */
.footer-brand {
    max-width: 330px;
}

.footer-logo {
    width: 68px;
    height: 68px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--bg-deep);
    margin-bottom: 22px;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
}

/* Colunas */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h3 {
    margin: 0 0 15px;
    color: var(--gold);
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-column>a {
    color: var(--muted);
    font-size: .82rem;
    text-decoration: none;
    transition:
        color .3s ease,
        transform .3s ease;
}

.footer-column>a:hover {
    color: var(--gold);
    transform: translateX(4px);
}

/* Links de contato */
.footer-contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.footer-contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact-link svg rect,
.footer-contact-link svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.footer-contact-link svg .fill {
    fill: currentColor;
    stroke: none;
}

/* Linha inferior */
.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(217, 184, 127, .14);
    box-sizing: border-box;
    color: var(--muted-2);
    font-size: .68rem;
    letter-spacing: .04em;
}

.footer-credit {
    margin: 0;
    color: var(--muted-2);
    font-size: .68rem;
    letter-spacing: .04em;
}

.footer-credit a {
    color: var(--gold);
    text-decoration: none;
    transition: color .3s ease;
}

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

/* ============================================================
   FOOTER RESPONSIVO
============================================================ */

@media (max-width: 1050px) {

    .footer-main {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 45px;
    }

}

@media (max-width: 800px) {

    .site-footer .container {
        width: calc(100% - 34px);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px 35px;
        padding-top: 60px;
        padding-bottom: 55px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-bottom {
        min-height: 60px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
    }

}

@media (max-width: 560px) {

    .site-footer .container {
        width: calc(100% - 28px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 50px;
        padding-bottom: 45px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        font-size: .64rem;
    }

}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.floating-whatsapp {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1100;

    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: #25d366;
    color: #fff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .35),
        0 0 0 0 rgba(37, 211, 102, .45);

    text-decoration: none;

    animation: whatsappPulse 2.5s infinite;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.floating-whatsapp svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
    transform: translateY(-6px);
}

.floating-whatsapp:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, .4),
        0 0 0 8px rgba(37, 211, 102, .12);
}

@keyframes whatsappPulse {
    0% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, .35),
            0 0 0 0 rgba(37, 211, 102, .45);
    }

    70% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, .35),
            0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, .35),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 560px) {
  
    @media (max-width: 560px) {
    .floating-whatsapp {
        width: 56px;
        height: 56px;
        right: 18px;
        bottom: 18px;
    }

    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
        transform: translateY(-6px);
    }
}
}
 
/* ============================================================
   BACK TO TOP
============================================================ */

.back-to-top {
    position: fixed;

    z-index: 1099;

    right: 35px;
    bottom: 103px;

    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--gold);
    border-radius: 50%;

    background:
        rgba(12, 17, 23, .88);

    color: var(--gold);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .35s ease,
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: #0c1117;

    box-shadow: var(--gold-glow);
}

.back-to-top svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   REVEAL
============================================================ */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .8s var(--ease),
        transform .8s var(--ease);
}

.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1050px) {

    .main-nav {
        gap: 17px;
    }

    .main-nav a {
        font-size: .62rem;
    }

    .header-actions .button-header {
        display: none;
    }

    .hero-grid {
        gap: 45px;
    }

    .two-column,
    .contact-grid {
        gap: 60px;
    }

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

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

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 800px) {

    :root {
        --header-height: 76px;
    }

    .container {
        width: min(calc(100% - 34px),
                var(--container));
    }

    .site-header {
        height: var(--header-height);
    }

    .header-inner {
        gap: 15px;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .menu-toggle {
        display: block;
        margin-left: 0;
        order: 3;
        flex: 0 0 auto;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        position: fixed;

        z-index: -1;

        top: var(--header-height);
        left: 0;
        right: 0;

        height:
            calc(100svh - var(--header-height));

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 0;

        padding: 35px 24px;

        background:
            rgba(7, 11, 16, .98);

        border-top: 1px solid rgba(217, 184, 127, .15);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-12px);

        transition:
            opacity .35s ease,
            visibility .35s ease,
            transform .35s ease;
    }

    [data-theme="light"] .main-nav {
        background:
            rgba(244, 240, 232, .98);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        width: 100%;

        padding: 17px 0;

        border-bottom: 1px solid var(--line-soft);

        font-size: .72rem;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: auto;

        padding:
            calc(var(--header-height) + 80px) 0 90px;
    }

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

    .hero-media {
        display: none;
    }

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .hero-lead {
        font-size: .98rem;
    }

    .hero-meta {
        flex-wrap: wrap;
    }

    .section {
        padding: 90px 0;
    }

    .two-column,
    .about-grid,
    .contact-grid,
    .split-heading {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-media {
        max-width: 420px;
    }

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

    .area-card {
        min-height: auto;
    }

    .article-card {
        min-height: 340px;
    }

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

        gap: 50px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 560px) {

    .container {
        width: min(calc(100% - 28px),
                var(--container));
    }

    h2 {
        font-size: 2.65rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-actions .text-link {
        justify-content: center;
    }

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

    .process-card {
        min-height: auto;
    }

    .process-card>span {
        margin-bottom: 28px;
    }

    .contact-card {
        padding: 30px 24px;
    }

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

        gap: 38px;
    }

    .footer-brand {
        grid-column: auto;
    }

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

        padding:
            22px 0 90px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;

        width: 58px;
        height: 58px;
    }

    .back-to-top {
        right: 24px;
        bottom: 88px;

        width: 40px;
        height: 40px;
    }

}

/* ============================================================
   PADRÃO DAS PÁGINAS DE CONTEÚDO
============================================================ */

.article-page {
    background: var(--bg);
    color: var(--text);
}

/* Hero da matéria */
.article-page .article-hero {
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding-top: 150px;
    padding-bottom: 80px;

    background:
        linear-gradient(90deg,
            rgba(12, 17, 23, .98) 0%,
            rgba(12, 17, 23, .90) 55%,
            rgba(12, 17, 23, .78) 100%),
        url("../img/escritorio.jpg") center / cover no-repeat;

    border-bottom: 1px solid var(--gold);
}

.article-page .article-hero-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.article-page .breadcrumb {
    margin-bottom: 25px;
    color: var(--gold);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.article-page .article-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 1.02;
}

.article-page .article-lead {
    max-width: 720px;
    margin-top: 25px;
    color: #c5c8cb;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-page .article-meta {
    margin-top: 25px;
    color: var(--gold);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* CORPO */

.article-page .article-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 40px 120px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 80px;
    align-items: start;
}

.article-page .article-content {
    width: 100%;
    max-width: 780px;
}

.article-page .article-content h2 {
    margin-top: 55px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--display);
    font-size: 2.8rem;
    line-height: 1.1;
}

.article-page .article-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--white);
    font-family: var(--serif);
}

.article-page .article-content p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
}

.article-page .article-content ul,
.article-page .article-content ol {
    margin: 25px 0;
    padding-left: 25px;
    color: var(--muted);
}

.article-page .article-content li {
    margin-bottom: 10px;
}


/* DESTAQUES */

.article-page .article-highlight {
    margin: 35px 0;
    padding: 28px 30px;
    background: rgba(217, 184, 127, .06);
    border-left: 2px solid var(--gold);
    color: var(--text);
}

.article-page .article-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.5;
}


/* SIDEBAR */

.article-page .article-sidebar {
    position: sticky;
    top: 110px;

    padding: 28px;

    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 5px;
}

.article-page .article-sidebar h3 {
    margin-bottom: 20px;
    color: var(--gold);
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.article-page .article-sidebar a {
    display: block;
    padding: 12px 0;

    color: var(--muted);
    border-bottom: 1px solid var(--line-soft);

    transition: color .3s ease;
}

.article-page .article-sidebar a:hover {
    color: var(--gold);
}


/* CTA */

.article-page .article-cta {
    margin-top: 55px;
    padding: 35px;

    background: var(--bg-card);
    border: 1px solid var(--gold);
}

.article-page .article-cta h3 {
    margin-top: 0;
}

.article-page .article-disclaimer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--line-soft);

    color: var(--muted-2);
    font-size: .75rem;
    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 800px) {

    .article-page .article-hero {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 65px;
    }

    .article-page .article-hero-inner {
        padding-left: 22px;
        padding-right: 22px;
    }

    .article-page .article-hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .article-page .article-layout {
        display: block;
        padding: 70px 22px 90px;
    }

    .article-page .article-content {
        max-width: none;
    }

    .article-page .article-sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 560px) {

    .article-page .article-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-page .article-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-page .article-content h2 {
        font-size: 2.3rem;
    }

    .article-page .article-highlight,
    .article-page .article-cta,
    .article-page .article-sidebar {
        padding: 24px;
    }
}

/* ============================================================
   THEME CONSISTENCY + MOBILE HEADER FIXES
============================================================ */

/* Cards use the active theme instead of a permanently dark gradient. */
[data-theme="light"] .process-card,
[data-theme="light"] .area-card,
[data-theme="light"] .article-card,
[data-theme="light"] .contact-card {
    background: var(--bg-card);
    color: var(--text);
}

[data-theme="light"] .process-card p,
[data-theme="light"] .area-card p,
[data-theme="light"] .article-card p,
[data-theme="light"] .contact-card > span:not(.contact-label) {
    color: var(--muted);
}

[data-theme="light"] .process-card,
[data-theme="light"] .area-card,
[data-theme="light"] .article-card,
[data-theme="light"] .contact-card {
    box-shadow: 0 12px 35px rgba(40, 35, 25, .06);
}

[data-theme="light"] .article-page .article-hero {
    background:
        linear-gradient(90deg,
            rgba(244, 240, 232, .97) 0%,
            rgba(244, 240, 232, .88) 55%,
            rgba(244, 240, 232, .76) 100%),
        url("../img/escritorio.jpg") center / cover no-repeat;
}

[data-theme="light"] .article-page .article-hero h1 {
    color: var(--text);
}

[data-theme="light"] .article-page .article-lead {
    color: var(--muted);
}

[data-theme="light"] .floating-whatsapp {
    box-shadow:
        0 10px 28px rgba(35, 30, 20, .16),
        0 0 0 0 rgba(37, 211, 102, .35);
}

/* The floating action always stays above the back-to-top control. */
.floating-whatsapp {
    z-index: 1200;
    cursor: pointer;
}

/* On mobile the theme control comes immediately before the hamburger,
   keeping the hamburger pinned to the far right edge. */
@media (max-width: 800px) {
  .header-inner {
        padding-right: 2px;
    }

    .header-actions {
        margin-left: auto;
    }

     .menu-toggle {
        margin-left: auto;
        order: 3;
    }
}
