/* VARIÁVEIS GLOBAIS */
:root {
    --primary: #4a90e2;
    --secondary: #6c5ce7;
    --accent: #00cfe8;

    --bg: #f5f6fa;
    --white: #ffffff;
    --text: #2d3436;
    --muted: #636e72;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);

    --font: 'Poppins', sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER */
.container {
    max-width: min(1400px, 95%);
    margin: auto;
    padding: 20px;
}

/* HEADER */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header__content a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header__content a img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* sobrescreve o flex só no nav */
.nav a {
    display: inline-block;
    margin-left: 30px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    transition: 0.3s;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO COM GRADIENTE ANIMADO */
.hero {
    padding: 180px 20px 120px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* efeito glow */
.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    filter: blur(100px);
    top: -100px;
    left: -100px;
}

/* animação */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* BOTÃO */
.btn {
    background: var(--accent);
    color: white;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background: #00bcd4;
}

/* SEÇÕES */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: #fafafa;
}

.section__title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

/* GRID */

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}


/* imagem */
.card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.card > span.tag {
    display: inline-block;
    margin: 10px 0;
    color: var(--primary);
    font-weight: 500;
}

/* CATEGORIAS */
.categorias .categoria {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    font-weight: 500;
}

.categorias .categoria:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* FOOTER */
.footer {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    color: var(--muted);
}

.footer img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

/* TAG DE CATEGORIA */
.tag {
    display: inline-block;
    background: rgba(74,144,226,0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* GRID RESPONSIVO REAL */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* RESPONSIVO */

/* === TABLET GRANDE / DESKTOP PEQUENO (até 1024px) === */
@media (max-width: 1024px) {
    .grid, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .header__content a img {
        height: 44px;
    }
}

/* === TABLET (até 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .hero {
        padding: 120px 16px 70px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .grid, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nav a {
        margin-left: 18px;
        font-size: 0.9rem;
    }

    .header__content a img {
        height: 38px;
    }

    .card {
        padding: 18px 14px;
    }

    .card h3 {
        font-size: 0.95rem;
    }

    .card p {
        font-size: 0.82rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* === CELULAR (até 600px) === */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .hero {
        padding: 100px 12px 60px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .nav {
        display: none;
    }

    .header__content {
        padding: 8px 0;
    }

    .header__content a img {
        height: 34px;
    }

    .grid, .grid--4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .card {
        padding: 16px 12px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.88rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .footer {
        padding: 30px 16px;
    }

    .footer img {
        height: 40px;
    }
}

/* === CELULAR PEQUENO (até 425px) === */
@media (max-width: 425px) {
    .container {
        padding: 10px;
    }

    .hero {
        padding: 80px 12px 50px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section {
        padding: 30px 0;
    }

    .section__title {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .header__content {
        gap: 10px;
    }

    .header__content a img {
        height: 28px;
    }

    .grid, .grid--4 {
        gap: 14px;
    }

    .card {
        padding: 14px 12px;
    }

    .card h3 {
        font-size: 0.95rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 24px 12px;
    }
}

/* === DESKTOP GRANDE (a partir de 1400px) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 24px;
    }

    .hero {
        padding: 200px 24px 140px;
    }

    .hero h2 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: 100px 0;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 48px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .card {
        padding: 30px 24px;
    }

    .btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}
/* LEIA MAIS COMPLETO */
.descricao {
    text-align: left;
    margin-top: 10px;
    line-height: 1.5;
}



/* começa escondido */
.texto-completo {
    display: none;
}

/* quando clicar (JS adiciona classe) */
.texto-completo.ativo {
    display: block;
}

.btn-leia-mais {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
    font-weight: 500;
    padding: 0;
}

.btn-leia-mais:hover {
    text-decoration: underline;
}