/*
Theme Name: Reseptit Ruoka Theme
Theme URI: #
Author: Yossef
Author URI: #
Description: theme for food recipes.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reseptit-ruoka-theme
*/

:root {
  --ink:        #0F0F0F;
  --parchment:  #F6F1E9;
  --surface:    #FFFFFF;
  --forest:     #1E5C3A;
  --forest-lt:  #2D7A52;
  --ember:      #E8541A;
  --ember-lt:   #FF6B35;
  --muted:      #6B6560;
  --divider:    #E5DED4;
  --pine-dark:  #0D3322;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-logo: 'Anton', 'Arial Narrow', 'Helvetica Neue', sans-serif;

  --r-sm:  0.75rem;
  --r-md:  1.25rem;
  --r-lg:  2rem;
  --r-xl:  3rem;

  --shadow-card: 0 2px 12px rgba(15,15,15,0.08), 0 1px 3px rgba(15,15,15,0.06);
  --shadow-lift: 0 8px 32px rgba(15,15,15,0.14), 0 2px 8px rgba(15,15,15,0.08);
}

/* ─── Base Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ─── Typography Scale ──────────────────────────────────────────────── */
.t-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ember);
}
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.t-body { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.t-small { font-size: 0.825rem; color: var(--muted); }
.t-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Layout Utilities ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.container--narrow { max-width: 860px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ─── Icon System ───────────────────────────────────────────────────── */
.nk-icon {
  display: block;
  flex-shrink: 0;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.75rem;
}
.icon-tile .nk-icon {
  width: 55% !important;
  height: 55% !important;
}
.icon-tile--xs { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; }
.icon-tile--sm { width: 2rem; height: 2rem; }
.icon-tile--md { width: 2.75rem; height: 2.75rem; }
.icon-tile--lg { width: 3rem; height: 3rem; border-radius: 1rem; }
.icon-tile--forest { background: rgba(30, 92, 58, 0.1); color: var(--forest); }
.icon-tile--ember  { background: rgba(232, 84, 26, 0.1);  color: var(--ember); }
.icon-tile--amber  { background: rgba(180, 120, 40, 0.12); color: #9A6018; }
.icon-tile--teal   { background: rgba(30, 100, 110, 0.1);  color: #1A6875; }
.icon-tile--green  { background: rgba(45, 122, 82, 0.12);  color: var(--forest-lt); }
.icon-tile--glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #fff;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.875rem; font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30,92,58,0.3);
}
.btn--primary:hover { background: var(--forest-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,92,58,0.35); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--divider);
}
.btn--ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn--ember {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,84,26,0.3);
}
.btn--ember:hover { background: var(--ember-lt); transform: translateY(-1px); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ─── Cards ─────────────────────────────────────────────────────────── */
.recipe-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex; flex-direction: column;
}
.recipe-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.recipe-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--divider);
}
.recipe-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(.4,0,.2,1); }
.recipe-card:hover .recipe-card__thumb img { transform: scale(1.06); }

.recipe-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--divider);
  color: rgba(107, 101, 96, 0.35);
}
.recipe-card__placeholder-icon {
  width: 3rem !important;
  height: 3rem !important;
}

.recipe-card__badge {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
.recipe-card__time {
  position: absolute; bottom: 0.85rem; right: 0.85rem;
  background: var(--forest);
  color: #fff;
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.3rem;
}
.recipe-card__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s;
}
.recipe-card:hover .recipe-card__title { color: var(--forest); }
.recipe-card__excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-card__footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; }
.recipe-card__cost { font-family: var(--font-display); font-weight: 700; color: var(--ember); font-size: 1rem; }

/* ─── Pill / Tag ────────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--parchment);
  color: var(--muted);
  border: 1px solid var(--divider);
}
.pill--forest { background: rgba(30,92,58,0.1); color: var(--forest); border-color: transparent; }
.pill--ember  { background: rgba(232,84,26,0.1); color: var(--ember);  border-color: transparent; }

/* ─── Section Divider (torn paper effect) ───────────────────────────── */
.divider-wave {
  width: 100%; overflow: hidden; line-height: 0;
  background: var(--pine-dark);
}
.divider-wave svg { display: block; width: 100%; }

