/*!
 * Theme Name:  Advicebiz Theme
 * Theme URI:   https://advicebiz.pt
 * Author:      Advicebiz — Consultores de Gestão
 * Description: Tema premium para Advicebiz — consultoria especializada em incentivos financeiros e benefícios fiscais.
 * Version:     1.0.0
 * License:     Proprietary
 * Text Domain: advicebiz
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --bg-base:       #0C1629;
    --bg-alt:        #0F1E32;
    --bg-card:       #152133;
    --bg-elevated:   #1A2940;
    --bg-overlay:    rgba(10, 20, 38, 0.96);

    --gold:          #C49A2A;
    --gold-bright:   #DFB14A;
    --gold-dim:      rgba(196, 154, 42, 0.12);
    --gold-border:   rgba(196, 154, 42, 0.28);

    --text-1:        #EDE8DF;
    --text-2:        #9A9088;
    --text-3:        #58524A;

    --border-1:      rgba(255, 255, 255, 0.07);
    --border-2:      rgba(255, 255, 255, 0.13);

    --shadow-sm:     0 2px 8px rgba(0,0,0,.28);
    --shadow-md:     0 8px 28px rgba(0,0,0,.38);
    --shadow-lg:     0 20px 60px rgba(0,0,0,.48);
    --shadow-gold:   0 8px 32px rgba(196,154,42,.18);

    --font-serif:    'DM Serif Display', Georgia, serif;
    --font-sans:     'Outfit', system-ui, sans-serif;

    --sp-section:    clamp(80px, 10vw, 130px);
    --sp-x:          clamp(24px, 5vw, 80px);
    --container:     1260px;

    --ease:          cubic-bezier(.4,0,.2,1);
    --ease-out:      cubic-bezier(0,0,.2,1);
    --ease-spring:   cubic-bezier(.34,1.56,.64,1);

    --nav-h:         80px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-1);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold-dim); color: var(--gold-bright); }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--sp-x) * 2);
    margin-inline: auto;
    padding-inline: var(--sp-x);
}

.section-pad { padding-block: var(--sp-section); }

/* ============================================================
   4. NOISE OVERLAY
   ============================================================ */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 2px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
    white-space: nowrap;
    transition: all .3s var(--ease);
    cursor: pointer;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg-base);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(196,154,42,.28);
    color: var(--bg-base);
}
.btn-outline {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-2);
}
.btn-outline:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap .25s var(--ease), color .25s;
}
.btn-text::after { content: '→'; transition: transform .25s var(--ease); }
.btn-text:hover { color: var(--gold-bright); gap: 10px; }
.btn-text:hover::after { transform: translateX(4px); }

/* ============================================================
   6. SECTION HEADER
   ============================================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--text-1);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: clamp(.95rem, 1.2vw, 1.05rem);
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.75;
    max-width: 58ch;
}
.section-header { margin-bottom: clamp(48px, 6vw, 72px); }
.section-header--center { text-align: center; }
.section-header--center .section-label { justify-content: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ============================================================
   7. HEADER & NAV
   ============================================================ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .4s var(--ease), box-shadow .4s, height .3s var(--ease);
}
.site-header.scrolled {
    background: var(--bg-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-1), var(--shadow-sm);
    height: 64px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* Logo */
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 34px; width: auto; }
.logo-text {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-1);
    line-height: 1;
}
.logo-text em {
    display: block;
    font-style: normal;
    font-size: .5rem;
    font-weight: 400;
    letter-spacing: .22em;
    color: var(--text-3);
    margin-top: 4px;
}
.logo-text span { color: var(--gold); }

