/* ============================================================
   RODRIGUES JR. ADVOGADOS — site.css v4
   Dark / Light / High-Contrast | Acessibilidade | Micro-interações
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ── ESCALA DE FONTE ─────────────────────────────────────── */
html            { font-size: 16px; }
html[data-font="sm"] { font-size: 14px; }
html[data-font="md"] { font-size: 16px; }
html[data-font="lg"] { font-size: 19px; }
html[data-font="xl"] { font-size: 21px; }

/* ── TOKENS — MODO ESCURO (padrão) ──────────────────────── */
:root,
[data-theme="dark"] {
    --bg-page:          #0d1014;
    --bg-surface:       #111519;
    --bg-header:        rgba(13,16,20,0.96);
    --bg-card:          #1a1f26;
    --bg-card-hover:    #1e2530;
    --bg-stats:         #0B4157;
    --bg-steps:         #111519;
    --bg-faq:           #0d1014;
    --bg-footer:        #090c0f;

    --hero-bg-1:        #070a0d;
    --hero-bg-2:        #0d1f2d;
    --hero-dot:         rgba(197,160,89,0.07);

    --text-page:        #e8e8e8;
    --text-muted:       rgba(232,232,232,0.45);
    --text-subtle:      rgba(232,232,232,0.28);
    --text-card:        #cbd0d8;
    --text-heading-card:#dfe3ea;
    --text-sobre:       #8a9199;

    --border-subtle:    rgba(255,255,255,0.06);
    --border-card:      rgba(197,160,89,0.12);
    --border-header:    rgba(255,255,255,0.07);
    --border-input:     rgba(255,255,255,0.1);

    --input-bg:         rgba(255,255,255,0.04);
    --input-text:       #e8e8e8;

    --color-primary:    #0B4157;
    --color-gold:       #C5A059;
    --color-gold-h:     #d4b072;
    --color-gold-glow:  rgba(197,160,89,0.2);
    --color-sobre-h2:   #C5A059;

    --shadow-card:      0 4px 24px rgba(0,0,0,0.4);
    --shadow-card-h:    0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(197,160,89,0.15);
    --shadow-photo:     0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(197,160,89,0.18);

    --radius:           6px;
    --transition:       0.25s ease;
    --header-h:         0px;
    --font-heading:     'Cormorant Garamond', Georgia, serif;
    --font-body:        'Manrope', system-ui, sans-serif;

    /* Nav lateral */
    --bg-nav-pill:      rgba(17,21,25,0.85);
    --bg-nav-pill-h:    rgba(26,31,38,0.97);
    --border-nav-pill:  rgba(255,255,255,0.10);
}

/* ── TOKENS — MODO CLARO ─────────────────────────────────── */
[data-theme="light"] {
    --bg-page:          #f7f5f0;
    --bg-surface:       #edeae3;
    --bg-header:        rgba(247,245,240,0.97);
    --bg-card:          #ffffff;
    --bg-card-hover:    #fafafa;
    --bg-stats:         #0B4157;
    --bg-steps:         #ffffff;
    --bg-faq:           #edeae3;
    --bg-footer:        #e5e2db;

    --hero-bg-1:        #0B4157;
    --hero-bg-2:        #0e2a3d;
    --hero-dot:         rgba(255,255,255,0.04);

    --text-page:        #1a1a1a;
    --text-muted:       #777063;
    --text-subtle:      #aaa69d;
    --text-card:        #555;
    --text-heading-card:#1a1a1a;
    --text-sobre:       #555;

    --border-subtle:    rgba(0,0,0,0.08);
    --border-card:      rgba(11,65,87,0.14);
    --border-header:    rgba(0,0,0,0.1);
    --border-input:     rgba(0,0,0,0.15);

    --input-bg:         rgba(0,0,0,0.04);
    --input-text:       #1a1a1a;

    --color-sobre-h2:   #0B4157;

    --shadow-card:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-card-h:    0 8px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(11,65,87,0.1);
    --shadow-photo:     0 24px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(11,65,87,0.1);

    /* Nav lateral */
    --bg-nav-pill:      rgba(255,255,255,0.88);
    --bg-nav-pill-h:    rgba(237,234,227,0.97);
    --border-nav-pill:  rgba(0,0,0,0.12);
}