/* ─── Header / Nav ──────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246,241,233,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(15,15,15,0.08); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.brand-logo {
  font-family: var(--font-logo);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.brand-logo__prefix { color: var(--forest); }
.brand-logo__name   { color: var(--ember); }
.site-logo__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.5rem 0.9rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover { color: var(--ink); background: var(--divider); }
.primary-nav a.current { color: var(--forest); font-weight: 700; }

/* WordPress nav menu reset */
.primary-nav ul { list-style: none; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.primary-nav li { position: relative; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-btn {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.search-btn:hover { background: var(--divider); color: var(--ink); }
.search-btn svg { width: 1.1rem; height: 1.1rem; }

/* Mobile menu toggle */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--divider); }
.hamburger span {
  display: block; width: 1.2rem; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 4.5rem 0 0 0; z-index: 99;
  background: var(--parchment); border-top: 1px solid var(--divider);
  padding: 2rem;
  flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.25rem; font-weight: 700; color: var(--ink); padding: 0.75rem 0; border-bottom: 1px solid var(--divider); }
.mobile-menu a:last-child { border-bottom: none; }

/* ─── Hero Section ──────────────────────────────────────────────────── */
.hero { background: var(--pine-dark); color: #fff; position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 3rem; align-items: center; padding-block: clamp(4rem, 10vw, 7rem); }
@media (min-width: 768px) { .hero__grid { grid-template-columns: 1fr 1fr; } }

.hero__eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.hero__eyebrow-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ember); }
.hero__eyebrow-text {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero__title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.55); }
.hero__subtitle { font-size: 1.0625rem; line-height: 1.75; color: rgba(255,255,255,0.65); margin-bottom: 2rem; max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero__image-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
@media (min-width: 768px) { .hero__image-wrap { aspect-ratio: 3/4; } }
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,51,34,0.7) 0%, transparent 60%); }
.hero__image-card {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  color: #fff;
}
.hero__image-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.hero__image-card-meta { font-size: 0.75rem; color: rgba(255,255,255,0.65); display: flex; gap: 0.75rem; }

/* ─── Wave divider ──────────────────────────────────────────────────── */
.wave-top { background: var(--parchment); }
.wave-top svg { display: block; width: 100%; }

/* ─── Category Strip (legacy) ────────────────────────────────────────── */
.categories-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3/2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cat-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cat-card__overlay { position: absolute; inset: 0; }
.cat-card__content { position: relative; z-index: 2; color: #fff; }
.cat-card__icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.cat-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.cat-card__cta { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.35rem; }
.cat-card__arrow { transition: transform 0.2s; }
.cat-card:hover .cat-card__arrow { transform: translateX(4px); }

/* ─── Recipe Grid ────────────────────────────────────────────────────── */
.recipes-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Asymmetric Magazine layout specifically for front-page latest recipes grid */
@media (min-width: 768px) and (max-width: 1023px) {
  #uusimmat-reseptit .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  #uusimmat-reseptit .recipes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child .recipe-card__thumb {
    flex: 1.25;
    aspect-ratio: auto;
    height: 100%;
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child .recipe-card__body {
    flex: 1;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child .recipe-card__title {
    font-size: 1.5rem;
  }
  #uusimmat-reseptit .recipes-grid .recipe-card:first-child .recipe-card__excerpt {
    -webkit-line-clamp: 4;
  }
}

/* ─── Section Header ─────────────────────────────────────────────────── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-header__text {}
.section-header__eyebrow { margin-bottom: 0.5rem; }
.section-header__link { font-size: 0.875rem; font-weight: 700; color: var(--forest); white-space: nowrap; display: flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.section-header__link:hover { gap: 0.6rem; }

/* ─── Feature Strip ──────────────────────────────────────────────────── */
.feature-strip { background: var(--forest); color: #fff; padding-block: 1.25rem; }
.feature-strip__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 600; }
.feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}
.feature-item__icon .nk-icon { width: 0.95rem; height: 0.95rem; }
.feature-sep { width: 1px; height: 1.2rem; background: rgba(255,255,255,0.25); }
@media (max-width: 520px) { .feature-sep { display: none; } }

/* ─── Search Page ────────────────────────────────────────────────────── */
.search-hero { background: var(--ink); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color 0.2s;
  max-width: 640px; margin-inline: auto;
}
.search-bar:focus-within { border-color: var(--ember); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  padding: 0.9rem 1.25rem;
  font-size: 1rem; color: #fff;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.search-bar button {
  margin: 0.35rem; padding: 0.65rem 1.5rem;
  background: var(--ember); color: #fff;
  border-radius: 100px; font-weight: 700; font-size: 0.875rem;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--ember-lt); }
.search-bar__icon { color: rgba(255,255,255,0.4); padding-left: 1.25rem; flex-shrink: 0; }

/* ─── Single Recipe ──────────────────────────────────────────────────── */
.recipe-header__inner { text-align: center; }
.recipe-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.recipe-category-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.recipe-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.recipe-category-pill .nk-icon {
  color: var(--forest);
  opacity: 0.85;
}
.recipe-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.recipe-byline__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.recipe-byline__item .nk-icon { opacity: 0.75; }
.recipe-byline__sep { opacity: 0.45; }
.recipe-header { background: var(--pine-dark); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.recipe-meta-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; justify-content: center; margin-top: 2rem; }
.recipe-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  min-width: 5.5rem;
}
.recipe-meta-item .icon-tile--sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}
.recipe-meta-item__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.recipe-meta-item__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.recipe-meta-item__unit { font-size: 0.9rem; font-family: var(--font-body); font-weight: 400; color: rgba(255,255,255,0.5); }
.recipe-meta-item__value.ember { color: var(--ember-lt); }
.recipe-meta-sep { width: 1px; height: 2.5rem; background: rgba(255,255,255,0.15); align-self: center; }
@media (max-width: 520px) { .recipe-meta-sep { display: none; } }
.recipe-sidebar__newsletter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.recipe-sidebar__newsletter-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.share-btn .nk-icon,
.share-btn .nk-icon--brand {
  flex-shrink: 0;
  opacity: 0.9;
}

