/*
Theme Name:        Danielle Recipes
Theme URI:         https://daniellerecipes.com
Author:            Danielle Recipes
Author URI:        https://daniellerecipes.com
Description:       A professional, mobile-first recipe theme with custom post types, SEO schema, AdSense-ready layout, and a clean editorial design. No blog — pure recipes.
Version:           4.0
Requires at least: 6.0
Tested up to:      6.7
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:       danielle-recipes
Tags:              food-and-drink, custom-menu, featured-images, post-thumbnails, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, responsive-layout, custom-logo
*/

/* ==========================================================================
   0. DESIGN TOKENS / CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand palette */
  --terracotta:  #c0562b;
  --terra-light: #e07a52;
  --terra-dark:  #8b3a18;
  --cream:       #fdfaf6;
  --cream-mid:   #f5ece0;
  --brown-100:   #f2e8da;
  --brown-200:   #ddc9b0;
  --brown-300:   #b89478;
  --brown-500:   #7a4f32;
  --brown-700:   #4a2d18;
  --brown-900:   #2d1a0e;
  --olive:       #5a6b3a;
  --sage:        #8fa870;

  /* Semantic aliases used across templates */
  --border:      #e8ddd0;
  --pill:        100px;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Merriweather', 'Georgia', serif;
  --font-ui:      'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --gap:         clamp(16px, 3vw, 28px);
  --section-gap: clamp(48px, 7vw, 96px);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(58,35,25,.08);
  --shadow-md:   0 4px 24px rgba(58,35,25,.12);
  --shadow-lg:   0 8px 40px rgba(58,35,25,.16);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;

  /* Transitions */
  --ease:  all .22s ease;

  /* Layout */
  --max-w: 1220px;
  --content-w: 760px;
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--brown-700);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  color: var(--brown-900);
}

/* ==========================================================================
   2. GOOGLE FONTS IMPORT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Lato:wght@400;700;900&display=swap');

/* ==========================================================================
   3. UTILITY
   ========================================================================== */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,86,43,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--brown-700);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--cream-mid);
  border-color: var(--brown-300);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--brown-900);
  line-height: 1.2;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
#site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  gap: 20px;
}

/* Logo */
.logo-zone { flex-shrink: 0; }

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brown-900);
  letter-spacing: -.01em;
  transition: color .2s;
}
.site-logo:hover { color: var(--terracotta); }

.logo-zone img,
.custom-logo { max-height: 52px; width: auto; }

/* Primary nav */
.primary-nav { display: flex; justify-content: center; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.primary-nav a {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brown-700);
  padding: 6px 12px;
  border-radius: var(--pill);
  transition: var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  background: var(--cream-mid);
  color: var(--terracotta);
}

/* Search + mobile toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: var(--cream-mid);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  overflow: hidden;
  transition: var(--ease);
}

.search-wrap:focus-within {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192,86,43,.12);
}

.search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--brown-700);
  width: clamp(120px, 18vw, 200px);
}

.search-wrap input::placeholder { color: var(--brown-300); }

.search-wrap button {
  background: none;
  border: none;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
  color: var(--brown-300);
  display: flex;
  align-items: center;
  transition: color .2s;
}
.search-wrap button:hover { color: var(--terracotta); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--brown-700);
  border-radius: 2px;
  transition: var(--ease);
}

/* ==========================================================================
   5. MOBILE NAV
   ========================================================================== */
@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: 60px;
  }

  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    z-index: 499;
    justify-content: flex-start;
  }

  .primary-nav.is-open,
  .primary-nav.open { display: flex; }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }

  .primary-nav a {
    font-size: .9rem;
    padding: 10px 14px;
    width: 100%;
    display: block;
  }

  .search-wrap input { width: 140px; }
}

/* ==========================================================================
   6. BREADCRUMB
   ========================================================================== */
.breadcrumb {
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--brown-300);
}