/* ── TOKENS — ALTO CONTRASTE ─────────────────────────────── */
[data-theme="hc"] {
    --bg-page:          #000000;
    --bg-surface:       #000000;
    --bg-header:        #000000;
    --bg-card:          #0a0a0a;
    --bg-card-hover:    #111111;
    --bg-stats:         #000000;
    --bg-steps:         #000000;
    --bg-faq:           #000000;
    --bg-footer:        #000000;

    --hero-bg-1:        #000000;
    --hero-bg-2:        #000000;
    --hero-dot:         rgba(255,255,0,0.08);

    --text-page:        #ffffff;
    --text-muted:       #dddddd;
    --text-subtle:      #bbbbbb;
    --text-card:        #ffffff;
    --text-heading-card:#ffffff;
    --text-sobre:       #eeeeee;

    --border-subtle:    #ffffff;
    --border-card:      #ffff00;
    --border-header:    #ffffff;
    --border-input:     #ffffff;

    --input-bg:         #111111;
    --input-text:       #ffffff;

    --color-primary:    #ffff00;
    --color-gold:       #ffff00;
    --color-gold-h:     #ffe44d;
    --color-gold-glow:  rgba(255,255,0,0.25);
    --color-sobre-h2:   #ffff00;

    --shadow-card:      none;
    --shadow-card-h:    0 0 0 2px #ffff00;
    --shadow-photo:     0 0 0 2px #ffff00;

    /* Nav lateral */
    --bg-nav-pill:      rgba(0,0,0,0.95);
    --bg-nav-pill-h:    #111111;
    --border-nav-pill:  #ffffff;
}

/* ── BASE ────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-page);
    transition: background 0.4s ease, color 0.4s ease;
}

/* ── UTILITÁRIOS ─────────────────────────────────────────── */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.gold-text  { color: var(--color-gold); }
.relative-z { position: relative; z-index: 2; }
.section    { padding: 96px 0; }
.img-fit    { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; display: block; }

.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.18;
    color: var(--text-page);
}
.section-title.on-white { color: var(--color-sobre-h2); }
.section-cta  { text-align: center; margin-top: 52px; }
.cta-pre-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
    position: absolute; top: -60px; left: 16px;
    background: var(--color-gold); color: #000;
    padding: 10px 18px; font-weight: 700; font-size: 0.9rem;
    z-index: 9999; text-decoration: none; border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: linear-gradient(to right, var(--color-gold), var(--color-gold-h));
    width: 0%; z-index: 2000;
    transition: width 0.1s linear;
    transform-origin: left;
}

/* ── POPUP DE ACESSIBILIDADE ─────────────────────────────── */
.a11y-trigger {
    position: fixed; bottom: 96px; right: 20px; z-index: 1500;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.a11y-trigger svg { width: 20px; height: 20px; }
.a11y-trigger:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.08);
}
.a11y-trigger.open {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
}

.a11y-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 1490;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
.a11y-backdrop.visible { display: block; }

.a11y-modal {
    position: fixed; bottom: 148px; right: 20px; z-index: 1500;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
    transform-origin: bottom right;
}
.a11y-modal.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.a11y-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.a11y-modal-title {
    font-weight: 700; font-size: 0.82rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--color-gold);
}
.a11y-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 4px;
    border-radius: 4px; transition: var(--transition);
    display: flex; align-items: center;
}
.a11y-close svg { width: 16px; height: 16px; }
.a11y-close:hover { color: var(--text-page); }

