/*
Theme Name: Pura Theme
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Descrição: Um tema editorial e acolhedor para blogs de receitas e culinária familiar. Inclui grade de receitas na página inicial, navegação fixa, categorias em destaque, seção de newsletter e suporte completo ao Gutenberg.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puratheme
Tags: blog, food, recipe, grid, one-column, two-columns, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ─── CSS RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ─── CSS VARIABLES ────────────────────────────────────────────── */
:root {
  --rust:      #c0523a;
  --rust-dk:   #a3432e;
  --rust-lt:   #e8705a;
  --warm:      #f9f4ef;
  --warm-dk:   #f0e9e0;
  --border:    #e8e0d8;
  --text:      #2b2b2b;
  --muted:     #777;
  --white:     #ffffff;
  --dark:      #1e1e1e;
  --header-h:  130px;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  line-height: 1.2;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── UTILITY CLASSES ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  padding: 13px 30px;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--rust-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,82,58,.3); color: #fff; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--rust);
  color: var(--rust);
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--rust); color: #fff; }

.section-header { text-align: center; padding: 56px 24px 32px; }
.section-header h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; margin-bottom: 12px; }
.section-header p  { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; }
.section-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 14px auto 4px; width: 160px;
}
.section-divider::before,
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--rust); opacity: .5; }
.section-divider span { color: var(--rust); font-size: 16px; }

/* ─── SKIP LINK ────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--rust); color: #fff;
  padding: 8px 16px; z-index: 9999; border-radius: 0 0 4px 4px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════ */

/* Promo bar */
.promo-bar {
  background: var(--rust);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: .04em;
}
.promo-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Social / tagline bar */
.social-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.social-bar .tagline { font-size: 12px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.social-icons a:hover { background: var(--rust); color: #fff; border-color: var(--rust); }
.social-icons svg { width: 14px; height: 14px; fill: currentColor; }

/* Site header */
.site-header {
  background: #fff;
  text-align: center;
  padding: 18px 20px 12px;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-title {
  font-family: 'Dancing Script', cursive;
  font-size: 46px;
  color: var(--rust);
  line-height: 1;
  letter-spacing: -.5px;
  display: inline-block;
}
.site-title a { color: inherit; }
.site-title span { color: var(--text); }
.site-description { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

/* Primary nav */
.primary-nav { background: #fff; border-bottom: 2px solid var(--border); }
.primary-nav .nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.primary-nav ul { display: flex; align-items: center; }
.primary-nav ul li { position: relative; }
.primary-nav ul li a {
  display: block;
  padding: 14px 17px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .2s;
  white-space: nowrap;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a { color: var(--rust); }

/* Dropdown */
.primary-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  z-index: 300;
}
.primary-nav ul li:hover > ul { display: block; }
.primary-nav ul li ul li a {
  padding: 10px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: .04em;
}
.primary-nav ul li ul li:last-child a { border-bottom: none; }
.primary-nav ul li ul li a:hover { background: var(--warm); color: var(--rust); }
.primary-nav ul li ul li ul { left: 100%; top: 0; }

.menu-item-has-children > a::after { content: ' ▾'; font-size: 9px; opacity: .7; }

/* Buscar toggle */
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  padding: 14px 16px; color: var(--muted); font-size: 17px;
  transition: color .2s;
}
.nav-search-btn:hover { color: var(--rust); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px 16px; font-size: 22px; color: var(--text);
}

/* Category pills */
.cat-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  flex-wrap: wrap;
  background: var(--warm);
  border-bottom: 1px solid var(--border);
}
.cat-pills a {
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
  background: #fff;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.cat-pills a:hover,
.cat-pills a.current { background: var(--rust); color: #fff; border-color: var(--rust); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  overflow: hidden;
}
.hero-text {
  background: var(--warm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
}
.hero-text h1 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text h1 em { color: var(--rust); font-style: italic; }
.hero-text .hero-desc { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.hero-image { position: relative; overflow: hidden; min-height: 400px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-image:hover img { transform: scale(1.04); }
.hero-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--rust); color: #fff;
  padding: 7px 16px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   RECIPE CARDS GRID
═══════════════════════════════════════════════════════════════ */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 0 24px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s, border-color .3s;
}
.recipe-card.visible { opacity: 1; transform: translateY(0); }
.recipe-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,.1); transform: translateY(-4px); border-color: var(--border); }

.recipe-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--warm);
}
.recipe-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.recipe-card:hover .recipe-card-thumb img { transform: scale(1.07); }

.recipe-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--rust); color: #fff;
  padding: 4px 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: 2px;
}