.breadcrumb a {
  color: var(--terracotta);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep {
  margin: 0 6px;
  opacity: .5;
}

.breadcrumb .current { color: var(--brown-500); font-weight: 600; }

/* ==========================================================================
   7. HOMEPAGE — HERO
   ========================================================================== */
.hp-hero {
  background: linear-gradient(150deg, #fdfaf6 0%, #f5ece0 55%, #eeddd0 100%);
  overflow: hidden;
  position: relative;
}

.hp-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(48px,8vw,100px) clamp(16px,4vw,40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hp-hero-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

.hp-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.hp-hero-eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  flex-shrink: 0;
}

.hp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,7vw,4.2rem);
  font-weight: 900;
  color: var(--brown-900);
  line-height: 1.08;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.hp-hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem,2.5vw,1.35rem);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 18px;
  display: block;
  line-height: 1.4;
}

.hp-hero-desc {
  font-family: var(--font-ui);
  font-size: clamp(.92rem,2vw,1.02rem);
  line-height: 1.75;
  color: var(--brown-500);
  max-width: 460px;
  margin-bottom: 30px;
}

.hp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Mini stats row inside hero */
.hp-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(232,221,208,.8);
  border-radius: var(--r-md);
  max-width: 380px;
}
.hp-hero-stat {
  flex: 1;
  text-align: center;
  padding: 4px 8px;
}
.hp-hero-stat strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brown-900);
  line-height: 1.1;
}
.hp-hero-stat span {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-300);
}
.hp-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero image stack */
.hp-hero-imgs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: stretch;
}

.hp-hero-img-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.hp-hero-img-card--1 {
  grid-column: 1 / 3;
  grid-row: 1;
  aspect-ratio: 4/3;
}
.hp-hero-img-card--2 { aspect-ratio: 3/4; grid-row: 2; }
.hp-hero-img-card--3 { aspect-ratio: 3/4; grid-row: 2; }

.hp-hero-img-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.hp-hero-img-card:hover img { transform: scale(1.05); }

.hp-hero-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent 0%, rgba(45,26,14,.82) 100%);
  padding: 32px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hp-hero-img-cat {
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-light);
}
.hp-hero-img-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* ==========================================================================
   8. STATS STRIP (redesigned)
   ========================================================================== */
.hp-stats-strip {
  background: var(--brown-900);
  position: relative;
  overflow: hidden;
}
.hp-stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hp-stats-inner {
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(28px,4vw,44px) clamp(16px,4vw,40px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hp-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.hp-stat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--terra-light);
  transition: var(--ease);
}
.hp-stat-item:hover .hp-stat-icon-wrap {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.hp-stat-text { display: flex; flex-direction: column; gap: 2px; }
.hp-stat-text strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hp-stat-text span {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hp-stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hp-stat-item { padding: 12px 20px; min-width: 140px; }
  .hp-stat-sep { display: none; }
}

/* ==========================================================================
   9. FEATURES SECTION (redesigned)
   ========================================================================== */
.hp-features {
  padding: clamp(56px,8vw,96px) 0;
  background: #fff;
}

.hp-section-head {
  text-align: center;
  margin-bottom: clamp(32px,5vw,52px);
}
.hp-section-head--left { text-align: left; margin-bottom: 28px; }

.hp-title-rule {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.hp-section-head--left .hp-title-rule { justify-content: flex-start; }
.hp-title-rule span {
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--terra-light));
  border-radius: 2px;
}

.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 24px;
}

.hp-feature-card {
  padding: 32px 26px 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.hp-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terra-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.hp-feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.hp-feature-card:hover::before { transform: scaleX(1); }

.hp-feat-svg {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #fdf4ed, #f5e8d8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--terracotta);
  transition: var(--ease);
}
.hp-feature-card:hover .hp-feat-svg {
  background: var(--terracotta);
  color: #fff;
}

.hp-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-900);
  margin-bottom: 10px;
}
.hp-feature-card p {
  font-family: var(--font-ui);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--brown-300);
}

/* ==========================================================================
   10. CATEGORY CARDS (redesigned)
   ========================================================================== */
.hp-cats {
  padding: clamp(56px,8vw,96px) 0;
  background: var(--cream);
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: var(--gap);
}

.cat-card {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  background: var(--cream-mid);
}
.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.cat-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.cat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.cat-card:hover .cat-img-wrap img { transform: scale(1.08); }

.cat-placeholder {
  width: 100%; height: 100%;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-mid), var(--brown-100));
  color: var(--brown-300);
}

