/*
Theme Name: Foodgam
Theme URI: https://foodgam.com
Author: Chef Chama
Author URI: https://foodgam.com/about
Description: A premium recipe blog theme for Foodgam.com — specialising in meal planning and healthy drinks by Chef Chama.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodgam
Tags: food, recipe, blog, meal-planning, healthy, custom-colors, custom-logo, featured-images, full-width-template, two-columns
*/

/* =============================================
   FOODGAM WORDPRESS THEME
   Chef Chama | foodgam.com
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  --fg:       #1a1208;
  --fg2:      #5a4a2a;
  --fg3:      #8a7a5a;
  --bg:       #fffdf7;
  --bg2:      #f5f0e4;
  --bg3:      #ece4d0;
  --accent:   #c85f2a;
  --accent-h: #a84a1a;
  --green:    #4a7c59;
  --gold:     #d4a017;
  --gold-h:   #b8880d;
  --serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:   8px;
  --radius-lg:12px;
  --shadow:   0 4px 24px rgba(26,18,8,0.08);
  --shadow-lg:0 8px 40px rgba(26,18,8,0.14);
  --max-w:    1160px;
  --content-w:740px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
#page, .site { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-h); }
ul, ol { padding-left: 1.5rem; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--fg);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.2rem; color: var(--fg2); font-weight: 300; }
strong { font-weight: 500; color: var(--fg); }
blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fg2);
}

/* ---- Utility Classes ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { max-width: var(--content-w); margin: 0 auto; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-family: var(--sans);
}
.section-title {
  font-family: var(--serif);
  color: var(--fg);
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.8rem 0 2rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); color: #fff; }
.btn-gold { background: var(--gold); color: var(--fg); }
.btn-gold:hover { background: var(--gold-h); color: var(--fg); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--bg3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--sans);
}
.badge-meal   { background: #fdeee6; color: #8a3a12; }
.badge-drink  { background: #e7f0fb; color: #1a4f8a; }
.badge-healthy{ background: #e6f3ea; color: #2d6b3e; }
.badge-detox  { background: #f0e8fb; color: #5a2d8a; }
.badge-snack  { background: #faeeda; color: #85500b; }

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.site-header {
  background: var(--fg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-logo span { color: var(--gold); font-style: italic; }
.site-logo:hover { color: #fff; }

/* Primary Nav */
.primary-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.2rem;
}
.primary-nav a {
  display: block;
  padding: 8px 14px;
  color: #ccc;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--gold);
  background: rgba(212,160,23,0.08);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.header-search {
  background: rgba(255,255,255,0.08);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #ccc; font-size: 15px;
  transition: background 0.2s;
}
.header-search:hover { background: rgba(255,255,255,0.15); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
}

/* ---- Ticker ---- */
.news-ticker {
  background: var(--gold);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 35s linear infinite;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg);
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-sep { color: var(--accent); margin: 0 1rem; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   HERO — HOMEPAGE (full-screen flex two-panel)
   ================================================ */
.hero {
  background: #1a1208;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: block;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(212,160,23,0.035) 0, rgba(212,160,23,0.035) 1px,
    transparent 0, transparent 50%
  );
  background-size: 20px 20px;
  pointer-events: none; z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,95,42,0.14) 0%, transparent 65%);
  top: -200px; left: -100px;
  pointer-events: none; z-index: 0;
}

/* Two-panel flex row — forces side-by-side always on desktop */
.hero-inner,
.hero-content {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

/* LEFT PANEL — text, ~58% */
.hero-text {
  flex: 0 0 58%;
  width: 58%;
  max-width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem calc(8% + 1rem);
  box-sizing: border-box;
}

/* RIGHT PANEL — chef portrait, ~42% */
.hero-chef {
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 4% 4rem 3%;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(255,255,255,0.015) 0%, rgba(212,160,23,0.04) 100%);
  border-left: 1px solid rgba(212,160,23,0.12);
}

