/*
Theme Name: Tema Receitas SEO
Theme URI: https://mauriciofreitas.com.br
Author: Click Receitas
Description: Tema enxuto de receitas, estilo Receitas Globo + Receitaria. Mobile-first, sem JavaScript, Open Sans, laranja.
Version: 1.9.4
*/

:root {
  --header: #ff7a00;      /* laranja da barra do topo */
  --brand: #e8670f;        /* laranja principal (detalhes, bordas) */
  --brand-dark: #c2500a;   /* laranja escuro: fundo de botões e links (contraste 4,7:1 com branco) */
  --brand-soft: #fff1e6;   /* laranja bem claro */
  --bg-main: #ffffff;
  --section-bg: #f7f2eb;
  --card-bg: #ffffff;
  --text-dark: #2b1d14;
  --text-gray: #6f5e52;
  --border-light: #eadfd3;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1124px; margin: 0 auto; padding: 0 12px; } /* 1100px úteis */
main.container { max-width: 1124px; } /* 1100px úteis: mesma linha do MENU e da BUSCAR */

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 3000; }
.skip-link:focus { left: 8px; top: 8px; }

/* --- BOTÕES --- */
.btn-orange {
  display: inline-block;
  background: var(--brand-dark);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.btn-orange:hover { background: var(--brand); }

/* --- TOPO (barra laranja cheia: MENU | logo | BUSCAR) --- */
.topbar { background: var(--header); color: #fff; position: sticky; top: -36px; z-index: 1000; border-top: 36px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.topbar-flex { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; max-width: 1124px; margin: 0 auto; padding: 0 12px; }

.topbar-btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; user-select: none; }
.topbar-menu { justify-self: start; }
.topbar-search { justify-self: end; }
.topbar-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 480px) { .topbar-btn-text { display: none; } .topbar-btn { padding: 8px; } }