.cat-card-info {
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1.5px solid var(--border);
}
.cat-card-name {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown-900);
  margin-bottom: 2px;
  transition: color .2s;
}
.cat-card:hover .cat-card-name { color: var(--terracotta); }

.cat-card-count {
  display: block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-300);
}

/* ==========================================================================
   11. RECIPE CARDS SECTION (homepage)
   ========================================================================== */
.recipes-section {
  padding: clamp(56px,8vw,96px) 0;
  background: #fff;
}

.recipes-main { min-width: 0; }

.recipes-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 72px 20px;
  color: var(--brown-300);
}
.recipes-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cream-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--brown-200);
}
.recipes-empty h3 {
  font-size: 1.3rem;
  color: var(--brown-700);
  margin-bottom: 10px;
}
.recipes-empty p {
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--brown-300);
  margin-bottom: 20px;
}

/* ==========================================================================
   12. SIDEBAR
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
}

.widget h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.widget h4 svg { flex-shrink: 0; }

.widget-empty {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--brown-300);
  text-align: center;
  padding: 12px 0;
}

.trending-no-img {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--cream-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-300);
}

/* ==========================================================================
   13. CHEF SECTION (redesigned)
   ========================================================================== */
.hp-chef {
  padding: clamp(56px,8vw,96px) 0;
  background: linear-gradient(160deg, #fdfaf6 0%, #f0e6da 100%);
  overflow: hidden;
}

.hp-chef-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 860px) {
  .hp-chef-inner { grid-template-columns: 420px 1fr; }
}

/* Visual side */
.hp-chef-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hp-chef-bg-shape {
  position: absolute;
  top: -20px; left: -20px;
  width: 300px; height: 300px;
  border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
  background: linear-gradient(135deg, rgba(192,86,43,.12), rgba(224,122,82,.06));
  z-index: 0;
}

.hp-chef-photo-frame {
  position: relative;
  z-index: 1;
  width: clamp(240px, 50vw, 360px);
}

.hp-chef-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 40% 40% 50% 50% / 30% 30% 50% 50%;
  display: block;
  box-shadow: var(--shadow-lg);
}

.hp-chef-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 40% 40% 50% 50% / 30% 30% 50% 50%;
  background: var(--cream-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-200);
}

/* Home Chef badge on photo */
.hp-chef-badge-card {
  position: absolute;
  bottom: -14px; right: -20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.hp-chef-badge-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--terracotta), var(--terra-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.hp-chef-badge-card strong {
  display: block;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 800;
  color: var(--brown-900);
  line-height: 1.2;
}
.hp-chef-badge-card span {
  font-family: var(--font-ui);
  font-size: .68rem;
  color: var(--brown-300);
  font-weight: 600;
}

/* Floating stat pills */
.hp-chef-float {
  position: absolute;
  background: var(--brown-900);
  color: #fff;
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hp-chef-float svg { flex-shrink: 0; opacity: .75; }
.hp-chef-float strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.hp-chef-float span {
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .6;
}
.hp-chef-float--recipes { bottom: 20px; left: -30px; }
.hp-chef-float--years { top: 20px; right: -30px; }
@media (max-width: 860px) {
  .hp-chef-float--recipes { left: 0; }
  .hp-chef-float--years { right: 0; }
}

/* Text side */
.hp-chef-intro { margin: 12px 0 20px; }
.hp-chef-hi-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 4px;
}
.hp-chef-name {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 900;
  color: var(--brown-900);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hp-chef-bio {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--brown-500);
  margin-bottom: 20px;
}

.hp-chef-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.hp-chef-values li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--brown-700);
  background: rgba(255,255,255,.8);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
}
.hp-chef-value-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(192,86,43,.12), rgba(224,122,82,.08));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.hp-chef-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}

.hp-chef-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hp-chef-social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-700);
  text-decoration: none;
  transition: var(--ease);
}
.hp-chef-social-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   14. TESTIMONIALS (redesigned)
   ========================================================================== */
.hp-testimonials {
  padding: clamp(56px,8vw,96px) 0;
  background: #fff;
}

.hp-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .hp-testi-grid { grid-template-columns: repeat(3,1fr); }
}

.hp-testi-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.hp-testi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terra-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.hp-testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.hp-testi-card:hover::after { transform: scaleX(1); }

