/* =====================================================================
   Rocha e Couto Advocacia — folha de estilos
   ===================================================================== */

:root {
    --navy: #0a1c33;
    --navy-2: #0f2745;
    --navy-3: #16365c;
    --navy-soft: #1d426d;
    --gold: #c9a24d;
    --gold-2: #e2c47e;
    --gold-3: #a9853a;
    --gold-soft: #f5ebd4;
    --cream: #f8f5ef;
    --paper: #ffffff;
    --ink: #1b2432;
    --muted: #647083;
    --muted-2: #8b95a3;
    --line: #e5e1d8;
    --line-2: #efebe3;
    --ok: #1f7a5c;
    --ok-bg: #e6f4ee;
    --warn: #a4690f;
    --warn-bg: #fdf0d9;
    --danger: #b23b3b;
    --danger-bg: #fbe9e9;
    --info: #245a8d;
    --info-bg: #e8f0f8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 56, .06);
    --shadow: 0 22px 55px -28px rgba(10, 28, 51, .45);
    --shadow-lg: 0 40px 90px -40px rgba(10, 28, 51, .55);
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --sidebar-w: 264px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 999;
    background: var(--gold);
    color: var(--navy);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
}
.skip-link:focus { left: 16px; }

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* ---------------------------------------------------------------------
   Botões
   ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
    line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: var(--navy);
    box-shadow: 0 10px 22px -12px rgba(201, 162, 77, .8);
}
.btn-gold:hover { background: linear-gradient(135deg, #ecd495, #cfa955); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }

.btn-ghost {
    background: transparent;
    border-color: rgba(10, 28, 51, .18);
    color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(10, 28, 51, .04); }

.btn-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}
.btn-light:hover { background: rgba(255, 255, 255, .16); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #992f2f; }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--navy);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { color: var(--gold-3); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   Topbar e cabeçalho público
   ------------------------------------------------------------------ */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 20px;
}
.topbar-info, .topbar-acoes { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .18s; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 82px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--gold-2);
    border: 1px solid rgba(201, 162, 77, .55);
    border-radius: 3px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .04);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: .02em;
    color: var(--navy);
    font-weight: 700;
}
.brand-text small {
    margin-top: 4px;
    font-size: 9.5px;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold-3);
    font-weight: 600;
}
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--gold-2); }
.brand-light .brand-mark { background: rgba(255, 255, 255, .04); }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav > a {
    position: relative;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    padding: 8px 0;
    letter-spacing: .01em;
}
.main-nav > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s ease;
    transform-origin: left;
}
.main-nav > a:hover::after,
.main-nav > a.ativo::after { transform: scaleX(1); }
.main-nav > a.ativo { color: var(--gold-3); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-mobile-actions { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 0 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 82% -10%, rgba(201, 162, 77, .17), transparent 62%),
        radial-gradient(700px 520px at -10% 110%, rgba(29, 66, 109, .55), transparent 65%),
        linear-gradient(135deg, #081729 0%, #0a1c33 45%, #102b4b 100%);
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 64px;
    align-items: center;
    padding: 92px 0 100px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 22px;
}
.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--gold);
}
.eyebrow.dark { color: var(--gold-3); }
.eyebrow.dark::before { background: var(--gold-3); }

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5vw, 4.15rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.01em;
    margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-lead {
    font-size: 16.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
    max-width: 530px;
    font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .66);
    font-size: 12.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--gold-2); }

/* Card de protocolo */
.protocol-card {
    position: relative;
    background: rgba(255, 255, 255, .97);
    border-radius: 18px;
    padding: 34px;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
}
.protocol-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(10, 28, 51, .06);
    border-radius: 12px;
    pointer-events: none;
}
.protocol-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-3);
    margin-bottom: 18px;
}
.protocol-icon svg { width: 22px; height: 22px; }
.protocol-card h2 {
    font-family: var(--serif);
    font-size: 27px;
    color: var(--navy);
    margin-bottom: 8px;
}
.protocol-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.protocol-card .form-group { margin-bottom: 12px; }
.protocol-card .field-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted-2); }
.protocol-card .field-hint a { color: var(--gold-3); font-weight: 600; }
.protocol-card .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted-2);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.protocol-card .divider::before,
.protocol-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.protocol-card .mini-links { display: grid; gap: 10px; }
.protocol-card .mini-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8f6f1;
    border: 1px solid var(--line-2);
    transition: border-color .18s, background .18s;
}
.protocol-card .mini-links a:hover { border-color: var(--gold); background: #fdfaf3; }
.protocol-card .mini-links svg { width: 17px; height: 17px; color: var(--gold-3); }

/* ---------------------------------------------------------------------
   Seções
   ------------------------------------------------------------------ */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-cream { background: var(--cream); }
.section-white { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -.005em;
    margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: rgba(255, 255, 255, .66); }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.area-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}
