/* Ficheiro: /home/paocomq/www/novo/assets/css/paocom.css
   =========================================================
   pãocom.art — paocom.css (refeito e organizado)
   - Base visual do /novo (receitas, detalhe, premium, ferramentas)
   - Navegação (menu dinâmico) + comportamento mobile
   - Imagens de receitas (thumb/hero/canto)
   ========================================================= */

/* =========================
   Variáveis (tema)
   ========================= */
:root{
  --bg: #f7f6f3;
  --card: #ffffff;

  --text: #111827;
  --muted: #6b7280;

  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0,0,0,.06);

  --black: #0b0b0c;

  --accent: #d97706;  /* âmbar */
  --accent2: #2563eb; /* azul */
}

/* =========================
   Reset / base
   ========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

/* (opcional) Evita scroll horizontal por erros de layout */
html, body{ max-width: 100%; overflow-x: hidden; }

/* =========================
   Layout / wrappers
   ========================= */
.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.page-title{
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.topbar{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 18px;
}

/* =========================
   Botões / badges
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor:pointer;
  font-weight: 600;
  transition: transform .06s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover{ box-shadow: var(--shadow); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.btn-outline{ background: transparent; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Cards / grelhas
   ========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 640px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: none;
  transition: box-shadow .15s ease, transform .06s ease;
}
.card:hover{ box-shadow: var(--shadow); }

.card-title{
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}
.card-meta{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.card-cta{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.panel{
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

/* =========================
   Alertas / formulários
   ========================= */
.alert{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.form-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.input{
  flex: 1 1 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.input:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.hr{
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* =========================
   Página de detalhe (receita)
   ========================= */
.backlink{
  color: var(--muted);
  font-size: 13px;
}
.backlink:hover{ text-decoration: underline; }

.recipe-wrap{
  position: relative; /* útil para imagem no canto */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 14px;
}

.quote{
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(217,119,6,.08);
  border-radius: 12px;
  color: var(--muted);
  font-style: italic;
}

.cols{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 1024px){
  .cols{ grid-template-columns: 360px 1fr; }
}

.section-title{
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}

.list{
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.list-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 7px 6px;
  border-bottom: 1px dashed rgba(0,0,0,.08);
  font-size: 13px;
}
.list-row:last-child{ border-bottom: 0; }
.list-perc{ font-weight: 800; }

.box-blue{
  border-left: 4px solid var(--accent2);
  background: rgba(37,99,235,.08);
  border-radius: 14px;
  padding: 12px;
}
.box-gray{
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.steps{ margin: 0; padding-left: 18px; }
.steps li{ margin: 0 0 10px; line-height: 1.55; }
.steps strong{ font-weight: 800; }

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}

/* =========================
   Impressão
   ========================= */
@media print{
  .no-print{ display:none !important; }
  body{ background:#fff; }
  .recipe-wrap{ box-shadow:none; border: 1px solid #ddd; }
}

/* =========================
   Imagens de receitas
   ========================= */
.recipe-thumb{
  width: 100%;
  height: 75px;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px){
  .recipe-thumb{ height: 85px; }
}

.recipe-hero{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Imagem pequena no canto (detalhe) */
.recipe-wrap--has-img{ padding-right: 140px; }
@media (min-width: 640px){
  .recipe-wrap--has-img{ padding-right: 170px; }
}

.recipe-corner-img{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
@media (min-width: 640px){
  .recipe-corner-img{ width: 110px; height: 110px; }
}

/* =========================
   Menu dinâmico (classes)
   - O teu menu.php deve emitir estas classes:
     <nav class="main-nav">
       <ul class="main-nav__list">...
   ========================= */
.main-nav ul{ list-style:none; margin:0; padding:0; }

.main-nav__list{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.main-nav__item{ position:relative; }

.main-nav__link{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  font-weight: 700;
  font-size: 14px;
}
.main-nav__link:hover{ box-shadow: var(--shadow); }
.main-nav__link.is-active{
  border-color: rgba(217,119,6,.35);
  background: rgba(217,119,6,.10);
}

/* Dropdown (desktop) */
.main-nav__sub{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.main-nav__sub .main-nav__link{
  width: 100%;
  justify-content:flex-start;
  border-radius: 10px;
  background: transparent;
}

/* Abre submenu em hover (desktop) e também em focus-within (touch) */
.main-nav__item:hover > .main-nav__sub,
.main-nav__item:focus-within > .main-nav__sub{
  display:block;
}

/* Mobile: submenu “compacto” */
@media (max-width: 900px){
  .main-nav__sub{
    position: static;
    min-width: auto;
    box-shadow:none;
    border:none;
    padding: 8px 0 0 12px;
    margin: 6px 0 0 0;
  }
}

/* =========================
   Mobile menu wrapper (se usares nav-wrap + nav-toggle)
   ========================= */
.nav-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

@media (max-width: 820px){
  .nav-toggle{ display:inline-block; }
  .nav-wrap{ display:none; width:100%; }
  .nav-wrap.is-open{ display:block; }

  /* Caso o menu venha com estilos inline no <ul> */
  .nav-wrap nav ul{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
    margin:10px 0 0 0 !important;
    padding:0 !important;
    list-style:none !important;
  }
  .nav-wrap nav a{
    display:block;
    padding:10px 12px;
    border-radius:10px;
  }
}
/* =========================================================
   FIX GLOBAL: BOTÕES COM COR SUAVE (SITE TODO)
   ========================================================= */

/* 1. Botão Base: Fundo creme suave e texto castanho escuro */
.btn, 
button, 
input[type="button"], 
input[type="submit"] {
    background-color: #fdf8f3 !important; /* Cor creme/pão muito leve */
    color: #4a3424 !important;           /* Castanho escuro (mais suave que preto) */
    border: 1px solid #e2d1c3 !important; /* Borda num tom areia */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Sombra quase invisível */
}

/* 2. Efeito ao passar o rato (Hover) */
.btn:hover, 
button:hover {
    background-color: #f0e1d2 !important; /* Escurece ligeiramente para dar feedback */
    border-color: #d58b4c !important;     /* Borda ganha a cor de destaque */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05) !important;
}

/* 3. Botão do WhatsApp / Primário (Mantemos forte para destaque) */
.btn-primary, 
.btn-black {
    background-color: #0b0b0c !important; 
    color: #ffffff !important;           
    border-color: #0b0b0c !important;
}

/* 4. Ajuste para o Menu (Header) */
.main-nav__link {
    background: transparent !important;
    color: #4a3424 !important;
    border: 1px solid transparent !important;
}

.main-nav__link:hover {
    background-color: #f0e1d2 !important; 
    color: #d97706 !important;
}