/*
 * Estilos Globais — Template: editora_jasa
 * Classes BEM alinhadas com as Sections do Jasa CMS V5
 * Versão: 2.1.0 — Data: 2026.04.23
 */

@import "footer.css";


/* ── TOKENS ── */
:root {
    --azul:  #0d1f4e;
    --ouro:  #c9a84c;
    --roxo:  #2a1245;
    --roxo2: #3d1a6e;
    --cinza: #6b7280;
    --borda: #e8e4dc;
    --bg:    #faf9f7;
}

/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html { scroll-behavior: smooth }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--azul);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   404 TEMÁTICA — Section: content_404_tematica
   ═══════════════════════════════════════ */
.erro404-tematica {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5vw 5rem;
    text-align: center;
}

.erro404-inner { max-width: 480px }

.erro404-code {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(5rem, 14vw, 9rem);
    font-style: italic;
    color: var(--borda);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.erro404-tematica h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--azul);
    margin-bottom: .8rem;
}

.erro404-tematica p {
    font-size: .9rem;
    color: var(--cinza);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════
   HEADER — Section: header_logo_menu_wa
   Classes BEM: jasa-header__*
   ═══════════════════════════════════════ */
nav.jasa-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5vw;
    background: linear-gradient(90deg, #0e0516 0%, #1c0a38 60%, #0e0516 100%);
    border-bottom: 1px solid rgba(201,168,76,.18);
}

.jasa-header__logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.jasa-header__logo img { height: 48px; width: auto; display: block }
.jasa-header__logo-txt span { color: var(--ouro) }

.jasa-header__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jasa-header__nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.jasa-header__nav a {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}

.jasa-header__nav a:hover { color: rgba(255,255,255,.9) }

.jasa-header__wa-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #25d366;
    color: #fff;
    padding: .48rem 1.1rem;
    border-radius: 100px;
    font-size: .76rem;
    font-weight: 500;
    transition: opacity .2s;
}

.jasa-header__wa-btn:hover { opacity: .85 }

.jasa-header__hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.jasa-header__hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    transition: 0.3s;
}

.jasa-header__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.jasa-header__hamburger.open span:nth-child(2) { opacity: 0 }
.jasa-header__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

.jasa-menu-mobile {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: #0e0516;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.jasa-menu-mobile:not([hidden]) { right: 0 }

.jasa-menu-mobile__close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.jasa-menu-mobile__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.jasa-menu-mobile__nav a {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-family: 'DM Serif Display', serif;
}

.jasa-menu-mobile__wa {
    background: #25d366;
    color: #fff;
    padding: .6rem 1.4rem;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 500;
}

@media (min-width: 861px) {
    .jasa-header__hamburger { display: none !important }
}

@media (max-width: 860px) {
    .jasa-header__nav,
    .jasa-header__wa-btn { display: none !important }
    .jasa-header__hamburger { display: flex !important }
}


/* ═══════════════════════════════════════
   COMPONENTES COMPARTILHADOS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1.5rem;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .2s;
}

.btn-dark    { background: var(--roxo); color: #fff }
.btn-dark:hover { background: var(--roxo2) }
.btn-outline { background: transparent; color: var(--azul); border: 1px solid var(--borda) }
.btn-outline:hover { border-color: var(--azul) }
.btn-wa      { background: #25d366; color: #fff }
.btn-wa:hover { background: #1ebe5d }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.btn-cta:hover {
    opacity: 0.9;
}
.btn-cta-wa {
    background-color: #25d366;
    color: #ffffff;
}
.btn-cta-wa svg {
    fill: currentColor;
    width: 14px;
    height: 14px;
}
.btn-cta--link {
    background-color: var(--md-sys-color-primary, #0055ff);
    color: #ffffff;
}
.btn-cta--download {
    background-color: var(--md-sys-color-primary, #0055ff);
    color: #ffffff;
}
.btn-cta--modal {
    background-color: var(--md-sys-color-primary, #0055ff);
    color: #ffffff;
}
.btn-cta--submit {
    background-color: var(--md-sys-color-primary, #0055ff);
    color: #ffffff;
}
.btn-cta--form-toggle {
    background-color: var(--md-sys-color-primary, #0055ff);
    color: #ffffff;
}

.eyebrow {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ouro);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.4rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px; height: 1px;
    background: var(--ouro);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -.02em;
    line-height: 1.1;
}

.section-head h2 em { font-style: italic; color: var(--roxo2) }

.section-head a {
    font-size: .78rem;
    color: var(--cinza);
    text-decoration: none;
    border-bottom: 1px solid var(--borda);
    padding-bottom: .1rem;
    transition: all .2s;
    white-space: nowrap;
}

.section-head a:hover { color: var(--azul); border-color: var(--azul) }

/* ── ANIMAÇÕES ── */
@keyframes marquee {
    from { transform: translateX(0) }
    to   { transform: translateX(-50%) }
}

.fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.fade.in { opacity: 1; transform: translateY(0) }

@media (prefers-reduced-motion: reduce) {
    .fade { opacity: 1 !important; transform: none !important; transition: none !important }
}

/* ── RESPONSIVE GLOBAL ── */
@media (max-width: 860px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: .8rem }
}


/* ═══════════════════════════════════════
   COMPONENTES DE LISTAGEM (CATÁLOGO/AUTORES)
   ═══════════════════════════════════════ */
.hero-cat {
    padding: 8rem 5vw 3rem;
    background: linear-gradient(135deg, #0e0516, #1c0a38, #0e0516);
    text-align: center;
}

.hero-cat .eyebrow {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ouro);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.hero-cat .eyebrow::before,
.hero-cat .eyebrow::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--ouro);
}

.hero-cat h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: .8rem;
}

.hero-cat h1 em { font-style: italic; color: var(--ouro); }

.hero-cat p {
    font-size: .88rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .45);
    max-width: 440px;
    margin: 0 auto;
}

.filtros-wrap {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: rgba(250, 249, 247, .95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borda);
    padding: 1rem 5vw;
}

.filtros-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.busca {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 100px;
    padding: .5rem 1rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: border-color .2s;
}

.busca:focus-within { border-color: var(--roxo2); }

.busca svg { flex-shrink: 0; color: var(--cinza); }

.busca input {
    border: none;
    outline: none;
    font-size: .82rem;
    background: transparent;
    color: var(--azul);
    width: 100%;
}

.gen-pills {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.pill {
    padding: .38rem .9rem;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--borda);
    background: #fff;
    color: var(--cinza);
    transition: all .2s;
    white-space: nowrap;
}

.pill.on {
    background: var(--azul);
    color: #fff;
    border-color: var(--azul);
}

.resultado-info {
    padding: .6rem 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resultado-info span { font-size: .76rem; color: var(--cinza); }

.btn-limpar {
    font-size: .72rem;
    color: var(--roxo2);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: none;
}

.btn-limpar.vis { display: block; }
