/* =========================================================
   GrannyCooks.online — Vintage American Cookbook Aesthetic
   Palette: warm cream, deep terracotta, sage, charcoal
   Fonts: Playfair Display (display), DM Serif Display (accents),
          Lora (body), Caveat (handwritten notes)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Caveat:wght@400;600;700&display=swap');

:root {
  --cream: #faf3e7;
  --cream-deep: #f2e8d5;
  --paper: #fffaf0;
  --terracotta: #c44d3a;
  --terracotta-dark: #a03825;
  --terracotta-light: #e2856f;
  --sage: #6b8e5a;
  --sage-dark: #4f6b43;
  --mustard: #d49b3a;
  --charcoal: #2c241e;
  --ink: #3d342c;
  --soft-ink: #6b5d4f;
  --line: #d9c8a6;
  --gold: #b08a4a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent: 'DM Serif Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  --shadow-sm: 0 2px 8px rgba(60, 40, 20, 0.08);
  --shadow-md: 0 6px 24px rgba(60, 40, 20, 0.12);
  --shadow-lg: 0 16px 48px rgba(60, 40, 20, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(196, 77, 58, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(107, 142, 90, 0.05) 0%, transparent 40%);
}

/* Subtle paper noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--terracotta-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--terracotta); }

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

/* ============ NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-accent);
  font-size: 22px;
  font-style: italic;
  box-shadow: inset 0 0 0 2px var(--cream), 0 0 0 2px var(--terracotta);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .top {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--terracotta);
  letter-spacing: 1px;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--charcoal);
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 32px 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--terracotta);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--terracotta);
  display: block;
}

.hero p.lead {
  font-size: 19px;
  color: var(--soft-ink);
  max-width: 520px;
  margin-bottom: 36px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--terracotta-dark);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--terracotta-dark);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-visual .frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream-deep), var(--line));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(2deg);
}
.hero-visual .frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .frame-2 {
  position: absolute;
  top: -20px;
  left: -30px;
  width: 50%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream-deep), var(--line));
  padding: 10px;
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
  border: 1px solid var(--line);
  z-index: 2;
}
.hero-visual .frame-2 img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .tag {
  position: absolute;
  bottom: -10px;
  right: -20px;
  background: var(--mustard);
  color: var(--charcoal);
  padding: 14px 22px;
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
  transform: rotate(-4deg);
  z-index: 3;
  box-shadow: var(--shadow-md);
}

/* Decorative star */
.hero-star {
  position: absolute;
  top: 10%; right: 5%;
  font-size: 80px;
  color: var(--sage);
  opacity: 0.2;
  z-index: 1;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SECTION ============ */
section { position: relative; z-index: 2; }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--soft-ink);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}
.divider {
  width: 80px;
  height: 1px;
  background: var(--terracotta);
  margin: 16px auto;
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.divider::before { left: -10px; }
.divider::after { right: -10px; }

/* ============ CATEGORIES ============ */
.categories {
  padding: 80px 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cats-inner { max-width: 1280px; margin: 0 auto; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cat {
  background: var(--paper);
  padding: 28px 16px;
  text-align: center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}
.cat-icon {
  font-size: 38px;
  margin-bottom: 10px;
  display: block;
}
.cat-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* ============ RECIPES ============ */
.recipes-section {
  padding: 100px 32px;
}
.recipes-inner { max-width: 1280px; margin: 0 auto; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.recipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.recipe-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--cream-deep), var(--line));
}
.recipe-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.recipe-card:hover .recipe-img img { transform: scale(1.06); }

.recipe-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
}
.recipe-badge.terracotta { background: var(--terracotta); }
.recipe-badge.sage { background: var(--sage); }
.recipe-badge.mustard { background: var(--mustard); color: var(--charcoal); }

.recipe-body {
  padding: 26px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--soft-ink);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.recipe-meta span {
  display: flex; align-items: center; gap: 4px;
}
.recipe-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.recipe-desc {
  color: var(--soft-ink);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}
.recipe-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.recipe-author {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--terracotta);
}
.recipe-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}
.recipe-link:hover { color: var(--terracotta); }

/* ============ FEATURED / STORY ============ */
.story {
  padding: 100px 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.story-img {
  position: relative;
}
.story-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.story-img .note {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--paper);
  padding: 18px 22px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  transform: rotate(3deg);
  max-width: 240px;
  line-height: 1.3;
}

