/* ── Base cromatica dos controles de formulario ───────────────────────
   color-scheme: light impede o modo escuro automatico do navegador de
   pintar inputs/selects de cinza-escuro. Seletores de elemento tem a
   menor especificidade, entao qualquer regra de classe existente vence. */
:root { color-scheme: light; }

input, select, textarea {
    background-color: #ffffff;
    color: #083f65;
}

input::placeholder,
textarea::placeholder { color: #8fa6b3; }

:root {
    --gov-dark: #083F65;
    --gov-blue: #0D639E;
    --gov-mid: #1580C6;
    --gov-light: #7FD0F7;
    --gov-accent: #26B2FD;
    --gov-accent2: #7FD0F7;

    --surface: #F2F6F9;
    --surface2: #DCE6EB;

    --white: #FFFFFF;

    --text-primary: #16232d;
    --text-secondary: #4a6273;
    --text-muted: #8FA6B3;

    --border: #DCE6EB;
    --border-light: #EEF3F7;

    --success: #1580C6;
    --warning: #D97706;

    --shadow: 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 20px rgba(0,0,0,.09);

    --azul-esc: #083F65;
    --cinza-200: #DCE6EB;
    --cinza-600: #4a6273;
    --cinza-800: #16232d;
    --branco: #FFFFFF;
    --sombra-lg: 0 4px 20px rgba(0,0,0,.09);
    --raio: 10px;
    --raio-pill: 40px;
    --ciano-sv: #E4F3FD;
    --azul-sv: #E8F1F8;
    --cinza-100: #F2F6F9;

    --font-serif: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sans: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
body {
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── TOPO GOV ── */
.top-strip {
    background: var(--gov-dark);
    padding: 9px 0;
}
.top-strip-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.92);
}
.top-strip-inner .left { display: flex; align-items: center; gap: 8px; }
.top-strip-inner .left i { font-size: 10px; color: var(--gov-light); }
.top-strip-inner .right { font-weight: 600; letter-spacing: 0.08em; }

/* ── HEADER ── */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}
.header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.header__brand { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; text-decoration: none; color: inherit; }
.header__brand img { height: 76px; width: auto; }
.header__name { display: flex; flex-direction: column; gap: .05rem; }
.header__sigla {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--azul-esc);
    letter-spacing: .01em;
    line-height: 1;
}
.header__descricao { font-size: .63rem; color: var(--text-muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.header__sep { width: 1px; height: 32px; background: var(--border); }
.header__nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.header__nav a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gov-dark);
    padding: .5rem 1.1rem;
    border-radius: var(--raio);
    transition: background .18s, color .18s;
}

.header__nav a:hover, .header__nav a.active { background: var(--ciano-sv); color: var(--gov-dark); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 700; font-size: .95rem;
    border-radius: var(--raio); padding: .7rem 1.5rem; cursor: pointer;
    transition: background .15s, border-color .15s; border: 1.5px solid transparent;
}
.btn--primary { background: var(--gov-blue); color: white; border-color: var(--gov-blue); }
.btn--primary:hover { background: var(--gov-mid); border-color: var(--gov-mid); }

/* ── HERO ── */
.hero {
    background: var(--gov-dark);
    padding: 4.5rem 24px 3.5rem;
    border-bottom: 6px solid var(--gov-accent);
}
.hero-inner { max-width: 1240px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    background: var(--gov-accent); color: var(--gov-dark);
    font-size: 11.5px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: .4rem 1rem; border-radius: var(--raio-pill); margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    color: white; line-height: 1.16; margin-bottom: 14px;
    max-width: 640px;
}
.hero p { color: rgba(255,255,255,0.68); font-size: 15px; line-height: 1.7; margin-bottom: 34px; max-width: 560px; }
.hero-kpis { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid rgba(255,255,255,0.16); width: fit-content; }
.kpi-pill { padding: 14px 26px; min-width: 150px; border-right: 1px solid rgba(255,255,255,0.16); }
.kpi-pill:last-child { border-right: none; }
.kpi-value { font-family: var(--font-serif); font-weight: 800; font-size: 26px; color: var(--gov-accent2); line-height: 1; display: block; }
.kpi-label { font-size: 11.5px; color: rgba(255,255,255,0.6); margin-top: 5px; display: block; font-weight: 500; }