.hp-testi-card--featured {
  background: linear-gradient(145deg, var(--terracotta) 0%, var(--terra-dark) 100%);
  border-color: transparent;
  color: #fff;
}
.hp-testi-card--featured::after { background: rgba(255,255,255,.3); }

.hp-testi-quote-icon {
  color: var(--terracotta);
  opacity: .25;
  line-height: 0;
}
.hp-testi-card--featured .hp-testi-quote-icon { color: #fff; opacity: .3; }

.hp-testi-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
}
.hp-testi-card--featured .hp-testi-stars { color: rgba(255,255,255,.9); }

.hp-testi-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .97rem;
  line-height: 1.75;
  color: var(--brown-700);
  flex: 1;
  margin: 0;
  border: none;
  padding: 0;
}
.hp-testi-card--featured .hp-testi-text { color: rgba(255,255,255,.9); }

.hp-testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.hp-testi-card--featured .hp-testi-author { border-top-color: rgba(255,255,255,.2); }

.hp-testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-mid);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brown-300);
}
.hp-testi-card--featured .hp-testi-avatar {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
}

.hp-testi-author strong {
  display: block;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 800;
  color: var(--brown-900);
  line-height: 1.2;
}
.hp-testi-card--featured .hp-testi-author strong { color: #fff; }

.hp-testi-author span {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--brown-300);
}
.hp-testi-card--featured .hp-testi-author span { color: rgba(255,255,255,.6); }

/* ==========================================================================
   15. NEWSLETTER CTA (redesigned)
   ========================================================================== */
.newsletter {
  background: linear-gradient(135deg, var(--brown-900) 0%, #1a0d06 100%);
  padding: clamp(48px,7vw,80px) 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,86,43,.2) 0%, transparent 70%);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 768px) {
  .newsletter-inner { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.newsletter-text { position: relative; }

.newsletter-icon {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--terra-light);
  margin-bottom: 20px;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem,3.5vw,2.2rem);
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.newsletter p {
  font-family: var(--font-ui);
  font-size: .97rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 400px;
}

.newsletter-form-wrap { position: relative; }

/* nl-form: the actual newsletter form */
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nl-form input[type="text"],
.nl-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .95rem;
  outline: none;
  transition: var(--ease);
}
.nl-form input[type="text"]::placeholder,
.nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.nl-form input[type="text"]:focus,
.nl-form input[type="email"]:focus {
  border-color: var(--terra-light);
  background: rgba(255,255,255,.12);
}
.nl-form button[type="submit"],
.nl-form input[type="submit"] {
  width: 100%;
  padding: 16px 28px;
  border-radius: var(--r-md);
  border: none;
  background: linear-gradient(135deg, var(--terracotta), var(--terra-light));
  color: #fff;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
}
.nl-form button[type="submit"]:hover,
.nl-form input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--terra-dark), var(--terracotta));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,86,43,.4);
}
.nl-message {
  font-family: var(--font-ui);
  font-size: .88rem;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.nl-message.success { background: rgba(90,107,58,.25); color: #c8e6a0; border: 1px solid rgba(90,107,58,.4); }
.nl-message.error   { background: rgba(192,86,43,.2);  color: #ffb89a; border: 1px solid rgba(192,86,43,.4); }

/* ==========================================================================
   16. ARCHIVE / SEARCH RESULTS PAGE
   ========================================================================== */
.archive-hero {
  background: linear-gradient(135deg, var(--cream-mid) 0%, var(--cream) 100%);
  padding: clamp(32px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--border);
}

.archive-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.archive-hero p {
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--brown-300);
}

/* ==========================================================================
   17. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination .page-numbers {
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1.5px solid var(--border);
  color: var(--brown-700);
  background: #fff;
  transition: var(--ease);
}

.pagination a:hover {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.pagination .current {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

/* ==========================================================================
   18. RECIPE CARD BOX (single recipe — legacy .rcb classes)
   ========================================================================== */
.rcb {
  background: #fff9f4;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.rcb-head {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terra-dark) 100%);
  padding: 24px 28px;
  color: #fff;
}

.rcb-category-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--pill);
  margin-bottom: 10px;
}

.rcb-head-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.rcb-head-sub {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin-top: 6px;
}

.rcb-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 480px) {
  .rcb-stats { grid-template-columns: repeat(4, 1fr); }
}

