/* ============================================================
   XANDE PIMENTEL — PORTAL
   CSS completo — versão limpa e responsiva
   ============================================================ */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 92%;
    max-width: 1700px;
    margin: 0 auto;
}

/* ---------- HEADER ---------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: auto;
}

.brand {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 20px;
}

.brand h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.brand span {
    display: block;
    margin-top: 6px;
    letter-spacing: 4px;
    color: #D8A128;
    font-size: 13px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 34px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1.5px;
    transition: 0.3s;
    position: relative;
}

nav a:hover {
    color: #D8A128;
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: 60px;
    height: 3px;
    background: #D8A128;
    transform: translateX(-50%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
    padding-bottom: 60px;
}

/* FOTO — desktop */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* DEGRADÊ */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.93) 28%,
        rgba(0, 0, 0, 0.68) 50%,
        rgba(0, 0, 0, 0.10) 73%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* TEXTO */
.hero-content {
    position: relative;
    z-index: 5;
    width: 92%;
    max-width: 1700px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 150px 0 40px;
}

.left {
    width: 50%;
}

.left h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(64px, 6.5vw, 110px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.left h2 {
    font-size: clamp(22px, 2.4vw, 38px);
    color: #D8A128;
    font-weight: 300;
    margin-bottom: 18px;
}

.line {
    width: 120px;
    height: 4px;
    background: #D8A128;
    margin-bottom: 18px;
}

.left p {
    width: 100%;
    max-width: 650px;
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.65;
    color: #ECECEC;
    margin-bottom: 24px;
}

/* ---------- CARDS ---------- */
.cards {
    position: relative;
    z-index: 20;
    width: 92%;
    max-width: 1000px;
    margin: 0 0 -80px 4%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    transform: translateY(-120px);
}

.card {
    background: rgba(8, 8, 8, 0.55);
    border: 1px solid rgba(224, 170, 0, 0.65);
    border-radius: 10px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.card .icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #E5AA00;
}

.card .icon svg {
    width: 52px;
    height: 52px;
    stroke: #E5AA00;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 1px;
}

.card p {
    color: #D5D5D5;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 14px;
    flex: 1;
}

.card a {
    display: block;
    width: 100%;
    background: #D9A404;
    color: #111;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.card a:hover {
    background: #F0BD24;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: stretch;
    background: #000;
    position: relative;
}

.manifesto-image {
    position: relative;
    overflow: hidden;
}

.manifesto-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.05);
}

.manifesto-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        #F4EFE6 0%,
        rgba(244, 239, 230, 0.9) 18%,
        rgba(244, 239, 230, 0.5) 35%,
        rgba(244, 239, 230, 0) 55%
    );
    pointer-events: none;
}

.manifesto-content {
    background: #F4EFE6;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label,
.manifesto-label {
    display: block;
    color: #C9A227;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 16px;
}

.manifesto-content h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 2.8vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.manifesto-line {
    width: 60px;
    height: 4px;
    background: #C9A227;
    margin-bottom: 16px;
}

.manifesto-content p {
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
    margin-bottom: 12px;
}

.manifesto-content .manifesto-signature {
    color: #C9A227;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 0;
}

/* ============================================================
   LIVROS
   ============================================================ */
.livros {
    background: #0A0F14;
    padding: 30px 8% 40px;
}

.livros-header {
    margin-bottom: 55px;
}

.livros-title {
    display: block;
    color: #C9A227;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.livros-line {
    width: 60px;
    height: 4px;
    background: #C9A227;
    margin-top: 16px;
}

.livros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.livro-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;
}

.livro-capa {
    width: 150px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.livro-card:nth-child(even) .livro-capa {
    transform: rotate(2deg);
}

.livro-capa:hover {
    transform: rotate(0deg) scale(1.03);
}

.livro-capa img {
    width: 100%;
    height: auto;
}

.livro-info h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 6px;
}

.livro-autor {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #D8A128;
    margin-bottom: 10px;
}

.livro-desc {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: #C9CFD6;
    margin-bottom: 18px;
}