.recipe-hero-img { margin-inline: auto; max-width: 960px; margin-top: -3rem; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 16/9; }
.recipe-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.recipe-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.recipe-layout { display: grid; gap: 3rem; }
@media (min-width: 900px) { .recipe-layout { grid-template-columns: 1fr 320px; } }

.recipe-content { font-size: 1.0625rem; line-height: 1.8; color: #374151; }
.recipe-content h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; }
.recipe-content h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 2rem; margin-bottom: 0.75rem; }
.recipe-content p { margin-bottom: 1.25rem; }
.recipe-content ul, .recipe-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.recipe-content li { margin-bottom: 0.5rem; }
.recipe-content a { color: var(--forest); text-decoration: underline; }

/* ─── Recipe Intro ────────────────────────────────────────────────────── */
.recipe-content .recipe-intro {
  border-left: 3px solid var(--ember);
  padding-left: 1.5rem;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ─── Recipe Ingredients Card ─────────────────────────────────────────── */
.recipe-content .recipe-ingredients-card {
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 2.5rem 0;
}
.recipe-content .recipe-ingredients-card__header {
  background: var(--pine-dark);
  color: white;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.recipe-content .recipe-ingredients-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: white;
}
.recipe-content .recipe-ingredients-card__header svg {
  opacity: 0.7;
}
.recipe-content .recipe-ingredients-card__body {
  padding: 1.75rem;
}
.recipe-content .recipe-ingredients-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 600px) {
  .recipe-content .recipe-ingredients-card__grid {
    grid-template-columns: 1fr;
  }
}
.recipe-content .recipe-ingredients-card__section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--divider);
}
.recipe-content .recipe-ingredients-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recipe-content .recipe-ingredients-card__list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  margin-bottom: 0;
}
.recipe-content .recipe-ingredients-card__list li:last-child {
  border-bottom: none;
}
.recipe-content .recipe-ingredients-card__list li::before {
  content: none;
}
.recipe-content .recipe-ingredients-check {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 1.5px solid var(--divider);
  background: var(--parchment);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.recipe-content .recipe-ingredients-card__list li strong {
  font-weight: 600;
}

/* ─── Recipe Steps ────────────────────────────────────────────────────── */
.recipe-content .recipe-steps {
  counter-reset: recipe-step;
  margin: 2.5rem 0;
}
.recipe-content .recipe-step {
  counter-increment: recipe-step;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.recipe-content .recipe-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(30, 92, 58, 0.2);
}
.recipe-content .recipe-step__body {
  flex: 1;
  padding-top: 0.25rem;
}
.recipe-content .recipe-step__body p {
  margin-bottom: 0.5rem;
  color: #374151;
}
.recipe-content .recipe-step__body p:last-child {
  margin-bottom: 0;
}

/* ─── Recipe Tip Card ─────────────────────────────────────────────────── */
.recipe-content .recipe-tip-card {
  background: rgba(30, 92, 58, 0.04);
  border: 1.5px solid rgba(30, 92, 58, 0.12);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.recipe-content .recipe-tip-card__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(30, 92, 58, 0.1);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recipe-content .recipe-tip-card__icon svg {
  width: 16px;
  height: 16px;
}
.recipe-content .recipe-tip-card__content {
  flex: 1;
}
.recipe-content .recipe-tip-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.recipe-content .recipe-tip-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.recipe-content .recipe-tip-card--ember {
  background: rgba(232, 84, 26, 0.04);
  border-color: rgba(232, 84, 26, 0.12);
}
.recipe-content .recipe-tip-card--ember .recipe-tip-card__icon {
  background: rgba(232, 84, 26, 0.1);
  color: var(--ember);
}

/* ─── Recipe Image Block ──────────────────────────────────────────────── */
.recipe-content .recipe-image-block {
  margin: 2.5rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.recipe-content .recipe-image-block img {
  width: 100%;
  height: auto;
  display: block;
}
.recipe-content .recipe-image-block__caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  background: var(--surface);
  font-style: italic;
}

/* ─── Recipe CTA Box ──────────────────────────────────────────────────── */
.recipe-content .recipe-cta-box {
  background: var(--pine-dark);
  color: white;
  padding: 2.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  margin-top: 3rem;
}
.recipe-content .recipe-cta-box__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}
.recipe-content .recipe-cta-box__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 560px;
  margin-inline: auto;
}

/* ─── Recipe Section Divider ──────────────────────────────────────────── */
.recipe-content .recipe-section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
}
.recipe-content .recipe-section-divider::before,
.recipe-content .recipe-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.recipe-content .recipe-section-divider__icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 84, 26, 0.08);
  color: var(--ember);
}

