/* ═══════════════════════════════════════════════════
   TV CÂMARA ANANINDEUA — Global Stylesheet (tema claro)
   Header/Footer escuros · Corpo branco/cinza claro
═══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
    /* institucional */
    --azul:        #003B8E;
    --azul-dark:   #001F5C;
    --azul-med:    #1A4FA0;
    --azul-light:  #2E6FD4;
    --azul-faint:  #EBF1FB;
    --ambar:       #F5A623;
    --ambar-dark:  #D4881A;
    --ambar-faint: #FEF3DC;
    --vermelho:    #CC0000;

    /* corpo claro */
    --bg:          #F4F6FA;
    --bg-card:     #FFFFFF;
    --bg-card2:    #F8F9FC;
    --bg-hover:    #F0F4FB;
    --bg-section:  #EEF2F9;

    /* texto */
    --txt:         #1A2540;
    --txt-2:       #344563;
    --txt-muted:   #6B7A99;
    --txt-light:   #9AAABF;

    /* bordas */
    --borda:       #D8E0EE;
    --borda-med:   #C0CCE0;

    /* header/footer escuros */
    --hdr-bg:      #001F5C;
    --hdr-borda:   #F5A623;  /* faixa âmbar */
    --ftr-bg:      #001540;

    --branco:      #FFFFFF;

    --radius-sm:   4px;
    --radius:      8px;
    --radius-lg:   12px;

    --shadow-sm:   0 1px 4px rgba(0,40,100,.07);
    --shadow-card: 0 2px 10px rgba(0,40,100,.09);
    --shadow-up:   0 6px 24px rgba(0,40,100,.13);

    --nav-h:       54px;
    --topbar-h:    30px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ═══════════════════════════════════════
   TOPBAR
═══════════════════════════════════════ */
.topbar {
    background: var(--hdr-bg);
    height: var(--topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-txt {
    font-size: .71rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.topbar-txt i { color: var(--ambar); opacity: .8; }
.on-air {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ambar);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.on-air .dot {
    width: 7px; height: 7px;
    background: #E53E3E;
    border-radius: 50%;
    animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(1.4); }
}

/* ═══════════════════════════════════════
   HERO BANNER — proporção original 1275×203 (15.92%)
═══════════════════════════════════════ */
.hero-banner {
    width: 100%;
    background: var(--hdr-bg);
    line-height: 0;
    /* padding-bottom mantém a proporção 203/1275 = 15.92% exatos */
}
.hero-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 15.92%;   /* 203 ÷ 1275 × 100 */
    overflow: hidden;
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;        /* preenche sem distorcer */
    object-position: center center;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(0,15,40,.2) 0%, transparent 15%),
        linear-gradient(to left,   rgba(0,15,40,.2) 0%, transparent 15%),
        linear-gradient(to bottom, transparent 55%, rgba(0,21,64,.75) 100%);
    pointer-events: none;
}

/* ═══════════════════════════════════════
   SITE NAV — escura, sticky
═══════════════════════════════════════ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(0, 31, 92, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--ambar);
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 10px;
    flex-shrink: 0;
    transition: opacity .3s;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-txt { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-txt strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.nav-logo-txt em {
    font-style: normal;
    font-size: .62rem;
    color: var(--ambar);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nav-logo--hidden { opacity: 0; pointer-events: none; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: background .14s, color .14s;
    white-space: nowrap;
}
.nav-link i { font-size: .78rem; }
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-link--active {
    background: rgba(245,166,35,.15);
    color: var(--ambar);
    font-weight: 600;
}
.nav-link--active:hover { background: rgba(245,166,35,.2); }

.yt-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 6px 14px;
    background: #E00;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    flex-shrink: 0;
    transition: background .14s;
}
.yt-btn:hover { background: #B00; }

/* hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,20,60,.98);
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 32px;
}
.mobile-menu.is-open { display: flex; }
.mobile-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: none;
    color: rgba(255,255,255,.6);
    font-size: 1.4rem;
    cursor: pointer;
}
.mob-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 300px;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .14s, color .14s;
}
.mob-link i { color: var(--ambar); width: 22px; text-align: center; }
.mob-link:hover, .mob-link--active { background: rgba(245,166,35,.12); color: #fff; }
.mob-link--yt { color: #FF8080; margin-top: 10px; }
.mob-link--yt i { color: #E00; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.site-main { min-height: 60vh; }
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}
.container--narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ── Section header ── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--txt);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head h2::before {
    content: '';
    display: inline-block;
    width: 4px; height: 20px;
    background: var(--ambar);
    border-radius: 2px;
    flex-shrink: 0;
}
.section-head a {
    font-size: .82rem;
    font-weight: 600;
    color: var(--azul);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.section-head a:hover { text-decoration: underline; }

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: .8rem;
    color: var(--txt-muted);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--azul); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .6rem; opacity: .45; }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
}
.badge-ordinaria  { background: #DBEAFE; color: #1D4ED8; }
.badge-especial   { background: #EDE9FE; color: #6D28D9; }
.badge-solene     { background: #FEF3C7; color: #92400E; }
.badge-audiencia  { background: #D1FAE5; color: #065F46; }

/* ═══════════════════════════════════════
   CARDS DE VÍDEO
═══════════════════════════════════════ */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color .18s, transform .18s, box-shadow .18s;
    box-shadow: var(--shadow-sm);
}
.video-card:hover {
    border-color: var(--azul-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-up);
}
.thumb-wrap {
    position: relative;
    padding-bottom: 56.25%;
    background: #C8D8F0;
    overflow: hidden;
}
.thumb-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.video-card:hover .thumb-wrap img { transform: scale(1.05); }
.thumb-overlay {
    position: absolute; inset: 0;
    display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,31,92,.4);
    opacity: 0;
    transition: opacity .2s;
}
.video-card:hover .thumb-overlay { opacity: 1; }
.play-btn {
    width: 46px; height: 46px;
    background: var(--ambar);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--azul-dark);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.card-body { padding: 12px 14px; }
