/* RESET SIMPLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #1f130e;
    background-color: #f8f3ee;
}

/* LAYOUT GERAL */
.site-header,
.site-footer {
    background-color: #f0e1d2;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header,
.site-footer {
    padding: 0.75rem 1rem;
}

.site-main {
    max-width: 960px;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}

/* LOGO */
.logo a {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    text-decoration: none;
    color: #1f130e;
}

/* HEADER: FLEX ENTRE LOGO E MENU */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MENU PRINCIPAL */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    background: #f8f3ee;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.main-nav li {
    position: relative;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav a {
    text-decoration: none;
    color: #4a3424;
    font-size: 0.95rem;
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background-color: #d58b4c;
    color: #fff;
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background-color: #d58b4c;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.08s ease;
}

.btn:hover {
    background-color: #b96f34;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #d58b4c;
    color: #d58b4c;
}

.btn-secondary:hover {
    background-color: #d58b4c;
    color: #fff;
}

/* HERO */
.hero {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    max-width: 32rem;
    margin: 0 auto 1.25rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* SEÇÕES */
section {
    margin-bottom: 2.25rem;
}

section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}

/* GRID DE RECEITAS */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.recipe-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.recipe-card a {
    color: inherit;
    text-decoration: none;
}

.recipe-card img {
    width: 100%;
    border-radius: 0.6rem;
    margin-bottom: 0.65rem;
    display: block;
    object-fit: cover;
}

.recipe-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.recipe-card .meta {
    font-size: 0.85rem;
    color: #7b5b46;
    margin-bottom: 0.4rem;
}

.recipe-card p {
    font-size: 0.9rem;
    color: #3f2a1d;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* LISTAGEM DE RECEITAS / FILTRO */
.page-header {
    margin-bottom: 1.2rem;
}

.page-header h1 {
    font-size: 1.7rem;
}

.recipe-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.recipe-filter input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #cfb6a3;
    font-size: 0.95rem;
}

.recipe-filter button {
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    border: none;
    background-color: #d58b4c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* CONTEÚDO DA RECEITA */
.recipe-content {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    font-size: 0.98rem;
}

.recipe-content p {
    margin-bottom: 0.75rem;
}

/* FERRAMENTAS */
.home-tools,
.tool-grid {
    display: grid;
    gap: 1rem;
}

.tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tool-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.tool-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.tool-card p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

/* FOOTER */
.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #5f4634;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* RESPONSIVO */
@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

    .hero {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .site-main {
        margin-top: 1rem;
    }
}
/* DEBUG: garantir que as imagens nunca ficam "invisíveis" */
img { 
  opacity: 1 !important; 
  filter: none !important; 
}