.rcb-stat {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rcb-stat:last-child { border-right: none; }

.rcb-stat-icon { font-size: 1.3rem; }

.rcb-stat-val {
  font-family: var(--font-ui);
  font-size: .97rem;
  font-weight: 800;
  color: var(--brown-900);
}

.rcb-stat-lbl {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-300);
}

.rcb-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff3e8;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.rcb-info-item {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--brown-700);
  padding: 4px 14px 4px 0;
}

.rcb-body { padding: 24px 24px 28px; }

.rcb-section-title {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Ingredient items */
.ing-group { margin-bottom: 16px; }

.ing-group-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown-300);
  margin-bottom: 10px;
}

.ing-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--brown-700);
}
.ing-item:last-child { border-bottom: none; }

.ing-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--terracotta);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: transparent;
  transition: var(--ease);
  margin-top: 1px;
}

/* Instruction steps */
.inst-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-txt {
  font-family: var(--font-ui);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--brown-700);
  padding-top: 8px;
}

/* Notes */
.rcb-notes {
  background: #fff8e8;
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-top: 20px;
}

/* Nutrition grid */
.nutri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .nutri-grid { grid-template-columns: repeat(4, 1fr); }
}

.nutri-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
}

.nutri-item strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--terracotta);
}

.nutri-item span {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brown-300);
}

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.rcb-tag {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--cream-mid);
  color: var(--brown-700);
  border: 1.5px solid var(--border);
}

.rcb-tag.alert {
  background: #fff3e0;
  color: #b35200;
  border-color: #ffd08a;
}

/* ==========================================================================
   19. RELATED RECIPES
   ========================================================================== */
.related-section { padding: 32px 0 0; margin: 32px 0 0; border-top: 2px solid var(--border); }

.dr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

/* ==========================================================================
   20. 404 PAGE
   ========================================================================== */
.error-404 {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 20px;
}

.error-404 h1 {
  font-size: clamp(4rem, 15vw, 10rem);
  color: var(--terracotta);
  opacity: .15;
  line-height: 1;
  margin-bottom: 0;
}

.error-404 h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.error-404 p {
  font-family: var(--font-ui);
  color: var(--brown-300);
  max-width: 400px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
#site-footer {
  background: var(--brown-900);
  color: rgba(255,255,255,.75);
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .f-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: var(--font-ui);
  font-size: .82rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--terra-light); }

.social-row { display: flex; flex-wrap: wrap; gap: 8px; }

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--pill);
  border: 1.5px solid;
  transition: var(--ease);
}
.social-pill:hover { opacity: .8; transform: translateY(-1px); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 20px clamp(16px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom a {
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer-bottom a:hover { color: var(--terra-light); }

/* ==========================================================================
   22. FORMS (contact / newsletter admin)
   ========================================================================== */
.dr-form-field { margin-bottom: 20px; }

.dr-form-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brown-700);
  margin-bottom: 6px;
}

.dr-form-field input,
.dr-form-field textarea,
.dr-form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--brown-900);
  outline: none;
  transition: border-color .2s;
}

.dr-form-field input:focus,
.dr-form-field textarea:focus,
.dr-form-field select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192,86,43,.1);
}

.dr-form-field textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   23. ACCESSIBILITY & FOCUS
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--terracotta);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   24. ARCHIVE & CATEGORY PAGES
   ========================================================================== */

/* Archive hero banner */
.arch-hero {
  background: linear-gradient(135deg, #fdfaf6 0%, #f5ece0 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px);
  text-align: center;
}

.arch-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--brown-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.arch-hero > p {
  font-family: var(--font-ui);
  font-size: .97rem;
  color: var(--brown-300);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* Category filter pills */
.arch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.arch-filter-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--pill);
  border: 2px solid var(--border);
  background: #fff;
  color: var(--brown-700);
  cursor: pointer;
  text-decoration: none;
  transition: var(--ease);
  white-space: nowrap;
}

.arch-filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(192,86,43,.06);
}