.a11y-section { padding: 14px 16px; }
.a11y-section + .a11y-section { border-top: 1px solid var(--border-subtle); }
.a11y-label {
    display: block; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 10px;
}
.a11y-row { display: flex; gap: 8px; flex-wrap: wrap; }
.a11y-opt {
    flex: 1; min-width: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-page);
    border-radius: var(--radius);
    padding: 8px 6px;
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; text-align: center;
    transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.a11y-opt-icon { font-size: 1rem; }
.a11y-opt:hover, .a11y-opt.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
}
.a11y-font-row { display: flex; gap: 8px; }
.a11y-font-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-page);
    border-radius: var(--radius);
    padding: 8px 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700;
    cursor: pointer; text-align: center;
    transition: var(--transition);
}
.a11y-font-btn:hover, .a11y-font-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #000;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── WHATSAPP FLUTUANTE ──────────────────────────────────── */
.wa-float {
    position: fixed; bottom: 24px; right: 20px; z-index: 1400;
    width: 52px; height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: waBounce 3s ease-in-out 2s infinite;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.55);
    animation: none;
}
.wa-float-label {
    position: absolute; right: 60px;
    background: #25D366; color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem; font-weight: 700;
    white-space: nowrap;
    opacity: 0; transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.wa-float:hover .wa-float-label {
    opacity: 1; transform: translateX(0);
}
@keyframes waBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ── BOTÕES ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700; font-size: 0.86rem;
    text-transform: uppercase; letter-spacing: 1.2px;
    text-decoration: none; cursor: pointer; border: none;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
/* Ripple */
.btn .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleAnim 0.5s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}
.btn-gold { background: var(--color-gold); color: #000; }
.btn-gold:hover {
    background: var(--color-gold-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--color-gold-glow);
}
.btn-outline {
    background: transparent; color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn-outline-primary {
    background: transparent; color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }

/* Nav CTA hover */
.btn-nav-cta {
    position: relative; display: inline-flex;
    justify-content: center; align-items: center;
    width: 150px; height: 40px;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    font-weight: 700; text-transform: uppercase; font-size: 0.78rem;
    letter-spacing: 1px; text-decoration: none; overflow: hidden;
    border-radius: var(--radius); transition: var(--transition); background: transparent;
}
.btn-nav-cta .btn-text-original,
.btn-nav-cta .btn-text-hover {
    position: absolute; width: 100%; text-align: center;
    transition: all 0.28s cubic-bezier(0.25,0.8,0.25,1);
}
.btn-nav-cta .btn-text-original { transform: translateY(0); opacity: 1; }
.btn-nav-cta .btn-text-hover    { transform: translateY(100%); opacity: 0; color: #000; }
.btn-nav-cta:hover { background: var(--color-gold); border-color: var(--color-gold); }
.btn-nav-cta:hover .btn-text-original { transform: translateY(-150%); opacity: 0; }
.btn-nav-cta:hover .btn-text-hover    { transform: translateY(0); opacity: 1; }

/* ── LOGO FIXO ───────────────────────────────────────────── */
.logo-fixed {
    position: fixed; top: 18px; left: 24px; z-index: 1001;
    display: block; text-decoration: none;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 10px; padding: 8px 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.logo-fixed:hover {
    box-shadow: 0 4px 28px rgba(0,0,0,0.24), 0 0 0 1px rgba(197,160,89,0.3);
    transform: translateY(-1px);
}
.logo-fixed.scrolled {
    padding: 6px 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.22);
}
.header-logo { height: 38px; width: auto; display: block; object-fit: contain; }

/* ── SIDE NAV ────────────────────────────────────────────── */
.side-nav {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 5px; padding-right: 20px;
}
.side-nav a:not(.btn-nav-cta) {
    display: block;
    padding: 8px 18px;
    background: var(--bg-nav-pill);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-nav-pill);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.74rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.7px;
    text-decoration: none; white-space: nowrap;
    transition: color 0.22s, border-color 0.22s, background 0.22s, transform 0.22s ease, opacity 0.22s;
}
.side-nav a:not(.btn-nav-cta):hover,
.side-nav a:not(.btn-nav-cta).active {
    color: var(--color-gold);
    border-color: rgba(197,160,89,0.5);
    background: var(--bg-nav-pill-h);
    transform: translateX(-5px);
}
.side-nav .nav-area-tag {
    font-size: 0.6rem; background: var(--color-gold); color: #000;
    padding: 1px 5px; border-radius: 20px; font-weight: 700;
    margin-left: 4px; vertical-align: middle;
}
.side-nav .btn-nav-cta {
    margin-top: 10px;
    width: auto; min-width: 120px; height: 36px;
    font-size: 0.72rem; padding: 0 18px; letter-spacing: 1px;
    border-radius: 100px;
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.menu-toggle {
    display: none;
    position: fixed; top: 16px; right: 16px; z-index: 1002;
    flex-direction: column; gap: 5px;
    background: var(--bg-nav-pill);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-nav-pill);
    border-radius: 8px; cursor: pointer;
    padding: 10px 12px;
    transition: background 0.2s, border-color 0.2s;
}
.menu-toggle span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text-page); border-radius: 2px; transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── BACKDROP MOBILE NAV ─────────────────────────────────── */
.nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 997;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.nav-backdrop.open { display: block; animation: fadeIn 0.22s ease; }

.nav-area-tag {
    font-size: 0.65rem; background: var(--color-gold); color: #000;
    padding: 2px 6px; border-radius: 20px; font-weight: 700;
    margin-left: 4px; vertical-align: middle;
}

/* ── HERO — SOLID COLOR ──────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: linear-gradient(140deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
    position: relative; display: flex; align-items: center;
    margin-top: 0; overflow: hidden;
}
/* Padrão de pontos sutil */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(var(--hero-dot) 1px, transparent 1px);
    background-size: 28px 28px; z-index: 0; pointer-events: none;
}
/* Linha decorativa dourada */
.hero::after {
    content: ''; position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    opacity: 0.5; z-index: 1;
}

