/* Cores oficiais (Manual de Identidade Visual UEL 2019):
   Verde UEL  #00753B  (R0 G117 B59)
   Preto      #000000
   Tipografia: Lato (texto), Faustina (títulos) */

:root {
    --uel-green: #00753B;
    --uel-green-dark: #00552A;
    --uel-green-darker: #003D1E;
    --uel-green-soft: #e8f1ec;
    --uel-bg: #f4f6f4;
    --uel-surface: #ffffff;
    --uel-border: #d6dcd7;
    --uel-text: #1c1f1c;
    --uel-muted: #5b6660;
    --uel-link: var(--uel-green);
    --font-body: "Lato", "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Faustina", "Lato", Georgia, serif;
    --shadow-sm: 0 1px 2px rgba(0, 117, 59, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 117, 59, 0.12);
    --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--uel-bg);
    color: var(--uel-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

a { color: var(--uel-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute; left: -9999px; top: auto;
    background: var(--uel-green); color: #fff; padding: 8px 12px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; }

/* Header */
.site-header { background: var(--uel-surface); box-shadow: var(--shadow-sm); }
.site-header__bar { background: var(--uel-green); color: #fff; }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 16px 20px;
}
.site-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.site-brand:hover { text-decoration: none; }
.site-brand__logo { height: 46px; width: auto; filter: brightness(0) invert(1); }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-heading); }
.site-brand__text strong { font-size: 1.25rem; letter-spacing: 0.3px; font-weight: 600; }
.site-brand__text span { font-size: 0.82rem; opacity: 0.9; font-family: var(--font-body); }

.btn {
    display: inline-block; padding: 10px 18px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.92rem; border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s; cursor: pointer;
    font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }
.btn--accent {
    background: #fff; color: var(--uel-green); border-color: #fff;
}
.btn--accent:hover { background: var(--uel-green-dark); color: #fff; border-color: #fff; }

/* Hero */
.hero {
    background: var(--uel-green-darker);
    color: #fff;
    padding: 44px 0 32px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(120deg, transparent 0%, transparent 40%, rgba(0,117,59,0.35) 100%),
        radial-gradient(circle at 80% 30%, rgba(0,117,59,0.45) 0%, transparent 60%);
    pointer-events: none;
}
.hero > .container { position: relative; }
.hero__title {
    margin: 0 0 8px;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.hero__subtitle { margin: 0 0 28px; color: #d2e6da; font-size: 1.05rem; }

/* Audience tabs (sitting on the hero like the transparência search bar) */
.hero__controls { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.hero__controls .audience-tabs { flex: 0 1 auto; }
.hero__controls .filter-bar {
    margin-top: 0;
    flex: 0 0 auto;
    width: 260px;
    max-width: 100%;
    margin-left: auto;
}
@media (max-width: 999px) {
    .hero__controls .filter-bar { width: 100%; margin-left: 0; }
}
.audience-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; }
.audience-tab {
    display: inline-block; padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-weight: 500;
}
.audience-tab:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.audience-tab--active {
    background: var(--uel-bg); color: var(--uel-green-darker);
    font-weight: 600;
}
.audience-tab--active:hover { background: var(--uel-surface); }

/* Filter bar */
.filter-bar {
    display: flex; gap: 10px; align-items: stretch;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin-top: 20px;
    width: 100%;
    max-width: 880px;
}
.filter-bar__field { flex: 1; display: flex; min-width: 0; }
.filter-bar input[type="search"] {
    flex: 1; min-width: 0;
    border: none; outline: none;
    padding: 0 16px;
    font-size: 1rem; font-family: var(--font-body);
    background: transparent; color: var(--uel-text);
    -webkit-appearance: none; appearance: none;
}
.filter-bar input[type="search"]::placeholder { color: var(--uel-muted); }
.filter-bar input[type="search"]:focus { outline: none; }
.filter-bar input[type="search"]::-webkit-search-cancel-button,
.filter-bar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.filter-bar .btn {
    height: 44px;
    padding: 0 22px;
    display: inline-flex; align-items: center;
    white-space: nowrap;
}
.btn--ghost {
    background: var(--uel-green-darker); color: #fff; border-color: var(--uel-green-darker);
}
.btn--ghost:hover { background: var(--uel-green); border-color: var(--uel-green); }
.filter-bar .btn--icon {
    width: 36px; height: 36px; padding: 0;
    justify-content: center; align-self: center;
    background: transparent; border: none; color: var(--uel-muted);
    border-radius: 50%;
}
.filter-bar .btn--icon:hover { background: rgba(0,0,0,0.06); color: var(--uel-text); }
.filter-bar .btn--icon i { font-size: 0.95rem; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Sections grid */
.sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 56px;
}

[hidden] { display: none !important; }

.card {
    background: var(--uel-surface);
    border: 1px solid var(--uel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card__header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--uel-border);
    background: var(--uel-surface);
}
.card__icon {
    flex: none;
    width: 36px; height: 36px;
    background: var(--uel-green);
    border-radius: var(--radius);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--uel-green-darker);
    letter-spacing: 0.1px;
}
.card__list { list-style: none; margin: 0; padding: 6px 0; }
.card__list li { border-bottom: 1px solid #eef1ee; }
.card__list li:last-child { border-bottom: none; }
.card__list a {
    display: block; padding: 10px 18px;
    color: var(--uel-text); font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.card__list a::before { content: "›  "; color: var(--uel-green); font-weight: 700; }
.card__list a:hover {
    background: var(--uel-green-soft);
    border-left-color: var(--uel-green);
    color: var(--uel-green-darker);
    text-decoration: none;
}

.empty {
    grid-column: 1 / -1; text-align: center; padding: 48px;
    color: var(--uel-muted); background: var(--uel-surface);
    border: 1px dashed var(--uel-border); border-radius: var(--radius);
}

/* Footer */
.site-footer {
    background: var(--uel-green-darker);
    color: #d2e6da;
    margin-top: auto;
    padding: 32px 0 28px;
    font-size: 0.9rem;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: center;
}
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__logo {
    height: 56px; width: auto;
    filter: brightness(0) invert(1);
    flex: none;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
    .site-header__inner { flex-direction: column; align-items: flex-start; }
    .hero__title { font-size: 1.7rem; }
    .site-footer__inner { grid-template-columns: 1fr; }
}