.recipe-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.recipe-sidebar__card {
  background: var(--pine-dark); color: #fff;
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.recipe-sidebar__card--newsletter {
  margin-top: 1.5rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--divider);
  box-shadow: var(--shadow-card);
}
.recipe-sidebar__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.recipe-sidebar__desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 1.5rem; }
.recipe-sidebar__action { width: 100%; background: var(--ember); color: #fff; padding: 0.875rem; border-radius: var(--r-md); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: background 0.2s; }
.recipe-sidebar__action:hover { background: var(--ember-lt); }
.recipe-sidebar__share { margin-top: 1rem; display: flex; gap: 0.5rem; }
.share-btn {
  flex: 1; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); padding: 0.6rem; border-radius: var(--r-sm);
  font-size: 0.75rem; font-weight: 600; text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.share-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.share-btn.copied {
  background: var(--forest) !important;
  color: #fff !important;
  border-color: var(--forest) !important;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  overflow: hidden;
}
.site-footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember) 0%, var(--ember-lt) 45%, var(--forest) 100%);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-logo .brand-logo {
  font-size: 1.55rem;
}
.footer-logo .brand-logo__prefix { color: var(--forest-lt); }
.footer-logo .brand-logo__name   { color: var(--ember-lt); }
.footer-brand__desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28rem;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-nav__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1rem;
}
.footer-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav__list a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-nav__list a:hover {
  color: #fff;
  padding-left: 0.25rem;
}
.footer-legal-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
  max-width: 14rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
}
.footer-bottom__links a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.footer-bottom__links a:hover { color: #fff; }
.footer-bottom__links span { color: rgba(255, 255, 255, 0.2); }

/* ─── 404 ────────────────────────────────────────────────────────────── */
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 4rem; }
.not-found__code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; line-height: 1; color: var(--divider); letter-spacing: -0.04em; margin-bottom: 1rem; }
.not-found__title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.not-found__desc { font-size: 1.0625rem; color: var(--muted); max-width: 40ch; margin-inline: auto; margin-bottom: 2rem; }

/* ─── About Page ─────────────────────────────────────────────────────── */
.about-grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 5fr 7fr; } }
.about-image { position: relative; }
.about-image__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lift); }
.about-image__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 9rem; height: 9rem;
  background: var(--ember); color: #fff;
  border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3;
  box-shadow: var(--shadow-lift);
}
@media (max-width: 767px) { .about-badge { display: none; } }
.about-text {}
.about-text .prose { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }
.about-text .prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: 2rem; margin-bottom: 0.75rem; }
.about-text .prose p { margin-bottom: 1.25rem; }
.about-text .prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.about-text .prose li { margin-bottom: 0.5rem; }
.about-text .prose a { color: var(--forest); text-decoration: underline; }

/* ─── Contact Page ───────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 3.5rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info__item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.contact-info__icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--divider); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info__text { font-size: 0.9rem; color: var(--muted); }
.contact-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lift); border: 1px solid var(--divider); }
/* CF7 / contact form styles */
.contact-card .wpcf7 input, .contact-card .wpcf7 textarea, .contact-card .wpcf7 select,
.contact-card input[type="text"], .contact-card input[type="email"], .contact-card textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--divider); border-radius: var(--r-sm);
  font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--parchment);
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: var(--forest); }
.contact-card textarea { min-height: 7rem; resize: vertical; }
.contact-card .wpcf7-submit, .contact-card button[type="submit"] {
  background: var(--forest); color: #fff; padding: 0.875rem 2rem;
  border-radius: 100px; font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.contact-card .wpcf7-submit:hover, .contact-card button[type="submit"]:hover { background: var(--forest-lt); transform: translateY(-1px); }

/* ─── Archive / Blog List ────────────────────────────────────────────── */
.archive-header { background: var(--pine-dark); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); text-align: center; }
.blog-card {
  display: grid; gap: 1.5rem; align-items: start;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 2rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  transition: box-shadow 0.25s, transform 0.25s;
}
@media (min-width: 640px) { .blog-card { grid-template-columns: 1fr 2fr; } }
.blog-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.blog-card__thumb { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: var(--divider); }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Pagination ─────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-top: 3.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding-inline: 0.75rem;
  border-radius: var(--r-sm); font-size: 0.875rem; font-weight: 600;
  color: var(--muted); border: 1.5px solid var(--divider);
  transition: all 0.2s;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--forest); color: #fff; border-color: var(--forest);
}
.pagination .prev, .pagination .next { padding-inline: 1rem; }

/* ─── Utilities ──────────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn { display: none; }
}
@media (min-width: 769px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ─── Print ──────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .recipe-sidebar, .feature-strip { display: none; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-hero-img { margin-top: 0; border-radius: 0; box-shadow: none; }
  .recipe-tip-card, .recipe-ingredients-card { break-inside: avoid; }
  .recipe-cta-box { display: none; }
  .recipe-image-block { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Desktop nav list reset ── */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.primary-nav li { position: relative; }
 
.primary-nav li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-radius: 0.4rem;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.primary-nav li a:hover,
.primary-nav li a:focus-visible {
  color: var(--forest);
  background: rgba(13, 51, 34, 0.06);
}
 