.arch-filter-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* Archive recipe grid layout */
.all-recipes-layout {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   25. RECIPE CARD COMPONENT (used in archive, homepage, related)
   ========================================================================== */

/* Override: article wraps the card */
article.recipe-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

article.recipe-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

/* Category badge on card thumbnail */
.rc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--terracotta);
  padding: 4px 11px;
  border-radius: var(--pill);
  z-index: 1;
  text-decoration: none;
  transition: background .2s;
}
.rc-badge:hover { background: var(--terra-dark); }

/* Difficulty badge */
.rc-difficulty {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--pill);
  z-index: 1;
  background: rgba(255,255,255,.9);
  color: var(--brown-700);
}

.rc-diff-easy   { background: #dcf5e0; color: #2d7a3a; }
.rc-diff-medium { background: #fff3d6; color: #a06000; }
.rc-diff-hard   { background: #fde8e8; color: #c0392b; }

/* No image placeholder */
.rc-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-mid);
  font-size: 3rem;
  aspect-ratio: 3/2;
}

/* Meta items inside card */
.rc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--brown-300);
}

/* ==========================================================================
   26. SCROLL REVEAL
   ========================================================================== */

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

.will-reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Stagger siblings */
.will-reveal:nth-child(2) { transition-delay: .08s; }
.will-reveal:nth-child(3) { transition-delay: .16s; }
.will-reveal:nth-child(4) { transition-delay: .24s; }
.will-reveal:nth-child(5) { transition-delay: .32s; }
.will-reveal:nth-child(6) { transition-delay: .40s; }

/* ==========================================================================
   27. SIDEBAR ADDITIONS
   ========================================================================== */

/* Trending row (homepage sidebar) */
.trending-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.trending-row:last-child { border-bottom: none; }

.trending-row .trending-thumb {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.trending-row .trending-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.trending-row .trending-info { flex: 1; min-width: 0; }

.trending-row .trending-info a {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--brown-900);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color .2s;
  margin-bottom: 3px;
}
.trending-row .trending-info a:hover { color: var(--terracotta); }

.trending-row .trending-info small {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-300);
}

/* Sidebar category list */
.sidebar-cat-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-cat-list li:last-child { border-bottom: none; }

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--brown-700);
  text-decoration: none;
  transition: color .2s;
}
.sidebar-cat-list a:hover { color: var(--terracotta); }

.sidebar-cat-list em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  color: var(--brown-300);
  background: var(--cream-mid);
  padding: 2px 8px;
  border-radius: var(--pill);
}

/* ==========================================================================
   28. HOMEPAGE EXTRAS
   ========================================================================== */

/* Underline accent below section titles */
.underline-accent {
  width: 52px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 12px 0 36px;
}

/* Chef section badge overlay on photo */
.hp-chef-photo-wrap {
  position: relative;
}

.hp-chef-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 800;
  color: var(--brown-900);
  white-space: nowrap;
}

/* Recipe cards grid — homepage uses same class */
.recipes-with-sidebar {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .recipes-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

/* hp-chef-values list items */
.hp-chef-values li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--brown-700);
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1.5px solid var(--border);
}

/* Testimonial cite */
.hp-testi-card cite {
  display: block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  color: var(--brown-300);
  font-style: normal;
}
.hp-testi-card--featured cite { color: rgba(255,255,255,.6); }

/* Header scrolled state */
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(58,35,25,.12);
}

/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */
@media print {
  #site-header,
  #site-footer,
  .sr-share,
  .pagination,
  .newsletter,
  .sidebar,
  .sr-ad-slot {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   DEMO RECIPE PREVIEW SECTION (homepage)
   ========================================================================== */

.hp-demo-recipe {
  padding: 80px 0 90px;
  background: var(--cream);
}

.hp-section-desc {
  text-align: center;
  color: var(--brown-400);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  margin-top: 8px;
}

/* Shell / frame */
.demo-recipe-shell {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 40px;
}

/* Meta bar */
.demo-recipe-meta-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 28px;
  background: var(--brown-800);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0;
}

.demo-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  padding: 4px 18px 4px 0;
}

.demo-meta-item svg { opacity: .7; flex-shrink: 0; }
.demo-meta-item strong { font-weight: 600; color: #fff; }

.demo-meta-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.18);
  margin: 0 18px 0 0;
  flex-shrink: 0;
}

.demo-meta-stars { gap: 3px; }
.demo-meta-stars svg { fill: var(--terra); stroke: none; opacity: 1; }
.demo-meta-stars span { margin-left: 4px; }

