/*
Theme Name: Leckero
Theme URI: https://leckero.com
Author: Leckero
Author URI: https://leckero.com
Description: A warm, rustic recipe blog theme for Leckero — handcrafted feel with earthy tones and a beautiful editorial layout.
Version: 4.51
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leckero
Tags: food, recipe, blog, rustic, warm
*/

/* ============================================================
   GOOGLE FONTS
============================================================ */
/* Google Fonts loaded asynchronously via functions.php — no @import needed */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --cream:       #fdf6ec;
  --warm-white:  #fffdf9;
  --parchment:   #f5ead8;
  --terracotta:  #b85530;
  --terracotta-dark: #8f3f20;
  --sage:        #4d6840;
  --sage-light:  #a8b89a;
  --brown:       #4a3728;
  --brown-light: #7a5c45;
  --tan:         #d4b896;
  --tan-light:   #e8d5bc;
  --text-dark:   #2e1f14;
  --text-mid:    #5a3e2b;
  --text-light:  #6b4f3a;
  --border:      #e2d0b8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(74,55,40,0.08);
  --shadow-md:   0 6px 24px rgba(74,55,40,0.12);
  --shadow-lg:   0 16px 48px rgba(74,55,40,0.16);

  --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(--warm-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.85;
}

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

/* ============================================================
   TEXTURE OVERLAY
============================================================ */
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='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

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

/* Sidebar — hidden when Leckero Options → Layout → Sidebar is 'none' */
body.no-sidebar .sidebar { display: none !important; }
body.no-sidebar .content-wrap { grid-template-columns: 1fr !important; }

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

/* ============================================================
   HEADER
============================================================ */
#masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
/* Sticky header — toggled via Leckero Options → Header → Sticky Header */
body.header-is-sticky #masthead {
  position: sticky;
}

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

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

.site-branding .site-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1;
}

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

.site-branding .site-description {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--brown-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* NAV */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-navigation ul li a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.header-search,
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  font-size: 1.1rem;
  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(--terracotta); }

/* Ensure SVG icon inherits color and is never invisible */
.header-actions svg,
.header-search svg,
.search-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
}

/* MOBILE MENU TOGGLE */
.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: 24px;
  height: 2px;
  background: var(--brown);
  transition: all 0.3s;
}

/* ============================================================
   HERO BANNER (homepage)
============================================================ */
.hero-banner {
  background: var(--parchment);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(193,96,58,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(122,140,110,0.08) 0%, transparent 60%);
}

.hero-banner .hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 20px;
}

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

.hero-banner p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(193,96,58,0.3);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,96,58,0.35);
}

/* ============================================================
   CATEGORY PILLS (homepage)
============================================================ */
.category-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.2s;
}

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

.category-pill .pill-icon { font-size: 1rem; }

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

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
}

.section-heading .heading-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-heading .heading-link {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.05em;
}

/* ============================================================
   FEATURED RECIPE CARD (large)
============================================================ */
.featured-post {
  padding: 48px 24px;
  background: var(--warm-white);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

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

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

.featured-card .card-body {
  background: var(--parchment);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card .card-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

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

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

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

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

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

.recipe-card {
  background: var(--warm-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(-4px);
  box-shadow: var(--shadow-md);
}

.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(--terracotta-dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

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

.recipe-card .card-category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}

.recipe-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 10px;
}

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

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

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

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

.widget {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tan-light);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--parchment);
  text-align: center;
}

.newsletter-widget .nl-icon { font-size: 2rem; margin-bottom: 8px; }
.newsletter-widget p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  background: var(--warm-white);
  margin-bottom: 10px;
  color: var(--text-dark);
}

.newsletter-widget input[type="email"]:focus {
  outline: none;
  border-color: var(--terracotta);
}

