/* ==========================================================================
   hoemaakje.be — Design 1: Editorial Magazine
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green: #0A834C;
  --green-dark: #065C35;
  --black: #060A06;
  --white: #FFFFFF;
  --sage: #AFB5AB;
  --mint-white: #F7FDF8;
  --mint-soft: #ADD2C0;
  --sage-light: #B8DBAB;
  --brown: #513E1A;
  --amber: #926012;
  --blue: #5b8dd9;
  --olive: #C0AE49;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --content-width: 1400px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px rgba(6, 10, 6, 0.08);
  --shadow-card: 0 25px 50px rgba(6, 10, 6, 0.08);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--mint-white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

p, ul, ol {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-main {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(247, 253, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 131, 76, 0.08);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo span {
  color: var(--black);
  font-weight: 400;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.nav-search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.9rem;
  color: var(--black);
  padding: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* Mobile nav drawer */
.mobile-nav {
  display: none;
}

.nav-search:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

/* ---------- Section Label ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--green);
}

/* ---------- Eyebrow (legacy compat) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--green);
}

/* ---------- HERO ---------- */
.hero {
  padding: 10rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--content-width);
  margin: 0 auto;
  align-items: center;
  min-height: 100vh;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

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

.hero-text p {
  font-size: 1.15rem;
  color: var(--sage);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--green);
  color: white;
  padding: 1rem 2.2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(10, 131, 76, 0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 131, 76, 0.35);
  background: var(--green-dark);
  color: white;
}

.hero-cta i {
  transition: transform 0.3s;
}

.hero-cta:hover i {
  transform: translateX(4px);
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(6, 10, 6, 0.12);
}

.hero-img-secondary {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 260px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(6, 10, 6, 0.1);
  border: 4px solid var(--white);
}

.hero-badge {
  position: absolute;
  top: 40px;
  left: 60px;
  z-index: 2;
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  box-shadow: 0 10px 30px rgba(6, 10, 6, 0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: float 4s ease-in-out infinite;
}

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

.hero-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.hero-badge-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sage);
}

.hero-badge-text strong {
  display: block;
  color: var(--black);
  font-size: 1rem;
}

/* ---------- CATEGORIES ---------- */
.categories {
  padding: 6rem 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.categories h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.cat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: var(--black);
  transition: all 0.4s var(--ease-spring);
  border: 1px solid rgba(175, 181, 171, 0.2);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-spring);
  transform-origin: left;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(6, 10, 6, 0.06);
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--green);
}

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cat-card p {
  font-size: 0.85rem;
  color: var(--sage);
}

.cat-group-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 3rem 0 1.2rem;
}

.cat-group-title:first-child {
  margin-top: 0;
}

/* ---------- FEATURED ---------- */
.featured {
  padding: 6rem 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.featured h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.featured-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 560px;
  cursor: pointer;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

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

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(6, 10, 6, 0.85) 0%, transparent 100%);
  color: white;
}

.featured-overlay .chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip--green { background: var(--green); color: white; }
.chip--outline { border: 1px solid rgba(255,255,255,0.4); color: white; }

.featured-overlay h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.featured-overlay p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.featured-side-card {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.featured-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

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

.featured-side-card .featured-overlay {
  padding: 1.8rem;
}

.featured-side-card .featured-overlay h3 {
  font-size: 1.4rem;
}

/* ---------- HUB HERO ---------- */
.hub-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 72px;
  background: var(--green-dark);
}

.hub-hero-bg {
  position: absolute;
  inset: 0;
}

.hub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 10, 6, 0.3) 0%,
    rgba(6, 10, 6, 0.7) 60%,
    rgba(6, 10, 6, 0.88) 100%
  );
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 3rem 3rem 2.5rem;
  color: var(--white);
}

.hub-hero-content .breadcrumbs {
  padding: 0;
  margin-bottom: 1.2rem;
  max-width: none;
}

.hub-hero-content .breadcrumbs a,
.hub-hero-content .breadcrumbs span {
  color: rgba(255, 255, 255, 0.7);
}

.hub-hero-content .breadcrumbs a:hover {
  color: var(--white);
}