/* Nav menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
    padding: 8px 14px;
    font-size: .875rem;
    font-weight: 400;
    color: var(--text-2);
    border-radius: 3px;
    transition: color .25s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--text-1); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-1);
    transition: all .3s var(--ease);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { text-align: center; }
.mobile-menu nav li { overflow: hidden; }
.mobile-menu nav a {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    color: var(--text-1);
    padding: 8px 0;
    transform: translateY(40px);
    opacity: 0;
    transition: color .25s, transform .4s var(--ease), opacity .4s;
}
.mobile-menu.open nav a { transform: translateY(0); opacity: 1; }
.mobile-menu.open nav li:nth-child(1) a { transition-delay: .08s; }
.mobile-menu.open nav li:nth-child(2) a { transition-delay: .14s; }
.mobile-menu.open nav li:nth-child(3) a { transition-delay: .20s; }
.mobile-menu.open nav li:nth-child(4) a { transition-delay: .26s; }
.mobile-menu.open nav li:nth-child(5) a { transition-delay: .32s; }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu-cta {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s .4s, transform .4s .4s var(--ease);
}
.mobile-menu.open .mobile-menu-cta { opacity: 1; transform: translateY(0); }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-h);
    overflow: hidden;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse 70% 60% at 12% 40%, rgba(196,154,42,.07) 0%, transparent 62%),
        radial-gradient(ellipse 55% 70% at 88% 72%, rgba(8,18,40,.5) 0%, transparent 55%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(196,154,42,.015) 50%);
    pointer-events: none;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(12,22,41,.93) 0%, rgba(12,22,41,.72) 60%, rgba(12,22,41,.5) 100%);
}
.hero__body {
    position: relative;
    z-index: 1;
    padding-block: clamp(60px, 8vw, 100px);
}
.hero__label {
    opacity: 0;
    animation: fadeUp .8s .15s var(--ease-out) forwards;
    margin-bottom: 32px;
}
.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 5.8rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: var(--text-1);
    max-width: 16ch;
    margin-bottom: 28px;
}
.hero__headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotate(.8deg);
    animation: wordReveal .7s var(--ease-out) forwards;
}
.hero__sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 300;
    color: var(--text-2);
    max-width: 52ch;
    line-height: 1.75;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp .8s .85s var(--ease-out) forwards;
}
.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .8s 1.05s var(--ease-out) forwards;
}
.hero__stats {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-1);
    margin-top: clamp(12px, 1.5vw, 20px);
    padding-top: 24px;
    padding-bottom: clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    opacity: 0;
    animation: fadeUp .8s 1.25s var(--ease-out) forwards;
}
.hero__stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 3.5vw, 3.4rem);
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.hero__stat-label {
    font-size: .78rem;
    color: var(--text-2);
    line-height: 1.45;
}
.hero__scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.8s forwards;
}
.hero__scroll-hint span {
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s 2s infinite;
}

/* ============================================================
   9. SERVICES
   ============================================================ */
.services-section { background: var(--bg-alt); }
.services-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-1);
}
.service-item {
    border-bottom: 1px solid var(--border-1);
    cursor: pointer;
}
.service-item__trigger {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    align-items: center;
    gap: 28px;
    padding: 32px 0;
    transition: padding-left .25s var(--ease);
}
.service-item:hover .service-item__trigger { padding-left: 8px; }

.service-item__num {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-3);
    transition: color .3s;
    line-height: 1;
}
.service-item.active .service-item__num,
.service-item:hover .service-item__num { color: var(--gold); }

.service-item__title {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    font-weight: 400;
    color: var(--text-1);
    transition: color .3s;
}
.service-item:hover .service-item__title { color: var(--gold-bright); }

