/* =========================================================
   ADVOCACIA JAIR RODRIGUES — DESIGN SYSTEM
   Paleta: Navy + Dourado (mesma identidade da apresentação)
   ========================================================= */

:root {
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;
    --white:    #ffffff;

    --gold-700: #a47812;
    --gold:     #d4a017;
    --gold-300: #f0d060;
    --gold-100: #fef3c7;
    --gold-glow: rgba(212,160,23,0.12);

    --green:    #16a34a;
    --green-light: #dcfce7;
    --red:      #dc2626;
    --red-light:#fee2e2;
    --blue:     #2563eb;
    --blue-light:#dbeafe;
    --orange:   #f59e0b;

    --whatsapp: #25d366;

    /* Aliases (compat com estilos herdados da apresentação) */
    --accent:       #d4a017;
    --accent-light: #f0d060;
    --accent-glow:  rgba(212,160,23,0.12);
    --primary:      #0f172a;
    --primary-mid:  #1e293b;
    --blue-light:   #dbeafe;

    --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
    --shadow:    0 4px 14px rgba(15,23,42,0.08);
    --shadow-lg: 0 12px 32px rgba(15,23,42,0.12);
    --shadow-gold: 0 8px 24px rgba(212,160,23,0.25);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --container: 1200px;
    --container-narrow: 960px;

    --header-h: 84px;

    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { color: var(--navy-700); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* SECTION */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy-900); color: var(--gray-200); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--gray-300); }
.section-light { background: var(--gray-50); }
.section-gold {
    background: linear-gradient(135deg, #1a1505 0%, #2d1f06 50%, #0f172a 100%);
    color: var(--gray-200);
}
.section-gold h2, .section-gold h3, .section-gold h4 { color: var(--white); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
.section-head p { max-width: 640px; margin: 0.75rem auto 0; font-size: 1.05rem; color: var(--navy-600); }
.section-dark .section-head p, .section-gold .section-head p { color: var(--gray-300); }

/* EYEBROW (label) */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--gold-700);
    background: var(--gold-glow);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(212,160,23,0.25);
    margin-bottom: 1.25rem;
}
.section-dark .eyebrow, .section-gold .eyebrow {
    color: var(--gold-300);
    background: rgba(212,160,23,0.12);
    border-color: rgba(212,160,23,0.3);
}

.hl { color: var(--gold); }
.section-dark .hl, .section-gold .hl { color: var(--gold-300); }

/* ============ TOP BAR ============ */
.topbar {
    background: var(--navy-900);
    color: var(--gray-300);
    font-size: 0.78rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--gold-300); }
.topbar-info { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-info i { color: var(--gold); font-size: 0.8rem; }
.topbar-cta { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold-300) !important; font-weight: 600; }

/* ============ HEADER ============ */
.header {
    position: sticky; top: 0; z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: 'Playfair Display', serif; color: var(--navy-900);
    font-weight: 800;
}
.logo-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.2rem;
    box-shadow: var(--shadow);
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.02em; }
.logo-text small {
    display: block; font-size: 0.65rem; font-family: 'Inter', sans-serif;
    text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-700); font-weight: 700;
    margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    color: var(--navy-700); font-weight: 600; font-size: 0.92rem;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--navy-900); background: var(--gray-100); }
.nav-link.is-active { color: var(--navy-900); }
.nav-link.is-active::after {
    content: ''; position: absolute; bottom: -2px; left: 0.9rem; right: 0.9rem;
    height: 2px; background: var(--gold); border-radius: 2px;
}

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--navy-900); color: var(--white) !important;
    padding: 0.7rem 1.25rem; border-radius: 999px;
    font-weight: 700; font-size: 0.88rem;
    transition: all var(--transition);
    margin-left: 0.5rem;
    border: 2px solid var(--navy-900);
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900) !important; transform: translateY(-1px); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; border-radius: 8px;
    align-items: center; justify-content: center;
    color: var(--navy-900); font-size: 1.4rem;
    transition: background var(--transition), color var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover, .menu-toggle:focus { background: var(--gray-100); color: var(--gold-700); outline: none; }
.menu-toggle:active { background: var(--gray-200); }

/* DROPDOWN — services */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 320px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all var(--transition);
    z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.dropdown a {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.65rem 0.85rem; border-radius: 8px;
    color: var(--navy-800); font-size: 0.88rem; font-weight: 600;
}
.dropdown a:hover { background: var(--gray-100); color: var(--navy-900); }
.dropdown a i { color: var(--gold); width: 18px; margin-top: 2px; }
.dropdown a small { display: block; font-weight: 500; color: var(--gray-500); font-size: 0.74rem; margin-top: 1px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    font-weight: 700; font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer; text-align: center;
    transition: all var(--transition);
    line-height: 1;
}
.btn-primary {
    background: var(--gold); color: var(--navy-900); border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-300); border-color: var(--gold-300); color: var(--navy-900); transform: translateY(-2px); }