.newsletter-widget button {
  width: 100%;
  padding: 10px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-widget button:hover { background: var(--terracotta-dark); }

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 12px;
  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: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  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.875rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 4px;
}
.popular-post-item .pp-info .pp-title a { color: inherit; }
.popular-post-item .pp-info .pp-title a:hover { color: var(--terracotta); }
.popular-post-item .pp-info .pp-meta { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-light); }

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

.single-recipe .recipe-header .breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.single-recipe .recipe-header .breadcrumb a { color: var(--terracotta); }

.single-recipe .recipe-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 20px;
}

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

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

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

.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 */
.recipe-info-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: var(--content-width);
  margin: 0 auto 48px;
}

.recipe-info-card .info-block {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.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-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}
.recipe-info-card .info-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
}

/* Recipe Body */
.recipe-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.recipe-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tan-light);
}

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

.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 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.recipe-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.6rem;
  top: 14px;
}

.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: 22px;
  height: 22px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 12px;
}

/* Tip Box */
.tip-box {
  background: var(--parchment);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.tip-box .tip-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.tip-box p { margin: 0; font-size: 0.9375rem; }

/* ============================================================
   PRINT RECIPE BUTTON
============================================================ */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 32px;
}
.print-btn:hover { background: var(--sage); opacity: 0.85; color: #fff; }

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

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.2s;
}

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

/* ============================================================
   FOOTER
============================================================ */
#colophon {
  background: var(--brown);
  color: var(--tan-light);
  padding: 64px 24px 32px;
}

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

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tan);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--tan-light);
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 16px;
}

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

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

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--tan-light);
  opacity: 0.6;
}

/* wp_nav_menu outputs a <nav> wrapping the <ul> — flatten it */
.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(--tan-light); text-decoration: none; font-family: var(--font-ui); font-size: 0.9rem; transition: color .2s; }
.footer-col .footer-nav-list li a:hover { opacity: 1; color: var(--tan); }

/* Footer bottom bar nav */
.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(--tan-light); margin-left: 16px; text-decoration: none; transition: color .2s; font-family: var(--font-ui); font-size: 0.8125rem; }
.footer-bottom a:hover,
.footer-bottom .footer-bottom-nav li a:hover { opacity: 1; color: var(--tan); }

/* ============================================================
   SEARCH OVERLAY
============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,31,20,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;
  gap: 0;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

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

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

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--tan);
  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: 280px; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  /* On archive/category/search: hide sidebar, use full width */
  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: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
  }
  .main-navigation.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .main-navigation.is-open ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .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: 32px 16px; }
  .hero-banner { padding: 52px 24px; }
}

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

/* ============================================================
   PRINT STYLES
============================================================ */
@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(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-banner h1,
.hero-banner p,
.hero-banner .btn-primary {
  animation: fadeUp 0.7s ease both;
}
.hero-banner p    { animation-delay: 0.1s; }
.hero-banner .btn-primary { animation-delay: 0.2s; }

.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 BUTTON
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(193,96,58,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);
}

/* ============================================================
   RECIPE ACTION BUTTONS (Print / Jump)
   Controlled by Leckero Options → Recipe Settings
============================================================ */
.leckero-recipe-actions {
  display: flex;
  gap: 10px;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}
.leckero-recipe-actions .btn-recipe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
  text-decoration: none;
  transition: .2s;
}
.leckero-recipe-actions .btn-recipe:hover {
  background: var(--terracotta);
  color: #fff;
}
@media print { .leckero-recipe-actions { display: none; } }

/* ── PINTEREST PIN BUTTON ────────────────────────────────────────────────── */
.leckero-pin-wrap {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.leckero-pin-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.leckero-pin-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e60023;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 20px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Desktop hover: show button */
@media (min-width: 769px) {
    .leckero-pin-wrap:hover .leckero-pin-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero wrap fills full width */
.leckero-pin-hero-wrap {
    display: block;
    width: 100%;
}

/* Mobile/touch: always visible */
@media (max-width: 768px) {
    .leckero-pin-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