.recipe-card-body { padding: 18px 20px 22px; }
.recipe-card-cat {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 6px;
}
.recipe-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.recipe-card-body h3 a { color: inherit; transition: color .2s; }
.recipe-card-body h3 a:hover { color: var(--rust); }
.recipe-card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.recipe-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.recipe-meta span { display: flex; align-items: center; gap: 5px; }
.recipe-meta svg { width: 13px; height: 13px; fill: var(--rust); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   FEATURE BANNER (dark)
═══════════════════════════════════════════════════════════════ */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  min-height: 420px;
  overflow: hidden;
}
.feature-banner-img { overflow: hidden; }
.feature-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner-text {
  padding: 64px 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-banner-text .eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 14px;
}
.feature-banner-text h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  color: #fff; font-weight: 700; margin-bottom: 18px;
}
.feature-banner-text p { font-size: 14.5px; color: #aaa; margin-bottom: 28px; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY TILES
═══════════════════════════════════════════════════════════════ */
.cat-tiles-section { padding: 56px 24px; background: #fff; }
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 32px auto 0;
}
.cat-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.05) 55%);
  display: flex; align-items: flex-end;
  padding: 22px 18px;
}
.cat-tile-overlay h3 {
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: 20px; font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════════════════════
   RECENT POSTS STRIP
═══════════════════════════════════════════════════════════════ */
.recent-posts-section { background: var(--warm); padding: 56px 24px; }
.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 32px auto 0;
}
.post-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-3px); }
.post-card-thumb { overflow: hidden; aspect-ratio: 3/2; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-body { padding: 14px 16px 18px; }
.post-card-cat { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--rust); margin-bottom: 5px; }
.post-card-body h4 { font-family: 'Playfair Display', serif; font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 6px; }
.post-card-body h4 a { color: inherit; transition: color .2s; }
.post-card-body h4 a:hover { color: var(--rust); }
.post-card-body p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT STRIP
═══════════════════════════════════════════════════════════════ */
.about-strip {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 380px;
  overflow: hidden;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}
.about-strip-img { overflow: hidden; }
.about-strip-img img { width: 100%; height: 100%; object-fit: cover; }
.about-strip-text {
  padding: 64px 70px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.about-strip-text .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; }
.about-strip-text h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.about-strip-text p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; max-width: 500px; }

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════════════════ */
.newsletter-section {
  background: var(--rust);
  padding: 64px 24px;
  text-align: center;
}
.newsletter-section h2 { font-family: 'Playfair Display', serif; font-size: 34px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.newsletter-section p { font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 30px; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 3px;
  overflow: hidden;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  font-size: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.65); }
.newsletter-form button {
  padding: 15px 26px;
  background: #fff;
  color: var(--rust);
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--warm); }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}
.sidebar { padding-top: 4px; }
.widget { margin-bottom: 36px; }
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rust);
  margin-bottom: 18px;
  color: var(--text);
}
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.widget ul li a { color: var(--muted); transition: color .2s; }
.widget ul li a:hover { color: var(--rust); }
.widget-search input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  font-size: 14px;
  border-radius: 2px;
  outline: none;
}
.widget-search input:focus { border-color: var(--rust); }

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════════ */
.single-post-header { padding: 48px 24px 32px; max-width: 780px; margin: 0 auto; text-align: center; }
.single-post-header .post-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; }
.single-post-header h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; margin-bottom: 16px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.single-post-hero { max-height: 520px; overflow: hidden; margin-bottom: 48px; }
.single-post-hero img { width: 100%; height: 520px; object-fit: cover; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}
.post-content h2 { font-size: 26px; margin: 36px 0 14px; }
.post-content h3 { font-size: 21px; margin: 28px 0 10px; }
.post-content img { border-radius: 4px; margin: 24px auto; }
.post-content ul, .post-content ol { margin: 16px 0 16px 28px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--rust);
  padding: 16px 24px;
  background: var(--warm);
  margin: 28px 0;
  font-style: italic;
  font-size: 17px;
}