.service-item__tags {
    font-size: .75rem;
    color: var(--text-3);
    letter-spacing: .05em;
}
.service-item__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: .9rem;
    flex-shrink: 0;
    transition: all .35s var(--ease-spring);
}
.service-item.active .service-item__arrow {
    background: var(--gold-dim);
    border-color: var(--gold-border);
    color: var(--gold);
    transform: rotate(45deg);
}
.service-item__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s var(--ease), opacity .4s var(--ease), padding .4s var(--ease);
}
.service-item.active .service-item__body {
    max-height: 420px;
    opacity: 1;
    padding-bottom: 48px;
}
.service-item__desc {
    font-size: .975rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 24px;
}
.service-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.service-tag {
    padding: 4px 12px;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    border-radius: 2px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.service-item__visual {
    background: var(--bg-card);
    border-radius: 4px;
    min-height: 220px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.service-item__visual-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.service-item__visual-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,22,41,.7) 0%, transparent 60%);
}
.service-item__visual-label {
    position: relative;
    z-index: 1;
    padding: 20px;
    font-size: .72rem;
    color: var(--text-2);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ============================================================
   10. PROCESS
   ============================================================ */
.process-section { background: var(--bg-base); }
.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: clamp(48px, 6vw, 72px);
}
.process-track::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 1px;
    background: var(--border-1);
}
.process-line {
    position: absolute;
    top: 24px;
    left: calc(12.5% + 24px);
    height: 1px;
    width: 0;
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    transition: width 1.6s .3s var(--ease-out);
    z-index: 1;
}
.process-track.in-view .process-line { width: calc(75% - 48px); }
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}
.process-step__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-3);
    margin-bottom: 28px;
    transition: all .5s var(--ease);
}
.process-step.in-view .process-step__circle {
    background: var(--gold-dim);
    border-color: var(--gold-border);
    color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.process-step__title {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-1);
    margin-bottom: 12px;
}
.process-step__desc {
    font-size: .85rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.65;
    max-width: 18ch;
    margin-inline: auto;
}

/* ============================================================
   11. STATS / PROOF
   ============================================================ */
.proof-section { background: var(--bg-alt); }
.proof-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.stat-block { display: flex; flex-direction: column; gap: 8px; }
.stat-block__bar {
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 4px;
}
.stat-block__number {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat-block__label {
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.45;
    max-width: 22ch;
}
/* Testimonials */
.testimonials-wrap { position: relative; }
.testimonials-wrap__heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 36px;
}
.testimonial-slide {
    position: absolute;
    inset: 36px 0 0;
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.testimonial-slide.active {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
}
.testimonial-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--text-1);
    margin-bottom: 28px;
}
.testimonial-quote::before {
    content: '"';
    font-size: 3.5em;
    line-height: 0;
    vertical-align: -.35em;
    margin-right: 2px;
    color: var(--gold-dim);
    font-style: normal;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-author__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
}
.testimonial-author__name { font-size: .875rem; font-weight: 600; color: var(--text-1); }
.testimonial-author__role { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.testimonial-dots { display: flex; gap: 8px; margin-top: 28px; }
.t-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-2);
    transition: all .3s;
    cursor: pointer;
}
.t-dot.active { background: var(--gold); width: 24px; border-radius: 3px; }

/* ============================================================
   12. CASE STUDIES
   ============================================================ */
.cases-section { background: var(--bg-base); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: clamp(48px, 6vw, 72px);
}
.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}
.case-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.case-card__img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s var(--ease);
}
.case-card:hover .case-card__img-bg { transform: scale(1.06); }
.case-card__img-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21,33,51,.85) 0%, rgba(21,33,51,.25) 100%);
}
.case-card__cat {
    position: absolute;
    bottom: 16px;
    left: 20px;
    z-index: 1;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.case-card__cat::before { content: ''; width: 14px; height: 1px; background: var(--gold); }
.case-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.case-card__result {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: -.02em;
    margin-bottom: 10px;
    line-height: 1;
}
.case-card__title {
    font-size: .975rem;
    font-weight: 500;
    color: var(--text-1);
    line-height: 1.4;
    margin-bottom: 12px;
}
.case-card__excerpt {
    font-size: .855rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 24px;
}
.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    transition: gap .25s, color .25s;
}
.case-card__link::after { content: '→'; transition: transform .25s var(--ease); }
.case-card:hover .case-card__link { gap: 12px; color: var(--gold-bright); }
.case-card:hover .case-card__link::after { transform: translateX(4px); }

/* ============================================================
   13. CTA / FORM
   ============================================================ */
