/* =========================================================
   Homestead Table — Shared Stylesheet
   Modern, clean design system
   ========================================================= */

:root {
  --color-bg: #fffaf3;
  --color-surface: #ffffff;
  --color-ink: #2b2420;
  --color-ink-soft: #5c5148;
  --color-primary: #c0392b;
  --color-primary-dark: #9c2c1f;
  --color-accent: #e08a2e;
  --color-accent-soft: #fbe9d2;
  --color-line: #eee3d3;
  --color-success: #4c7a51;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 36, 32, 0.10);
  --shadow-lg: 0 16px 40px rgba(43, 36, 32, 0.14);
  --max-width: 1160px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--color-ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-light:hover { background: var(--color-accent-soft); color: var(--color-primary-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-ink);
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-ink);
}
.mobile-panel { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .mobile-panel {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--color-line);
  }
  .mobile-panel.open { display: flex; }
  .mobile-panel a {
    padding: 12px 4px;
    color: var(--color-ink);
    font-weight: 600;
    border-bottom: 1px solid var(--color-line);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 0.35em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2;
  position: relative;
}
.ph-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--g1, #f3c47a), var(--g2, #c0392b));
  color: rgba(255,255,255,0.9);
  overflow: hidden;
}
.ph-gradient.small { font-size: 2.6rem; aspect-ratio: 4/3; border-radius: var(--radius-md); }

/* Real photos: fill the placeholder box completely. If a photo fails to
   load (e.g. the file hasn't been added yet), onerror hides the <img> and
   the gradient + emoji behind it shows through as a graceful fallback. */
.ph-gradient img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Category chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 40px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-line);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-ink);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card-body p { color: var(--color-ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--color-line);
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

/* ---------- Category banner (category pages) ---------- */
.cat-banner {
  padding: 56px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent-soft), var(--color-bg));
}
.cat-banner h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.cat-banner p { color: var(--color-ink-soft); max-width: 58ch; margin: 0 auto; }

/* ---------- Recipe article ---------- */
.recipe {
  scroll-margin-top: 90px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .recipe { padding: 22px; } }

.recipe-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  margin-bottom: 20px;
}
@media (max-width: 760px) { .recipe-top { grid-template-columns: 1fr; } }

.recipe h2 { font-size: 1.6rem; margin-bottom: 8px; }
.recipe .tagline { color: var(--color-ink-soft); margin-bottom: 16px; }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 22px;
}
.stat-strip div { font-size: 0.85rem; color: var(--color-ink-soft); }
.stat-strip strong { display: block; color: var(--color-ink); font-size: 0.95rem; }

.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}
@media (max-width: 700px) { .recipe-columns { grid-template-columns: 1fr; } }

.recipe h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.recipe ul.ingredients {
  list-style: none;
  margin: 0; padding: 0;
}
.recipe ul.ingredients li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-line);
  font-size: 0.95rem;
}
.recipe ol.steps {
  margin: 0; padding-left: 22px;
}
.recipe ol.steps li {
  padding: 6px 0 6px 6px;
  margin-bottom: 4px;
  font-size: 0.97rem;
}
.tip-box {
  margin-top: 20px;
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.tip-box strong { color: var(--color-primary-dark); }

/* ---------- Two-col content blocks (about, etc) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.value-list { list-style: none; margin: 0; padding: 0; }
.value-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}
.value-list .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8cfc4; max-width: 52ch; margin: 0 auto 22px; }
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-line);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 26px;
}
.info-card h3 { font-size: 1.05rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--color-line); font-size: 0.92rem; }

/* ---------- Policy pages ---------- */
.policy-body h2 { font-size: 1.3rem; margin-top: 34px; }
.policy-body p, .policy-body li { color: var(--color-ink-soft); }
.policy-body { max-width: 780px; margin: 0 auto; }
.updated-note {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 30px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--color-ink-soft); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: #241d19;
  color: #cdc3b8;
  padding: 56px 0 26px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #a89c8d; font-size: 0.92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cdc3b8; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #3a3129;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8c8073;
}
.footer-bottom a { color: #8c8073; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #241d19;
  color: #e7ded2;
  border-top: 1px solid #3a3129;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 0.88rem;
  color: #cdc3b8;
}
.cookie-banner-inner a { color: #f2c94c; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner .btn-outline {
  border-color: #6b6053;
  color: #e7ded2;
}
.cookie-banner .btn-outline:hover { background: #3a3129; color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