.area-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 162, 77, .45); }
.area-card:hover::before { transform: scaleY(1); }
.area-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--gold-2);
    margin-bottom: 20px;
}
.area-icon svg { width: 22px; height: 22px; }
.area-card h3 {
    font-family: var(--serif);
    font-size: 23px;
    color: var(--navy);
    margin-bottom: 10px;
}
.area-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 18px; }

/* Sobre */
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about-visual {
    position: relative;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
    border-radius: 20px;
    min-height: 430px;
    padding: 42px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-visual::before {
    content: 'RC';
    position: absolute;
    right: -10px;
    bottom: -50px;
    font-family: var(--serif);
    font-size: 280px;
    line-height: 1;
    color: rgba(255, 255, 255, .045);
    letter-spacing: -.04em;
}
.about-visual::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -90px;
    border: 1px solid rgba(201, 162, 77, .35);
    border-radius: 50%;
}
.about-visual-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.about-quote {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.25;
    font-style: italic;
    color: #fff;
    max-width: 320px;
}
.about-quote span { color: var(--gold-2); }
.about-sign { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-top: 26px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }
.about-stats strong { display: block; font-family: var(--serif); font-size: 27px; color: var(--gold-2); }
.about-stats small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }

.about-copy h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.3vw, 2.7rem);
    color: var(--navy);
    margin-bottom: 18px;
}
.about-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.check-list { display: grid; gap: 12px; margin: 26px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.check-list svg { width: 19px; height: 19px; color: var(--gold-3); margin-top: 2px; }

/* CTA */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 88% 20%, rgba(201, 162, 77, .2), transparent 60%),
        linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
    border-radius: 22px;
    padding: 54px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .68); max-width: 560px; font-size: 14px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Números / faixa */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.stats-strip div { padding: 26px 28px; border-right: 1px solid var(--line-2); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); }
.stats-strip span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }

/* Página interna */
.page-hero {
    position: relative;
    background:
        radial-gradient(700px 300px at 85% 0%, rgba(201, 162, 77, .16), transparent 60%),
        linear-gradient(130deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
    padding: 72px 0 66px;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(201, 162, 77, .25);
    border-radius: 50%;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .7); max-width: 640px; font-size: 15px; line-height: 1.75; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb span { color: rgba(255, 255, 255, .3); }

.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.prose h2 { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 34px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #46505f; line-height: 1.85; margin-bottom: 16px; }
.prose ul { display: grid; gap: 10px; margin: 18px 0; }
.prose ul li { display: flex; gap: 10px; color: #46505f; font-size: 14.5px; }
.prose ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex: none; }

.aside-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-family: var(--serif); font-size: 23px; color: var(--navy); margin-bottom: 14px; }
.aside-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-list { display: grid; gap: 12px; margin-top: 20px; }
.aside-list a { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--navy); }
.aside-list a:last-child { border-bottom: 0; }
.aside-list svg { width: 15px; height: 15px; color: var(--gold-3); }

/* Contato */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
}
.contact-item .area-icon { width: 40px; height: 40px; border-radius: 10px; margin: 0; }
.contact-item .area-icon svg { width: 18px; height: 18px; }
.contact-item strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 3px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--navy); font-weight: 500; word-break: break-word; }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.form-card h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