/* Body layout */
.demo-recipe-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: start;
}

/* Column label */
.demo-col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}

.demo-col-label svg { flex-shrink: 0; }

/* Ingredients column */
.demo-ingredients-col {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 80px;
  background: var(--cream-light, #fdf9f5);
}

.demo-ing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.demo-ing-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .25s;
}

.demo-ing-item:last-child { border-bottom: none; }

.demo-ing-item.checked-item { opacity: .45; }
.demo-ing-item.checked-item .demo-ing-text { text-decoration: line-through; }

.demo-ing-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brown-400);
  margin-top: 1px;
  transition: color .2s;
}

.demo-ing-check:hover { color: var(--terra); }
.demo-ing-check .check-icon-done { display: none; color: var(--terra); }

.demo-ing-check.checked { color: var(--terra); }
.demo-ing-check.checked .check-icon-empty { display: none; }
.demo-ing-check.checked .check-icon-done { display: block; }

.demo-ing-text {
  font-size: .92rem;
  color: var(--brown-800);
  line-height: 1.45;
  transition: color .25s;
}

.demo-ing-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .78rem;
  color: var(--brown-400);
  background: rgba(165,98,60,.07);
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.5;
}

.demo-ing-note svg { flex-shrink: 0; margin-top: 1px; color: var(--terra); }

/* Steps column */
.demo-steps-col {
  padding: 32px 36px 36px;
}

/* Individual step */
.demo-step {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}

.demo-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--terra);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .92rem;
  margin-top: 2px;
}

.demo-step-content { flex: 1; min-width: 0; }
.demo-step-content h4 { font-size: 1rem; margin: 0 0 6px; color: var(--brown-800); }
.demo-step-content p { font-size: .93rem; color: var(--brown-600); margin: 0 0 14px; line-height: 1.6; }

.demo-step-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--border);
}

.demo-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.demo-step-img:hover img { transform: scale(1.03); }

/* Chef tip */
.demo-chef-tip {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, rgba(165,98,60,.08) 0%, rgba(165,98,60,.04) 100%);
  border-left: 3px solid var(--terra);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 36px;
}

.demo-chef-tip-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--terra);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-chef-tip strong {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--terra);
  margin-bottom: 4px;
}

.demo-chef-tip p {
  margin: 0;
  font-size: .92rem;
  color: var(--brown-700, #5a3e2b);
  line-height: 1.6;
}

/* FAQ */
.demo-faq { margin-top: 4px; }

.demo-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.demo-faq-item.open {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-color: rgba(165,98,60,.3);
}

.demo-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .93rem;
  font-weight: 600;
  color: var(--brown-800);
  font-family: inherit;
  transition: background .15s;
}

.demo-faq-q:hover { background: rgba(165,98,60,.04); }
.demo-faq-item.open .demo-faq-q { background: rgba(165,98,60,.05); color: var(--terra); }

.demo-faq-chevron {
  flex-shrink: 0;
  transition: transform .25s ease;
}

.demo-faq-item.open .demo-faq-chevron { transform: rotate(180deg); }

.demo-faq-a {
  padding: 0 18px 16px;
}

.demo-faq-a p {
  margin: 0;
  font-size: .9rem;
  color: var(--brown-600);
  line-height: 1.65;
}

/* CTA bar */
.demo-recipe-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
  background: var(--brown-800);
}

.demo-recipe-cta p {
  margin: 0;
  font-size: .93rem;
  color: rgba(255,255,255,.75);
  max-width: 400px;
}

/* Responsive */
@media (max-width: 900px) {
  .demo-recipe-body { grid-template-columns: 1fr; }
  .demo-ingredients-col {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .demo-recipe-cta {
    flex-direction: column;
    text-align: center;
  }
  .demo-recipe-cta p { max-width: 100%; }
  .demo-recipe-meta-bar { padding: 12px 18px; }
  .demo-meta-sep { margin: 0 10px 0 0; }
}

@media (max-width: 600px) {
  .demo-steps-col { padding: 24px 20px 28px; }
  .demo-ingredients-col { padding: 24px 18px; }
  .demo-recipe-shell { border-radius: 14px; }
  .hp-demo-recipe { padding: 50px 0 60px; }
}