.cta-section {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,42,.055) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,42,.035) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.cta-text__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--text-1);
    margin-top: 16px;
    margin-bottom: 20px;
}
.cta-text__body {
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 44ch;
}
.trust-list { display: flex; flex-direction: column; gap: 14px; }
.trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    color: var(--text-2);
}
.trust-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold-dim);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}
/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 6px;
    padding: 40px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.form-input, .form-textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    border-radius: 3px;
    color: var(--text-1);
    font-size: .925rem;
    font-weight: 300;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
    -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-textarea:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--bg-base);
    border-radius: 3px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
}
.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    transform: translateX(-100%);
    transition: transform .5s var(--ease);
}
.form-submit:hover::before { transform: translateX(100%); }
.form-submit:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.form-submit:active { transform: translateY(0); }
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: .85rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(46,204,113,.1);
    border: 1px solid rgba(46,204,113,.3);
    color: #2ecc71;
}
.form-message.error {
    display: block;
    background: rgba(231,76,60,.1);
    border: 1px solid rgba(231,76,60,.3);
    color: #e74c3c;
}
.form-note {
    text-align: center;
    font-size: .72rem;
    color: var(--text-3);
    margin-top: 14px;
    line-height: 1.6;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
    background: #070E1A;
    border-top: 1px solid var(--border-1);
    padding-top: clamp(60px, 7vw, 96px);
    padding-bottom: 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border-1);
}
.footer-brand__tagline {
    font-size: .875rem;
    color: var(--text-3);
    font-weight: 300;
    line-height: 1.7;
    max-width: 30ch;
    margin-top: 20px;
    margin-bottom: 28px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: .78rem;
    transition: all .25s;
}
.footer-social a:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-dim);
}
.footer-col__heading {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-1);
    margin-bottom: 24px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: .875rem;
    color: var(--text-3);
    font-weight: 300;
    transition: color .25s, padding-left .25s;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .855rem;
    color: var(--text-3);
    font-weight: 300;
    line-height: 1.5;
}
.footer-contact-item strong { color: var(--text-2); font-weight: 400; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright { font-size: .78rem; color: var(--text-3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .78rem; color: var(--text-3); transition: color .25s; }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   15. GENERIC PAGE & BLOG
   ============================================================ */
.page-hero {
    background: var(--bg-alt);
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border-1);
}
.page-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -.025em;
    color: var(--text-1);
    margin-top: 14px;
}
.page-content { padding-block: var(--sp-section); }
.page-content p {
    font-size: 1.05rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.8;
    max-width: 72ch;
    margin-bottom: 1.5em;
}
.page-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--text-1);
    margin: 2em 0 .75em;
    letter-spacing: -.015em;
}
.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 1.5em 0 .6em;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-border);
}
.post-card__thumb {
    height: 196px;
    background: var(--bg-elevated);
    overflow: hidden;
    position: relative;
}
.post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__body { padding: 24px; }
.post-card__date {
    font-size: .68rem;
    color: var(--text-3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.post-card__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-1);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color .25s;
}
.post-card:hover .post-card__title { color: var(--gold-bright); }
.post-card__excerpt {
    font-size: .855rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* ============================================================
   16. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .proof-inner { grid-template-columns: 1fr; gap: 56px; }
    .cta-inner { grid-template-columns: 1fr; gap: 48px; }
    .process-track { grid-template-columns: repeat(2, 1fr); }
    .process-track::before, .process-line { display: none; }
    .service-item__tags { display: none; }
}

@media (max-width: 768px) {
    :root { --nav-h: 68px; }
    .nav-menu, .nav-right .btn { display: none; }
    .nav-toggle { display: flex; }
    .hero__stats { grid-template-columns: 1fr; gap: 24px; }
    .service-item__trigger { grid-template-columns: 40px 1fr auto; }
    .service-item__body { grid-template-columns: 1fr; }
    .service-item__visual { display: none; }
    .cases-grid, .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .process-track { grid-template-columns: 1fr; gap: 28px; }
    .process-step { flex-direction: row; text-align: left; gap: 20px; align-items: flex-start; }
    .process-step__circle { flex-shrink: 0; margin-bottom: 0; }
    .process-step__desc { max-width: none; margin-inline: 0; }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .service-item__tags { display: none; }
}