/* ---------------------------------------------------------------------
   Formulários
   ------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.form-group label .req { color: var(--danger); }
.form-group .hint { font-size: 11.5px; color: var(--muted-2); }

.input, .select, .textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #d9d4c9;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s, background .18s;
    min-height: 44px;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.65; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647083' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 38px;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 77, .18);
}
.input::placeholder, .textarea::placeholder { color: #a8a297; }
.input[disabled], .select[disabled], .textarea[disabled] { background: #f4f2ed; color: var(--muted); }

.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); pointer-events: none; }
.input-icon .input { padding-left: 40px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #46505f; cursor: pointer; line-height: 1.5; }
.checkbox input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--gold-3); flex: none; }
.checkbox a { color: var(--gold-3); text-decoration: underline; }

.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .spacer { flex: 1; }
.form-actions small { display: inline-flex; align-items: center; gap: 5px; }
.form-actions small svg { width: 13px; height: 13px; }

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    border: 1px solid transparent;
    margin-bottom: 18px;
}
.alert svg { width: 18px; height: 18px; margin-top: 1px; }
.alert-erro { background: var(--danger-bg); color: #8e2c2c; border-color: #f0cfcf; }
.alert-aviso { background: var(--warn-bg); color: var(--warn); border-color: #f3dfb8; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #cfe0f0; }
.alert-sucesso { background: var(--ok-bg); color: var(--ok); border-color: #c4e6d8; }

/* ---------------------------------------------------------------------
   Flash
   ------------------------------------------------------------------ */
.flash-wrap { padding-top: 18px; }
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    animation: flashIn .25s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.flash svg { width: 18px; height: 18px; flex: none; }
.flash span { flex: 1; }
.flash-close { background: none; border: 0; padding: 2px; cursor: pointer; opacity: .6; display: grid; place-items: center; }
.flash-close:hover { opacity: 1; }
.flash-close svg { width: 15px; height: 15px; }
.flash-sucesso { background: var(--ok-bg); color: var(--ok); border-color: #c4e6d8; }
.flash-erro { background: var(--danger-bg); color: #8e2c2c; border-color: #f0cfcf; }
.flash-aviso { background: var(--warn-bg); color: var(--warn); border-color: #f3dfb8; }
.flash-info { background: var(--info-bg); color: var(--info); border-color: #cfe0f0; }

/* ---------------------------------------------------------------------
   Autenticação
   ------------------------------------------------------------------ */
.auth-wrap {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    min-height: 100vh;
}
.auth-aside {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 420px at 80% 10%, rgba(201, 162, 77, .18), transparent 60%),
        linear-gradient(150deg, #081729 0%, #0c2340 55%, #13345a 100%);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-aside::before {
    content: 'RC';
    position: absolute;
    right: -30px;
    bottom: -80px;
    font-family: var(--serif);
    font-size: 360px;
    line-height: 1;
    color: rgba(255, 255, 255, .04);
}
.auth-aside::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -110px;
    top: -110px;
    border: 1px solid rgba(201, 162, 77, .3);
    border-radius: 50%;
}
.auth-aside-inner { position: relative; z-index: 1; }
.auth-aside h2 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    line-height: 1.12;
    margin: 40px 0 18px;
    max-width: 440px;
}
.auth-aside h2 em { color: var(--gold-2); font-style: italic; }
.auth-aside p { color: rgba(255, 255, 255, .66); max-width: 420px; font-size: 14.5px; line-height: 1.75; }
.auth-benefits { display: grid; gap: 14px; margin-top: 34px; }
.auth-benefits li { display: flex; gap: 11px; font-size: 13.5px; color: rgba(255, 255, 255, .78); align-items: flex-start; }
.auth-benefits svg { width: 18px; height: 18px; color: var(--gold-2); margin-top: 1px; }
.auth-aside-foot { position: relative; z-index: 1; font-size: 11.5px; color: rgba(255, 255, 255, .4); }

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 32px;
    background: var(--cream);
}
.auth-card { width: min(430px, 100%); }
.auth-card .brand { margin-bottom: 38px; }
.auth-card h1 { font-family: var(--serif); font-size: 34px; color: var(--navy); margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.auth-card .btn { width: 100%; padding: 13px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.auth-links a { color: var(--gold-3); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--muted-2); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 26px; }
.auth-back:hover { color: var(--navy); }
.auth-back svg { width: 15px; height: 15px; }
.auth-demo {
    margin-top: 26px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
.auth-demo strong { color: var(--navy); }

/* ---------------------------------------------------------------------
   Rodapé
   ------------------------------------------------------------------ */
.site-footer {
    background: #071527;
    color: rgba(255, 255, 255, .62);
    padding: 64px 0 0;
    border-top: 1px solid rgba(201, 162, 77, .25);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 40px;
    padding-bottom: 44px;
}
.footer-brand p { font-size: 13px; line-height: 1.75; margin-top: 20px; max-width: 290px; }
.footer-oab { color: var(--gold-2) !important; font-size: 11.5px !important; letter-spacing: .08em; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--gold-2);
    margin-bottom: 6px;
    font-weight: 600;
}
.footer-col a, .footer-endereco { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-col svg { width: 15px; height: 15px; color: var(--gold); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0 26px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .38);
}
.footer-legal { max-width: 620px; text-align: right; }

/* ---------------------------------------------------------------------
   Acompanhamento público
   ------------------------------------------------------------------ */
.tracking-wrap { max-width: 760px; margin-inline: auto; }
.tracking-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.tracking-result { margin-top: 34px; }
.tracking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-2);
    margin-bottom: 22px;
}
.tracking-head h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); }
.tracking-head .protocolo { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--gold-3); font-weight: 700; }

