/*
Theme Name: Mamma Mia Cucina
Theme URI: https://mammamiacucina.it
Author: Mamma Mia Cucina
Author URI: https://mammamiacucina.it
Description: Un tema caldo e autentico per un blog di cucina italiana — tonalità terracotta, verde oliva e crema, con un'anima rustica e mediterranea.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mamma-mia-cucina
Tags: food, recipe, blog, italian, cooking, rustic
*/

/* ============================================================
   GOOGLE FONTS
============================================================ */
/* Google Fonts loaded asynchronously via wp_head - see functions.php */

/* ============================================================
   CSS VARIABLES — Italian Palette: Terracotta, Olive, Cream
============================================================ */
:root {
  --white:         #ffffff;
  --off-white:     #faf7f2;
  --blush:         #f5ede0;
  --blush-mid:     #eedecb;
  --blush-deep:    #e0c9a8;
  --rose:          #c4522a;
  --rose-dark:     #a8401c;
  --rose-light:    #e8845a;
  --mauve:         #7a8f4e;
  --mauve-light:   #c8d8a0;
  --text-dark:     #2c1e0f;
  --text-mid:      #5a3e28;
  --text-light:    #8a6a4a;
  --border:        #e8d8c0;
  --border-mid:    #ddc9a8;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Lato', 'Segoe UI', sans-serif;
  --font-script:   'Dancing Script', cursive;

  --radius-sm:     50px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;
  --shadow-sm:     0 2px 12px rgba(100,60,20,0.07);
  --shadow-md:     0 6px 28px rgba(100,60,20,0.11);
  --shadow-lg:     0 16px 52px rgba(100,60,20,0.15);

  --max-width:     1200px;
  --content-width: 780px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--off-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose-dark); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.25;
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 28px;
}

/* ============================================================
   HEADER
============================================================ */
#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(196,82,42,0.06);
}
/* Sticky only when options plugin enables it */
body.header-is-sticky #masthead {
  position: sticky;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.header-actions { display: flex; align-items: center; gap: 4px; }

.site-branding .site-title {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-branding .site-title span { color: var(--mauve); }

.site-branding .site-description {
  font-family: var(--font-body);
  font-size: 0.63rem;
  color: var(--text-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 300;
}

.main-navigation ul { list-style: none; display: flex; gap: 36px; }

.main-navigation ul li a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
}

.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after { width: 100%; }

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { color: var(--rose); }
/* ============================================================
   NAV DROPDOWNS — subcategory support
============================================================ */
.main-navigation ul li { position: relative; }

.main-navigation ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0 8px;
  z-index: 200;
  list-style: none;
  flex-direction: column;
  gap: 0;
}

/* Desktop only: show submenu on hover/focus — on mobile we use JS accordion instead */
@media (min-width: 769px) {
  .main-navigation ul li:hover > ul.sub-menu,
  .main-navigation ul li:focus-within > ul.sub-menu {
    display: flex;
  }
}

.main-navigation ul li ul.sub-menu li { width: 100%; }
.main-navigation ul li ul.sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-size: 0.875rem;
  color: var(--text-mid);
  white-space: nowrap;
  border-bottom: none;
  font-family: var(--font-body);
  font-weight: 400;
}
.main-navigation ul li ul.sub-menu li a::after { display: none; }
.main-navigation ul li ul.sub-menu li a:hover {
  color: var(--rose);
  background: var(--blush);
}


/* Invisible bridge so cursor can travel from parent to dropdown without it closing */
.main-navigation ul li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 199;
}


/* sub-arrow spans: hidden on desktop, shown only inside open mobile menu */
.main-navigation ul li.menu-item-has-children > a .sub-arrow {
  display: none !important;
}
/* On desktop, sub-menu toggle buttons should never show */
@media (min-width: 769px) {
  .main-navigation ul li.menu-item-has-children > a .sub-arrow {
    display: none !important;
  }
}
/* Hide any WP-generated accessibility toggle buttons on desktop nav */
.main-navigation .sub-menu-toggle,
.main-navigation button.dropdown-toggle,
.main-navigation .menu-item-has-children > button {
  display: none !important;
}
/* Mobile: organized accordion-style nav */
@media (max-width: 900px) {
  /* Keep desktop hover dropdown hidden on touch devices */
  .main-navigation ul li ul.sub-menu {
    display: none;
  }
}


.header-search, .search-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-mid); padding: 10px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.header-search:hover, .search-toggle:hover { color: var(--rose); }