.livro-botoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.btn-amazon,
.btn-digital {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-amazon {
    background: #D8A128;
    color: #0A0F14;
    border: 1px solid #D8A128;
}

.btn-amazon:hover {
    background: #F0BD24;
}

.btn-digital {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-digital:hover {
    border-color: #D8A128;
    color: #D8A128;
}

.btn-icone {
    width: 15px;
    height: 15px;
}

/* ============================================================
   EDUCAÇÃO
   ============================================================ */
.educacao {
    background: #0A0F14;
    padding: 40px 8% 40px;
}

.educacao-header {
    text-align: center;
    margin-bottom: 55px;
}

.educacao-title {
    display: block;
    color: #C9A227;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.educacao-line {
    width: 60px;
    height: 4px;
    background: #C9A227;
    margin: 16px auto 0;
}

.educacao-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recurso-card {
    background: #101820;
    border: 1px solid rgba(216, 161, 40, 0.35);
    padding: 34px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, border-color 0.3s;
}

.recurso-card:hover {
    transform: translateY(-6px);
    border-color: #D8A128;
}

.recurso-icon {
    width: 52px;
    height: 52px;
    color: #D8A128;
    margin-bottom: 18px;
}

.recurso-icon svg {
    width: 100%;
    height: 100%;
}

.recurso-card h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
}

.recurso-card p {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: #C9CFD6;
    margin-bottom: 18px;
    flex: 1;
}

.recurso-link {
    color: #D8A128;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s;
}

.recurso-link span {
    display: inline-block;
    transition: transform 0.3s;
}

.recurso-link:hover {
    color: #F0BD24;
}

.recurso-link:hover span {
    transform: translateX(4px);
}

/* ============================================================
   CRÔNICA
   ============================================================ */
.cronica {
    background: #fff;
    padding: 3px 8% 10px;
}

.cronica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.cronica-label {
    display: block;
    color: #C9A227;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cronica-line {
    width: 60px;
    height: 4px;
    background: #C9A227;
    margin-bottom: 24px;
}

.cronica-content h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.cronica-content p {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
    max-width: 480px;
    margin-bottom: 30px;
}

.cronica-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 26px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    transition: 0.3s;
}

.cronica-btn span {
    display: inline-block;
    color: #C9A227;
    transition: transform 0.3s;
}

.cronica-btn:hover {
    background: #C9A227;
    color: #1a1a1a;
}

.cronica-btn:hover span {
    transform: translateX(4px);
}

.cronica-image {
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.cronica-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.rodape {
    background: #0A0F14;
    padding: 20px 8% 10px;
    border-top: 1px solid rgba(216, 161, 40, 0.25);
}

.rodape-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.rodape-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rodape-logo-img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-top: 2px;
}

.rodape-logo-nome {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    line-height: 1.2;
}

.rodape-col h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #D8A128;
    margin-bottom: 18px;
}

.rodape-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rodape-col li {
    margin-bottom: 10px;
}

.rodape-col a {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #C9CFD6;
    text-decoration: none;
    transition: color 0.3s;
}

.rodape-col a:hover {
    color: #D8A128;
}

.rodape-col li:not(a) {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #C9CFD6;
}

.rodape-social {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9CFD6;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.3s, border-color 0.3s;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: #D8A128;
    border-color: #D8A128;
}

.rodape-verso {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.rodape-verso p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-style: italic;
    color: #fff;
    margin-bottom: 6px;
}

.rodape-verso span {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #D8A128;
}

.rodape-bottom {
    text-align: center;
    padding: 10px 0 0;
}