/* ---------------------------------------------------------------------
   Painel — estrutura
   ------------------------------------------------------------------ */
body.app { background: #f3f1eb; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #081729 0%, #0b2038 60%, #0d2542 100%);
    color: rgba(255, 255, 255, .7);
    display: flex;
    flex-direction: column;
    z-index: 80;
    border-right: 1px solid rgba(201, 162, 77, .16);
}
.sidebar-brand {
    padding: 24px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-brand .brand-mark { width: 40px; height: 40px; font-size: 18px; }
.sidebar-brand .brand-text strong { font-size: 18px; }
.sidebar-brand .brand-text small { font-size: 8.5px; }
.sidebar-nav {
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
}
.sidebar-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .3);
    padding: 0 12px 10px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .68);
    transition: background .18s, color .18s;
    position: relative;
}
.sidebar-nav a svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .45); transition: color .18s; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.sidebar-nav a:hover svg { color: var(--gold-2); }
.sidebar-nav a.ativo { background: rgba(201, 162, 77, .13); color: #fff; }
.sidebar-nav a.ativo::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.sidebar-nav a.ativo svg { color: var(--gold-2); }
.nav-badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 0 6px;
}
.sidebar-footer { padding: 16px 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sidebar-user-info strong { font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small { font-size: 10.5px; color: var(--gold-2); }
.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    flex: none;
    letter-spacing: .02em;
}
.avatar-sm { width: 30px; height: 30px; font-size: 10.5px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    margin-top: 4px;
    border-radius: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}
.sidebar-logout:hover { background: rgba(178, 59, 59, .16); color: #f3b8b8; }
.sidebar-logout svg { width: 16px; height: 16px; }

.app-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0 30px;
    min-height: 74px;
}
.app-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    place-items: center;
    color: var(--navy);
}
.app-menu-toggle svg { width: 19px; height: 19px; }
.app-topbar-title h1 { font-family: var(--serif); font-size: 25px; color: var(--navy); line-height: 1.15; }
.app-topbar-title p { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.app-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.topbar-link:hover { color: var(--navy); }
.topbar-link svg { width: 15px; height: 15px; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
}
.user-chip svg { width: 14px; height: 14px; color: var(--muted-2); }

.app-content { padding: 28px 30px 44px; flex: 1; }
.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 30px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted-2);
    background: #f8f6f1;
    flex-wrap: wrap;
}

.sidebar-overlay { display: none; }