/* Hero text elements */
.hero-eyebrow,
.hero-text .eyebrow {
  display: inline-block;
  background: #c85f2a;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 1.4rem;
  width: fit-content;
}
.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  color: #fff;
  line-height: 1.07;
  margin-bottom: 1.3rem;
  font-weight: 700;
}
.hero-text h1 em { color: #d4a017; font-style: italic; }
.hero-text > p {
  color: #b0a898;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.hero-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #d4a017;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-lbl {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Chef avatar — supports both initials fallback and real photo */
.chef-avatar-lg {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c85f2a 0%, #d4a017 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem; color: #fff; font-style: italic;
  border: 4px solid #d4a017;
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 0 8px rgba(212,160,23,0.15), 0 0 0 10px rgba(212,160,23,0.06), 0 24px 60px rgba(0,0,0,0.6);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.chef-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}
.hero-chef .chef-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: #d4a017; font-size: 1.25rem;
  display: block; margin-bottom: 4px;
}
.hero-chef .chef-title {
  color: #777; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.4rem; display: block;
}
.hero-chef-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; max-width: 260px;
}
.hero-chef-tag {
  font-size: 10px; padding: 4px 11px;
  border-radius: 20px;
  background: rgba(212,160,23,0.1); color: #d4a017;
  border: 0.5px solid rgba(212,160,23,0.28);
  letter-spacing: 0.04em;
}

/* ================================================
   RECIPE CARDS
   ================================================ */
.recipe-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid #e4ddd0;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.recipe-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.recipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.recipe-card:hover .recipe-card-img img { transform: scale(1.04); }
.recipe-card-img .card-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.card-badge-wrap {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.card-save {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: background 0.2s;
}
.card-save:hover { background: #fff; }
.recipe-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 12px;
  color: var(--fg3);
  margin-bottom: 0.7rem;
}
.card-meta span { display: flex; align-items: center; gap: 4px; }
.recipe-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.recipe-card h3 a { color: inherit; text-decoration: none; }
.recipe-card h3 a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 13.5px;
  color: var(--fg3);
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 0.5px solid #ede7da;
}
.card-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg3);
}
.card-author-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 500;
  font-family: var(--serif); font-style: italic;
}
.card-read-more {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.card-read-more:hover { color: var(--accent-h); }

/* ---- Featured Recipe Card ---- */
.recipe-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid #e4ddd0;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}
.recipe-card-featured .featured-img {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d1800, #4a2c00);
  font-size: 7rem;
}
.recipe-card-featured .featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.recipe-card-featured .featured-body {
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.featured-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.featured-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 0.5px solid #ede7da;
  border-bottom: 0.5px solid #ede7da;
}
.fstat { text-align: center; }
.fstat-val { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); display: block; }
.fstat-lbl { font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ================================================
   CATEGORY TILES
   ================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.category-card {
  background: #fff;
  border: 0.5px solid #e4ddd0;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--accent);
  background: #fff9f5;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 2.2rem; margin-bottom: 0.6rem; display: block; }
.cat-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.2rem;
}
.cat-count { font-size: 11px; color: var(--fg3); }

/* ================================================
   SINGLE POST / RECIPE PAGE
   ================================================ */
.post-hero {
  background: var(--fg);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, rgba(212,160,23,0.03) 0, rgba(212,160,23,0.03) 1px, transparent 0, transparent 50%
  );
  background-size: 20px 20px;
}
.post-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
  margin-bottom: 1.5rem;
}
.post-breadcrumb a { color: var(--gold); text-decoration: none; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb span { color: #555; }
.post-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: #999;
  font-size: 13px;
  margin-top: 1.5rem;
}
.post-hero-meta .author-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px 12px; border-radius: 20px;
  color: #ccc;
}
.post-hero-meta .author-chip .av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; font-style: italic; font-family: var(--serif);
}
.post-featured-image {
  max-width: 860px;
  margin: 0 auto -3rem;
  padding: 0 1.5rem;
  position: relative; z-index: 10;
}
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.post-featured-image .img-placeholder {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  align-items: start;
}
.post-layout.no-sidebar { grid-template-columns: 1fr; max-width: var(--content-w); }

