/* ============================================
   Saffron Kitchen — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --muted: #6b645a;
  --paper: #f2efe8;
  --paper-deep: #e8e3d8;
  --surface: #faf8f4;
  --olive: #3d5238;
  --olive-deep: #2a3826;
  --olive-soft: #5c7356;
  --saffron: #d4891a;
  --saffron-bright: #e9a12e;
  --tomato: #b8331d;
  --cream-glow: rgba(232, 196, 120, 0.18);
  --shadow: 0 12px 40px rgba(26, 24, 20, 0.12);
  --shadow-soft: 0 4px 20px rgba(26, 24, 20, 0.08);
  --radius: 4px;
  --radius-lg: 12px;
  --nav-h: 72px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Atmospheric background — never intercept clicks */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--cream-glow), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(61, 82, 56, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(212, 137, 26, 0.06), transparent 50%),
    var(--paper);
}

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

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}


/* ============================================
   Page transition
   ============================================ */

.page-enter main {
  animation: pageIn 0.45s var(--ease-out) both;
}

@keyframes pageIn {
  from {
    opacity: 0.01;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Navigation — mixed link styles
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(26, 24, 20, 0.08);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  pointer-events: auto;
}

.site-header a,
.nav-links a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(250, 248, 244, 0.94);
}

.nav-inner {
  width: min(1120px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--olive-deep);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: scale(1.03);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--saffron), var(--tomato), var(--olive), var(--saffron));
  box-shadow: 0 0 0 3px var(--surface), 0 2px 8px rgba(212, 137, 26, 0.35);
  animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  flex-wrap: wrap;
}

/* Style A — underline grow */
.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--olive-deep);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Style B — pill / soft chip */
.nav-pill {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--olive);
  background: transparent;
  border: 1.5px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease);
}

.nav-pill:hover,
.nav-pill.active {
  background: rgba(61, 82, 56, 0.1);
  border-color: rgba(61, 82, 56, 0.25);
  color: var(--olive-deep);
  transform: translateY(-1px);
}

/* Style C — solid CTA button */
.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
  background: var(--olive);
  color: #faf8f4;
  box-shadow: 0 2px 0 var(--olive-deep);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--olive-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #1a2418, 0 8px 20px rgba(42, 56, 38, 0.25);
}

/* Style D — dotted accent */
.nav-dot {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s var(--ease), letter-spacing 0.3s var(--ease);
}

.nav-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  opacity: 0.45;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.nav-dot:hover,
.nav-dot.active {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-dot:hover::before,
.nav-dot.active::before {
  opacity: 1;
  transform: scale(1.25);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid rgba(26, 24, 20, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero (home)
   ============================================ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #faf8f4;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) alternate infinite;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 24, 20, 0.88) 0%, rgba(26, 24, 20, 0.35) 45%, rgba(26, 24, 20, 0.2) 100%),
    linear-gradient(120deg, rgba(42, 56, 38, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  animation: riseIn 0.8s var(--ease-out) 0.1s both;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  max-width: 32ch;
  color: rgba(250, 248, 244, 0.88);
  margin-bottom: 1.75rem;
  animation: riseIn 0.8s var(--ease-out) 0.25s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.8s var(--ease-out) 0.4s both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--saffron);
  color: var(--ink);
  box-shadow: 0 2px 0 #a86a10;
}

.btn-primary:hover {
  background: var(--saffron-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #a86a10, 0 10px 24px rgba(212, 137, 26, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #faf8f4;
  border: 1.5px solid rgba(250, 248, 244, 0.45);
}

.btn-ghost:hover {
  background: rgba(250, 248, 244, 0.12);
  border-color: #faf8f4;
  transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.55rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--olive-deep);
  margin-bottom: 0.65rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* Category mosaic — not cards in hero, but interactive browse tiles */
.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.cat-tile {
  position: relative;
  grid-column: span 4;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
  color: #faf8f4;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.cat-tile:nth-child(1) { grid-column: span 5; min-height: 340px; }
.cat-tile:nth-child(2) { grid-column: span 7; min-height: 340px; }
.cat-tile:nth-child(3) { grid-column: span 4; }
.cat-tile:nth-child(4) { grid-column: span 4; }
.cat-tile:nth-child(5) { grid-column: span 4; }

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.7s var(--ease);
}

.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 20, 0.85) 0%, rgba(26, 24, 20, 0.15) 60%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s var(--ease);
}

.cat-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cat-tile:hover img {
  transform: scale(1.08);
}

.cat-tile:hover::after {
  background: linear-gradient(to top, rgba(42, 56, 38, 0.9) 0%, rgba(26, 24, 20, 0.25) 65%);
}

.cat-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.5rem 1.4rem;
}

.cat-body h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.25rem;
}

.cat-body p {
  font-size: 0.92rem;
  opacity: 0.85;
  font-weight: 300;
}

.cat-count {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron-bright);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.35rem;
}

.filter-btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 24, 20, 0.14);
  color: var(--ink-soft);
  background: var(--surface);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.filter-btn:hover {
  border-color: var(--olive-soft);
  color: var(--olive-deep);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--olive);
  color: #faf8f4;
  border-color: var(--olive);
}

.search-wrap {
  margin-left: auto;
  position: relative;
}

.search-wrap input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 1rem 0.5rem 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 24, 20, 0.14);
  background: var(--surface);
  color: var(--ink);
  width: min(220px, 100%);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-wrap input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(212, 137, 26, 0.2);
}

.search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Recipe list / detail tiles */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
}