/* Cabeçalho de página do painel */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head h2 { font-family: var(--serif); font-size: 27px; color: var(--navy); }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-2);
    flex-wrap: wrap;
}
.card-head h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); }
.card-head p { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.card-body { padding: 22px; }
.card-body-tight { padding: 14px 22px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 20px;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}
.stat-card:hover { border-color: rgba(201, 162, 77, .5); box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-3); }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.navy { background: #e9eef5; color: var(--navy-3); }
.stat-icon.green { background: var(--ok-bg); color: var(--ok); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: 32px; color: var(--navy); line-height: 1; }
.stat-note { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.stat-note strong { color: var(--gold-3); }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

/* Listas e tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted-2);
    font-weight: 600;
    background: #faf8f4;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf8; }
.table .td-main { font-weight: 600; color: var(--navy); }
.table .td-sub { display: block; font-size: 11.5px; color: var(--muted-2); font-weight: 400; margin-top: 2px; }
.table .td-actions { text-align: right; white-space: nowrap; }
.table a.td-link { font-weight: 600; color: var(--navy); }
.table a.td-link:hover { color: var(--gold-3); }

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--line-2);
    transition: background .15s;
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fcfbf8; }
.list-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1eee6;
    color: var(--navy-3);
    flex: none;
}
.list-icon svg { width: 18px; height: 18px; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-size: 13.5px; color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-side { text-align: right; flex: none; display: flex; align-items: center; gap: 12px; }

.empty {
    text-align: center;
    padding: 52px 24px;
    color: var(--muted);
}
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #f1eee6; color: var(--muted-2); margin: 0 auto 16px; }
.empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.empty p { font-size: 13px; max-width: 380px; margin: 0 auto 18px; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-aberto { background: var(--info-bg); color: var(--info); }
.st-andamento { background: var(--warn-bg); color: var(--warn); }
.st-aguardando { background: #f3ecfa; color: #6b3fa0; }
.st-resolvido { background: var(--ok-bg); color: var(--ok); }
.st-fechado { background: #eceef1; color: #59636f; }
.pr-baixa { background: #eef1f4; color: #5b6672; }
.pr-normal { background: var(--info-bg); color: var(--info); }
.pr-alta { background: var(--warn-bg); color: var(--warn); }
.pr-urgente { background: var(--danger-bg); color: var(--danger); }
.badge-plain::before { display: none; }
.badge-gold { background: var(--gold-soft); color: var(--gold-3); }
.badge-navy { background: #e9eef5; color: var(--navy-3); }

/* Filtros */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}
.filters .input-icon { flex: 1; min-width: 220px; }
.filters .select { width: auto; min-width: 160px; }
.filters .btn { flex: none; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    transition: all .16s;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Paginação */
.paginacao { display: flex; gap: 6px; justify-content: center; padding: 20px; flex-wrap: wrap; }
.pag-btn {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
    color: var(--navy);
    font-weight: 500;
}
.pag-btn:hover { border-color: var(--gold); }
.pag-btn.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------------------------------------------------------------------
   Processo
   ------------------------------------------------------------------ */
.detail-head {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 20px;
    overflow: hidden;
}
.detail-head::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(201, 162, 77, .28);
    border-radius: 50%;
}
.detail-head-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.detail-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 4px 0 8px; }
.detail-head .protocolo { font-size: 11.5px; letter-spacing: .14em; color: var(--gold-2); font-weight: 600; text-transform: uppercase; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; position: relative; z-index: 1; }
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255, 255, 255, .66); }
.detail-meta svg { width: 14px; height: 14px; color: var(--gold-2); }