.hub-hero-content .breadcrumbs li:last-child {
  color: rgba(255, 255, 255, 0.9);
}

.hub-hero-content .breadcrumbs li + li::before {
  color: rgba(255, 255, 255, 0.4);
}

.hub-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hub-hero-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hub-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hub-hero-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hub-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hub-page {
  padding: 3rem 3rem 6rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(175, 181, 171, 0.15);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--black);
  white-space: nowrap;
  min-width: 60px;
}

.filter-label i {
  color: var(--green);
  margin-right: 0.3rem;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 60px;
  border: 1.5px solid rgba(175, 181, 171, 0.25);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.filter-chip i {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.filter-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.filter-chip.active i {
  opacity: 1;
}

.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filter-count {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--sage);
  font-weight: 500;
}

.filter-reset {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: opacity 0.2s;
}

.filter-reset:hover {
  opacity: 0.7;
}

.filter-reset i {
  margin-right: 0.2rem;
}

.filter-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--sage);
}

.filter-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

.filter-empty p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.filter-reset-empty {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 60px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-reset-empty:hover {
  background: var(--green-dark);
}

@media (max-width: 640px) {
  .filter-bar {
    padding: 1rem;
    gap: 0.6rem;
  }

  .filter-group {
    gap: 0.5rem;
  }

  .filter-label {
    width: 100%;
    min-width: auto;
  }

  .filter-chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 900px) {
  .hub-hero { min-height: 280px; }
  .hub-hero-content h1 { font-size: 2.4rem; }
  .hub-hero-content { padding: 2rem 1.5rem 2rem; }
}

@media (max-width: 640px) {
  .hub-hero { min-height: 240px; }
  .hub-hero-content h1 { font-size: 2rem; }
  .hub-page { padding: 2rem 1.5rem 4rem; }
}

/* ---------- RECIPES SECTION ---------- */
.recipes {
  padding: 6rem 3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.recipes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.recipes-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.recipes-header a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s;
}

.recipes-header a:hover { gap: 0.8rem; }

/* ---------- RECIPE GRID ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: all 0.4s var(--ease-spring);
  border: 1px solid rgba(175, 181, 171, 0.15);
}

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

.recipe-card-img {
  height: 240px;
  position: relative;
  overflow: hidden;
}

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


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

.recipe-card-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1;
}

.recipe-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  color: var(--green);
}

.recipe-badge--gluten-free {
  color: var(--amber);
}

.recipe-badge--lactose-free {
  color: var(--blue);
}

.recipe-badge--protein {
  color: var(--blue);
}

.recipe-badge--kids {
  color: var(--brown);
}

.recipe-card-body {
  padding: 1.5rem 1.6rem;
}

.recipe-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.recipe-meta span {
  font-size: 0.78rem;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.recipe-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.recipe-card-body p {
  font-size: 0.88rem;
  color: var(--sage);
  line-height: 1.5;
}

.recipe-card-footer {
  padding: 0 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.recipe-difficulty {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.recipe-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
}

/* ---------- METADATA CHIPS ---------- */
.metadata-chips {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metadata-chips li {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(173, 210, 192, 0.35);
  border: 1px solid rgba(10, 131, 76, 0.12);
  color: var(--black);
  gap: 0.4rem;
}

.metadata-chips li i {
  color: var(--green);
  font-size: 0.75rem;
}

/* ---------- FEEST SECTION ---------- */
.feest-section {
  max-width: var(--content-width);
  margin: 4rem auto;
  padding: 0 3rem;
}

.feest-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feest-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feest-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feest-header h2 em {
  color: var(--green);
  font-style: italic;
}

.feest-subtitle {
  color: var(--sage);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

/* ---------- BANNER ---------- */
.banner {
  margin: 4rem 3rem;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  background: var(--black);
  border-radius: 28px;
  padding: 4.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 131, 76, 0.2) 0%, transparent 70%);
}

.banner h2 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 500px;
  position: relative;
}

.banner h2 em {
  color: var(--sage-light);
  font-style: italic;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--green);
  color: white;
  padding: 1.1rem 2.4rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s;
  position: relative;
}

.banner-cta:hover {
  background: var(--sage-light);
  color: var(--black);
}