/* ── Dropdown ── */
.primary-nav .has-dropdown > .dropdown {
  display: none;           /* shown via :hover / :focus-within below */
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface, #fff);
  border: 1px solid var(--divider, #e5e7eb);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  padding: 0.4rem;
  min-width: 210px;
  z-index: 300;
  flex-direction: column;
}
 
.primary-nav .has-dropdown:hover > .dropdown,
.primary-nav .has-dropdown:focus-within > .dropdown {
  display: flex;
}
 
.primary-nav .has-dropdown > .dropdown li a {
  border-radius: 0.5rem;
  font-size: 0.9rem;
  padding: 0.55rem 0.875rem;
}
 
/* chevron on parent link */
.nav-chevron {
  font-size: 0.65rem;
  vertical-align: middle;
  opacity: 0.55;
  margin-left: 0.15rem;
}
 
/* ── 5-column category grid ── */
.categories-grid--5 {
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 1024px) {
  .categories-grid--5 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 640px) {
  .categories-grid--5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
 
/* ── Mobile sub-links ── */
.mobile-menu__section-label {
  font-weight: 700 !important;
  border-bottom: none !important;
  padding-bottom: 0.15rem !important;
}
.mobile-menu__sub {
  padding-left: 1.5rem !important;
  font-size: 0.9rem !important;
  opacity: 0.8;
}
 
 
/* ═══════════════════════════════════════════════════════════════════════
   REDESIGN — Navbar · Hero · Category Cards
   ═══════════════════════════════════════════════════════════════════════ */
 
/* ─── Header accent bar ────────────────────────────────────────────── */
.header-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--ember) 0%, var(--ember-lt) 50%, var(--forest) 100%);
}
 
/* ─── Logo ──────────────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
 
/* ─── Navbar overrides ──────────────────────────────────────────────── */
.site-header {
  /* keep existing fixed/backdrop styles; add transition for accent bar */
  transition: background 0.3s, box-shadow 0.3s;
}
 
/* Pill active/hover state */
.primary-nav > ul > li > a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: color 0.22s ease;
  overflow: hidden;
}
.primary-nav > ul > li > a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(30, 92, 58, 0.07) 0%, rgba(232, 84, 26, 0.05) 100%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.primary-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--ember) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a:focus-visible {
  color: var(--ink);
  background: transparent;
}
.primary-nav > ul > li > a:hover::before,
.primary-nav > ul > li > a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li > a:focus-visible::after {
  transform: scaleX(1);
}
.primary-nav > ul > li > a.current {
  color: var(--forest);
  font-weight: 700;
  background: transparent;
}
.primary-nav > ul > li > a.current::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(30, 92, 58, 0.08);
}
.primary-nav > ul > li > a.current::after {
  transform: scaleX(1);
  background: var(--forest);
}
 
/* Chevron icon */
.nav-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2rem;
  opacity: 0.5;
  transition: transform 0.2s;
}
.has-dropdown:hover .nav-chevron,
.has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
 
/* Dropdown polish */
.primary-nav .has-dropdown > .dropdown {
  border-radius: 1rem;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(15,15,15,0.13), 0 2px 8px rgba(15,15,15,0.06);
  border: 1px solid var(--divider);
  animation: dropFade 0.18s ease;
}
@keyframes dropFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.primary-nav .has-dropdown > .dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.6rem;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.primary-nav .has-dropdown > .dropdown li a:hover {
  background: rgba(30, 92, 58, 0.07);
  color: var(--forest);
}
.dropdown__icon { flex-shrink: 0; display: flex; }
.dropdown__divider {
  height: 1px;
  background: var(--divider);
  margin: 0.375rem 0.5rem;
}
.dropdown__all {
  font-weight: 700 !important;
  color: var(--forest) !important;
}
 
/* Inline search */
.header-search { display: flex; align-items: center; position: relative; }
.search-toggle {
  width: 2.25rem; height: 2.25rem;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  background: none; border: none; cursor: pointer;
}
.search-toggle:hover { background: var(--divider); color: var(--ember); }
.search-field-wrap {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  animation: searchExpand 0.2s ease;
}
@keyframes searchExpand {
  from { opacity: 0; transform: translateY(-50%) scaleX(0.85); }
  to   { opacity: 1; transform: translateY(-50%) scaleX(1); }
}
.search-field-wrap form {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--forest);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,92,58,0.18);
  width: 260px;
}
.search-field-wrap input {
  flex: 1;
  background: none; border: none; outline: none;
  padding: 0.6rem 1rem;
  font-size: 0.875rem; color: var(--ink);
}
.search-field-wrap input::placeholder { color: var(--muted); }
.search-field-wrap button {
  padding: 0 0.9rem;
  color: var(--forest);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center;
  transition: color 0.2s;
}
.search-field-wrap button:hover { color: var(--ember); }
 
/* Header CTA button */
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
 
/* Header spacer (matches header height inc. accent bar) */
.header-spacer { height: calc(4.5rem + 3px); }
 