/* Recipe Info Bar */
.recipe-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 0.5px solid #ddd5c0;
  overflow: hidden;
  margin: 3rem 0 2.5rem;
}
.info-item {
  flex: 1;
  min-width: 110px;
  padding: 1.2rem 1rem;
  text-align: center;
  border-right: 0.5px solid #ddd5c0;
}
.info-item:last-child { border-right: none; }
.info-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.info-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg3); display: block; }
.info-value { font-family: var(--serif); font-size: 1.1rem; color: var(--fg); font-weight: 700; }

/* Post Content */
.post-content { font-size: 16px; line-height: 1.8; }
.post-content p { color: var(--fg2); margin-bottom: 1.4rem; font-weight: 300; }
.post-content h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 0.5px solid #ede7da; }
.post-content h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.post-content ul, .post-content ol { margin-bottom: 1.4rem; color: var(--fg2); font-weight: 300; }
.post-content li { margin-bottom: 0.4rem; padding-left: 0.3rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.post-content .wp-block-image figcaption {
  font-size: 13px; color: var(--fg3);
  text-align: center; margin-top: 0.5rem; font-style: italic;
}

/* ---- Ingredients ---- */
.ingredients-box {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 0.5px solid #ddd5c0;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
}
.ingredients-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.ingredients-box ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ingredients-box li {
  padding: 6px 0;
  border-bottom: 0.5px solid #ddd5c0;
  font-size: 14.5px;
  color: var(--fg2);
  display: flex; align-items: center; gap: 8px;
}
.ingredients-box li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Instructions ---- */
.instructions-list { list-style: none; padding: 0; counter-reset: step; }
.instruction-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  align-items: start;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.step-content p { margin-bottom: 0; font-size: 14.5px; }

/* ---- Nutrition Box ---- */
.nutrition-box {
  border: 0.5px solid #ddd5c0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}
.nutrition-header {
  background: var(--fg);
  color: #fff;
  padding: 1rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.nutrition-item {
  padding: 1rem;
  text-align: center;
  border-right: 0.5px solid #ede7da;
  border-bottom: 0.5px solid #ede7da;
}
.nutrition-item:nth-child(4n) { border-right: none; }
.nut-val { font-family: var(--serif); font-size: 1.3rem; color: var(--accent); display: block; }
.nut-lbl { font-size: 11px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar { position: sticky; top: 84px; }
.sidebar-widget {
  background: #fff;
  border: 0.5px solid #e4ddd0;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.5px solid #ede7da;
  display: flex; align-items: center; gap: 8px;
}
.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid #ede7da;
  align-items: flex-start;
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.rp-thumb {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-info .rp-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 3px;
  text-decoration: none;
  display: block;
}
.rp-info .rp-title:hover { color: var(--accent); }
.rp-info .rp-time { font-size: 11px; color: var(--fg3); }

/* Chef Widget */
.chef-widget { text-align: center; }
.chef-widget-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; color: #fff; font-style: italic;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid rgba(212,160,23,0.4);
  box-shadow: 0 0 0 5px rgba(212,160,23,0.08);
}
.chef-widget-name { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.3rem; }
.chef-widget-role { font-size: 11px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.8rem; }
.chef-widget-bio { font-size: 13px; color: var(--fg2); font-weight: 300; line-height: 1.6; margin-bottom: 1rem; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg2);
  color: var(--fg2);
  text-decoration: none;
  border: 0.5px solid #ddd5c0;
  transition: all 0.2s;
}
.tag-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-hero {
  background: var(--fg);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-hero-text h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.about-hero-text h1 em { color: var(--gold); font-style: italic; }
.about-hero-text p { color: #b0a898; font-weight: 300; line-height: 1.8; }
.about-chef-portrait {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.portrait-circle {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 5rem; color: #fff; font-style: italic;
  border: 5px solid rgba(212,160,23,0.3);
  box-shadow: 0 0 0 12px rgba(212,160,23,0.08), var(--shadow-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.portrait-name { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.portrait-title { color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.about-specialties {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 1.2rem;
}
.specialty-tag {
  background: rgba(212,160,23,0.12);
  color: var(--gold);
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(212,160,23,0.3);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.value-card {
  background: #fff;
  border: 0.5px solid #e4ddd0;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
}
.value-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 13.5px; margin-bottom: 0; }

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.8rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd5c0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  background: #fff;
  color: var(--fg);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ================================================
   NEWSLETTER SECTION
   ================================================ */
.newsletter-section {
  background: var(--fg);
  padding: 4rem 0;
  text-align: center;
}
.newsletter-section .eyebrow { color: var(--gold); }
.newsletter-section h2 { color: #fff; margin-bottom: 0.8rem; }
.newsletter-section p { color: #b0a898; font-weight: 300; max-width: 480px; margin: 0 auto 2rem; }
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: #888; }
.newsletter-form input:focus { outline: none; background: rgba(255,255,255,0.1); }
.newsletter-form button {
  background: var(--gold);
  color: var(--fg);
  border: none;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-h); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer { background: #0d0a04; color: #666; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
  display: block;
}
.footer-brand .footer-logo span { color: var(--gold); font-style: italic; }
.footer-brand p { font-size: 13px; color: #666; font-weight: 300; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 14px; text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--fg); }
.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-links-list { list-style: none; padding: 0; }
.footer-links-list li { margin-bottom: 0.6rem; }
.footer-links-list a { color: #666; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 12px;
  color: #444;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #444; text-decoration: none; font-size: 12px; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ================================================
   WORDPRESS CORE OVERRIDES — full-width fixes
   ================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.wp-site-blocks, .entry-content { max-width: none !important; padding: 0 !important; }
.site-main > section { width: 100%; display: block; }

/* Skip link & screen reader */
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; top: -999px; left: 1rem; background: var(--gold); color: var(--fg); padding: 8px 16px; border-radius: 0 0 4px 4px; font-size: 13px; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ================================================
   RECIPE FILTER BAR
   ================================================ */
.recipe-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid #ede7da;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  flex-shrink: 0;
}
.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  border: 1.5px solid #e4ddd0;
  background: #fff;
  color: var(--fg2);
  font-weight: 400;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.filter-btn .filter-icon {
  font-size: 14px;
  line-height: 1;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff9f5;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.filter-result-meta {
  margin-bottom: 1.5rem;
  min-height: 24px;
}
.filter-result-meta .archive-count {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Loading skeleton for AJAX */
.recipe-card-skeleton {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 0.5px solid #e4ddd0;
  overflow: hidden;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.recipe-card-skeleton .skel-img  { height: 200px; background: #f0ebe0; }
.recipe-card-skeleton .skel-body { padding: 1.2rem; }
.recipe-card-skeleton .skel-line {
  height: 12px; background: #ede7da;
  border-radius: 4px; margin-bottom: 10px;
}
.recipe-card-skeleton .skel-line.short { width: 60%; }
.recipe-card-skeleton .skel-line.title { height: 18px; margin-bottom: 14px; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Load More button */
#load-more-btn { min-width: 200px; }
#load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 3rem 0;
}
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg2);
  border: 0.5px solid #e4ddd0;
  transition: all 0.2s;
}
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 14px; font-size: 13px; }

/* ================================================
   SEARCH RESULTS
   ================================================ */
.search-header {
  background: var(--bg2);
  padding: 3rem 0;
  border-bottom: 0.5px solid #ddd5c0;
}
.search-header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.search-header p { color: var(--fg3); font-size: 14px; margin: 0; }
.search-bar-lg {
  display: flex; max-width: 500px; margin-top: 1.5rem;
  border: 1px solid #ddd5c0; border-radius: var(--radius); overflow: hidden; background: #fff;
}
.search-bar-lg input { flex: 1; padding: 11px 16px; border: none; font-family: var(--sans); font-size: 14px; }
.search-bar-lg input:focus { outline: none; }
.search-bar-lg button { background: var(--accent); color: #fff; border: none; padding: 11px 18px; cursor: pointer; font-size: 14px; }

/* ================================================
   ARCHIVE / CATEGORY PAGE
   ================================================ */
.archive-header {
  background: var(--bg2);
  padding: 3.5rem 0;
  border-bottom: 0.5px solid #ddd5c0;
}
.archive-header .eyebrow { color: var(--accent); margin-bottom: 0.4rem; }
.archive-header h1 { margin-bottom: 0.5rem; }
.archive-header p { color: var(--fg3); font-size: 14px; margin: 0; font-weight: 300; }
.archive-count { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-top: 0.8rem; }

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0;
  border-bottom: 0.5px solid #ede7da;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-label { font-size: 12px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.07em; margin-right: 0.5rem; }
.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--sans);
  cursor: pointer;
  border: 0.5px solid #ddd5c0;
  background: #fff;
  color: var(--fg2);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ================================================
   404 PAGE
   ================================================ */
.error-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-code {
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--bg3);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h2 { margin-bottom: 1rem; }
.error-page p { color: var(--fg3); max-width: 400px; margin: 0 auto 2rem; }

/* ================================================
   PRINT RECIPE BUTTON
   ================================================ */
.print-recipe-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2);
  border: 0.5px solid #ddd5c0;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--fg2);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.print-recipe-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================
   COMMENTS SECTION
   ================================================ */
.comments-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid #ede7da; }
.comment-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.comment-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.1rem; color: var(--fg2); font-style: italic;
}
.comment-body { flex: 1; }
.comment-meta { font-size: 12px; color: var(--fg3); margin-bottom: 0.4rem; }
.comment-meta strong { color: var(--fg); font-size: 14px; }
.comment-text { font-size: 14.5px; color: var(--fg2); font-weight: 300; line-height: 1.6; margin: 0; }
.comment-form { background: var(--bg2); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2rem; }
.comment-form h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comment-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ddd5c0; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; background: #fff; color: var(--fg);
}
.comment-form textarea { min-height: 120px; resize: vertical; margin-bottom: 1rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero-text { padding: 5rem 3rem 5rem 6%; }
  .chef-avatar-lg { width: 160px; height: 160px; font-size: 3rem; }
}
@media (max-width: 900px) {
  .hero-inner,
  .hero-content {
    flex-direction: column !important;
    min-height: auto;
  }
  .hero-text {
    flex: none; width: 100%; max-width: 100%;
    padding: 4rem 2.5rem 2rem;
  }
  .hero-chef {
    flex: none; width: 100%; max-width: 100%;
    border-left: none; border-top: 1px solid rgba(212,160,23,0.12);
    padding: 2.5rem 2rem 4rem;
  }
  .chef-avatar-lg { width: 100px; height: 100px; font-size: 2.2rem; }
  .recipe-card-featured { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-chef-portrait { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredients-box ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.open { display: block; position: fixed; top: 64px; left: 0; right: 0; background: var(--fg); padding: 1rem; z-index: 200; }
  .primary-nav.open ul { flex-direction: column; gap: 0.2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-info-bar { flex-direction: column; }
  .info-item { border-right: none; border-bottom: 0.5px solid #ddd5c0; }
}

@media print {
  .site-header, .site-footer, .sidebar, .newsletter-section, .related-recipes { display: none !important; }
  .post-layout { grid-template-columns: 1fr; }
  .post-hero { background: none; padding: 1rem 0; }
  .post-hero h1 { color: var(--fg); }
}