.detail-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 20px; align-items: start; }
.info-list { display: grid; gap: 0; }
.info-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted-2); font-size: 12px; flex: none; }
.info-row dd { margin: 0; color: var(--navy); font-weight: 500; text-align: right; word-break: break-word; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px #fff;
}
.timeline-item.internal .timeline-dot { border-color: var(--warn); }
.timeline-date { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; }
.timeline-item h4 { font-size: 14px; color: var(--navy); margin: 4px 0 5px; }
.timeline-item p { font-size: 13px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.timeline-item .tag-interno { display: inline-block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* ---------------------------------------------------------------------
   Chamados / conversa
   ------------------------------------------------------------------ */
.chamado-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 20px; align-items: start; }
.thread { display: grid; gap: 16px; }
.msg { display: flex; gap: 12px; }
.msg-avatar { flex: none; }
.msg-body {
    background: #f8f6f1;
    border: 1px solid var(--line-2);
    border-radius: 4px 14px 14px 14px;
    padding: 15px 18px;
    min-width: 0;
    flex: 1;
}
.msg.staff .msg-body { background: #f0f4f9; border-color: #dfe8f2; }
.msg.interno .msg-body { background: #fdf6e8; border-color: #f0dfb8; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.msg-head strong { font-size: 12.5px; color: var(--navy); }
.msg-head .role { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-3); font-weight: 600; }
.msg-head time { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }
.msg-text { font-size: 13.5px; color: #3d4754; line-height: 1.7; white-space: pre-line; word-break: break-word; }
.msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--navy);
    max-width: 100%;
    transition: border-color .16s;
}
.file-chip:hover { border-color: var(--gold); }
.file-chip svg { width: 15px; height: 15px; color: var(--gold-3); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

.reply-box { margin-top: 20px; }
.reply-box .textarea { min-height: 110px; }
.reply-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.reply-tools .hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.reply-tools .hint svg { width: 15px; height: 15px; flex: none; color: var(--gold-3); }

.upload-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px dashed #d8d2c5;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fbfaf7;
    cursor: pointer;
    transition: border-color .18s, background .18s;
    font-size: 12.5px;
    color: var(--muted);
}
.upload-zone:hover { border-color: var(--gold); background: #fdfaf3; }
.upload-zone svg { width: 20px; height: 20px; color: var(--gold-3); }
.upload-zone strong { color: var(--navy); font-weight: 600; }
.upload-zone input[type="file"] { display: none; }
.file-selected { font-size: 11.5px; color: var(--ok); margin-top: 8px; display: none; }

/* Documentos */
.doc-list { display: grid; gap: 10px; }
.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s;
}
.doc-item:hover { border-color: var(--gold); }
.doc-item .list-icon { width: 36px; height: 36px; border-radius: 8px; }
.doc-item .list-icon svg { width: 17px; height: 17px; }
.doc-item .list-main strong { font-size: 12.5px; }
.doc-item .list-main span { font-size: 10.5px; }
.doc-item .btn { padding: 6px 10px; }
.doc-item .btn svg { width: 15px; height: 15px; }
.internal-only { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--warn); background: var(--warn-bg); padding: 2px 6px; border-radius: 4px; }

/* Anexos no formulário */
.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------------
   Perfil / formulários administrativos
   ------------------------------------------------------------------ */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.profile-card { text-align: center; padding: 30px 24px; }