.hero-split {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    padding: 110px 0 80px; /* top: espaço para a logo flutuante */
    width: 100%;
}
.hero-text { max-width: 540px; }
.tagline {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--color-gold); margin-bottom: 24px;
}
.tagline::before {
    content: ''; display: block; width: 20px; height: 1px;
    background: var(--color-gold);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.08; font-weight: 700;
    color: #fff; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--color-gold); }
.hero-sub {
    font-size: 1.05rem; line-height: 1.78;
    color: rgba(255,255,255,0.72); margin-bottom: 40px; max-width: 460px;
}
.hero-sub-2 { margin-top: -20px; color: rgba(255,255,255,0.55); }
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-urgency {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8rem; color: rgba(255,255,255,0.45);
    margin-top: 28px;
}
.hero-urgency::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: #4caf8a;
    box-shadow: 0 0 0 3px rgba(76,175,138,0.25);
    animation: pulse 2.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(76,175,138,0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(76,175,138,0.05); }
}

/* Foto do advogado — realçada */
.hero-photo-wrap {
    position: relative; display: flex;
    justify-content: center; align-items: flex-end;
}
.hero-photo-frame {
    position: relative; display: inline-block;
}
/* Moldura dourada decorativa atrás da foto */
.hero-photo-frame::before {
    content: '';
    position: absolute; bottom: -16px; right: -16px;
    width: 60%; height: 60%;
    border: 2px solid rgba(197,160,89,0.3);
    border-radius: var(--radius);
    z-index: 0;
    transition: var(--transition);
}
.hero-photo-frame:hover::before {
    border-color: rgba(197,160,89,0.6);
    transform: translate(4px, 4px);
}
.hero-photo {
    display: block;
    width: 100%; max-width: 460px; max-height: 600px;
    border-radius: var(--radius);
    object-fit: cover; object-position: center top;
    filter: brightness(1.06) contrast(1.04);
    box-shadow: var(--shadow-photo);
    position: relative; z-index: 1;
    transition: transform 0.6s ease, filter 0.3s ease;
}
.hero-photo-frame:hover .hero-photo {
    transform: scale(1.015);
    filter: brightness(1.1) contrast(1.05);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute; bottom: 28px; left: 50%;
    transform: translateX(-50%); z-index: 2;
}
.hero-scroll-hint span {
    display: block; width: 1.5px; height: 36px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    margin: 0 auto;
    animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.25; transform: scaleY(0.4); }
}

