/* ==========================================================
   1. VARIÁVEIS E RESET
========================================================== */
:root {
    --cor-primaria: #fd0075;
    --cor-secundaria: #3c2115;
    --cor-fundo: #fed7da;
    --fonte-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --fonte-delicinhas: 'Leckerli One', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   2. BASE / ESTILOS GLOBAIS
========================================================== */
body {
    font-family: var(--fonte-principal);
    color: var(--cor-secundaria);
    background-color: var(--cor-fundo);
    line-height: 1.6;
}

section {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--cor-secundaria);
}

h2 {
    font-family: var(--fonte-delicinhas);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--cor-primaria);
}

/* ==========================================================
   3. LAYOUT PRINCIPAL
========================================================== */

/* ---------- Header / Navbar ---------- */
.header {
    background: white;
    padding: 1rem 4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--cor-secundaria);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cor-primaria);
}

/* ---------- Footer (layout) ---------- */
.footer {
    background-color: var(--cor-secundaria);
    color: white;
    padding: 3rem 4rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 30px;
    text-align: left;
}

/* ==========================================================
   4. COMPONENTES
========================================================== */

/* ---------- Botões ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.btn-primary {
    background-color: var(--cor-primaria);
    color: white;
    box-shadow: 0 4px 10px rgba(253, 0, 117, 0.4);
}

.btn-primary:hover {
    background-color: #e00068;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(253, 0, 117, 0.6);
}

.btn-secondary {
    background-color: white;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-fundo);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--cor-fundo);
    color: var(--cor-secundaria);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary i {
    color: var(--cor-primaria);
    margin-right: 5px;
}

/* ---------- Menu Mobile ---------- */
.menu-btn {
    width: 30px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    height: 4px;
    width: 100%;
    background: var(--cor-primaria);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* ---------- Overlay ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================
   5. SEÇÕES DO SITE
========================================================== */

/* ---------- Hero ---------- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('../assets/images/capa.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h2 {
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ---------- Footer (conteúdo) ---------- */
.footer-col h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-col i,
.footer-social-links i {
    color: var(--cor-primaria);
    margin-right: 10px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social-links a:hover {
    color: var(--cor-primaria);
}

.footer-bottom hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 30px 0 15px;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.9rem;
    color: #f0f0f0;
}

/* ==========================================================
   6. RESPONSIVIDADE
========================================================== */

/* ---------- Tablets ---------- */
@media (min-width: 769px) and (max-width: 1200px) {
    .cards {
        padding: 20px 40px;
        max-width: none;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {

    /* Header */
    .header {
        padding: 1rem 1.5rem;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        background: white;
        padding: 80px 20px;
        gap: 20px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    /* Hero */
    .hero {
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero .btn {
        width: 80%;
        margin: 10px auto;
        display: block;
    }

    /* Footer */
    .footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