.card-body .badge { margin-bottom: 7px; }
.card-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .98rem;
    font-weight: 700;
    color: var(--txt);
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--borda);
}
.card-date {
    font-size: .72rem;
    color: var(--txt-muted);
    display: flex; align-items: center; gap: 4px;
}
.card-pdf {
    font-size: .72rem;
    color: var(--azul);
    display: flex; align-items: center; gap: 4px;
    text-decoration: none;
    font-weight: 600;
}
.card-pdf:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   BOTÕES
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-med); }
.btn-ambar { background: var(--ambar); color: var(--azul-dark); }
.btn-ambar:hover { background: var(--ambar-dark); color: #fff; }
.btn-outline {
    background: none;
    border: 1px solid var(--borda-med);
    color: var(--txt-2);
}
.btn-outline:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-faint); }
.btn-yt { background: #E00; color: #fff; }
.btn-yt:hover { background: #B00; }

/* ═══════════════════════════════════════
   WIDGET (sidebar)
═══════════════════════════════════════ */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.widget-head {
    background: var(--azul);
    padding: 11px 16px;
    border-bottom: 2px solid var(--ambar);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.widget-head i { color: var(--ambar); }

/* ── Agenda item ── */
.agenda-item {
    display: flex;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid var(--borda);
    transition: background .12s;
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item:hover { background: var(--bg-hover); }
.agenda-date {
    flex-shrink: 0;
    width: 42px;
    text-align: center;
    background: var(--azul);
    border-radius: 5px;
    padding: 5px 3px;
}
.agenda-date .day {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.agenda-date .mon {
    font-size: .59rem;
    font-weight: 700;
    color: var(--ambar);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.agenda-desc .tipo {
    font-size: .69rem;
    font-weight: 700;
    color: var(--azul);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.agenda-desc .nome { font-size: .83rem; color: var(--txt); line-height: 1.3; }
.agenda-desc .hora {
    font-size: .71rem;
    color: var(--txt-muted);
    margin-top: 3px;
    display: flex; align-items: center; gap: 4px;
}

/* ═══════════════════════════════════════
   PAGINAÇÃO
═══════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--borda);
    color: var(--txt-muted);
    background: var(--bg-card);
    transition: all .14s;
}
.pagination a:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-faint); }
.pagination span.pg-current { background: var(--azul); color: #fff; border-color: var(--azul); }
.pagination span.pg-disabled { opacity: .35; cursor: default; }

/* ═══════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════ */
.search-bar {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--borda-med);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 480px;
    box-shadow: var(--shadow-sm);
}
.search-bar input {
    flex: 1;
    background: none; border: none; outline: none;
    padding: 10px 15px;
    color: var(--txt);
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
}
.search-bar input::placeholder { color: var(--txt-light); }
.search-bar button {
    background: var(--azul);
    border: none;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    font-size: .88rem;
    transition: background .14s;
}
.search-bar button:hover { background: var(--azul-med); }

/* ── Filter chips ── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--borda);
    color: var(--txt-muted);
    background: var(--bg-card);
    cursor: pointer;
    transition: all .14s;
    white-space: nowrap;
}
.chip:hover { border-color: var(--azul); color: var(--azul); background: var(--azul-faint); }
.chip.chip--active { background: var(--azul); color: #fff; border-color: var(--azul); }

/* ═══════════════════════════════════════
   FOOTER — escuro
═══════════════════════════════════════ */
.site-footer {
    background: var(--ftr-bg);
    border-top: 3px solid var(--ambar);
    padding: 40px 24px 0;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo  { height: 46px; width: auto; }
.footer-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.footer-sub { font-size: .7rem; color: var(--ambar); letter-spacing: .08em; }
.footer-links {
    display: flex; flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center; align-items: center;
}
.footer-links a {
    font-size: .81rem;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    transition: color .14s;
}
.footer-links a i { color: var(--ambar); opacity: .7; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; flex-direction: column; gap: 8px; }
.social-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    font-size: .8rem; font-weight: 600;
    text-decoration: none;
    transition: opacity .14s;
}
.social-btn:hover { opacity: .85; }
.social-yt   { background: #E00; color: #fff; }
.social-site { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 13px 0;
    max-width: 1360px;
    margin: 0 auto;
    font-size: .72rem;
    color: rgba(255,255,255,.25);
    text-align: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-social { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    :root { --topbar-h: 26px; }
    .topbar-txt  { display: none; }
    .main-nav, .yt-btn { display: none; }
    .hamburger   { display: flex; }
    .nav-logo    { margin-right: auto; }
    .nav-logo--hidden { opacity: 1; pointer-events: auto; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-social { flex-direction: column; }
}
@media (max-width: 480px) {
    .container, .container--narrow { padding: 20px 16px 48px; }
    /* hero mantém proporção em mobile — sem max-height */
}