/* Hero família — overlay diferente */
.familia-hero-tint {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at 30% 50%, rgba(80,40,100,0.25) 0%, transparent 60%);
    pointer-events: none;
}

/* ── STATS / PILARES ─────────────────────────────────────── */
.stats-bar { background: var(--bg-stats); padding: 52px 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 20px; text-align: center;
}
.stat-item { padding: 20px 12px; }

/* Números animados (legado, mantidos para Familia) */
.stat-number {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(2.4rem,4vw,3.2rem); color: var(--color-gold); line-height: 1;
}
.stat-suffix { font-family: var(--font-heading); font-size: clamp(1.8rem,3vw,2.4rem); color: var(--color-gold); }
.stat-label {
    display: block; font-size: 0.72rem; letter-spacing: 1.2px;
    text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 8px;
}

/* Pilares de confiança */
.stat-badge {
    display: block;
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(1.9rem,3.2vw,2.6rem); color: var(--color-gold);
    line-height: 1; margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.stat-title {
    display: block;
    font-weight: 700; font-size: 0.84rem;
    letter-spacing: 0.4px; color: #fff;
    margin-bottom: 7px; line-height: 1.3;
}
.stat-desc {
    display: block;
    font-size: 0.74rem; color: rgba(255,255,255,0.5);
    line-height: 1.55;
}

/* ── SOBRE ───────────────────────────────────────────────── */
.sobre-section { background: var(--bg-steps); padding: 96px 0; }
.split-layout   { display: flex; gap: 64px; align-items: center; }
.text-block, .image-block-single { flex: 1; }
.sobre-section h2 {
    font-family: var(--font-heading); color: var(--color-sobre-h2);
    font-size: clamp(1.9rem,3vw,2.7rem); line-height: 1.12; margin-bottom: 20px;
}
.lead-text {
    color: var(--color-sobre-h2); font-weight: 600;
    font-size: 1.05rem; line-height: 1.72; margin-bottom: 16px; opacity: 0.85;
}
.sobre-section p { color: var(--text-sobre); line-height: 1.82; margin-bottom: 14px; font-size: 0.97rem; }
.img-portrait { max-height: 520px; object-position: top; box-shadow: var(--shadow-photo); }

/* ── DIFERENCIAIS ────────────────────────────────────────── */
.dark-section { background: var(--bg-surface); }
.diferenciais-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.diferencial-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius); padding: 28px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: default;
}
.diferencial-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-h);
    border-color: rgba(197,160,89,0.4);
}
.diferencial-icon { margin-bottom: 18px; }
.diferencial-icon svg { width: 38px; height: 38px; }
.diferencial-item h3 {
    font-family: var(--font-heading); font-size: 1.25rem;
    color: var(--color-gold); margin-bottom: 10px;
}
.diferencial-item p { font-size: 0.9rem; color: var(--text-card); line-height: 1.72; }