/* ─── Mobile menu redesign ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: calc(4.5rem + 3px) 0 0 0;
  z-index: 99;
  background: var(--parchment);
  border-top: 1px solid var(--divider);
  overflow-y: auto;
  /* hide by default — show via .open */
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  gap: 0.25rem;
}
.mobile-menu__item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--divider);
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu__item.current {
  color: var(--forest);
}
.mobile-menu__item.current::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.mobile-menu__section-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.85rem 0 0.5rem;
  display: block;
  border-bottom: none !important;
}
.mobile-menu__subs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
}
.mobile-menu__sub {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.55rem 0 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-menu__sub:hover { color: var(--forest); }
.mobile-menu__sub--all {
  font-weight: 700;
  color: var(--forest);
  margin-top: 0.25rem;
}
.mobile-menu__footer { margin-top: 1.5rem; }
.mobile-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--divider);
  border-radius: 100px;
  overflow: hidden;
}
.mobile-search input {
  flex: 1;
  background: none; border: none; outline: none;
  padding: 0.7rem 1rem;
  font-size: 0.9rem; color: var(--ink);
}
.mobile-search input::placeholder { color: var(--muted); }
.mobile-search button {
  padding: 0 1rem;
  color: var(--muted);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center;
}
 
/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }
 
/* ─── Hero — Cinematic Full-bleed ──────────────────────────────────── */
.hero-cinematic {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
 
/* Background photo */
.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cinematic__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);           /* slight scale allows subtle parallax */
  transition: transform 12s ease;
}
.hero-cinematic:hover .hero-cinematic__bg img { transform: scale(1); }
 
/* Vignette — radial darkness around edges */
.hero-cinematic__vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(13,51,34,0.65) 100%);
}
 
/* Film-grain texture overlay */
.hero-cinematic__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: overlay;
}
 
/* Bottom-to-top gradient so text reads clearly */
.hero-cinematic__gradient {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(
    to top,
    rgba(13,51,34,0.85) 0%,
    rgba(13,51,34,0.45) 40%,
    rgba(13,51,34,0.2)  70%,
    transparent         100%
  );
}
 
/* Content */
.hero-cinematic__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding-block: clamp(5rem, 12vw, 9rem);
}
 
/* Eyebrow badge */
.hero-cinematic__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}
.hero-cinematic__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
 
/* Title */
.hero-cinematic__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-cinematic__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}
 
/* Subtitle */
.hero-cinematic__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}
 
/* CTAs */
.hero-cinematic__ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn--ghost-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}
 
/* Stats row */
.hero-cinematic__stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 0.85rem 2rem;
}
.hero-cinematic__stat { text-align: center; }
.hero-cinematic__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-cinematic__stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.1rem;
}
.hero-cinematic__stat-sep {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
 
/* Scroll indicator */
.hero-cinematic__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}
.hero-cinematic__scroll-track {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-cinematic__scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 100px;
  animation: scrollBob 1.9s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes scrollBob {
  0%, 100% { opacity: 1; transform: translateY(0); }
  60%       { opacity: 0; transform: translateY(10px); }
}
 
/* ─── Wave divider (hero → categories) ─────────────────────────────── */
.wave-top { background: var(--pine-dark); line-height: 0; }
.wave-top svg { display: block; width: 100%; }
 
/* ─── Category Bento Grid ───────────────────────────────────────────── */
.categories-section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.categories-section__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 40%, rgba(30, 92, 58, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(232, 84, 26, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.categories-section__inner {
  position: relative;
  z-index: 1;
}
.section-header--categories {
  align-items: flex-start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.categories-section__intro {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.cat-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  grid-template-areas:
    "hero hero hero ark keit keit"
    "hero hero hero kasv feat feat";
}
.cat-bento__card--hero  { grid-area: hero; }
.cat-bento__card--ark   { grid-area: ark; }
.cat-bento__card--keit  { grid-area: keit; }
.cat-bento__card--kasv  { grid-area: kasv; }
.cat-bento__card--feat  { grid-area: feat; }

.cat-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--pine-dark);
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.34, 1.2, .64, 1), box-shadow 0.35s ease;
}
.cat-bento__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.3s ease;
}
.cat-bento__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}
.cat-bento__card:hover::after {
  border-color: rgba(255, 255, 255, 0.32);
}
.cat-bento__card--hero {
  min-height: 100%;
}
.cat-bento__card--featured .cat-bento__title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.cat-bento__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
}
.cat-bento__card:hover .cat-bento__media img {
  transform: scale(1.06);
}
.cat-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    168deg,
    rgba(13, 51, 34, 0.08) 0%,
    rgba(13, 51, 34, 0.35) 45%,
    rgba(13, 51, 34, 0.88) 100%
  );
  transition: opacity 0.35s ease;
}
.cat-bento__overlay--ember {
  background: linear-gradient(
    168deg,
    rgba(232, 84, 26, 0.12) 0%,
    rgba(180, 50, 10, 0.45) 50%,
    rgba(120, 35, 8, 0.92) 100%
  );
}
.cat-bento__card:hover .cat-bento__overlay {
  opacity: 0.94;
}