.rodape-bottom p {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #8A939E;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1200px) {
    nav {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .card {
        padding: 16px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 14px;
    }

    .card a {
        font-size: 14px;
        padding: 10px;
    }

    .educacao-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   CELULAR — CORREÇÃO PRINCIPAL
   ============================================================ */
@media (max-width: 768px) {

    /* HEADER
       No celular ele ocupa seu próprio espaço.
       Assim a foto não fica escondida atrás do cabeçalho. */
    .header {
        position: relative;
        padding: 10px 0;
        background: #000;
    }

    .header .container {
        justify-content: flex-start;
    }

    .logo-area {
        width: 100%;
        gap: 14px;
    }

    .logo {
        width: 64px;
    }

    .brand {
        padding-left: 14px;
    }

    .brand h2 {
        font-size: 30px;
    }

    .brand span {
        font-size: 10px;
        letter-spacing: 3px;
        line-height: 1.45;
    }

    /* HERO
       A altura passa a ser determinada pelo conteúdo.
       Nada pode ficar por cima do texto. */
    .hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        overflow: visible;
    }

    /* FOTO
       Fica abaixo do cabeçalho e um pouco mais baixa,
       como solicitado. */
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 430px;
        max-height: none;
        margin: 18px 0 0;
        object-fit: cover;
        object-position: center top;
        z-index: 1;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 2;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.30) 45%,
            rgba(0, 0, 0, 0.92) 100%
        );
        pointer-events: none;
    }

    /* TEXTO
       Fica depois da foto, em fluxo normal. */
    .hero-content {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 48px 20px 34px;
        text-align: center;
        flex: none;
        background: #000;
    }

    .left {
        width: 100%;
    }

    .left h1 {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1;
        letter-spacing: 0;
        margin-bottom: 14px;
    }

    .left h2 {
        font-size: clamp(20px, 5.8vw, 28px);
        line-height: 1.25;
        margin-bottom: 18px;
    }

    .line {
        width: 120px;
        height: 4px;
        margin: 14px auto 22px;
    }

    .left p {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.7;
    }

    /* CARDS
       ESTA É A CORREÇÃO MAIS IMPORTANTE:
       removemos o translateY(-120px) do desktop.
       Assim os cards começam DEPOIS do texto. */
    .cards {
        position: relative;
        z-index: 20;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 16px 36px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        transform: none;
    }

    .card {
        padding: 16px 10px;
        text-align: center;
        min-width: 0;
    }

    .card .icon {
        width: 38px;
        height: 38px;
        margin: 0 auto 9px;
        justify-content: center;
    }

    .card .icon svg {
        width: 34px;
        height: 34px;
    }

    .card h3 {
        font-size: 13px;
        letter-spacing: 1px;
        line-height: 1.2;
        margin-bottom: 9px;
    }

    .card p {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .card a {
        font-size: 9px;
        padding: 8px 5px;
        letter-spacing: 0.7px;
    }

    /* MANIFESTO */
    .manifesto {
        grid-template-columns: 1fr;
    }

    .manifesto-content {
        order: 1;
        padding: 40px 24px;
    }

    .manifesto-image {
        order: 2;
        height: 320px;
    }

    .manifesto-image img {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .manifesto-image::before {
        display: none;
    }

    /* LIVROS */
    .livros {
        padding: 60px 24px;
    }

    .livros-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .livro-card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .livro-capa {
        margin: 0 auto;
    }

    .livro-botoes {
        margin: 0 auto;
    }

    /* EDUCAÇÃO */
    .educacao {
        padding: 60px 24px;
    }

    .educacao-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    /* CRÔNICA */
    .cronica {
        padding: 60px 24px;
    }

    .cronica-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cronica-image {
        order: -1;
    }

    .cronica-image img {
        height: 260px;
    }

    /* RODAPÉ */
    .rodape {
        padding: 50px 24px 30px;
    }

    .rodape-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ============================================================
   CELULAR PEQUENO
   ============================================================ */
@media (max-width: 480px) {

    .logo {
        width: 60px;
    }

    .brand {
        padding-left: 12px;
    }

    .brand h2 {
        font-size: 28px;
    }

    .brand span {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .hero-image {
        height: 440px;
        margin-top: 20px;
        object-position: center top;
    }

    .hero-content {
        padding: 42px 20px 30px;
    }

    .left h1 {
        font-size: 40px;
    }

    .left h2 {
        font-size: 22px;
    }

    .left p {
        font-size: 15px;
    }

    /* Em telas pequenas, os cards ficam um abaixo do outro.
       Continua sem sobreposição. */
    .cards {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px 36px;
        transform: none;
    }

    .card {
        padding: 20px 16px;
    }

    .card .icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 10px;
    }

    .card .icon svg {
        width: 40px;
        height: 40px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }

    .card a {
        font-size: 13px;
        padding: 10px;
    }

    .educacao-grid {
        grid-template-columns: 1fr;
    }

    .rodape-grid {
        grid-template-columns: 1fr;
    }
}