.hamburger-btn { display: flex; flex-direction: column; gap: 4px; }
.hamburger-btn span { display: block; width: 20px; height: 3px; background: #fff; border-radius: 2px; }

.brand-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; justify-self: center; }
.brand-img { display: block; max-height: 40px; width: auto; }
.brand-pill { background: #fff; color: var(--header); border-radius: 999px; padding: 2px 16px 4px; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; text-transform: lowercase; }
.brand-word { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; text-transform: lowercase; }
@media (max-width: 480px) { .brand-pill, .brand-word { font-size: 21px; } .brand-img { max-height: 30px; width: auto; } }

/* Busca que desce da barra (só CSS) */
.search-panel { display: none; background: #fff; border-bottom: 1px solid var(--border-light); padding: 12px 16px; }
.search-toggle:checked ~ .topbar .search-panel { display: block; }
.search-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.search-toggle:focus-visible ~ .topbar .topbar-search { outline: 2px solid #fff; outline-offset: 4px; }
.header-search-form { display: flex; max-width: 640px; margin: 0 auto; }
.header-search-form input {
  flex: 1; min-width: 0; padding: 11px 18px; border: 1px solid #d9cbbd; border-right: 0;
  border-radius: 24px 0 0 24px; outline: none; font: inherit; font-size: 15px; background: #fff;
}
.header-search-form input:focus { border-color: var(--brand); }
.header-search-form button { background: var(--brand-dark); color: #fff; border: none; padding: 0 22px; border-radius: 0 24px 24px 0; cursor: pointer; font: inherit; font-weight: 700; }

/* BARRA DE CATEGORIAS */
.categories-bar {
  background: #fff; border-bottom: 1px solid var(--border-light); padding: 8px 0;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.categories-flex { display: flex; gap: 8px; }

.cat-pill {
  display: inline-block; padding: 6px 14px; background: var(--brand-soft); border-radius: 16px;
  color: var(--text-dark); text-decoration: none; font-size: 13px; font-weight: 600;
}
.cat-pill:hover { background: var(--brand-dark); color: #fff; }

/* MENU LATERAL (só CSS) */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.menu-toggle:focus-visible ~ .topbar .hamburger-btn { outline: 2px solid var(--brand); outline-offset: 2px; }

.side-menu-drawer {
  position: fixed; top: 0; left: -320px; width: 290px; height: 100vh; background: #fff; z-index: 2000;
  box-shadow: 4px 0 15px rgba(0,0,0,0.15); transition: left 0.3s ease; overflow-y: auto; visibility: hidden;
}
.menu-toggle:checked ~ .side-menu-drawer { left: 0; visibility: visible; }

.side-menu-overlay { position: fixed; inset: 0; background: rgba(43,29,20,0.5); z-index: 1999; display: none; }
.menu-toggle:checked ~ .side-menu-overlay { display: block; }

.side-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--brand-dark); color: #fff; }
.side-menu-header h3 { font-size: 16px; font-weight: 800; }
.close-btn { color: #fff; font-size: 28px; cursor: pointer; line-height: 1; padding: 0 6px; }

.side-menu-content { padding: 16px; }
.side-search-form { display: flex; margin-bottom: 16px; }
.side-search-form input { width: 100%; padding: 10px 12px; border: 1px solid #d9cbbd; border-radius: 4px 0 0 4px; font: inherit; }
.side-search-form button { background: var(--brand-dark); color: #fff; border: none; padding: 0 14px; border-radius: 0 4px 4px 0; }

.side-nav ul { list-style: none; margin-bottom: 16px; }
.side-nav li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text-gray); }
.side-nav li a { display: block; padding: 10px 0; color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 14px; }
.side-nav li a:hover { color: var(--brand-dark); }
.btn-side-submit { display: block; text-align: center; background: var(--brand-dark); color: #fff; padding: 12px; border-radius: 6px; text-decoration: none; font-weight: 700; }

/* --- HERO (mesma proporção da Globo, em 1100 x 594, espaço 11) --- */
.globo-hero-grid { display: grid; grid-template-columns: 1fr; gap: 11px; margin: 20px 0; }

.hero-main-card, .side-card { position: relative; border-radius: 6px; overflow: hidden; background: #8a6a4f; }
.hero-main-card { height: 340px; }
.hero-side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.side-card { height: 190px; }

@media (min-width: 768px) {
  .globo-hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-main-card { height: 594px; }
  .hero-side-cards { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: 594px; }
  .side-card { height: auto; }
}

.hero-main-card img, .side-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay-content, .side-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 22px 22px;
  background: linear-gradient(180deg, rgba(70,42,20,0) 0%, rgba(70,42,20,0.42) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
}
.hero-overlay-content *, .side-card-overlay * { pointer-events: auto; }

.hero-title, .side-card-title { font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 6px rgba(40,22,8,0.45); }
.hero-title { font-size: 24px; }
.side-card-title { font-size: 16px; }

@media (min-width: 768px) {
  .hero-overlay-content { padding: 70px 22px 24px; }
  .side-card-overlay { padding: 50px 22px 22px; }
  .hero-title { font-size: 36px; }
  .side-card-title { font-size: 28px; }
}
.hero-title a, .side-card-title a { color: #fff !important; text-decoration: none; }

/* --- GELADEIRA --- */
.fridge-box {
  background: #fff; border: 1px solid var(--border-light); border-top: 4px solid var(--brand);
  border-radius: 6px; padding: 24px 16px; text-align: center; margin: 32px 0;
}
.fridge-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.fridge-box p { color: var(--text-gray); font-size: 14px; }
.fridge-input { display: flex; max-width: 560px; margin: 16px auto 0; }
.fridge-input input { flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid #d9cbbd; border-right: 0; border-radius: 26px 0 0 26px; font: inherit; font-size: 15px; outline: none; background: #fff; }
.fridge-input input:focus { border-color: var(--brand); }
.fridge-input button { background: var(--brand-dark); color: #fff; border: 0; padding: 0 22px; border-radius: 0 26px 26px 0; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.fridge-input button:hover { background: var(--brand); }
.fridge-or { margin-top: 16px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; background: var(--brand-soft); border: 1px solid transparent; border-radius: 18px; font-size: 14px; font-weight: 600; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand-dark); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fridge-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.fridge-tags .cat-pill { font-size: 14px; padding: 8px 16px; }

/* --- SEÇÕES DA HOME --- */
.home-section { margin: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-head .section-title { margin-bottom: 0; }
.see-all { color: var(--brand-dark); font-weight: 700; font-size: 14px; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* Categorias em círculo */
.cat-circles { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle { flex: 0 0 96px; text-align: center; text-decoration: none; }
.cat-circle-img { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-circle-name { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.cat-circle:hover .cat-circle-name { color: var(--brand-dark); }
@media (min-width: 768px) {
  .cat-circles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .cat-circle { flex: none; }
  .cat-circle-img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Grade de receitas */
.recipe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
@media (min-width: 768px) { .recipe-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; } }

.recipe-card-link { display: block; text-decoration: none; }
.recipe-card-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--brand-soft); }
.recipe-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.recipe-card-link:hover .recipe-card-thumb img { transform: scale(1.04); }
.recipe-card-title { margin-top: 10px; font-size: 15px; font-weight: 800; line-height: 1.25; }
.recipe-card-link:hover .recipe-card-title { color: var(--brand-dark); }
@media (min-width: 768px) { .recipe-card-title { font-size: 16px; } }

/* Queridinhas */
.fav-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .fav-grid { grid-template-columns: 1fr 1fr; } }
.fav-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border-light); border-radius: 6px; padding: 14px; }
.fav-thumb { flex: 0 0 38%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.fav-body h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.fav-body h3 a { text-decoration: none; }
.fav-body p { font-size: 14px; color: var(--text-gray); }
.fav-body .btn-orange { margin-top: auto; }

/* WhatsApp */
.wa-box { background: var(--brand-soft); border: 1px solid var(--border-light); border-left: 6px solid var(--brand); border-radius: 6px; padding: 28px 20px; text-align: center; margin: 40px 0; }
.wa-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.wa-box p { color: var(--text-gray); margin-bottom: 14px; }

/* --- PÁGINAS INTERNAS --- */
.page-head { margin: 28px 0 20px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.page-desc { color: var(--text-gray); margin-top: 6px; }
.page-grid { margin-bottom: 28px; }
.empty { margin: 20px 0; color: var(--text-gray); }

.page-search { display: flex; max-width: 480px; margin-top: 14px; }
.page-search input { flex: 1; padding: 10px 16px; border: 1px solid #d9cbbd; border-right: 0; border-radius: 22px 0 0 22px; font: inherit; outline: none; }
.page-search input:focus { border-color: var(--brand); }
.page-search button { background: var(--brand-dark); color: #fff; border: 0; padding: 0 20px; border-radius: 0 22px 22px 0; font: inherit; font-weight: 700; cursor: pointer; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border-light); text-decoration: none; font-weight: 700; font-size: 14px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

/* Receita / página */
.entry { max-width: 1100px; margin: 24px auto 40px; }
.entry-cat { color: var(--brand-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.entry-head h1 { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 6px 0 8px; }
@media (min-width: 768px) { .entry-head h1 { font-size: 38px; } }
.entry-meta { color: var(--text-gray); font-size: 13px; }
.entry-photo { margin: 18px 0; border-radius: 6px; overflow: hidden; }
.entry-photo img { width: 100%; display: block; }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin-top: 1.6em; }
.entry-content h3 { font-size: 19px; font-weight: 800; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content a { color: var(--brand-dark); }
.entry-tags { margin-top: 20px; font-size: 13px; }
.entry-tags a { display: inline-block; background: var(--brand-soft); padding: 4px 12px; border-radius: 14px; text-decoration: none; font-weight: 600; margin: 0 4px 4px 0; }

/* Comentários */
.comments { max-width: 1100px; margin: 0 auto 48px; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-body { background: #fff; border: 1px solid var(--border-light); border-radius: 6px; padding: 14px; margin-bottom: 12px; font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; margin: 4px 0 8px; }
.comment-metadata a { color: var(--text-gray); text-decoration: none; }
.comment-reply-link { color: var(--brand-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.comment-respond { margin-top: 24px; }
.comment-reply-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9cbbd; border-radius: 6px; font: inherit; background: #fff; }
.comment-form .submit { background: var(--brand-dark); color: #fff; border: 0; padding: 11px 22px; border-radius: 24px; font: inherit; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--brand); }

/* --- RODAPÉ --- */
.site-footer { background: #fff; border-top: 4px solid var(--brand); margin-top: 48px; padding: 32px 0 20px; color: var(--text-gray); font-size: 14px; }
.site-footer .container { max-width: 1124px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: block; font-size: 18px; font-weight: 800; color: var(--brand-dark); margin-bottom: 6px; }
.footer-title { display: block; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover { color: var(--brand-dark); }
.footer-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); text-align: center; font-size: 13px; }

/* Foco visível (acessibilidade) */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.breadcrumb { max-width: 1100px; margin: 18px auto 0; font-size: 13px; color: var(--text-gray); }
.breadcrumb a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.footer-logo { display: block; height: 38px; width: auto; margin-bottom: 8px; }

/* Barra do WordPress (quando logado): o topo grudado fica abaixo dela */
.admin-bar .topbar { top: -4px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 10px; } }

.editor-notice { background: #fff8e1; border: 1px solid #f0c36d; border-radius: 6px; padding: 10px 14px; margin: 14px 0; font-size: 14px; }

/* Envie sua receita */
.cat-pill-envie { background: var(--brand-dark); color: #fff; font-weight: 800; }
.cat-pill-envie:hover { background: var(--brand); }
.cta-envie { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border-light); border-left: 6px solid var(--brand); border-radius: 6px; padding: 22px 20px; margin: 40px 0; }
.cta-envie h2 { font-size: 22px; font-weight: 800; }
.cta-envie p { color: var(--text-gray); }
@media (min-width: 768px) { .cta-envie { flex-direction: row; align-items: center; justify-content: space-between; } }
.related { max-width: 1100px; margin: 0 auto 40px; }

/* Rodapé com 3 colunas */
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Publicidade: primeiro celular; sem alturas máximas ou cortes em anúncios. */
.tr-ad { width: 100%; min-width: 0; max-width: 100%; margin: 28px auto; text-align: center; clear: both; }
.tr-ad-label { display: block; margin-bottom: 8px; color: var(--text-gray); font-size: 10px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.tr-ad-body { width: 100%; min-width: 0; margin: 0 auto; }
.tr-ad-code .tr-ad-body { min-height: 250px; }
.tr-ad-code.tr-ad-top .tr-ad-body { min-height: 100px; }
.tr-ad-banner picture, .tr-ad-banner a { display: block; }
.tr-ad-banner img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
@media (min-width: 768px) {
  .tr-ad { margin-top: 36px; margin-bottom: 36px; }
  .tr-ad-code.tr-ad-top .tr-ad-body { min-height: 90px; }
}
@media (max-width: 479px) {
  .fridge-input input { padding: 10px; width: 0; min-width: 0; }
  .fridge-input button { padding: 10px 12px; font-size: 13px; }
  .fridge-box h2 { font-size: 21px; }
}
@media print { .tr-ad { display: none; } }

/* Fundo branco; bege apenas nos blocos destacados. */
.fridge-box, .wa-box { background: var(--section-bg); }
.fridge-form .fridge-tags { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; padding: 3px 2px 8px; scroll-snap-type: x proximity; }
.fridge-form .fridge-tags .chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
.cat-circles { flex-wrap: nowrap; }
.cat-circle { min-width: 0; }
@media (min-width: 768px) { .fridge-form .fridge-tags { justify-content: center; } }

/* 1.9.3 */
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.topbar-envie { color: #fff; border: 2px solid #fff; border-radius: 18px; padding: 5px 14px; font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.topbar-envie:hover { background: #fff; color: var(--brand-dark); }
@media (max-width: 600px) { .topbar-envie { font-size: 11px; padding: 4px 9px; } .topbar-right { gap: 8px; } }
.crc-imprimir-link { display: none; }