.cat-bento__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
}
.cat-bento__card--hero .cat-bento__body {
  padding: 1.5rem;
  gap: 1rem;
}

.cat-bento__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cat-bento__icon,
.cat-bento__meta > .icon-tile--glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
}
.cat-bento__card--hero .cat-bento__icon,
.cat-bento__card--hero .cat-bento__meta > .icon-tile--lg {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}
.cat-bento__pill--trend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.cat-bento__pill-icon {
  width: 0.75rem !important;
  height: 0.75rem !important;
}
.cat-bento__pill {
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.cat-bento__pill--trend {
  background: var(--ember);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(232, 84, 26, 0.4);
}

.cat-bento__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cat-bento__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cat-bento__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-bento__card--hero .cat-bento__desc {
  font-size: 0.9rem;
  -webkit-line-clamp: 3;
}

.cat-bento__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cat-bento__action-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease;
}
.cat-bento__action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.25s ease, transform 0.3s cubic-bezier(.34, 1.2, .64, 1);
}
.cat-bento__action-icon svg {
  transition: transform 0.25s ease;
}
.cat-bento__card:hover .cat-bento__action-label {
  color: #fff;
}
.cat-bento__card:hover .cat-bento__action-icon {
  background: #fff;
  color: var(--forest);
  transform: scale(1.05);
}
.cat-bento__card--featured:hover .cat-bento__action-icon {
  color: var(--ember);
}
.cat-bento__card:hover .cat-bento__action-icon svg {
  transform: translateX(2px);
}

/* Scroll reveal (progressive enhancement) */
html.js .categories-section:not(.is-visible) .cat-bento__card {
  opacity: 0;
  transform: translateY(18px);
}
html.js .categories-section.is-visible .cat-bento__card {
  animation: catBentoIn 0.65s cubic-bezier(.22, 1, .36, 1) forwards;
}
html.js .categories-section.is-visible .cat-bento__card:nth-child(1) { animation-delay: 0.05s; }
html.js .categories-section.is-visible .cat-bento__card:nth-child(2) { animation-delay: 0.12s; }
html.js .categories-section.is-visible .cat-bento__card:nth-child(3) { animation-delay: 0.19s; }
html.js .categories-section.is-visible .cat-bento__card:nth-child(4) { animation-delay: 0.26s; }
html.js .categories-section.is-visible .cat-bento__card:nth-child(5) { animation-delay: 0.33s; }
@keyframes catBentoIn {
  to { opacity: 1; transform: translateY(0); }
}
html.js .categories-section.is-visible .cat-bento__card:hover {
  transform: translateY(-5px);
}

@media (max-width: 960px) {
  .cat-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "hero hero"
      "ark keit"
      "kasv feat";
  }
  .cat-bento__card--hero { min-height: 280px; }
}

@media (max-width: 560px) {
  .cat-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "ark"
      "keit"
      "kasv"
      "feat";
  }
  .section-header--categories {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .cat-bento__card { min-height: 200px; }
  .cat-bento__card--hero { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .categories-section:not(.is-visible) .cat-bento__card {
    opacity: 1;
    transform: none;
  }
  html.js .categories-section.is-visible .cat-bento__card {
    animation: none !important;
  }
  .cat-bento__card:hover,
  html.js .categories-section.is-visible .cat-bento__card:hover {
    transform: none;
  }
  .cat-bento__media img,
  .cat-bento__action-icon,
  .cat-bento__action-icon svg {
    transition: none;
  }
}
 
/* ─── Mobile responsive tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-cinematic__stats { flex-direction: column; gap: 1rem; border-radius: 1.25rem; padding: 1.25rem 1.75rem; }
  .hero-cinematic__stat-sep { width: 60px; height: 1px; }
  .hero-cinematic__subtitle br { display: none; }
  .header-accent-bar { height: 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   REDESIGN — Archive / Category Template
   ═══════════════════════════════════════════════════════════════════════ */

/* Cinematic Archive Hero (smaller sibling of home page cinematic hero) */
.archive-hero-cinematic {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pine-dark);
  text-align: center;
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.archive-hero-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-hero-cinematic__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(8px) scale(1.05); /* Modern atmospheric blur */
  opacity: 0.75;
  transition: transform 10s ease;
}

.archive-hero-cinematic:hover .archive-hero-cinematic__bg img {
  transform: scale(1.01);
}

.archive-hero-cinematic__vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(13, 51, 34, 0.75) 100%);
}

.archive-hero-cinematic__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

.archive-hero-cinematic__gradient {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(
    to top,
    rgba(13, 51, 34, 0.9) 0%,
    rgba(13, 51, 34, 0.4) 60%,
    transparent 100%
  );
}

.archive-hero-cinematic__content {
  position: relative;
  z-index: 10;
  color: #fff;
  max-width: 60ch;
  margin-inline: auto;
}