/* ═══════════════════════════════════════════════════════════════
   RECIPE CARD BLOCK (single post)
═══════════════════════════════════════════════════════════════ */
.recipe-block {
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  margin: 40px 0;
  background: var(--warm);
}
.recipe-block h3 { font-size: 24px; margin-bottom: 6px; }
.recipe-block .recipe-stats {
  display: flex; gap: 24px; margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.recipe-block .stat { text-align: center; }
.recipe-block .stat .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.recipe-block .stat .value { font-size: 16px; font-weight: 700; color: var(--text); }
.recipe-block h4 { font-size: 16px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.recipe-block ul, .recipe-block ol { margin-left: 20px; }
.recipe-block ul { list-style: disc; }
.recipe-block ol { list-style: decimal; }
.recipe-block li { margin-bottom: 8px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
═══════════════════════════════════════════════════════════════ */
.archive-header {
  background: var(--warm);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.archive-header h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin-bottom: 10px; }
.archive-header p { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 16px 24px 48px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
  color: var(--text);
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.pagination a:hover,
.pagination .current { background: var(--rust); color: #fff; border-color: var(--rust); }

/* ═══════════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════════ */
.comments-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.comments-title { font-size: 22px; margin-bottom: 28px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.comment-list { margin-bottom: 40px; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.comment-content { font-size: 14.5px; line-height: 1.7; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--rust); }
.comment-form textarea { height: 140px; resize: vertical; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer { background: #1e1e1e; color: #aaa; padding: 56px 24px 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand .logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 36px; color: var(--rust);
  display: block; margin-bottom: 14px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #888; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
  padding-bottom: 9px; border-bottom: 1px solid #333;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13.5px; color: #888; transition: color .2s; }
.footer-col ul li a:hover { color: var(--rust); }
.footer-bottom {
  border-top: 1px solid #2e2e2e;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px; color: #555;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--rust); color: #fff; border-color: var(--rust); }
.footer-social svg { width: 13px; height: 13px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════════════════════════ */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 110px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: #fff;
  padding: 36px;
  width: 620px; max-width: 95vw;
  border-radius: 4px;
  position: relative;
  animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
.search-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 18px; }
.search-input-row { display: flex; border: 2px solid var(--border); border-radius: 2px; overflow: hidden; }
.search-input-row input { flex: 1; padding: 14px 16px; font-size: 15px; border: none; outline: none; }
.search-input-row button { padding: 14px 22px; background: var(--rust); color: #fff; border: none; cursor: pointer; font-size: 17px; }
.search-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.search-close:hover { color: var(--rust); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
═══════════════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 400;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  position: absolute; top: 0; right: 0;
  width: 300px; height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 24px 0;
  box-shadow: -6px 0 24px rgba(0,0,0,.12);
}
.mobile-nav-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--muted);
}
.mobile-nav-inner ul { padding: 16px 0; }
.mobile-nav-inner ul li a {
  display: block;
  padding: 12px 28px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-inner ul li a:hover { color: var(--rust); background: var(--warm); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid  { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  :root { --header-h: 90px; }
  .promo-bar { font-size: 12px; }
  .social-bar { flex-direction: column; gap: 8px; padding: 10px 20px; }
  .site-title { font-size: 36px; }
  .primary-nav .nav-inner { display: none; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 260px; }
  .hero-text { padding: 36px 28px; }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner-text { padding: 40px 28px; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-img { min-height: 240px; }
  .about-strip-text { padding: 40px 28px; }
  .recipes-grid { grid-template-columns: 1fr; }
  .archive-grid  { grid-template-columns: 1fr; }
  .cat-tiles-grid { grid-template-columns: 1fr 1fr; }
  .recent-posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 14px; }
}
@media (max-width: 480px) {
  .cat-tiles-grid { grid-template-columns: 1fr; }
  .cat-pills { gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════
   WORDPRESS CORE CLASSES
═══════════════════════════════════════════════════════════════ */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide  { margin-left: -80px; margin-right: -80px; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.wp-block-image img { border-radius: 4px; }
.wp-caption { font-size: 13px; color: var(--muted); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.gallery-item img { width: 100%; object-fit: cover; border-radius: 3px; }
.sticky { border-left: 4px solid var(--rust); padding-left: 20px; }