/* ---------- RECIPE LIST (hub page) ---------- */
.recipe-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.recipe-list .recipe-card {
  padding: 1.5rem;
}

.recipe-list .recipe-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.recipe-list .recipe-card h2 a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}

.recipe-list .recipe-card h2 a:hover {
  color: var(--green);
}

.recipe-list .recipe-card p {
  font-size: 0.9rem;
  color: var(--sage);
  line-height: 1.5;
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  padding: 6.5rem 3rem 0;
  max-width: var(--content-width);
  margin: 0 auto;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--sage);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.55rem;
  color: var(--sage);
}

.breadcrumbs a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumbs li:last-child {
  color: var(--green);
  font-weight: 600;
}

/* Legacy breadcrumb (recipe layout) */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--sage);
  font-size: 0.82rem;
  padding-top: 6.5rem;
}

.breadcrumb a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.3s;
}

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

.breadcrumb span {
  color: var(--sage);
}

/* ---------- RECIPE HERO ---------- */
.recipe-hero {
  margin: 2rem 3rem 0;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  height: 520px;
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3.5rem 4rem;
  background: linear-gradient(to top, rgba(6, 10, 6, 0.88) 0%, rgba(6, 10, 6, 0.4) 60%, transparent 100%);
  color: white;
}

.recipe-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  color: white;
}

.recipe-hero-overlay > p {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.hero-meta-chips {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.meta-chip i {
  font-size: 0.75rem;
  color: var(--sage-light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--green);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(10, 131, 76, 0.3);
}

.btn-jump:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 131, 76, 0.4);
  background: var(--green-dark);
}

.btn-bookmark-hero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.btn-bookmark-hero:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ---------- INTRO ---------- */
.intro {
  padding: 3.5rem 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.intro p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #4a4f48;
  text-align: center;
}

.intro p::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--green);
  float: left;
  line-height: 1;
  margin-right: 0.15rem;
  margin-top: 0.05rem;
}

/* ---------- RECIPE DETAIL CARD ---------- */
.recipe-detail-card {
  max-width: 860px;
  margin: 3rem auto 0;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(6, 10, 6, 0.06);
  border: 1px solid rgba(175, 181, 171, 0.12);
  overflow: hidden;
}

.recipe-detail-inner {
  padding: 3rem 3.5rem;
}

/* ---------- RECIPE HEADER (recipe layout) ---------- */
.recipe-header {
  margin-bottom: 1.5rem;
}

.recipe-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

.lede {
  font-size: 1.125rem;
  max-width: 48rem;
  color: var(--sage);
  line-height: 1.7;
}

/* ---------- COOKING MODE TOGGLE ---------- */
.cooking-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--mint-white);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(10, 131, 76, 0.08);
}

.cooking-mode-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.cooking-mode-label i {
  color: var(--green);
  font-size: 1.1rem;
}

.cooking-mode-label small {
  font-weight: 400;
  color: var(--sage);
  font-size: 0.78rem;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--sage);
  border-radius: 40px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
  padding: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle-switch.active {
  background: var(--green);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* ---------- PREHEAT STEP ---------- */
.preheat-step {
  margin-bottom: 0.5rem;
}

.preheat-step .step-number {
  font-size: 1rem;
}

/* ---------- PORTION SCALING ---------- */
.portion-scaling {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(175, 181, 171, 0.15);
}

.portion-scaling-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.portion-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--mint-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(10, 131, 76, 0.12);
}

.portion-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  border-radius: 0;
}

.portion-btn:hover {
  background: rgba(10, 131, 76, 0.08);
}

.portion-count {
  min-width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: var(--green);
}

.portion-unit {
  font-size: 0.85rem;
  color: var(--sage);
  margin-left: 0.3rem;
}

/* Legacy servings control (recipe layout) */
.servings-control {
  margin: 1rem 0 1.5rem;
}

.servings-control label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.servings-buttons {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--mint-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(10, 131, 76, 0.12);
  width: fit-content;
}

.servings-buttons button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  border-radius: 0;
}

.servings-buttons button:hover {
  background: rgba(10, 131, 76, 0.08);
}