.btn-dark { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-dark:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-whatsapp {
    background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp);
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #1ebf5b; border-color: #1ebf5b; color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ============ HERO (home) ============ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3e 60%, #0f172a 100%);
    color: var(--white);
    overflow: hidden;
    padding: 5rem 0 6rem;
}
.hero.has-bg-photo {
    background-image:
        linear-gradient(115deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.88) 45%, rgba(15,23,42,0.55) 100%),
        var(--hero-bg-photo);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.hero::before {
    content: ''; position: absolute; top: -150px; right: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: var(--gold-glow); filter: blur(100px); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(59,130,246,0.06); filter: blur(100px); pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem;
    align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p.lead {
    font-size: 1.15rem; color: var(--gray-300);
    margin-bottom: 2rem; max-width: 540px;
}
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--gray-300); }
.hero-trust-item i { color: var(--gold); font-size: 1rem; }
.hero-trust-item strong { color: var(--white); }

.hero-card {
    background: var(--white);
    color: var(--navy-900);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-card h3 { color: var(--navy-900); margin-bottom: 0.5rem; }
.hero-card p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.25rem; }
.hero-card .form-group label { color: var(--navy-800); }
.hero-card .form-control { color: var(--navy-900); background: var(--white); border-color: var(--gray-200); }
.hero-card .form-control::placeholder { color: var(--gray-400); }

/* SUB-HERO (interior pages) */
.subhero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.subhero.has-bg-photo {
    background-image:
        linear-gradient(110deg, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.82) 50%, rgba(15,23,42,0.55) 100%),
        var(--hero-bg-photo);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.subhero::before {
    content: ''; position: absolute; top: -100px; right: -50px;
    width: 350px; height: 350px; border-radius: 50%;
    background: var(--gold-glow); filter: blur(80px);
}
.subhero .container { position: relative; z-index: 2; }
.subhero h1 { color: var(--white); margin-bottom: 0.75rem; }
.subhero p { color: var(--gray-300); font-size: 1.05rem; max-width: 680px; }

.breadcrumbs {
    font-size: 0.78rem; color: var(--gray-400);
    margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--gray-300); }
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.5; }

/* ============ GRID UTILITIES ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-glow); color: var(--gold-700);
    font-size: 1.3rem; margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--navy-600); line-height: 1.65; margin-bottom: 1rem; }
.card-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--gold-700); font-weight: 700; font-size: 0.85rem;
}
.card-link:hover { gap: 0.7rem; }

.section-dark .card, .section-gold .card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.section-dark .card:hover, .section-gold .card:hover {
    background: rgba(255,255,255,0.06); border-color: var(--gold);
}
.section-dark .card h3, .section-gold .card h3 { color: var(--white); }
.section-dark .card p, .section-gold .card p { color: var(--gray-300); }
.section-dark .card-icon, .section-gold .card-icon { background: rgba(212,160,23,0.12); color: var(--gold-300); }

/* ============ STATS ============ */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.stat-box {
    text-align: center; padding: 1.75rem 1rem;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.section-dark .stat-box, .section-gold .stat-box {
    background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08);
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem; font-weight: 800;
    color: var(--gold); line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.85rem; color: var(--navy-600); font-weight: 500; line-height: 1.45; }
.section-dark .stat-label, .section-gold .stat-label { color: var(--gray-400); }

/* ============ FEATURE LIST ============ */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: 0.7rem 0 0.7rem 2.25rem;
    position: relative; color: var(--navy-700); font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-200);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 0.7rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--green-light); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
}
.feature-list.is-warning li::before { background: var(--red-light); color: var(--red); content: '\f00d'; }

/* ============ ACCORDION (FAQ) ============ */
.accordion-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color var(--transition);
}
.accordion-item.is-open { border-color: var(--gold); box-shadow: var(--shadow); }
.accordion-trigger {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; width: 100%;
    padding: 1.25rem 1.5rem;
    background: none; border: 0; cursor: pointer; text-align: left;
    font-size: 1rem; font-weight: 700; color: var(--navy-900);
    font-family: inherit;
}
.accordion-trigger:hover { color: var(--gold-700); }
.accordion-trigger i { color: var(--gold); transition: transform var(--transition); flex-shrink: 0; }
.accordion-item.is-open .accordion-trigger i { transform: rotate(45deg); }
.accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-body-inner { padding: 0 1.5rem 1.5rem; color: var(--navy-700); font-size: 0.95rem; line-height: 1.75; }
.accordion-body-inner p { margin-bottom: 0.85rem; color: inherit; }
.accordion-body-inner p:last-child { margin-bottom: 0; }