/* ── ÁREAS DE ATUAÇÃO ────────────────────────────────────── */
.bg-section-dark {
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-footer) 100%);
    padding: 96px 0;
}
.grid-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
    cursor: default;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-h);
    border-left-color: var(--color-gold);
}
.card-icon {
    font-family: var(--font-heading); font-size: 1.8rem;
    color: var(--color-gold); opacity: 0.25;
    font-weight: 700; margin-bottom: 10px; line-height: 1;
}
.card h3 { font-family: var(--font-heading); color: var(--text-heading-card); margin-bottom: 10px; font-size: 1.3rem; }
.card p   { font-size: 0.9rem; color: var(--text-card); line-height: 1.72; }
.card.card-highlight {
    border-left-color: var(--color-gold);
    background: linear-gradient(145deg, var(--bg-card) 60%, rgba(197,160,89,0.06) 100%);
}
.card.card-highlight .card-icon { opacity: 0.4; }
.card.card-highlight h3 { color: var(--color-gold); }
.card.card-familia { border-left-color: #7B5A8B; }
.card.card-familia:hover { border-left-color: var(--color-gold); }

/* ── COMO FUNCIONA ───────────────────────────────────────── */
.steps-section { background: var(--bg-steps); padding: 96px 0; }
.steps-grid    { display: flex; align-items: flex-start; }
.step-item     { flex: 1; padding: 0 32px; text-align: center; }
.step-number {
    font-family: var(--font-heading); font-size: clamp(2.8rem,4vw,3.5rem);
    font-weight: 700; color: var(--color-gold); opacity: 0.3; line-height: 1; margin-bottom: 16px;
    transition: opacity 0.3s ease;
}
.step-item:hover .step-number { opacity: 0.7; }
.step-item h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-sobre-h2); margin-bottom: 14px; }
.step-item p  { font-size: 0.94rem; color: var(--text-sobre); line-height: 1.8; }
.step-connector {
    width: 48px; flex-shrink: 0; height: 1.5px;
    background: linear-gradient(to right, var(--color-gold), rgba(197,160,89,0.15));
    margin-top: 52px; align-self: flex-start;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section   { background: var(--bg-faq); padding: 96px 0; }
.faq-container { max-width: 780px; }
.faq-item      { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
    width: 100%; background: none; border: none;
    color: var(--text-page);
    font-family: var(--font-heading); font-size: clamp(1.05rem,2vw,1.2rem);
    font-weight: 600; text-align: left; padding: 22px 0; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    transition: color 0.2s ease;
}
.faq-question:hover, .faq-question[aria-expanded="true"] { color: var(--color-gold); }
.faq-icon {
    width: 20px; height: 20px; flex-shrink: 0; position: relative;
    border: 1.5px solid var(--color-gold); border-radius: 50%; transition: var(--transition);
}
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute;
    background: var(--color-gold); top: 50%; left: 50%;
    transform: translate(-50%,-50%); transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before { width: 9px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 9px; }
.faq-question[aria-expanded="true"] .faq-icon {
    background: var(--color-gold);
}
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after {
    background: #000;
}
.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%,-50%) rotate(90deg); opacity: 0;
}
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer.open { max-height: 500px; }
.faq-answer p {
    font-size: 0.96rem; color: var(--text-muted);
    line-height: 1.86; padding-bottom: 22px;
}

/* ── FOOTER / CONTATO ────────────────────────────────────── */
.footer      { background: var(--bg-footer); padding: 80px 0 40px; }
.footer-sub  { color: var(--text-muted); font-size: 0.98rem; margin-top: 8px; }
.contact-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; margin-top: 10px;
}
.info-item { margin-bottom: 22px; }
.info-item strong {
    display: block; color: var(--color-gold);
    text-transform: uppercase; font-size: 0.72rem; letter-spacing: 2px; margin-bottom: 5px;
}
.info-value { font-size: 1rem; color: var(--text-page); text-decoration: none; transition: color 0.2s; }
a.info-value:hover { color: var(--color-gold); }
.contact-cta-group {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 28px; max-width: 360px;
}
.contact-cta-group .btn { text-align: center; }
.contact-image-block .contact-img {
    height: 420px; object-fit: cover; object-position: top;
    border-radius: var(--radius); box-shadow: var(--shadow-photo);
}
.form-disclaimer { font-size: 0.75rem; color: var(--text-subtle); margin-top: 12px; }

.copyright {
    margin-top: 56px; font-size: 0.76rem; color: var(--text-subtle);
    border-top: 1px solid var(--border-subtle); padding-top: 22px; text-align: center;
}
.dev-credit { display: block; font-size: 0.7rem; margin-top: 4px; opacity: 0.6; }

