:root {
    /* PALETA DE CORES - MUNDO REAL (VERDE) */
    --bg-body-start: #8aa79a;
    --bg-body-end: #6f8f80;
    --bg-color-solid: #6b8b7a;

    --header-grad-start: #bfe2cf;
    --header-grad-end: #7ea88d;

    --panel-bg: #eaf2ee;
    --text-main: #111;
    --text-title: #0b2b20;
    --text-shadow: #fff;

    --card-bg: rgba(255, 255, 255, 0.95);

    --page-bg-image: url('images/realidade.png');
    --page-bg-opacity: 0.14;

    /* CONFIGURAÇÕES GERAIS DE ESTRUTURA */
    --max-width: 80%;
    --border-radius: 18px;
    --shadow-soft: 0 6px 18px rgba(17, 17, 17, 0.12);
    --shadow-strong: 0 8px 28px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* APLICANDO INDIE FLOWER COMO FONTE PADRÃO DO CORPO */
    font-family: 'Indie Flower', cursive;
    font-size: 18px;
    /* Um pouco maior para facilitar a leitura da fonte cursiva */
    color: var(--text-main);
    background: linear-gradient(180deg, var(--bg-body-start) 0%, var(--bg-body-end) 60%);
    background-color: var(--bg-color-solid);
    min-height: 100vh;
}

/* Padrão sutil de fundo (Overlay) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .45;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06) 0 8%, transparent 9%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0 6%, transparent 7%);
    background-size: 220px 220px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Imagem de fundo do usuário */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--page-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: var(--page-bg-opacity);
    pointer-events: none;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--header-grad-start), var(--header-grad-end));
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
    transition: all .32s cubic-bezier(.2, .9, .2, 1);
}

.header--large {
    padding: 40px 60px;
}

.header--compact {
    padding: 10px 20px;
    box-shadow: var(--shadow-strong);
}

.logo img {
    height: 46px;
    display: block;
    transition: height .32s cubic-bezier(.2, .9, .2, 1);
}

.header--large .logo img {
    height: 120px;
}

.header--compact .logo img {
    height: 36px;
}

nav {
    /* Mantendo a fonte Abril Fatface no menu para destacar */
    font-family: 'Abril Fatface', serif;
    font-size: 28px;
    transition: font-size .32s ease;
}

.header--large nav {
    font-size: 32px;
}

.header--compact nav {
    font-size: 18px;
}

nav a {
    color: var(--text-title);
    text-decoration: none;
    margin: 0 18px;
}

nav a:hover {
    text-decoration: underline;
}

/* LAYOUT PRINCIPAL */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 62px 74px 60px;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 60px;
}

/* TÍTULOS - MANTENDO ABRIL FATFACE PARA IMPACTO */
.hero-title,
.section-title,
.card .name {
    font-family: 'Abril Fatface', serif;
    color: var(--text-title);
    text-shadow: 2px 2px 0 var(--text-shadow);
    margin: 0 0 12px;
    line-height: 1.1;
}

.hero-title {
    font-size: 88px;
}

.section-title {
    font-size: 56px;
    text-align: center;
    margin-bottom: 28px;
}

.panel {
    background: var(--panel-bg);
    padding: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    line-height: 1.6;
    font-size: 22px;
    /* Aumentado levemente para Indie Flower */
    text-align: justify;
}

.panel p {
    margin: 0 0 16px 0;
}

.panel p:last-child {
    margin-bottom: 0;
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 527px;
    gap: 36px;
    align-items: center;
}

.hero-grid.reverse {
    grid-template-columns: 726px 1fr;
}

.image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-strong);
    display: block;
}

/* --- CARROSSEL (SUBSTITUI O ANTIGO CARDS GRID) --- */
.carousel-container {
    position: relative;
    max-width: 100%;
    /* Padding lateral para os botões não ficarem em cima dos cards */
    padding: 0 50px;
}

.carousel-viewport {
    overflow: hidden;
    /* Esconde o que está fora */
    padding: 20px 10px;
    /* Espaço para a rotação/sombra não cortar */
}

.carousel-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s ease-in-out;
    /* Animação suave ao deslizar */
}

.card {
    background: var(--card-bg);
    /* Flex: 0 0 auto impede que o card encolha, mantendo largura fixa */
    flex: 0 0 260px;
    width: 260px;
    padding: 14px;
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    transition: transform .18s ease;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.card .name {
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
}

.card .desc {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Mantendo o charme dos cards tortos no carrossel */
.carousel-track .card:nth-child(3n+1) {
    transform: rotate(-3deg);
}

.carousel-track .card:nth-child(3n+2) {
    transform: rotate(2deg);
}

.carousel-track .card:nth-child(3n) {
    transform: rotate(-2deg);
}

.card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
}

/* Botões do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 40px;
    color: var(--text-title);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s, color 0.2s;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.2);
    color: #1a4d3a;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* LISTAS */
.problems-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 36px;
    align-items: start;
}

.problems-list {
    padding-left: 20px;
    margin-top: 10px;
    font-size: 20px;
}

.problems-list li {
    margin-bottom: 8px;
}

/* BOTÃO DESTAQUE (Estilo Verde) */
.btn-destaque {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--text-title);
    color: var(--panel-bg);
    font-family: 'Abril Fatface', serif;
    font-weight: normal;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.btn-destaque:hover {
    background: #1a4d3a;
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* FOOTER */
footer.site-footer {
    margin-top: 40px;
}

.footer-black {
    background: #000;
    color: #fff;
    padding: 20px 0;
}

.footer-black-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-black a {
    color: #fff;
    text-decoration: underline;
}

.footer-black p {
    margin: 0;
    font-size: 16px;
}

.footer-black img {
    height: 40px;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: 4px;
}

/* RESPONSIVIDADE */
@media (max-width: 980px) {

    .hero-grid,
    .problems-grid,
    .hero-grid.reverse {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 44px;
    }

    .header--large {
        padding: 20px;
    }

    .header--large .logo img {
        height: 60px;
    }
}

@media (max-width: 560px) {

    /* Ajuste do carrossel no mobile */
    .carousel-container {
        padding: 0 30px;
    }

    .card {
        flex: 0 0 240px;
        width: 240px;
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 32px;
    }

    nav {
        font-size: 16px;
    }

    nav a {
        margin: 0 8px;
    }

    .footer-black-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header--compact {
        padding: 10px;
    }

    .btn-destaque {
        display: block;
        width: 100%;
    }
}