.header-actions svg, .header-search svg, .search-toggle svg {
  display: block; width: 18px; height: 18px;
  stroke: currentColor; fill: none; pointer-events: none;
}

.menu-toggle, .nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.menu-toggle span, .nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--rose); transition: all 0.3s; border-radius: 2px;
}

/* ============================================================
   HERO BANNER
============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--blush) 0%, var(--off-white) 60%, var(--blush-mid) 100%);
  padding: 96px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(196,82,42,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(240,184,184,0.12) 0%, transparent 55%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

.hero-banner .hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mauve); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}

.hero-banner .hero-eyebrow::before,
.hero-banner .hero-eyebrow::after { content: '—'; color: var(--blush-deep); }

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-banner h1 em { color: var(--rose); font-style: italic; }

.hero-banner p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.8; font-weight: 300;
}

.btn-primary {
  display: inline-block;
  background: var(--rose); color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 36px; border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(196,82,42,0.3);
}
.btn-primary:hover {
  background: var(--rose-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,82,42,0.38);
}

/* ============================================================
   CATEGORY PILLS
============================================================ */
.category-pills {
  display: flex; gap: 10px; flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 32px 28px;
  max-width: var(--max-width); margin: 0 auto;
}

.category-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border-mid);
  border-radius: 50px; padding: 9px 22px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  color: var(--text-mid); transition: all 0.22s;
  letter-spacing: 0.05em; box-shadow: var(--shadow-sm);
}

.category-pill:hover {
  background: var(--rose); border-color: var(--rose);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.category-pill .pill-icon { font-size: 0.95rem; }
.category-pills::-webkit-scrollbar { display: none; }

/* ============================================================
   SECTION HEADINGS
============================================================ */
.section-heading {
  display: flex; align-items: center; gap: 18px; margin-bottom: 36px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--text-dark); white-space: nowrap;
}

.section-heading .heading-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-mid), transparent);
}

.section-heading .heading-link {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  color: var(--rose); letter-spacing: 0.07em;
  text-transform: uppercase; white-space: nowrap;
}

/* ============================================================
   FEATURED RECIPE CARD
============================================================ */
.featured-post {
  padding: 52px 28px;
  background: var(--off-white);
  max-width: var(--max-width); margin: 0 auto;
}

.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.featured-card .card-image {
  position: relative; overflow: hidden; min-height: 440px;
}

.featured-card .card-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s ease;
}

.featured-card:hover .card-image img { transform: scale(1.04); }

.featured-card .card-body {
  background: var(--white); padding: 52px 44px;
  display: flex; flex-direction: column; justify-content: center;
}

.featured-card .card-tag {
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.featured-card .card-tag::before {
  content: ''; width: 24px; height: 2px;
  background: var(--rose); display: inline-block; border-radius: 2px;
}

.featured-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 18px;
}

.featured-card .card-meta { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }

.meta-item {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 0.78rem;
  color: var(--text-light); font-weight: 400;
}

.featured-card .card-excerpt {
  font-size: 0.9375rem; color: var(--text-mid);
  margin-bottom: 30px; line-height: 1.8; font-weight: 300;
}

/* ============================================================
   RECIPE CARD GRID
============================================================ */
.recipe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

.recipe-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.recipe-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md);
  border-color: var(--blush-deep);
}

.recipe-card .card-thumb {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
}

.recipe-card .card-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}

.recipe-card:hover .card-thumb img { transform: scale(1.06); }

.recipe-card .card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--rose); color: #fff;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
}

.recipe-card .card-body { padding: 22px 24px 24px; }

.recipe-card .card-category {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 8px;
}

.recipe-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--text-dark); line-height: 1.3; margin-bottom: 12px;
}

.recipe-card h3 a { color: inherit; }
.recipe-card h3 a:hover { color: var(--rose); }

.recipe-card .card-footer {
  display: flex; gap: 14px; padding-top: 12px;
  border-top: 1px solid var(--border); margin-top: 12px;
}

.recipe-card .card-footer .meta-item { font-size: 0.73rem; }

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { position: sticky; top: 96px; }

.widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--blush-mid);
}

/* ============================================================
   AUTHOR / ABOUT EMMA WIDGET
============================================================ */
.widget-about-emma {
  background: linear-gradient(145deg, var(--white) 0%, var(--blush) 100%);
  border: 1px solid var(--border-mid); border-radius: var(--radius-md);
  padding: 32px 28px; margin-bottom: 24px; text-align: center;
  box-shadow: var(--shadow-sm);
}