/* ── ALTO CONTRASTE — overrides ──────────────────────────── */
[data-theme="hc"] .hero { background: #000 !important; }
[data-theme="hc"] .hero::before { display: none; }
[data-theme="hc"] .card { background: #111 !important; border-left-color: #ffff00 !important; }
[data-theme="hc"] .card h3 { color: #fff !important; }
[data-theme="hc"] .card p  { color: #ddd !important; }
[data-theme="hc"] .btn-gold { background: #ffff00; color: #000; }
[data-theme="hc"] .logo-fixed { background: #000 !important; border: 2px solid #fff !important; }
[data-theme="hc"] .stats-bar { background: #000; border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
[data-theme="hc"] a { text-decoration: underline; }

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .diferenciais-grid { grid-template-columns: repeat(2,1fr); }
    .grid-cards        { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
    /* Side nav vira drawer lateral */
    .menu-toggle { display: flex; }

    .side-nav {
        position: fixed;
        top: 0; right: -280px; bottom: 0;
        transform: none;
        width: 264px;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 40px;
        gap: 4px;
        z-index: 998;
        transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        box-shadow: -6px 0 40px rgba(0,0,0,0.35);
    }
    .side-nav.open { right: 0; }

    .side-nav a:not(.btn-nav-cta) {
        border-radius: 8px;
        padding: 13px 18px;
        font-size: 0.88rem;
        transform: none !important;
    }
    .side-nav a:not(.btn-nav-cta):hover,
    .side-nav a:not(.btn-nav-cta).active {
        transform: none !important;
    }
    .side-nav .btn-nav-cta {
        border-radius: 8px; height: 48px;
        width: 100%; margin-top: 16px; font-size: 0.88rem;
    }

    /* Hero mobile */
    .hero { min-height: 100svh; padding: 0; }
    .hero::after { display: none; }
    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px; text-align: center;
        padding: 100px 0 56px;
    }
    .hero-text    { max-width: 100%; order: 2; }
    .hero-photo-wrap { order: 1; }
    .hero h1      { font-size: clamp(2rem,7vw,2.8rem); }
    .hero-sub     { font-size: 0.98rem; margin: 0 auto 32px; }
    .cta-group    { justify-content: center; flex-direction: column; align-items: center; }
    .cta-group .btn { width: 100%; max-width: 340px; }
    .hero-urgency { justify-content: center; }
    .tagline      { justify-content: center; }
    .hero-photo   { max-width: 240px; max-height: 320px; margin: 0 auto; }
    .hero-photo-frame::before { display: none; }
    .hero-scroll-hint { display: none; }

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

    .sobre-section .split-layout { flex-direction: column; gap: 36px; }
    .text-block, .image-block-single { width: 100%; }
    .sobre-section h2 { text-align: center; }
    .lead-text { text-align: center; }
    .sobre-section p  { text-align: center; }
    .sobre-section .btn-gold { display: block; text-align: center; }
    .img-portrait { max-height: 320px; }

    .diferenciais-grid { grid-template-columns: 1fr; }
    .grid-cards        { grid-template-columns: 1fr; }

    .steps-grid { flex-direction: column; }
    .step-connector { display: none; }
    .step-item {
        padding: 0;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 28px; margin-bottom: 28px;
    }
    .step-item:last-child { border-bottom: none; margin-bottom: 0; }

    .contact-split { grid-template-columns: 1fr; gap: 36px; }
    .contact-cta-group { max-width: 100%; }
    .contact-image-block .contact-img { height: 240px; }

    .a11y-modal    { right: 12px; bottom: 140px; width: calc(100vw - 24px); max-width: 320px; }
    .wa-float      { right: 16px; bottom: 20px; }
    .a11y-trigger  { right: 16px; bottom: 84px; }
    .logo-fixed    { top: 14px; left: 16px; padding: 6px 10px; }
    .header-logo   { height: 32px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .wa-float-label { display: none; }
}
