/* Fraunces (SIL OFL), self-hosted Latin subset: the same files as pg-guides.css (../fonts). Loaded only on /recipes. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/Fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Fraunces-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Portugalia – Recipes landing page (/recipes)
   Same design language as the /guides redesign (pg-guides.css).
   Everything is scoped under .pg-recipes so nothing leaks into
   the rest of the theme.
   Fonts: Fraunces (headings) + Poppins (already on the site).
   ========================================================= */

.pg-recipes{
  --pg-ink:#2a211c; --pg-muted:#6b5d54; --pg-cream:#fbf6ee; --pg-line:#eadfce;
  --pg-azul:#1d4e89; --pg-red:#b3262e;
  --pg-cod:#1d4e89; --pg-soup:#1f5e3b; --pg-snack:#a3501c; --pg-sweet:#8a2a40;
  --pg-serif:'Fraunces',Georgia,'Times New Roman',serif;
  font-family:Poppins,system-ui,sans-serif;
  color:var(--pg-ink);
  font-size:16px;
  line-height:1.65;
}
.pg-recipes *,.pg-recipes *::before,.pg-recipes *::after{box-sizing:border-box}
.pg-recipes a{color:inherit;text-decoration:none}
.pg-recipes a:hover{text-decoration:none}
.pg-recipes ul{list-style:none;margin:0;padding:0}
.pg-recipes li{margin:0}

/* ---------- Hero ---------- */
.pg-recipes .pg-hero{
  position:relative;overflow:hidden;
  background:var(--pg-cream);border:1px solid var(--pg-line);border-radius:18px;
  padding:56px 48px;margin:0 0 28px;
}
.pg-recipes .pg-hero::after{
  content:"";position:absolute;right:0;top:0;bottom:0;width:42%;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect width='80' height='80' fill='%23fbf6ee'/%3E%3Cg fill='none' stroke='%231d4e89' stroke-width='2.2'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 6 Q52 22 40 26 Q28 22 40 6Z M40 74 Q52 58 40 54 Q28 58 40 74Z M6 40 Q22 28 26 40 Q22 52 6 40Z M74 40 Q58 28 54 40 Q58 52 74 40Z'/%3E%3Cpath d='M0 0 Q12 4 10 10 Q4 12 0 0Z M80 0 Q68 4 70 10 Q76 12 80 0Z M0 80 Q12 76 10 70 Q4 68 0 80Z M80 80 Q68 76 70 70 Q76 68 80 80Z'/%3E%3C/g%3E%3Ccircle cx='40' cy='40' r='5' fill='%23b3262e'/%3E%3C/svg%3E");
  background-size:80px;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 45%);
          mask-image:linear-gradient(to right,transparent,#000 45%);
  opacity:.55;
}
.pg-recipes .pg-hero-inner{position:relative;z-index:1}
.pg-recipes .pg-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--pg-red);
}
.pg-recipes .pg-eyebrow::before{content:"";width:28px;height:2px;background:var(--pg-red)}
.pg-recipes .pg-title{
  font-family:var(--pg-serif);font-weight:700;
  font-size:clamp(34px,5vw,54px);line-height:1.08;letter-spacing:-.01em;
  color:var(--pg-ink);margin:14px 0 18px;max-width:15ch;
}
.pg-recipes .pg-title em{font-style:italic;font-weight:500;color:var(--pg-azul)}
.pg-recipes .pg-lede{font-size:18px;color:var(--pg-muted);max-width:56ch;margin:0}
.pg-recipes .pg-since{
  display:inline-flex;align-items:center;gap:10px;margin-top:26px;
  font-size:14px;font-weight:500;background:#fff;border:1px solid var(--pg-line);
  border-radius:999px;padding:8px 16px 8px 8px;
}
.pg-recipes .pg-since b{background:var(--pg-azul);color:#fff;border-radius:999px;padding:3px 10px;font-weight:600;white-space:nowrap}

/* ---------- Jump-to category nav ---------- */
.pg-recipes .pg-jump{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 44px}
.pg-recipes .pg-jump a{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:600;padding:9px 16px;border-radius:999px;
  background:#fff;border:1px solid var(--pg-line);transition:background .15s,border-color .15s;
}
.pg-recipes .pg-jump a::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c)}
.pg-recipes .pg-jump a:hover{background:var(--pg-cream);border-color:#d9c9b2}

/* ---------- Category sections ---------- */
.pg-recipes .pg-section{margin:0 0 48px;scroll-margin-top:90px}
.pg-recipes .pg-section-head{display:flex;align-items:center;gap:14px;margin:0 0 20px}
.pg-recipes .pg-section-icon{
  width:46px;height:46px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--c);
}
.pg-recipes .pg-section-icon svg{width:28px;height:28px}
.pg-recipes .pg-section-title{
  font-family:var(--pg-serif);font-weight:700;font-size:30px;line-height:1.15;margin:0;color:var(--pg-ink);
}
.pg-recipes .pg-cod  {--c:var(--pg-cod)}
.pg-recipes .pg-soup {--c:var(--pg-soup)}
.pg-recipes .pg-snack{--c:var(--pg-snack)}
.pg-recipes .pg-sweet{--c:var(--pg-sweet)}