.story h2 {
  font-size: clamp(34px, 4vw, 50px);
  margin-bottom: 22px;
}
.story h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--terracotta);
}
.story p {
  color: var(--soft-ink);
  margin-bottom: 18px;
  font-size: 17px;
}
.signature {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--terracotta);
  margin-top: 8px;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: 90px 32px;
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.02) 12px, rgba(255,255,255,0.02) 13px);
}
.news-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.newsletter .section-eyebrow { color: var(--mustard); }
.newsletter h2 {
  color: var(--cream);
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 16px;
}
.newsletter p {
  color: rgba(250, 243, 231, 0.75);
  margin-bottom: 32px;
}
.news-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.news-form input {
  flex: 1;
  min-width: 240px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  border: none;
  color: var(--charcoal);
  outline: none;
}
.news-form input:focus { box-shadow: 0 0 0 3px var(--mustard); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--cream-deep);
  border-top: 3px double var(--line);
  padding: 70px 32px 0;
  color: var(--ink);
}
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.foot-brand p {
  margin-top: 16px;
  color: var(--soft-ink);
  font-size: 15px;
  max-width: 320px;
}
.foot-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 10px;
}
.foot-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--terracotta);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  color: var(--ink);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.foot-col a:hover {
  color: var(--terracotta);
  padding-left: 6px;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.socials a {
  width: 38px; height: 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--charcoal);
  transition: all 0.25s ease;
}
.socials a:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
  transform: translateY(-3px);
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--soft-ink);
}
.foot-bottom .heart { color: var(--terracotta); }

/* ============ PAGE HEADER (sub-pages) ============ */
.page-hero {
  padding: 80px 32px 60px;
  text-align: center;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero .eyebrow {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--terracotta);
}
.page-hero h1 {
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -1px;
  margin: 10px 0 14px;
}
.page-hero p {
  color: var(--soft-ink);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}
.crumbs {
  margin-top: 20px;
  font-size: 13px;
  color: var(--soft-ink);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.crumbs a { color: var(--terracotta-dark); }

/* ============ ABOUT PAGE ============ */
.about-section {
  padding: 90px 32px;
}
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 90px;
}
.about-grid:nth-of-type(even) {
  grid-template-columns: 1.2fr 1fr;
}
.about-grid:nth-of-type(even) .about-img { order: 2; }
.about-img {
  position: relative;
}
.about-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.about-content h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}
.about-content h2 em {
  font-style: italic; color: var(--terracotta);
}
.about-content p {
  color: var(--soft-ink);
  margin-bottom: 16px;
  font-size: 17px;
}