@media (max-width: 480px) {
    .hero__headline { font-size: 2.5rem; }
    .section-title { font-size: 1.85rem; }
    .cases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   18. BLOG — HOME / ARQUIVO
   ============================================================ */
.blog-hero {
    padding-block: 100px 80px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-1);
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-block: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.blog-filters::-webkit-scrollbar { display: none; }

.blog-filter {
    display: inline-block;
    padding: 14px 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.blog-filter:hover { color: var(--text-1); }
.blog-filter.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Featured article */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.blog-featured:hover { border-color: var(--gold-border); box-shadow: var(--shadow-md); }

.blog-featured__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 360px;
}
.blog-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
    position: absolute;
    inset: 0;
}
.blog-featured:hover .blog-featured__img { transform: scale(1.04); }
.blog-featured__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,22,41,.35) 0%, transparent 60%);
    pointer-events: none;
}
.blog-featured__body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 400;
    color: var(--text-1);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    transition: color .2s;
}
.blog-featured__title a { color: inherit; text-decoration: none; }
.blog-featured:hover .blog-featured__title { color: var(--gold-bright); }
.blog-featured__excerpt {
    font-size: .95rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 58ch;
}

/* Post badge (category pill) */
.post-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    color: var(--text-2);
    border-radius: 2px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.post-badge:hover { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }
.post-badge--featured { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

/* Share buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 2px;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.share-btn:hover { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

/* ============================================================
   19. ARTIGO SINGLE
   ============================================================ */
.article-hero {
    position: relative;
    padding-block: 100px 80px;
    background-color: var(--bg-alt);
    background-image: var(--article-bg, none);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 22, 41, .72) 0%,
        rgba(12, 22, 41, .88) 100%
    );
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.article-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    font-weight: 400;
    color: var(--text-1);
    line-height: 1.18;
    letter-spacing: -.025em;
    max-width: 820px;
}

/* Layout: corpo + sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

/* Lead (excerpt) */
.article-lead {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    color: var(--text-1) !important;
    line-height: 1.65 !important;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 40px !important;
}

/* Conteúdo do artigo */
.article-content p {
    font-size: 1.05rem;
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 1.5em;
    max-width: 72ch;
}
.article-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 400;
    color: var(--text-1);
    margin: 2.5em 0 .75em;
    letter-spacing: -.018em;
    line-height: 1.2;
}
.article-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 2em 0 .6em;
    letter-spacing: .01em;
}
.article-content ul,
.article-content ol {
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    padding-left: 1.4em;
    margin-bottom: 1.5em;
    max-width: 66ch;
}
.article-content li { margin-bottom: .45em; }
.article-content strong { color: var(--text-1); font-weight: 600; }
.article-content a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-border); text-underline-offset: 3px; }
.article-content a:hover { color: var(--gold-bright); }
.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    margin: 2em 0;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-1);
    font-size: 1.05rem;
    line-height: 1.7;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-size: .9rem;
}
.article-content th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-elevated);
    color: var(--text-1);
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-1);
}
.article-content td {
    padding: 12px 16px;
    color: var(--text-2);
    font-weight: 300;
    border-bottom: 1px solid var(--border-1);
    vertical-align: top;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content .info-box {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    padding: 24px 28px;
    margin: 2em 0;
}
.article-content .info-box p { max-width: none; margin-bottom: .5em; }
.article-content .info-box p:last-child { margin-bottom: 0; }

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-1);
    border-radius: 4px;
    padding: 24px;
}
.sidebar-widget__title {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-1);
}
.article-toc a {
    display: block;
    padding: 6px 0 6px 12px;
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 300;
    text-decoration: none;
    border-left: 2px solid var(--border-1);
    transition: color .2s, border-color .2s, padding-left .2s;
    line-height: 1.4;
}
.article-toc a:hover,
.article-toc a.active { color: var(--gold); border-left-color: var(--gold); padding-left: 16px; }
.sidebar-cta {
    background: var(--bg-alt);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    padding: 28px;
}

/* Responsive article */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 48px; }
    .article-sidebar { position: static; }
    #toc-widget { display: none; }
}
@media (max-width: 768px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured__img-wrap { min-height: 220px; }
    .blog-featured__body { padding: 28px; }
    .article-hero { padding-block: 80px 60px; }
}