/* ---------- Recipe cards ---------- */
.pg-recipes .pg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.pg-recipes .pg-card{
  display:flex;flex-direction:column;height:100%;border-radius:16px;overflow:hidden;
  background:#fff;border:1px solid var(--pg-line);
  box-shadow:0 1px 2px rgba(42,33,28,.04);
  transition:transform .2s ease,box-shadow .2s ease;
}
.pg-recipes .pg-card:hover,.pg-recipes .pg-card:focus-visible{
  transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(42,33,28,.35);
}
.pg-recipes .pg-card:focus-visible{outline:3px solid var(--pg-azul);outline-offset:3px}
.pg-recipes .pg-art{
  position:relative;height:150px;overflow:hidden;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c) 78%,#fff),var(--c));
  background-color:var(--c);
}
.pg-recipes .pg-art::before{
  content:"";position:absolute;inset:0;opacity:.13;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3Cpath d='M28 4 Q36 15 28 18 Q20 15 28 4Z M28 52 Q36 41 28 38 Q20 41 28 52Z M4 28 Q15 20 18 28 Q15 36 4 28Z M52 28 Q41 20 38 28 Q41 36 52 28Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:56px;
}
/* Optional: drop a real photo in via <img class="pg-photo"> inside .pg-art */
.pg-recipes .pg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pg-recipes .pg-art:has(.pg-photo)::before{display:none}
.pg-recipes .pg-art:has(.pg-photo) .pg-icon{display:none}
.pg-recipes .pg-icon{position:absolute;right:18px;bottom:-4px;width:120px;height:120px;opacity:.95}
.pg-recipes .pg-badge{
  position:absolute;left:20px;top:18px;z-index:1;
  font-size:12px;font-weight:600;letter-spacing:.04em;color:#fff;
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.35);
  padding:4px 11px;border-radius:999px;
}
.pg-recipes .pg-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.pg-recipes .pg-card-title{
  font-family:var(--pg-serif);font-weight:700;font-size:23px;line-height:1.2;margin:0 0 6px;color:var(--pg-ink);
}
.pg-recipes .pg-body p{margin:0 0 16px;color:var(--pg-muted);font-size:15.5px}
.pg-recipes .pg-cta{
  margin-top:auto;display:inline-flex;align-items:center;gap:8px;
  font-weight:600;font-size:15px;color:var(--c);
}
.pg-recipes .pg-cta span{transition:transform .2s}
.pg-recipes .pg-card:hover .pg-cta span{transform:translateX(4px)}

/* ---------- Share strip ---------- */
.pg-recipes .pg-share{
  background:var(--pg-azul);color:#fff;border-radius:18px;margin:8px 0 48px;padding:34px 36px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.pg-recipes .pg-share-title{font-family:var(--pg-serif);font-weight:700;font-size:28px;margin:0 0 6px;color:#fff}
.pg-recipes .pg-share p{margin:0;opacity:.88;max-width:52ch}
.pg-recipes .pg-btn{
  display:inline-block;background:#fff;color:var(--pg-azul);font-weight:600;
  padding:12px 22px;border-radius:999px;white-space:nowrap;
}
.pg-recipes .pg-btn:hover{background:var(--pg-cream);color:var(--pg-azul)}

/* ---------- Guides + shop ---------- */
.pg-recipes .pg-more-title{font-family:var(--pg-serif);font-weight:700;font-size:26px;margin:0 0 16px;color:var(--pg-ink)}
.pg-recipes .pg-guides-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 28px}
.pg-recipes .pg-guide{
  display:flex;align-items:center;justify-content:space-between;gap:12px;height:100%;
  padding:18px 20px;border-radius:14px;background:var(--pg-cream);border:1px solid var(--pg-line);
  font-weight:600;font-size:15px;transition:border-color .15s,transform .15s;
}
.pg-recipes .pg-guide:hover{border-color:#d9c9b2;transform:translateY(-2px)}
.pg-recipes .pg-guide span{color:var(--pg-red);flex:none}
.pg-recipes .pg-shop{text-align:center;margin:8px 0 24px}
.pg-recipes .pg-btn-dark{
  display:inline-block;background:var(--pg-ink);color:#fff;font-weight:600;
  padding:14px 28px;border-radius:999px;
}
.pg-recipes .pg-btn-dark:hover{background:#000;color:#fff}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  .pg-recipes .pg-hero{padding:40px 24px;border-radius:14px}
  .pg-recipes .pg-hero::after{width:100%;opacity:.12;-webkit-mask-image:none;mask-image:none}
  .pg-recipes .pg-grid,.pg-recipes .pg-guides-row{grid-template-columns:1fr;gap:16px}
  .pg-recipes .pg-section-title{font-size:26px}
  .pg-recipes .pg-art{height:120px}
  .pg-recipes .pg-icon{width:96px;height:96px}
  .pg-recipes .pg-share{padding:28px 24px}
  /* Narrow screens: badge above the text so the line isn't squeezed into a tall pill (as on /guides) */
  .pg-recipes .pg-since{flex-direction:column;align-items:flex-start;gap:8px;border-radius:14px;padding:10px 14px;line-height:1.45}
}

@media (prefers-reduced-motion:reduce){
  .pg-recipes .pg-card,.pg-recipes .pg-guide,.pg-recipes .pg-cta span{transition:none}
  .pg-recipes .pg-card:hover,.pg-recipes .pg-guide:hover{transform:none}
}