.emma-photo-wrap {
  display: flex; justify-content: center; margin-bottom: 16px;
}

.emma-photo {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(196,82,42,0.18);
}

.emma-photo-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush-mid), var(--rose-light));
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(196,82,42,0.18);
}

.emma-name {
  font-family: var(--font-script); font-size: 1.5rem; font-weight: 700;
  color: var(--rose); margin-bottom: 10px; line-height: 1.2;
}

.emma-bio {
  font-family: var(--font-body); font-size: 0.875rem;
  color: var(--text-mid); line-height: 1.75; font-weight: 300; margin: 0;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--blush) 0%, var(--white) 100%);
  border: 1px solid var(--border-mid); text-align: center;
}

.newsletter-widget .nl-icon { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-widget p {
  font-size: 0.875rem; color: var(--text-mid);
  margin-bottom: 18px; line-height: 1.6; font-weight: 300;
}

.newsletter-widget input[type="email"] {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border-mid); border-radius: 50px;
  font-family: var(--font-body); font-size: 0.875rem;
  background: var(--white); margin-bottom: 10px; color: var(--text-dark);
  outline: none; transition: border-color 0.2s;
}
.newsletter-widget input[type="email"]:focus { border-color: var(--rose); }

.newsletter-widget button {
  width: 100%; padding: 11px; background: var(--rose); color: #fff;
  border: none; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}
.newsletter-widget button:hover {
  background: var(--rose-dark); box-shadow: 0 4px 16px rgba(196,82,42,0.28);
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }

.popular-post-item .pp-thumb {
  width: 68px; height: 68px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0;
}
.popular-post-item .pp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.popular-post-item .pp-info .pp-title {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--text-dark); line-height: 1.35; margin-bottom: 4px;
}
.popular-post-item .pp-info .pp-title a { color: inherit; }
.popular-post-item .pp-info .pp-title a:hover { color: var(--rose); }
.popular-post-item .pp-info .pp-meta { font-family: var(--font-body); font-size: 0.7rem; color: var(--text-light); }

/* ============================================================
   SINGLE RECIPE POST
============================================================ */
.single-recipe .recipe-header {
  max-width: var(--content-width); margin: 0 auto; padding: 52px 28px 0; text-align: center;
}

.single-recipe .recipe-header .breadcrumb {
  font-family: var(--font-body); font-size: 0.78rem; color: var(--text-light); margin-bottom: 18px;
}
.single-recipe .recipe-header .breadcrumb a { color: var(--rose); }

.single-recipe .recipe-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 700;
  color: var(--text-dark); line-height: 1.12; margin-bottom: 22px;
}

.single-recipe .recipe-header h1 em { color: var(--rose); font-style: italic; }

.single-recipe .recipe-meta-bar {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 36px;
}

.single-recipe .recipe-hero-img { max-width: 780px; margin: 0 auto 52px; padding: 0 28px; }

.single-recipe .recipe-hero-img img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

.recipe-info-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blush); border: 1px solid var(--border-mid);
  border-radius: var(--radius-md); overflow: hidden;
  max-width: var(--content-width); margin: 0 auto 52px;
}

.recipe-info-card .info-block {
  padding: 22px 16px; text-align: center; border-right: 1px solid var(--border-mid);
}
.recipe-info-card .info-block:last-child { border-right: none; }

.recipe-info-card .info-icon { font-size: 1.4rem; margin-bottom: 6px; }
.recipe-info-card .info-label {
  font-family: var(--font-body); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 5px;
}
.recipe-info-card .info-value {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-dark);
}

.recipe-body { max-width: var(--content-width); margin: 0 auto; padding: 0 28px 68px; }

.recipe-body h2 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--text-dark);
  margin: 44px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--blush-mid);
}

.recipe-body p { color: var(--text-mid); margin-bottom: 20px; font-size: 1rem; line-height: 1.9; font-weight: 300; }

.recipe-body ul, .recipe-body ol { padding-left: 0; list-style: none; margin-bottom: 24px; }

.recipe-body ul li, .recipe-body ol li {
  position: relative; padding: 11px 0 11px 36px;
  border-bottom: 1px solid var(--border); color: var(--text-mid);
  font-size: 1rem; line-height: 1.75;
}

.recipe-body ul li::before {
  content: '♥'; position: absolute; left: 0;
  color: var(--rose); font-size: 0.7rem; top: 13px;
}