.servings-buttons input[type="number"] {
  min-width: 48px;
  width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  background: var(--green);
  border: none;
  border-radius: 0;
  padding: 0;
  -moz-appearance: textfield;
}

.servings-buttons input[type="number"]::-webkit-inner-spin-button,
.servings-buttons input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- RECIPE TOOLBAR ---------- */
.recipe-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.recipe-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  border: 1.5px solid rgba(175, 181, 171, 0.3);
  background: transparent;
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.recipe-toolbar button:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- INGREDIENTS ---------- */
.ingredients-section {
  margin-bottom: 3rem;
}

.ingredients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ingredients-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(175, 181, 171, 0.3);
  background: transparent;
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.btn-copy:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-copy.copied {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.ingredient-group h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

.ingredient-group:first-child h3 {
  margin-top: 0;
}

.ingredient-list {
  list-style: none;
  padding-left: 0;
}

.ingredient-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(175, 181, 171, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ingredient-list li:last-child {
  border-bottom: none;
}

.ingredient-amount {
  font-weight: 700;
  color: var(--green);
  min-width: 60px;
  text-align: right;
}

.ingredient-name {
  color: var(--black);
}

.ingredient-pantry {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: var(--mint-white);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* ---------- INSTRUCTIONS / STEPS ---------- */
.instructions-section {
  margin-bottom: 2rem;
}

.instructions-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.step-list {
  list-style: none;
  padding-left: 0;
}

.steps-list {
  list-style: none;
  padding-left: 0;
}

.step {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(175, 181, 171, 0.1);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.step-content {
  flex: 1;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--black);
}

.step-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.step-ingredient-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
  background: rgba(175, 181, 171, 0.15);
  border: 1px solid rgba(175, 181, 171, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 60px;
  white-space: nowrap;
}

.step-ingredient {
  font-weight: 700;
  color: var(--green);
  background: rgba(10, 131, 76, 0.06);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

.step-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(146, 96, 18, 0.06);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
}

.step-time i {
  font-size: 0.7rem;
}

.step-meta {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(173, 210, 192, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  gap: 0.3rem;
  margin-top: 0.5rem;
}

/* ---------- TIPS ---------- */
.tips-section {
  padding: 3rem 3rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.tips-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.tip-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(175, 181, 171, 0.15);
  position: relative;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 16px 16px 0 0;
}

.tip-card i {
  color: var(--green);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.tip-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4a4f48;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-section {
  padding: 3.5rem 3rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(175, 181, 171, 0.15);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(6, 10, 6, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  gap: 1rem;
}

.faq-question i {
  color: var(--green);
  font-size: 0.8rem;
  transition: transform 0.3s;
  min-width: 16px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4a4f48;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* Legacy FAQ (details/summary in recipe layout) */
.recipe-page details {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(175, 181, 171, 0.15);
  overflow: hidden;
  transition: box-shadow 0.3s;
  margin-bottom: 0.8rem;
}

.recipe-page details:hover {
  box-shadow: 0 4px 16px rgba(6, 10, 6, 0.04);
}

.recipe-page details summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  list-style: none;
}

.recipe-page details summary::-webkit-details-marker {
  display: none;
}

.recipe-page details[open] summary {
  color: var(--green);
}

.recipe-page details p {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4a4f48;
}

/* ---------- SHARE BUTTONS ---------- */
.share-section {
  padding: 3.5rem 3rem 0;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.share-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(175, 181, 171, 0.25);
  background: var(--white);
  color: var(--black);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
  padding: 0;
}

.share-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: translateY(-2px);
}

/* ---------- RELATED RECIPES ---------- */
.related-section {
  padding: 5rem 3rem 0;
  max-width: var(--content-width);
  margin: 0 auto;
}

.related-section .recipes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.related-section .recipes-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- RECIPE PAGE (layout) ---------- */
.recipe-page {
  padding-top: 0;
}

.recipe-page .container {
  max-width: 860px;
}

.recipe-page .recipe-grid {
  grid-template-columns: 1fr 1.2fr;
  max-width: var(--content-width);
}

.recipe-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

/* ---------- TOAST (copy feedback) ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(6, 10, 6, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 5rem 3rem 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
  border-top: 1px solid rgba(175, 181, 171, 0.2);
  background: transparent;
  backdrop-filter: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 3rem 5rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand .logo-icon {
  width: 38px;
  height: 38px;
}

.footer-brand p {
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 480px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(175, 181, 171, 0.15);
  font-size: 0.82rem;
  color: var(--sage);
}

/* ---------- BUTTONS (global) ---------- */
button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1rem;
  cursor: pointer;
}

input[type="number"] {
  width: 5rem;
  border: 1px solid rgba(6, 10, 6, 0.15);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
}

/* ---------- HERO NOTE ---------- */
.hero-note {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(173, 210, 192, 0.35);
  font-size: 0.82rem;
  font-weight: 500;
}

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

.hero-text { animation: fadeUp 0.8s ease-out; }
.hero-visual { animation: fadeUp 0.8s ease-out 0.15s both; }
.cat-card:nth-child(1) { animation: fadeUp 0.6s ease-out 0.1s both; }
.cat-card:nth-child(2) { animation: fadeUp 0.6s ease-out 0.2s both; }
.cat-card:nth-child(3) { animation: fadeUp 0.6s ease-out 0.3s both; }
.cat-card:nth-child(4) { animation: fadeUp 0.6s ease-out 0.4s both; }
.cat-card:nth-child(5) { animation: fadeUp 0.6s ease-out 0.5s both; }
.cat-card:nth-child(6) { animation: fadeUp 0.6s ease-out 0.6s both; }
.cat-card:nth-child(7) { animation: fadeUp 0.6s ease-out 0.7s both; }
.cat-card:nth-child(8) { animation: fadeUp 0.6s ease-out 0.8s both; }
.recipe-hero { animation: fadeUp 0.8s ease-out; }
.recipe-detail-card { animation: fadeUp 0.8s ease-out 0.15s both; }

/* ---------- RESPONSIVE: 1024px ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 8rem;
    min-height: auto;
  }

  .hero-visual { display: none; }

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

  .recipe-grid { grid-template-columns: repeat(2, 1fr); }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .recipe-page .recipe-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- RESPONSIVE: 640px ---------- */
@media (max-width: 640px) {
  .site-nav { padding: 1rem 1.5rem; }

  .nav-links { display: none; }

  .nav-hamburger { display: flex; }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-spring);
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
  }

  .mobile-nav a:hover {
    background: var(--mint-white);
    color: var(--green);
  }

  .mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--green);
    font-size: 0.95rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-text h1 { font-size: 2.6rem; }

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

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

  .feest-section {
    padding: 0 1.5rem;
  }

  .feest-header {
    flex-direction: column;
    text-align: center;
  }

  .feest-header h2 {
    font-size: 1.6rem;
  }

  .banner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 3rem 2rem;
  }

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

  .breadcrumbs { padding: 5.5rem 1.5rem 0; }

  .breadcrumbs ol { flex-wrap: nowrap; }

  .breadcrumbs li:last-child {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .breadcrumbs li:last-child::before {
    margin-right: 0.5rem;
  }

  .breadcrumb { padding-top: 5.5rem; flex-wrap: nowrap; }

  .breadcrumb li:last-child,
  .breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .recipe-hero {
    margin: 1rem 1.5rem 0;
    height: auto;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
  }

  .recipe-hero img {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .recipe-hero-overlay {
    position: relative;
    padding: 1.5rem;
    background: var(--black);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .recipe-hero-overlay h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }

  .recipe-hero-overlay > p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-meta-chips { gap: 0.4rem; margin-bottom: 0; }
  .meta-chip { font-size: 0.72rem; padding: 0.35rem 0.7rem; }

  .intro { padding: 2rem 1.5rem 0; }

  .recipe-detail-card {
    margin: 2rem 1.5rem 0;
    border-radius: var(--radius-lg);
  }

  .recipe-detail-inner { padding: 2rem 1.5rem; }

  .ingredients-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .tips-section,
  .faq-section,
  .share-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .related-section { padding: 3rem 1.5rem 0; }

  .site-footer { padding: 3rem 1.5rem 2rem; }

  .cooking-mode {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .cooking-mode-label small {
    display: none;
  }

  .portion-scaling { flex-wrap: wrap; }

  .categories,
  .featured,
  .recipes {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .recipes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---------- SEARCH PAGE ---------- */
.search-page {
  padding: 7rem 3rem 4rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.search-page h1 {
  margin-bottom: 0.5rem;
}

.search-page .section-label {
  margin-bottom: 0.5rem;
}

/* Pagefind UI overrides — form */
.pagefind-ui__form::before {
  z-index: 2 !important;
  opacity: 0.4 !important;
}

.pagefind-ui__search-input {
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  border-radius: 60px !important;
  border: 2px solid rgba(10, 131, 76, 0.15) !important;
  padding: 1.1rem 1.5rem 1.1rem 3.2rem !important;
  background: var(--white) !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
  box-shadow: var(--shadow-soft) !important;
}

.pagefind-ui__search-input:focus {
  border-color: var(--green) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(10, 131, 76, 0.1), var(--shadow-soft) !important;
}

.pagefind-ui__search-clear {
  color: var(--sage) !important;
  right: 1rem !important;
}

/* Pagefind UI overrides — message */
.pagefind-ui__message {
  font-family: var(--font-body) !important;
  color: var(--sage) !important;
  padding: 1.5rem 0 0.5rem !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em !important;
}

/* Pagefind UI overrides — results */
.pagefind-ui__results-area {
  margin-top: 1rem !important;
}

.pagefind-ui__result {
  border-top: none !important;
  padding: 0 !important;
  background: var(--white) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  border: 1px solid rgba(175, 181, 171, 0.15) !important;
  transition: all 0.4s var(--ease-spring) !important;
  margin-bottom: 1rem !important;
}

.pagefind-ui__result:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-card) !important;
}

.pagefind-ui__result-inner {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
}

.pagefind-ui__result-thumb {
  flex: 0 0 180px !important;
  min-height: 140px !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.pagefind-ui__result-image {
  border-radius: 0 !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.5s !important;
}

.pagefind-ui__result:hover .pagefind-ui__result-image {
  transform: scale(1.06) !important;
}

.pagefind-ui__result-link {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.pagefind-ui__result-link:hover {
  color: var(--green) !important;
}

.pagefind-ui__result-excerpt {
  font-family: var(--font-body) !important;
  color: var(--sage) !important;
  line-height: 1.6 !important;
  font-size: 0.9rem !important;
  margin-top: 0.3rem !important;
}

.pagefind-ui__result-excerpt mark {
  background: rgba(10, 131, 76, 0.1) !important;
  color: var(--green-dark) !important;
  border-radius: 2px !important;
  padding: 0.1em 0.2em !important;
}

/* Pagefind UI overrides — load more button */
.pagefind-ui__button {
  background: var(--white) !important;
  color: var(--green) !important;
  border-radius: 60px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: 2px solid var(--green) !important;
  padding: 0 2rem !important;
  height: 48px !important;
  line-height: 44px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0.5rem !important;
}

.pagefind-ui__button:hover {
  background: var(--green) !important;
  color: var(--white) !important;
}

@media (max-width: 640px) {
  .search-page {
    padding: 6rem 1.5rem 3rem;
  }

  .pagefind-ui__result-thumb {
    flex: 0 0 100px !important;
    min-height: 100px !important;
  }

  .pagefind-ui__result-link {
    font-size: 1rem !important;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .site-nav,
  .site-footer,
  .breadcrumbs,
  .breadcrumb,
  .recipe-hero,
  .intro,
  .cooking-mode,
  .tips-section,
  .faq-section,
  .share-section,
  .related-section,
  .btn-copy,
  .hero-actions,
  .btn-bookmark-hero,
  .recipe-toolbar,
  .banner,
  .feest-section,
  .hero,
  .nav-search {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .recipe-grid {
    display: block;
  }

  .recipe-panel,
  .recipe-card,
  .recipe-detail-card {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .recipe-detail-inner { padding: 1rem 0; }

  .step-ingredient {
    background: none;
    text-decoration: underline;
  }

  .toggle-switch { display: none; }
}