/* ============ FORMS ============ */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.form-card.on-dark {
    background: var(--white); color: var(--navy-900);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.82rem;
    color: var(--navy-800); margin-bottom: 0.4rem;
}
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-control {
    width: 100%; padding: 0.85rem 1rem;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--navy-900);
    background: var(--white);
    transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-help { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.4rem; }
.form-submit-info {
    margin-top: 1rem; padding: 0.85rem;
    background: var(--gray-50); border-radius: 8px;
    font-size: 0.78rem; color: var(--gray-500); text-align: center; line-height: 1.5;
}
.form-submit-info i { color: var(--gold); margin-right: 0.3rem; }

/* ============ BADGE ============ */
.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-green { background: var(--green-light); color: var(--green); }
.badge-gold { background: var(--gold-glow); color: var(--gold-700); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-dark { background: var(--navy-900); color: var(--gold-300); }

/* ============ STICKY WHATSAPP ============ */
.sticky-wa {
    position: fixed; bottom: 24px; right: 24px; z-index: 80;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--whatsapp); color: var(--white) !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 28px rgba(37,211,102,0.4);
    animation: wapulse 2.4s ease-in-out infinite;
    transition: transform 0.2s;
}
.sticky-wa:hover { transform: scale(1.1); }
@keyframes wapulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
    50%      { box-shadow: 0 12px 28px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============ FOOTER ============ */
.footer {
    background: var(--navy-900);
    color: var(--gray-300);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer h4 {
    color: var(--white); font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}
.footer p { color: var(--gray-400); font-size: 0.88rem; line-height: 1.7; }
.footer a { color: var(--gray-300); font-size: 0.9rem; }
.footer a:hover { color: var(--gold-300); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.85rem; font-size: 0.88rem; }
.footer-contact div { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 4px; min-width: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 0.78rem; color: var(--gray-500);
}
.footer-disclaimer {
    background: rgba(212,160,23,0.04);
    border-top: 1px solid rgba(212,160,23,0.1);
    padding: 1.25rem 0;
    font-size: 0.72rem; color: var(--gray-500); line-height: 1.6;
    text-align: center;
}
.footer-disclaimer i { color: var(--gold); margin-right: 0.3rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--gray-300);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-900); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ TABLET / MOBILE (≤960px) — header e menu hambúrguer ============ */
@media (max-width: 960px) {
    :root { --header-h: 68px; }

    /* Topbar minimalista */
    .topbar-info { display: none; }
    .topbar { font-size: 0.75rem; padding: 0.4rem 0; }
    .topbar .container { justify-content: center; }

    /* Quando o menu mobile está aberto, garantir que header fica colado no topo */
    body.no-scroll .topbar { display: none; }

    /* Header menor */
    .header .container { height: var(--header-h); }
    .logo-icon { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 9px; }
    .logo-text strong { font-size: 0.95rem; line-height: 1.05; }
    .logo-text small { font-size: 0.6rem; letter-spacing: 0.12em; margin-top: 1px; }

    /* Botão hambúrguer visível */
    .menu-toggle { display: flex; }

    /* Header sempre acima do nav mobile */
    .header { z-index: 100; }

    /* NAV — overlay full-screen que desliza da direita; conteúdo começa abaixo do header */
    .nav {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 95;
        background: var(--white);
        display: flex; flex-direction: column; align-items: stretch;
        padding: calc(var(--header-h) + 0.75rem) 1.25rem 6rem;
        gap: 0;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
    }
    .nav.is-open { transform: translateX(0); }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .nav-link {
        display: flex; align-items: center; justify-content: space-between;
        padding: 1.05rem 0.25rem;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        font-size: 1rem; color: var(--navy-900);
        background: transparent;
    }
    .nav-link:hover { background: transparent; color: var(--gold-700); }
    .nav-link.is-active { color: var(--gold-700); }
    .nav-link.is-active::after { display: none; }

    /* Dropdown como acordeão (toggle controlado pelo JS, classe .is-open no <li>) */
    .has-dropdown > .nav-link i {
        font-size: 0.7rem;
        color: var(--gray-500);
        transition: transform var(--transition), color var(--transition);
    }
    .has-dropdown.is-open > .nav-link { color: var(--gold-700); }
    .has-dropdown.is-open > .nav-link i { transform: rotate(180deg); color: var(--gold-700); }

    /* Neutralizar comportamento hover/focus-within do dropdown desktop em mobile */
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown {
        transform: none;
    }

    .dropdown {
        position: static !important;
        transform: none !important;
        opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
        box-shadow: none; border: 0;
        background: var(--gray-50);
        min-width: auto; margin: 0;
        border-radius: 0;
        max-height: 0; overflow: hidden;
        padding: 0 0.75rem;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .has-dropdown.is-open .dropdown {
        max-height: 1200px;
        padding: 0.5rem 0.75rem;
    }
    .dropdown a {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(15,23,42,0.05);
    }
    .dropdown a:last-child { border-bottom: 0; }
    .dropdown a small { font-size: 0.7rem; }

    /* CTA do menu */
    .nav-cta {
        display: flex;
        margin: 1.5rem 0 0;
        padding: 1rem;
        border-radius: 12px;
        justify-content: center;
        font-size: 0.95rem;
    }

    /* Hero responsivo */
    .hero { padding: 2.5rem 0 3.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-card { order: -1; padding: 1.5rem; }

    /* Grids colapsam */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding: 3rem 0; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-num { font-size: 2rem; }

    /* Subhero em mobile */
    .subhero { padding: 2.5rem 0 2.5rem; }

    /* Section-head menor */
    .section-head { margin-bottom: 2rem; }
    .section-head p { font-size: 0.95rem; }

    /* Cards menos padding */
    .card { padding: 1.4rem; }

    /* Tipografia menor */
    h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
    h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
}

/* ============ MOBILE PEQUENO (≤540px) ============ */
@media (max-width: 540px) {
    :root { --header-h: 62px; }
    .stats-row { grid-template-columns: 1fr; }
    .btn { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
    .btn-lg { padding: 1rem 1.5rem; font-size: 0.95rem; }
    .btn-row .btn { width: 100%; }
    .btn-row { flex-direction: column; }
    .sticky-wa { width: 54px; height: 54px; font-size: 1.5rem; bottom: 16px; right: 16px; }

    .topbar { padding: 0.35rem 0; font-size: 0.72rem; }
    .topbar-cta { font-size: 0.78rem; }

    .container, .container-narrow { padding: 0 1rem; }

    .logo-text small { display: none; }
    .logo-text strong { font-size: 1rem; }

    .hero-card { padding: 1.25rem; }
    .card { padding: 1.25rem; }
    .form-card, .lp-form-card { padding: 1.5rem; }

    .breadcrumbs { font-size: 0.72rem; }
}

/* ============ MOBILE MUITO PEQUENO (≤380px) ============ */
@media (max-width: 380px) {
    .logo-icon { width: 34px; height: 34px; font-size: 0.95rem; }
    .logo-text strong { font-size: 0.92rem; }
    .topbar-cta i { margin-right: 2px; }
    .menu-toggle { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
body.no-scroll { overflow: hidden; }

/* Helpers */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 2rem; }
.mb-3 { margin-bottom: 2rem; }

/* ============ DARK SECTION OVERRIDES — feature-list visível em fundo escuro ============ */
.section-dark .feature-list li,
.section-gold .feature-list li,
.authority-section .feature-list li,
.process-section .feature-list li {
    color: var(--gray-200);
    border-bottom-color: rgba(255,255,255,0.08);
}
.section-dark .feature-list li::before,
.section-gold .feature-list li::before,
.authority-section .feature-list li::before,
.process-section .feature-list li::before {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
}
.section-dark .feature-list.is-warning li::before,
.section-gold .feature-list.is-warning li::before {
    background: rgba(239,68,68,0.18);
    color: #fca5a5;
}

/* Strong dentro de feature-list em fundo escuro */
.section-dark .feature-list li strong,
.section-gold .feature-list li strong { color: var(--white); }

/* ============ FORMS — cores GARANTIDAS (independente de qualquer container) ============ */
.form-card,
.lp-form-card,
.hero-card {
    background: var(--white);
    color: var(--navy-900);
}
.form-card .form-group label,
.lp-form-card .form-group label,
.hero-card .form-group label {
    color: var(--navy-800);
}
.form-card .form-control,
.lp-form-card .form-control,
.hero-card .form-control {
    color: var(--navy-900);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
}
.form-card .form-control::placeholder,
.lp-form-card .form-control::placeholder,
.hero-card .form-control::placeholder {
    color: var(--gray-400);
    opacity: 1;
}
.form-card .form-control:focus,
.lp-form-card .form-control:focus,
.hero-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-card .form-submit-info,
.lp-form-card .form-submit-info,
.hero-card .form-submit-info {
    background: var(--gray-50);
    color: var(--gray-600);
}

/* ============ AUTHORITY-SECTION em página light (sobre.html usa bg light) ============ */
.section-light .authority-img-wrap {
    background: linear-gradient(135deg, #f8fafc, #fef3c7);
    border-color: var(--gold-300);
}
.section-light .authority-img-wrap h4 { color: var(--navy-900); }
.section-light .authority-img-wrap small { color: var(--gold-700); }

/* ============ Card link icon segue color do parent ============ */
.card-link i { transition: transform var(--transition); }
.card-link:hover i { transform: translateX(3px); }