/* Category Eyebrow Badge */
.category-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.category-eyebrow-badge__icon {
  display: flex;
  align-items: center;
}
.category-eyebrow-badge__icon .icon-tile--sm {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.5rem;
}
.category-nav-pill .nk-icon {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.category-nav-pill:hover .nk-icon,
.category-nav-pill.is-active .nk-icon {
  opacity: 1;
}
.category-nav-pill.is-active .nk-icon {
  color: #fff;
}

.category-eyebrow-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-lt);
  box-shadow: 0 0 6px var(--ember-lt);
}

/* Recipe Count Pill */
.category-count-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(232, 84, 26, 0.15);
  color: var(--ember-lt);
  border: 1px solid rgba(232, 84, 26, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

/* Category Filter Bar */
.category-filter-section {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding-block: 0.75rem;
  position: sticky;
  top: 4.5rem; /* sits right below the sticky header */
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.category-filter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding-block: 0.25rem;
  width: 100%;
  justify-content: center;
}

.category-nav-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Navigation Pill Links */
.category-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--parchment);
  border: 1.5px solid var(--divider);
  color: var(--muted);
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.category-nav-pill:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-1px);
}

.category-nav-pill.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 92, 58, 0.25);
}

.category-nav-pill.is-active:hover {
  background: var(--forest-lt);
  border-color: var(--forest-lt);
  color: #fff;
}

/* Adjustments for sticky bar behavior on scroll */
.site-header.scrolled + .header-spacer + .archive-hero-cinematic + .category-filter-section {
  box-shadow: 0 4px 12px rgba(15,15,15,0.05);
}

@media (max-width: 768px) {
  .category-nav-bar {
    justify-content: flex-start;
    padding-inline: 0.25rem;
  }
  .category-filter-section {
    top: calc(4.5rem);
  }
}

/* ─── Newsletter Section ─────────────────────────────────────────────── */
.newsletter-section {
  background: var(--surface);
  padding-block: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--divider);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: -10%; left: -10%; width: 40%; height: 60%;
  background: radial-gradient(circle, rgba(30,92,58,0.03) 0%, transparent 75%);
  pointer-events: none;
}

.newsletter-section::after {
  content: "";
  position: absolute;
  bottom: -10%; right: -10%; width: 40%; height: 60%;
  background: radial-gradient(circle, rgba(232,84,26,0.03) 0%, transparent 75%);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-inline: 1.5rem;
}

.newsletter-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.newsletter-section__desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-direction: column;
}

@media (min-width: 520px) {
  .newsletter-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.newsletter-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(30,92,58,0.08), inset 0 2px 4px rgba(0,0,0,0.01);
}

.newsletter-submit {
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: var(--forest-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,92,58,0.15);
}

.newsletter-submit:active {
  transform: translateY(0);
}

.newsletter-hint {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════════════
   Page Templates — About · Contact · Privacy
   ═══════════════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  background: var(--pine-dark);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(232, 84, 26, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(30, 92, 58, 0.2) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.page-hero__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--ember-lt);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.page-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--parchment);
}

.page-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.page-prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.page-prose p { margin-bottom: 1.15rem; }
.page-prose ul, .page-prose ol {
  padding-left: 1.35rem;
  margin-bottom: 1.15rem;
}
.page-prose li { margin-bottom: 0.45rem; }
.page-prose a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-prose a:hover { color: var(--ember); }

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* About page */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; }
}
.about-page__media {
  position: relative;
}
.about-page__image-wrap {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--divider);
}
.about-page__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-page__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 92, 58, 0.08) 0%, rgba(232, 84, 26, 0.06) 100%);
  color: rgba(30, 92, 58, 0.25);
}
.about-page__placeholder-icon {
  width: 4rem !important;
  height: 4rem !important;
}
.about-page__badge .icon-tile {
  margin-bottom: 0.1rem;
}
.about-page__badge {
  position: absolute;
  bottom: -1.25rem;
  right: -0.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ember);
  box-shadow: var(--shadow-lift);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
}
@media (min-width: 768px) {
  .about-page__badge { display: flex; }
}
.about-page__badge-icon { font-size: 1.25rem; }
.about-page__badge-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}
.about-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.about-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
}
.about-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; }
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  transition: box-shadow 0.25s, transform 0.25s;
}
.contact-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.contact-card .icon-tile {
  flex-shrink: 0;
}
.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
a.contact-card__value {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-card__value:hover { color: var(--ember); }
.contact-page__social {
  margin-top: 2rem;
}
.contact-page__social-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.contact-page__social .footer-social__link {
  background: var(--surface);
  border-color: var(--divider);
  color: var(--muted);
}
.contact-page__social .footer-social__link:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.contact-form-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--divider);
}
.contact-form-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.contact-form-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--divider);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--parchment);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30, 92, 58, 0.1);
  background: var(--surface);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-form__submit { width: 100%; justify-content: center; }
@media (min-width: 520px) {
  .contact-form__submit { width: auto; align-self: flex-start; }
}

/* Privacy / legal page */
.legal-page { background: var(--surface); }
.legal-card {
  background: var(--parchment);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}
.legal-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}
 
 