/* ── SEARCH BAR ── */
.search-hero-wrap { max-width: 1240px; margin: -22px auto 0; padding: 0 24px; position: relative; z-index: 10; }
.search-hero-card {
    background: var(--white); border-radius: var(--raio); box-shadow: var(--shadow-lg);
    padding: 18px 22px; border: 1px solid var(--border);
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search-field { flex: 2; min-width: 200px; position: relative; }
.search-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.search-field input {
    width: 100%; padding: 11px 14px 11px 40px; border: 1.5px solid var(--border);
    border-radius: var(--raio); font-family: var(--font-sans); font-size: 14px;
    color: var(--text-primary); transition: all 0.2s; background: var(--surface);
}
.search-field input:focus { outline: none; border-color: var(--gov-blue); background: white; }
.search-field input::placeholder { color: var(--text-muted); }
.search-select-wrap { position: relative; flex: 0 0 160px; }
.search-select-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; }
.search-select-wrap select {
    width: 100%; padding: 11px 12px 11px 34px; border: 1.5px solid var(--border);
    border-radius: var(--raio); font-family: var(--font-sans); font-size: 13px;
    color: var(--text-primary); background: var(--surface); cursor: pointer; appearance: none;
}
.search-select-wrap select:focus { outline: none; border-color: var(--gov-blue); background: white; }
.search-btn {
    background: var(--gov-blue); color: white; border: none; padding: 11px 24px;
    border-radius: var(--raio); font-family: var(--font-sans); font-size: 14px;
    font-weight: 600; cursor: pointer; display: flex; align-items: center;
    gap: 8px; transition: background .2s; white-space: nowrap;
}
.search-btn:hover { background: var(--gov-mid); }
.search-clear {
    background: none; border: 1.5px solid var(--border); color: var(--text-muted);
    padding: 10px 16px; border-radius: var(--raio); font-family: var(--font-sans);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.search-clear:hover { border-color: #b91c1c; color: #b91c1c; }

/* ── MAIN LAYOUT ── */
.main-wrap {
    max-width: 1240px; margin: 32px auto 60px; padding: 0 24px;
    display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start;
}

/* ── SIDEBAR ── */
.sidebar { background: var(--white); border-radius: var(--raio); border: 1px solid var(--border); position: sticky; top: 88px; overflow: hidden; }
.sidebar-header { padding: 18px 20px 16px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.sidebar-header h3 { font-size: 12.5px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sidebar-header h3 i { color: var(--gov-accent); font-size: 12px; }
.sidebar-clear { font-size: 11px; font-weight: 600; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 4px 8px; transition: color 0.2s; }
.sidebar-clear:hover { color: #b91c1c; }
.filter-section { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.filter-section:last-child { border-bottom: none; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.filter-label i { color: var(--gov-light); }

.mod-chips-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-chip {
    padding: 6px 12px; border-radius: var(--raio); border: 1.5px solid var(--border);
    font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s;
    color: var(--text-secondary); background: var(--surface);
}
.mod-chip:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.mod-chip.selected { background: var(--gov-blue); border-color: var(--gov-blue); color: white; font-weight: 600; }

.filter-chips { display: flex; flex-direction: column; gap: 6px; }
.filter-chip {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border-radius: var(--raio); border: 1.5px solid var(--border-light); cursor: pointer;
    transition: all 0.15s; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); background: var(--surface); user-select: none;
}
.filter-chip:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.filter-chip.selected { background: rgba(13, 99, 158,0.06); border-color: var(--gov-blue); color: var(--gov-blue); font-weight: 600; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.15s; }
.filter-chip.selected .chip-dot { background: var(--gov-blue); }
.chip-count { margin-left: auto; font-size: 11px; background: var(--border-light); color: var(--text-muted); padding: 1px 7px; border-radius: var(--raio); font-weight: 600; }
.filter-chip.selected .chip-count { background: rgba(13, 99, 158,0.12); color: var(--gov-blue); }

.salary-range { display: flex; flex-direction: column; gap: 6px; }
.salary-option {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    border-radius: var(--raio); border: 1.5px solid var(--border-light); cursor: pointer;
    transition: all 0.15s; font-size: 13px; color: var(--text-secondary); background: var(--surface);
}
.salary-option:hover { border-color: var(--gov-blue); color: var(--gov-blue); }
.salary-option.selected { background: rgba(13, 99, 158,0.06); border-color: var(--gov-blue); color: var(--gov-blue); font-weight: 600; }
.salary-option input[type="radio"] { display: none; }
.radio-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.salary-option.selected .radio-dot { border-color: var(--gov-blue); }
.salary-option.selected .radio-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gov-blue); }

.active-filters-count {
    background: var(--gov-accent); color: var(--gov-dark); font-size: 10px;
    font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
}
.active-filters-count.show { display: flex; }

/* ── COURSES AREA ── */
.courses-area { min-width: 0; }
.courses-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.result-info { font-size: 14px; color: var(--text-muted); }
.result-info strong { font-family: var(--font-serif); font-weight: 800; color: var(--text-primary); font-size: 17px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.sort-wrap select {
    padding: 7px 30px 7px 12px; border: 1.5px solid var(--border); border-radius: var(--raio);
    font-family: var(--font-sans); font-size: 12px; color: var(--text-primary);
    background: white; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23556358'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.sort-wrap select:focus { outline: none; border-color: var(--gov-blue); }

/* ── COURSE CARDS ── */
#coursesContainer { display: flex; flex-direction: column; gap: 10px; }

.course-card {
    background: var(--white); border: 1px solid var(--border); border-left: 3px solid transparent;
    border-radius: var(--raio); padding: 20px 22px; transition: border-color 0.15s;
}
.course-card:hover { border-left-color: var(--gov-blue); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-left { flex: 1; min-width: 0; }
.course-title { font-family: var(--font-serif); font-weight: 800; font-size: 19px; color: var(--text-primary); margin-bottom: 6px; line-height: 1.25; }

.card-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.status-badge-open {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    border-radius: var(--raio); font-size: 11px; font-weight: 600;
    color: var(--gov-blue); border: 1px solid rgba(13, 99, 158,.3);
}
.status-badge-closed {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    border-radius: var(--raio); font-size: 11px; font-weight: 600;
    color: #92400e; border: 1px solid #fde68a;
}
.status-badge-open i, .status-badge-closed i { font-size: 7px; }

.vacancies-big { font-family: var(--font-serif); font-weight: 800; font-size: 20px; color: var(--gov-blue); }
.vacancies-sub { font-size: 10px; color: var(--text-muted); font-weight: 500; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: var(--raio); font-size: 11px; font-weight: 600;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
}
.tag i { font-size: 10px; opacity: .65; }
.tag-modality, .tag-location, .tag-date, .tag-workload, .tag-age { border-color: var(--border); background: var(--surface); color: var(--text-secondary); }

.card-desc {
    font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.card-footer-dates { display: flex; gap: 12px; flex-wrap: wrap; }
.date-item { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.date-item strong { color: var(--text-secondary); font-weight: 600; }
.card-footer-actions { display: flex; gap: 8px; }

.btn-details {
    padding: 8px 20px; border-radius: var(--raio); font-family: var(--font-sans);
    font-size: 12px; font-weight: 700; border: none; background: var(--gov-blue);
    color: white; cursor: pointer; transition: background .15s; display: flex; align-items: center; gap: 6px;
}
.btn-details:hover { background: var(--gov-mid); }

/* ── VACANCIES PROGRESS ── */
.vacancies-bar-wrap { margin-bottom: 14px; }
.vacancies-bar-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.vacancies-bar-label span:last-child { font-weight: 700; color: var(--text-secondary); }
.vacancies-bar-track { height: 4px; background: var(--border-light); overflow: hidden; }
.vacancies-bar-fill { height: 100%; background: var(--gov-mid); transition: width 0.4s ease; }
.vacancies-bar-fill.low { background: #b91c1c; }

/* ── PAGINATION ── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 28px; gap: 6px; flex-wrap: wrap; }
.pg-btn {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--raio);
    border: 1.5px solid var(--border); background: white;
    font-family: var(--font-sans); font-size: 13px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.pg-btn:hover:not(:disabled) { border-color: var(--gov-blue); color: var(--gov-blue); }
.pg-btn.active { background: var(--gov-blue); border-color: var(--gov-blue); color: white; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── STATES ── */
.state-box { background: white; border-radius: var(--raio); border: 1px solid var(--border); padding: 60px 40px; text-align: center; color: var(--text-muted); }
.state-box i { font-size: 34px; color: var(--border); display: block; margin-bottom: 16px; }
.state-box h4 { font-family: var(--font-serif); font-weight: 800; font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.state-box p { font-size: 13px; }
.loading-spinner-inline { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODAL ── */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 31, 49,0.6); z-index: 900; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-box {
    background: white; border-radius: var(--raio); width: 100%; max-width: 680px;
    max-height: 90vh; display: flex; flex-direction: column;
    animation: modalIn 0.18s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.22); overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.modal-head h3 { font-family: var(--font-serif); font-weight: 800; font-size: 16px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.modal-head h3 i { color: var(--gov-accent); font-size: 13px; }
.modal-close-btn {
    width: 30px; height: 30px; border-radius: var(--raio); border: 1.5px solid var(--border);
    background: white; color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.modal-close-btn:hover { border-color: #b91c1c; color: #b91c1c; }
.modal-scroll { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

.detail-title { font-family: var(--font-serif); font-weight: 800; font-size: 22px; color: var(--text-primary); margin-bottom: 16px; line-height: 1.25; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 {
    font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.detail-section h4::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.detail-section p, .detail-section div { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.info-item { background: white; padding: 12px 14px; }
.info-item .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 3px; }
.info-item .val { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.btn-apply {
    padding: 10px 28px; border-radius: var(--raio); background: var(--gov-blue); color: white;
    border: none; font-family: var(--font-sans); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s; display: flex; align-items: center; gap: 8px;
}
.btn-apply:hover { background: var(--gov-mid); }
.btn-close-modal {
    padding: 10px 20px; border-radius: var(--raio); background: var(--surface);
    color: var(--text-secondary); border: 1.5px solid var(--border);
    font-family: var(--font-sans); font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-close-modal:hover { background: var(--surface2); }

/* Modal vacancies display */
.modal-vacancies-box {
    background: var(--gov-dark); border-radius: var(--raio); padding: 18px 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid rgba(127, 208, 247,.25);
}
.modal-vac-left .lbl { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.modal-vac-left .big { font-family: var(--font-serif); font-weight: 800; font-size: 30px; color: var(--gov-accent2); line-height: 1; }
.modal-vac-left .sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.modal-vac-right { text-align: right; }
.modal-vac-right .lbl { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.modal-vac-right .big { font-family: var(--font-serif); font-weight: 800; font-size: 26px; color: white; line-height: 1; }

/* ── WHATSAPP ── */
.wfloat { position: fixed; bottom: 24px; right: 24px; z-index: 300; text-decoration: none; }
.wfloat-btn {
    width: 52px; height: 52px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    font-size: 24px; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.wfloat:hover .wfloat-btn { transform: scale(1.06); }
.wfloat-label {
    position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
    background: var(--text-primary); color: white; padding: 5px 12px; border-radius: var(--raio);
    font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: all 0.2s;
}
.wfloat:hover .wfloat-label { opacity: 1; right: 68px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .main-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; margin-bottom: 0; }
    .search-hero-card { flex-wrap: wrap; }
    .search-select-wrap { flex: 0 0 calc(50% - 6px); }
}
@media (max-width: 640px) {
    .hero { padding: 36px 16px 3rem; }
    .main-wrap, .search-hero-wrap { padding: 0 14px; }
    .main-wrap { margin-top: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .search-select-wrap { flex: 0 0 100%; }
    .search-btn, .search-clear { width: 100%; justify-content: center; }
    .card-footer { flex-direction: column; align-items: flex-start; }
}

/* Botão hambúrguer */
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--azul-esc); cursor: pointer; padding: 0.5rem; margin-left: auto; }

.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.25s; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100%;
    background: var(--branco); box-shadow: -8px 0 30px rgba(0,0,0,.15); z-index: 999;
    padding: 2rem 1.5rem; transition: right 0.25s ease; overflow-y: auto;
}
.mobile-menu.active { right: 0; }

.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cinza-200); }
.mobile-menu-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--cinza-600); }
.mobile-menu-nav { display: flex; flex-direction: column; gap: .2rem; }
.mobile-menu-nav a { padding: .85rem 0; font-weight: 600; color: var(--cinza-800); border-bottom: 1px solid var(--cinza-200); }
.mobile-menu-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.mobile-menu-actions .btn { justify-content: center; }

@media (max-width: 1000px) {
    .menu-toggle { display: block; }
    .header__nav, .header__actions { display: none !important; }
    .header__inner { padding: 0.9rem 1rem; gap: 1rem; }
    .header__brand { flex: 0 0 auto; }
    .header__brand img { height: 58px; }
    .header__sep { display: none; }
}

@media (min-width: 1001px) {
    .mobile-menu, .mobile-menu-overlay, .menu-toggle { display: none; }
}