.recipe-body ol { counter-reset: steps; }
.recipe-body ol li { counter-increment: steps; }
.recipe-body ol li::before {
  content: counter(steps); position: absolute; left: 0;
  width: 24px; height: 24px; background: var(--rose); color: #fff;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; top: 11px;
}

.tip-box {
  background: var(--blush); border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 20px 26px; margin: 28px 0;
}
.tip-box .tip-label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px;
}
.tip-box p { margin: 0; font-size: 0.9375rem; color: var(--text-mid); }

.print-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blush-mid); color: var(--rose-dark);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  padding: 10px 26px; border-radius: 50px; border: 1.5px solid var(--border-mid);
  cursor: pointer; transition: all 0.2s; margin-bottom: 32px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.print-btn:hover { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  display: flex; justify-content: center; gap: 8px; padding: 44px 28px;
}

.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 16px;
  border: 1.5px solid var(--border-mid); border-radius: 50px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  color: var(--text-mid); transition: all 0.2s;
}

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

/* ============================================================
   FOOTER
============================================================ */
#colophon {
  background: var(--text-dark); color: var(--blush-mid); padding: 68px 28px 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; max-width: var(--max-width); margin: 0 auto 52px;
}

.footer-brand .brand-name {
  font-family: var(--font-script); font-size: 1.7rem; font-weight: 700;
  color: var(--rose-light); margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.875rem; line-height: 1.8; color: var(--blush-mid);
  max-width: 260px; font-weight: 300; opacity: 0.8;
}

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-light); margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--blush-mid); opacity: 0.7; transition: opacity 0.2s, color 0.2s; font-weight: 300; }
.footer-col ul li a:hover { opacity: 1; color: var(--rose-light); }

.footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(240,184,184,0.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}

.footer-bottom p { font-family: var(--font-body); font-size: 0.8rem; color: var(--blush-mid); opacity: 0.55; }

.footer-col nav { display: block; }
.footer-col .footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-col .footer-nav-list li { margin-bottom: 10px; }
.footer-col .footer-nav-list li a { color: var(--blush-mid); text-decoration: none; font-family: var(--font-body); font-size: 0.875rem; transition: color .2s; opacity: 0.7; font-weight: 300; }
.footer-col .footer-nav-list li a:hover { opacity: 1; color: var(--rose-light); }