.recipe {
  background: var(--surface);
  border: 1px solid rgba(26, 24, 20, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.35s;
  opacity: 1;
  transform: translateY(0);
  cursor: pointer;
}

html.js .recipe:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

html.js .recipe.visible {
  opacity: 1;
  transform: translateY(0);
}

.recipe.hidden {
  display: none !important;
}

.recipe:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.recipe-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.recipe-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.recipe-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  background: rgba(61, 82, 56, 0.1);
  color: var(--olive);
}

.tag.time {
  background: rgba(212, 137, 26, 0.15);
  color: #8a5a0c;
}

.tag.easy {
  background: rgba(184, 51, 29, 0.1);
  color: var(--tomato);
}

.recipe h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.recipe p {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
}

.recipe-steps {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(26, 24, 20, 0.12);
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s, margin 0.35s, padding 0.35s;
}

.recipe.open .recipe-steps {
  max-height: 480px;
  opacity: 1;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.recipe-toggle {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, gap 0.25s;
}

.recipe-toggle:hover {
  color: var(--saffron);
  gap: 0.5rem;
}

.recipe-toggle::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.recipe.open .recipe-toggle::after {
  transform: rotate(90deg);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -8%;
  top: -20%;
  width: 45vw;
  height: 45vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 137, 26, 0.18), transparent 70%);
  animation: floatBlob 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatBlob {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 40px); }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--olive-deep);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  animation: riseIn 0.7s var(--ease-out) both;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 38ch;
  animation: riseIn 0.7s var(--ease-out) 0.12s both;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  animation: riseIn 0.6s var(--ease-out) both;
}

.breadcrumb a {
  color: var(--olive);
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--saffron);
}

.breadcrumb span {
  opacity: 0.5;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-block: 1px solid rgba(26, 24, 20, 0.08);
}

.feature {
  text-align: left;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: rgba(61, 82, 56, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--olive);
  transition: transform 0.35s var(--ease), background 0.35s;
}

.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(212, 137, 26, 0.2);
  color: #8a5a0c;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--olive-deep) 0%, var(--olive) 55%, #4a6542 100%);
  color: #faf8f4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(212, 137, 26, 0.25);
  animation: floatBlob 8s ease-in-out infinite alternate;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  position: relative;
}

.cta-band p {
  opacity: 0.85;
  font-weight: 300;
  margin-top: 0.35rem;
  position: relative;
}

.cta-band .btn-primary {
  position: relative;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--olive-deep);
  margin-bottom: 1rem;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 24, 20, 0.1);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--saffron);
  line-height: 1;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: var(--olive-deep);
  color: rgba(250, 248, 244, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #faf8f4;
  margin-bottom: 0.65rem;
}

.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-bright);
  margin-bottom: 0.85rem;
}

.footer-grid a {
  display: block;
  font-size: 0.92rem;
  padding: 0.25rem 0;
  transition: color 0.2s, padding-left 0.25s;
}

.footer-grid a:hover {
  color: #faf8f4;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Reveal on scroll — stay clickable; visible without JS after a beat */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  display: none;
}

.empty-state.show {
  display: block;
}

/* ============================================
   Responsive — tablet & below
   ============================================ */

@media (max-width: 1024px) {
  .category-grid {
    gap: 0.85rem;
  }

  .cat-tile:nth-child(1),
  .cat-tile:nth-child(2) {
    grid-column: span 6;
    min-height: 280px;
  }

  .cat-tile:nth-child(3),
  .cat-tile:nth-child(4),
  .cat-tile:nth-child(5) {
    grid-column: span 4;
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cat-tile,
  .cat-tile:nth-child(n) {
    grid-column: span 6;
    min-height: 220px;
  }

  .cat-body h3 {
    font-size: 1.3rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .filter-bar {
    gap: 0.45rem;
  }

  .search-wrap {
    margin-left: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .search-wrap input {
    width: 100%;
  }

  .cta-band {
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-row {
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
  }

  .page-hero {
    padding: 3rem 0 2.25rem;
  }
}

/* Mobile navigation + stacked layouts */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.85rem 4% 1.15rem;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 24, 20, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link,
  .nav-pill,
  .nav-cta,
  .nav-dot {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .hero {
    min-height: min(100vh - var(--nav-h), 720px);
  }

  .hero-content {
    padding: 2.5rem 0 3rem;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .hero-lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 48px;
  }

  .cat-tile,
  .cat-tile:nth-child(n) {
    grid-column: span 12;
    min-height: 200px;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .recipe-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .recipe h3 {
    font-size: 1.2rem;
  }

  .filter-btn {
    min-height: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .page-hero p {
    max-width: 100%;
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .section {
    padding: 2.75rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cat-tile,
  .cat-tile:nth-child(n) {
    min-height: 180px;
  }

  .cat-body {
    padding: 1.15rem 1.1rem;
  }

  .cta-band {
    padding: 2rem 1.15rem;
    border-radius: 10px;
  }

  .cta-band .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .stat-row {
    gap: 1rem 1.25rem;
  }

  .stat strong {
    font-size: 1.45rem;
  }

  .filter-label {
    width: 100%;
    margin-bottom: 0.15rem;
  }
}

/* Large screens: keep mosaic balanced */
@media (min-width: 1025px) {
  .cat-tile:nth-child(1) { grid-column: span 5; min-height: 340px; }
  .cat-tile:nth-child(2) { grid-column: span 7; min-height: 340px; }
  .cat-tile:nth-child(3),
  .cat-tile:nth-child(4),
  .cat-tile:nth-child(5) { grid-column: span 4; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
  }
}