.values {
  background: var(--cream-deep);
  padding: 80px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values-inner { max-width: 1180px; margin: 0 auto; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.value-card {
  background: var(--paper);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.value-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.value-card p {
  color: var(--soft-ink);
  font-size: 15px;
}

/* ============ CONTACT PAGE ============ */
.contact-section {
  padding: 90px 32px;
}
.contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info {
  background: var(--paper);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-info h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.contact-info > p {
  color: var(--soft-ink);
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
}
.contact-item:last-child { border-bottom: 1px dashed var(--line); }
.contact-item .ic {
  width: 42px; height: 42px;
  background: var(--cream-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--terracotta);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-item p {
  color: var(--soft-ink);
  font-size: 15px;
  margin: 0;
}

.contact-form {
  background: var(--paper);
  padding: 44px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  font-size: 30px;
  margin-bottom: 8px;
}
.contact-form > p {
  color: var(--soft-ink);
  margin-bottom: 28px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--line);
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 77, 58, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}

/* ============ LEGAL / POLICY PAGES ============ */
.legal-section {
  padding: 80px 32px;
}
.legal-inner {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  padding: 60px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.legal-inner .updated {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--terracotta);
  margin-bottom: 24px;
  display: block;
}
.legal-inner h2 {
  font-size: 26px;
  margin: 36px 0 14px;
  color: var(--charcoal);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--terracotta);
  display: inline-block;
}
.legal-inner h3 {
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--terracotta-dark);
}
.legal-inner p,
.legal-inner li {
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 16px;
}
.legal-inner ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
.legal-inner li { margin-bottom: 8px; }
.legal-inner a {
  border-bottom: 1px dashed var(--terracotta);
}

/* ============ RECIPES PAGE ============ */
.recipes-page-section {
  padding: 70px 32px 100px;
}
.recipes-page-inner { max-width: 1280px; margin: 0 auto; }
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr; }
  .story-inner,
  .about-grid,
  .about-grid:nth-of-type(even),
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-grid:nth-of-type(even) .about-img { order: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 50;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .hero { padding: 50px 20px 70px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; }
  .legal-inner { padding: 36px 22px; }
  .contact-form, .contact-info { padding: 28px 22px; }
  .news-form input { min-width: 100%; }
  section { padding: 60px 20px !important; }
  .story-img .note {
    right: 0;
    transform: rotate(2deg);
    font-size: 18px;
    padding: 14px 16px;
  }
}

/* =========================================================
   FOOTER — MOBILE FRIENDLY OVERRIDES
   ========================================================= */
@media (max-width: 768px) {
  .site-footer {
    padding: 50px 20px 0;
  }
  .foot-inner {
    grid-template-columns: 1fr !important;
    gap: 36px;
    padding-bottom: 36px;
    text-align: center;
  }
  .foot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .foot-brand .brand {
    justify-content: center;
  }
  .foot-brand p {
    max-width: 100%;
    margin: 14px auto 0;
    font-size: 14.5px;
  }
  .foot-col h4 {
    font-size: 15px;
    padding-bottom: 8px;
  }
  .foot-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .foot-col ul {
    padding: 0;
  }
  .foot-col li {
    margin-bottom: 8px;
  }
  .foot-col a {
    font-size: 14.5px;
    display: inline-block;
    padding: 4px 0;
  }
  .foot-col a:hover {
    padding-left: 0;
  }
  .socials {
    justify-content: center;
  }
  .socials a {
    width: 42px;
    height: 42px;
  }
  .foot-bottom {
    padding: 18px 10px;
    font-size: 12.5px;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .foot-brand .brand-text .name {
    font-size: 22px;
  }
  .foot-brand .brand-text .top {
    font-size: 16px;
  }
  .foot-bottom {
    font-size: 12px;
  }
}

/* =========================================================
   RECIPE DETAIL PAGE STYLES
   ========================================================= */
.recipe-hero {
  padding: 60px 32px 40px;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.recipe-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.recipe-hero-text .eyebrow {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: 8px;
}
.recipe-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 6px 0 16px;
  letter-spacing: -0.5px;
}
.recipe-hero-text .lede {
  color: var(--soft-ink);
  font-size: 17px;
  margin-bottom: 22px;
  max-width: 520px;
}
.recipe-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 6px;
}
.recipe-hero-stats .stat {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 4px 12px;
  border-right: 1px dashed var(--line);
}
.recipe-hero-stats .stat:last-child { border-right: none; }
.recipe-hero-stats .stat .label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--soft-ink);
  display: block;
  margin-bottom: 2px;
}
.recipe-hero-stats .stat .value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
}
.recipe-hero-img {
  position: relative;
  aspect-ratio: 4/5;
}
.recipe-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.recipe-hero-img .tag {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--mustard);
  color: var(--charcoal);
  padding: 12px 18px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}

.recipe-body-section {
  padding: 80px 32px;
}
.recipe-body-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.ingredients-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.ingredients-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--terracotta);
  display: inline-block;
}
.ingredients-card .servings {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--terracotta);
  margin: 4px 0 18px;
}
.ingredients-card ul {
  list-style: none;
  padding: 0;
}
.ingredients-card li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ingredients-card li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}
.ingredients-card li:last-child { border-bottom: none; }
.ingredients-card .qty {
  font-weight: 600;
  color: var(--terracotta-dark);
}

.instructions h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 8px;
}
.instructions .intro {
  color: var(--soft-ink);
  margin-bottom: 28px;
  font-size: 16.5px;
  line-height: 1.7;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 64px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--terracotta-dark);
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.steps p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.tips-box {
  background: var(--cream-deep);
  border-left: 4px solid var(--mustard);
  padding: 24px 28px;
  margin-top: 36px;
}
.tips-box h3 {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.tips-box ul {
  list-style: none;
  padding: 0;
}
.tips-box li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}
.tips-box li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--mustard);
  font-size: 14px;
}

.related-section {
  padding: 80px 32px;
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.related-inner { max-width: 1180px; margin: 0 auto; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .recipe-hero-inner,
  .recipe-body-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ingredients-card { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .recipe-hero { padding: 40px 20px 30px; }
  .recipe-body-section { padding: 50px 20px; }
  .related-section { padding: 50px 20px; }
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .recipe-hero-stats .stat { padding: 4px 6px; min-width: 70px; }
  .recipe-hero-stats .stat .value { font-size: 16px; }
  .recipe-hero-img .tag { font-size: 18px; padding: 10px 14px; right: 0; }
  .ingredients-card { padding: 26px 22px; }
  .ingredients-card h2 { font-size: 22px; }
  .instructions h2 { font-size: 26px; }
  .steps li { padding-left: 56px; padding-bottom: 18px; margin-bottom: 18px; }
  .steps li::before { width: 38px; height: 38px; font-size: 17px; }
  .steps h3 { font-size: 18px; }
}