.footer-bottom nav { display: inline; }
.footer-bottom .footer-bottom-nav { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.footer-bottom .footer-bottom-nav li { display: inline; list-style: none; }
.footer-bottom .footer-bottom-nav li::marker { display: none; content: ''; }
.footer-bottom a, .footer-bottom .footer-bottom-nav li a { color: var(--blush-mid); margin-left: 20px; text-decoration: none; transition: color .2s; font-family: var(--font-body); font-size: 0.8rem; opacity: 0.6; }
.footer-bottom a:hover, .footer-bottom .footer-bottom-nav li a:hover { opacity: 1; color: var(--rose-light); }

/* ============================================================
   SEARCH OVERLAY
============================================================ */
.search-overlay {
  position: fixed; inset: 0; background: rgba(45,27,34,0.92); z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.search-overlay.active { opacity: 1; pointer-events: all; }

.search-overlay form { display: flex; align-items: center; gap: 0; width: 100%; max-width: 560px; padding: 0 24px; }

.search-overlay input[type="search"] {
  flex: 1; padding: 16px 22px;
  font-family: var(--font-display); font-size: 1.25rem;
  border: none; border-radius: 50px 0 0 50px;
  background: var(--white); color: var(--text-dark); outline: none;
}

.search-overlay button[type="submit"] {
  padding: 16px 26px; background: var(--rose); color: #fff;
  border: none; border-radius: 0 50px 50px 0; font-size: 1.1rem; cursor: pointer;
}

.search-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--blush-mid); font-size: 2rem; cursor: pointer; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-image { min-height: 300px; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  body.archive .sidebar, body.search .sidebar, body.category .sidebar, body.tag .sidebar { display: none; }
  body.archive .content-wrap, body.search .content-wrap, body.category .content-wrap, body.tag .content-wrap { display: block; }
  body.archive .recipe-grid, body.search .recipe-grid, body.category .recipe-grid, body.tag .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.is-open {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e8d8c0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 150;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  /* Top-level list */
  .main-navigation.is-open > ul {
    flex-direction: column;
    margin: 0; padding: 0;
    gap: 0;
  }
  /* Every top-level <li> */
  .main-navigation.is-open > ul > li {
    border-bottom: 1px solid #f0e8d8;
    position: relative;
    width: 100%;
  }
  /* Top-level link */
  .main-navigation.is-open > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c1e0f;
    border: none;
  }
  .main-navigation.is-open > ul > li > a::after { display: none !important; }
  .main-navigation.is-open > ul > li > a:hover { color: #c4522a; background: #f5ede0; }
  .main-navigation.is-open > ul > li.current-menu-item > a { color: #c4522a; }
  /* Chevron arrow span - only on mobile, injected by JS */
  .main-navigation.is-open ul li.menu-item-has-children > a .sub-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    color: #c4522a;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    font-style: normal;
  }
  .main-navigation.is-open ul li.menu-item-has-children.submenu-open > a .sub-arrow {
    transform: rotate(180deg);
  }
  /* Subcategory list - hidden until .submenu-open */
  .main-navigation.is-open ul li ul.sub-menu {
    display: none;
    flex-direction: column;
    background: #faf7f2;
    border-top: 1px solid #f0e8d8;
    padding: 0;
    margin: 0;
    /* Override desktop absolute positioning — must flow inline as accordion */
    position: static;
    top: auto;
    left: auto;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid #f0e8d8;
    min-width: 0;
    width: 100%;
  }
  .main-navigation.is-open ul li.submenu-open > ul.sub-menu {
    display: flex;
  }
  .main-navigation.is-open ul li ul.sub-menu li {
    border-bottom: 1px solid #f0e8d8;
    width: 100%;
  }
  .main-navigation.is-open ul li ul.sub-menu li:last-child { border-bottom: none; }
  .main-navigation.is-open ul li ul.sub-menu li a {
    display: block;
    padding: 11px 20px 11px 36px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a5060;
    border: none;
  }
  .main-navigation.is-open ul li ul.sub-menu li a::before {
    content: '›';
    margin-right: 8px;
    color: #c4522a;
    font-size: 1rem;
    line-height: 0;
    vertical-align: -1px;
  }
  .main-navigation.is-open ul li ul.sub-menu li a::after { display: none !important; }
  .main-navigation.is-open ul li ul.sub-menu li a:hover { color: #c4522a; background: #f5ede0; }
  .menu-toggle, .nav-toggle { display: flex; }
  .recipe-grid { grid-template-columns: 1fr; }
  body.archive .recipe-grid, body.search .recipe-grid, body.category .recipe-grid, body.tag .recipe-grid { grid-template-columns: 1fr; }
  .recipe-info-card { grid-template-columns: repeat(2, 1fr); }
  .recipe-info-card .info-block:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-wrap { padding: 36px 18px; }
  .hero-banner { padding: 60px 22px; }
}

@media (max-width: 480px) {
  .recipe-info-card { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile category pills - clean, compact, scrollable */
@media (max-width: 768px) {
  .category-pills {
    justify-content: flex-start;
    padding: 14px 16px;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .category-pill {
    padding: 7px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 0;
    box-shadow: none;
  }
  /* Hide emoji icons on mobile - they render as bullets on some devices */
  .category-pill .pill-icon { display: none; }
}

@media print {
  #masthead, #colophon, .sidebar, .print-btn, .category-pills { display: none; }
  .recipe-body { max-width: 100%; }
  body { background: white; color: black; }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-banner h1, .hero-banner p, .hero-banner .btn-primary { animation: fadeUp 0.75s ease both; }
.hero-banner p    { animation-delay: 0.12s; }
.hero-banner .btn-primary { animation-delay: 0.22s; }

.recipe-card { animation: fadeUp 0.5s ease both; }
.recipe-card:nth-child(2) { animation-delay: 0.08s; }
.recipe-card:nth-child(3) { animation-delay: 0.16s; }
.recipe-card:nth-child(4) { animation-delay: 0.24s; }
.recipe-card:nth-child(5) { animation-delay: 0.32s; }
.recipe-card:nth-child(6) { animation-delay: 0.40s; }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rose); color: #fff; border: none;
  cursor: pointer; box-shadow: 0 4px 18px rgba(196,82,42,0.4);
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s;
  z-index: 50; display: flex; align-items: center; justify-content: center;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }

/* Screen reader only — visually hidden */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hero image Pinterest wrap — display:block so it fills full width */
.bbe-pin-hero-wrap {
    display: block !important;
    width: 100%;
    line-height: 0;
}
.bbe-pin-hero-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}