.profile-card .avatar { margin: 0 auto 16px; }
.profile-card h3 { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.profile-card p { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.profile-card .badge { margin-top: 12px; }
.profile-card .info-list { margin-top: 22px; text-align: left; }

/* Relatórios */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 46px; align-items: center; gap: 12px; font-size: 12.5px; }
.bar-row span:first-child { color: var(--muted); }
.bar-track { height: 9px; background: #f0ede6; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-3)); border-radius: 10px; }
.bar-row strong { text-align: right; color: var(--navy); font-size: 12.5px; }

/* ---------------------------------------------------------------------
   Erro
   ------------------------------------------------------------------ */
.erro-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(700px 400px at 70% 0%, rgba(201, 162, 77, .16), transparent 60%),
        linear-gradient(135deg, #081729, #0d2542);
    padding: 24px;
}
.erro-card {
    max-width: 520px;
    background: rgba(255, 255, 255, .98);
    border-radius: 18px;
    padding: 46px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
}
.erro-code { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold-3); display: block; margin-bottom: 8px; }
.erro-card h1 { font-family: var(--serif); font-size: 30px; color: var(--navy); margin-bottom: 10px; }
.erro-card p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.erro-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------------ */
@media (max-width: 1080px) {
    .hero-inner { gap: 40px; padding: 72px 0 80px; }
    .main-nav { gap: 20px; }
    .header-actions .btn-ghost { display: none; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; }
    .footer-col:last-child h3 { width: 100%; margin-bottom: 0; }
    .detail-grid, .chamado-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(10, 28, 51, .35);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 20px;
        display: none;
    }
    .main-nav.aberto { display: flex; }
    .main-nav > a { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
    .main-nav > a::after { display: none; }
    .nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
    .header-actions { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .header-inner { min-height: 72px; }

    .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; }
    .protocol-card { max-width: 520px; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-visual { min-height: 340px; }
    .content-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip div:nth-child(2) { border-right: 0; }
    .stats-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { min-height: 100vh; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.aberta { transform: none; }
    .app-main { margin-left: 0; }
    .app-menu-toggle { display: grid; }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(7, 21, 39, .55);
        z-index: 70;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.ativo { display: block; }
    .app-content { padding: 22px 20px 36px; }
    .app-topbar { padding: 0 20px; }
    .app-footer { padding: 14px 20px; }
    .dash-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .topbar-info a:nth-child(2) { display: none; }
    .topbar-inner { min-height: 34px; }
    .brand-mark { width: 42px; height: 42px; font-size: 19px; }
    .brand-text strong { font-size: 19px; }
    .brand-text small { font-size: 8.5px; }
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 32px; }
    .hero h1 { font-size: 2.5rem; }
    .protocol-card { padding: 26px; }
    .areas-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .about-stats strong { font-size: 22px; }
    .cta-band { padding: 32px 26px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-col:last-child { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-legal { text-align: left; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 27px; }
    .app-topbar-title h1 { font-size: 20px; }
    .app-topbar-title p { display: none; }
    .topbar-link span, .user-chip-name { display: none; }
    .page-head h2 { font-size: 23px; }
    .detail-head { padding: 24px; }
    .card-body { padding: 18px; }
    .filters .input-icon, .filters .select { width: 100%; min-width: 0; }
    .filters .btn { width: 100%; }
    .form-card, .tracking-card { padding: 24px; }
    .bar-row { grid-template-columns: 100px 1fr 40px; }
    .erro-card { padding: 34px 24px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .protocol-card .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Impressão
   ------------------------------------------------------------------ */
@media print {
    .sidebar, .app-topbar, .app-footer, .sidebar-overlay, .no-print, .btn { display: none !important; }
    .app-main { margin-left: 0; }
    body.app { background: #fff; }
    .app-content { padding: 0; }
    .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
    .detail-head { background: #fff !important; color: #000; border: 1px solid #ccc; }
    .detail-head h2, .detail-head .protocolo { color: #000; }
    .detail-meta span { color: #333; }
}

/* ---------------------------------------------------------------------
   Instala��o
   ------------------------------------------------------------------ */
.setup-body {
    min-height: 100vh;
    padding: 46px 20px;
    background:
        radial-gradient(800px 420px at 85% 0%, rgba(201, 162, 77, .16), transparent 60%),
        linear-gradient(140deg, #081729 0%, #0c2340 55%, #13345a 100%);
    display: grid;
    place-items: start center;
}
.setup-card {
    width: min(700px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
    overflow: hidden;
}
.setup-head {
    padding: 38px 42px 26px;
    text-align: center;
    border-bottom: 1px solid var(--line-2);
    background: #fdfcf9;
}
.setup-head .brand { justify-content: center; }
.setup-head h1 { font-family: var(--serif); font-size: 33px; color: var(--navy); margin-bottom: 8px; }
.setup-head p { color: var(--muted); font-size: 13.5px; }
.setup-body-inner { padding: 30px 42px 38px; }
.setup-status {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--ok-bg);
    border: 1px solid #c4e6d8;
    color: var(--ok);
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 12.5px;
    margin-bottom: 22px;
}
.setup-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.setup-subtitle { font-family: var(--serif); font-size: 23px; color: var(--navy); margin-bottom: 16px; }
.setup-info {
    background: #faf8f4;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.setup-info p { margin-bottom: 6px; }
.setup-info p:last-child { margin-bottom: 0; }
.setup-info strong { color: var(--navy); }
.setup-info hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.setup-error { color: var(--danger); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; word-break: break-word; }
.setup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.setup-foot { margin-top: 20px; font-size: 11.5px; color: var(--muted-2); text-align: center; }
code {
    background: #f1eee6;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: .92em;
    color: var(--navy-3);
}

/* ---------------------------------------------------------------------
   Utilidades
   ------------------------------------------------------------------ */
.text-muted { color: var(--muted); }
.text-small { font-size: 12px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: -.02em; }
.hidden { display: none !important; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.stack-sm { display: grid; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.section-title-sm {
    font-family: var(--serif);
    font-size: 21px;
    color: var(--navy);
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
    font-weight: 600;
    margin-bottom: 10px;
}
.divider-line { height: 1px; background: var(--line-2); margin: 18px 0; }

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .checkbox-grid { grid-template-columns: 1fr; }
}
.contact-msg {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-2);
}
.contact-msg:last-child { border-bottom: 0; }
.contact-msg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.contact-msg-head strong { color: var(--navy); font-size: 13.5px; }
.contact-msg-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.contact-msg-body {
    font-size: 13px;
    color: #46505f;
    line-height: 1.7;
    white-space: pre-line;
    background: #faf8f4;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    padding: 14px 16px;
    margin-top: 10px;
}
.contact-msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
