/* Café & Bateria — estilos do site.
   Medidas e cores reproduzem o layout original. */

:root {
    --bg: #000003;
    --red: #e41513;
    --teal: #4991a0;
    --card: #1f1f1f;
    --line: #e5e5e5;
    --muted: #7a7a7a;
    --display: "Anybody", "Inter", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* ---------- Topo ---------- */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 149px; gap: 24px; }
.logo { display: block; flex: none; width: 111px; height: 111px; }
.logo svg, .logo img { width: 111px; height: auto; }
.main-nav ul { display: flex; align-items: center; }
.main-nav a { display: block; padding: 0 20px; font-weight: 500; font-size: 20px; line-height: 24px; color: #fff; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.nav-cta-mobile { display: none; }
.btn-cta {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 210px; height: 34px; background: var(--red); color: #fff; border-radius: 10px;
    font-weight: 500; font-size: 20px; line-height: 24px; transition: filter .2s;
}
.btn-cta:hover { filter: brightness(1.15); }
.burger { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 4px; background: #1f1f1f; padding: 0; align-items: center; justify-content: center; }
.burger svg { color: var(--red); }

/* ---------- Botões ---------- */
.btn-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border-radius: 22px;
    border: 1px solid var(--line); color: var(--line); font-weight: 500; font-size: 15px; line-height: 15px;
    transition: filter .2s, background .2s;
}
.btn-red { background: var(--red); }
.btn-dark { background: var(--card); }
.btn-pill:hover { filter: brightness(1.2); }

/* ---------- Início: boas-vindas ---------- */
.hero { padding: 100px 100px 10px; text-align: center; }
.hero-eyebrow { font-family: var(--display); font-weight: 400; font-size: 35px; line-height: 42px; text-transform: uppercase; }
.hero-title { font-family: var(--display); font-weight: 600; font-size: 75px; line-height: 1.05; text-transform: uppercase; }
.hero-sub { color: var(--muted); margin-bottom: 14.4px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

/* ---------- Estrutura da página ---------- */
.page-stack { display: flex; flex-direction: column; gap: 10px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 48px; }
.section-sub { font-size: 16px; line-height: 1.2; }

/* ---------- Notícias ---------- */
.news-section { padding: 80px 0; background-image: radial-gradient(at center center, var(--teal) 0%, var(--bg) 66%); }
.news-section--blog .section-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12.8px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-img { display: block; width: 94%; margin-inline: auto; }
.card-img img { width: 100%; aspect-ratio: 355 / 225; object-fit: cover; border-radius: 12px; }
.card-title { font-size: 17px; line-height: 1.2; font-weight: 700; color: var(--line); }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { font-size: 16px; line-height: 1.2; color: var(--line); margin-bottom: 16px; }
.empty { text-align: center; color: var(--line); padding: 40px 0; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.pagination a.current, .pagination a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Matérias (início) ---------- */
.materias-section { padding: 80px 0; }
.section-more { text-align: center; margin-top: 32px; }

/* ---------- Banners ---------- */
.banner { width: min(1255px, 100% - 24px); margin-inline: auto; }
.banner a { display: block; }
.banner img { width: 100%; height: auto; }

/* ---------- YouTube ---------- */
.yt-section { padding: 80px 0; }
.yt-channel { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 0 auto 16px; }
.yt-channel img { width: 67px; height: 67px; }
.yt-channel span { font-family: var(--display); font-size: 40px; line-height: 48px; padding-left: 5px; }
.yt-swiper { padding: 0; --swiper-theme-color: #fff; --swiper-navigation-color: #fff; --swiper-navigation-size: 26px; }
.yt-card { position: relative; aspect-ratio: 9 / 16; background: #111; overflow: hidden; border-radius: 4px; }
.yt-card img, .yt-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; padding: 0; }
.yt-play svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform .2s; }
.yt-card:hover .yt-play svg { transform: scale(1.1); }
.yt-swiper .swiper-pagination { position: static; margin-top: 16px; }
.swiper-pagination-lock { display: none; }
.yt-swiper .swiper-pagination-bullet { background: #fff; opacity: .4; }
.yt-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* ---------- Mural ---------- */
.mural-section { padding: 80px 0; }
.mural-title { text-align: center; width: fit-content; margin: 0 auto 16px; }
.mural-swiper { --swiper-navigation-color: #fff; --swiper-navigation-size: 26px; margin-bottom: 16px; padding-bottom: 6px; }
.mural-swiper:last-child { margin-bottom: 0; }
.mural-swiper .swiper-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swiper-button-prev, .swiper-button-next { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }

/* ---------- Post ---------- */
.post-section { padding: 80px 0; }
.post-layout { display: flex; gap: 26px; align-items: flex-start; }
.post-main { flex: 1 1 0; min-width: 0; max-width: 870px; }
.post-title { font-family: var(--display); font-weight: 700; font-size: 43px; line-height: 1.2; margin-bottom: 16px; }
.post-content { line-height: 1.2; }
.post-content > * + * { margin-top: 1em; }
.post-content p { margin: 0 0 .9em; }
.post-content h2, .post-content h3, .post-content h4 { font-family: var(--display); line-height: 1.2; margin: 1.4em 0 .5em; }
.post-content h2 { font-size: 28px; } .post-content h3 { font-size: 22px; } .post-content h4 { font-size: 18px; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 .9em; }
.post-content ul { list-style: disc; } .post-content ol { list-style: decimal; }
.post-content blockquote { border-left: 3px solid var(--red); padding-left: 16px; color: var(--line); margin: 1em 0; }
.post-content img { height: auto; border-radius: 8px; margin: 1em 0; }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post-content figure { margin: 1em 0; } .post-content figcaption { color: var(--muted); font-size: 14px; }
.post-side { flex: none; width: 384px; display: flex; flex-direction: column; gap: 16px; }
.post-side img { width: 100%; height: auto; }
.draft-note { background: var(--red); display: inline-block; padding: 4px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }

/* ---------- Cursos ---------- */
.cursos-hero { position: relative; min-height: 900px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.cursos-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cursos-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,3,.92) 0%, rgba(0,0,3,.75) 30%, rgba(0,0,3,.15) 62%, rgba(0,0,3,0) 100%), linear-gradient(180deg, rgba(0,0,3,.9) 0%, rgba(0,0,3,0) 18%); }
.cursos-hero-inner { position: relative; }
.cursos-copy { display: flex; flex-direction: column; gap: 16px; padding-top: 80px; max-width: 717px; align-items: flex-start; }
.cursos-eyebrow { font-family: var(--display); font-weight: 400; font-size: 35px; line-height: 42px; text-transform: uppercase; }
.cursos-title { font-family: var(--display); font-weight: 600; font-size: 92px; line-height: 1.05; text-transform: uppercase; }
.cursos-sub { color: var(--muted); }
.cursos-grid-section { padding: 80px 0; }
.cursos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cursos-grid a, .cursos-grid span { display: block; }
.cursos-grid img { width: 100%; aspect-ratio: 1015 / 1024; object-fit: cover; transition: transform .25s, filter .25s; }
.cursos-grid a:hover img { transform: translateY(-3px); filter: brightness(1.08); }

.notfound { padding: 120px 0; text-align: center; }
.notfound .wrap { display: flex; flex-direction: column; align-items: center; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 10px; background: var(--card); }
.footer-main { padding: 80px 0; }
.footer-inner { display: flex; align-items: flex-start; min-height: 234px; }
.footer-links { margin-left: 223px; width: 135px; }
.footer-tagline { margin-left: 223px; width: 230px; }
.footer-links h2 { font-size: 20px; font-weight: 700; line-height: 24px; margin-bottom: 16px; }
.footer-links a { display: block; padding: 5px 0; font-weight: 500; font-size: 20px; line-height: 24px; transition: color .2s; }
.footer-links a:hover, .footer-links a.active { color: var(--red); }
.footer-tagline h2 { font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1.2; }
.footer-social { margin-left: auto; display: flex; gap: 20px; }
.footer-social a { width: 48px; height: 48px; display: grid; place-items: center; transition: transform .2s; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social img { width: 100%; height: 100%; object-fit: contain; }
.footer-copy { border-top: 1px solid var(--line); padding: 16px 0; text-align: center; color: var(--line); }
.footer-copy p { display: flex; align-items: center; justify-content: center; gap: 5px; line-height: 1.2; }
.footer-copy svg { width: 16px; height: 16px; }

/* Menu com 6 itens em telas médias */
@media (min-width: 1025px) and (max-width: 1200px) {
    .header-inner { gap: 12px; }
    .main-nav a { padding: 0 11px; font-size: 18px; }
    .btn-cta { width: 150px; font-size: 18px; }
}

/* ================== Tablet ================== */
@media (max-width: 1024px) {
    .header-inner { height: auto; padding: 16px 0 22px; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid #222; padding: 8px 0 16px; z-index: 30; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; width: min(1280px, 100% - 32px); margin-inline: auto; }
    .main-nav a { padding: 12px 0; }
    .nav-cta-mobile { display: block; }
    .burger { display: inline-flex; }
    .btn-cta { width: 210px; }

    .hero { padding: 60px 24px 10px; }
    .hero-eyebrow { font-size: 28px; line-height: 1.2; }
    .hero-title { font-size: 56px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { flex-direction: column; }
    .post-main { max-width: none; width: 100%; }
    .post-side { width: min(384px, 100%); margin-inline: auto; }
    .post-title { font-size: 36px; }
    .cursos-hero { min-height: 700px; }
    .cursos-title { font-size: 64px; }
    .cursos-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-inner { flex-wrap: wrap; gap: 40px 32px; }
    .footer-links, .footer-tagline { margin-left: 0; }
    .footer-social { margin-left: 0; }
}

/* ================== Celular ================== */
@media (max-width: 767px) {
    .header-inner { gap: 12px; flex-wrap: wrap; }
    .logo, .logo svg, .logo img { width: 80px; }
    .btn-cta { width: auto; padding: 0 20px; font-size: 16px; }
    .hero { padding: 40px 16px 10px; }
    .hero-eyebrow { font-size: 22px; }
    .hero-title { font-size: 42px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section-title { font-size: 32px; line-height: 1.2; }
    .news-section, .materias-section, .yt-section, .mural-section, .post-section, .cursos-grid-section { padding: 48px 0; }
    .card-grid { grid-template-columns: 1fr; }
    .yt-channel span { font-size: 28px; }
    .yt-channel img { width: 48px; height: 48px; }
    .post-title { font-size: 30px; }
    .cursos-hero { min-height: 560px; }
    .cursos-eyebrow { font-size: 24px; }
    .cursos-title { font-size: 44px; }
    .cursos-copy { padding-top: 40px; }
    .cursos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-main { padding: 48px 0; }
    .footer-inner { flex-direction: column; }
    .footer-tagline { width: 100%; }
    .footer-tagline h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
