/* HomeBite Kitchen — style.css */
:root {
  --brand: #d35400;
  --brand-dark: #a84300;
  --cream: #fdf8f2;
  --ink: #2d2a26;
  --muted: #6f6a63;
  --line: #eadfd2;
  --green: #4a7c59;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(45, 42, 38, .08);
}

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

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.logo-text span { color: var(--brand); }
.main-nav ul { display: flex; gap: 26px; list-style: none; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .97rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff4e6 0%, #fdeedd 55%, #fbe3cc 100%);
  padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.hero p { max-width: 640px; margin: 0 0 28px; color: var(--muted); font-size: 1.13rem; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img img {
  width: 100%; height: 340px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Images */
.card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.page-img { margin: 6px 0 28px; }
.page-img img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.recipe-header-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.recipe-hero-img img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.landing-hero-img { max-width: 720px; margin: 40px auto 0; }
.landing-hero-img img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,.25); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; transition: all .2s ease; border: 2px solid var(--brand);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }

/* Recipe cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card-emoji { font-size: 3.4rem; text-align: center; padding: 34px 0 10px; background: #fff8f0; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-meta { display: flex; gap: 14px; margin-top: 14px; font-size: .85rem; color: var(--green); font-weight: 700; }

/* Recipe page */
.recipe-header { background: #fff8f0; padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.recipe-header h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.recipe-header .intro { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.recipe-meta-bar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
.recipe-meta-bar span {
  background: #fff; border: 1px solid var(--line); padding: 8px 16px;
  border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--ink);
}
.recipe-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 48px 0; }
.ingredients-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 90px;
}
.ingredients-box h2 { font-size: 1.3rem; margin-bottom: 14px; }
.ingredients-box ul { list-style: none; }
.ingredients-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.ingredients-box li:last-child { border-bottom: none; }
.method h2 { font-size: 1.5rem; margin: 26px 0 14px; }
.method ol { counter-reset: step; list-style: none; }
.method ol li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.method ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: 'Nunito Sans', sans-serif;
}
.tip-box {
  background: #eef5ef; border-left: 4px solid var(--green);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.tip-box strong { color: var(--green); }

/* Prose pages (legal, about) */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 20px 72px; }
.prose h1 { font-size: 2.2rem; margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }

/* Contact form */
.contact-form { max-width: 560px; margin: 30px auto 0; background: #fff; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--cream);
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #eef5ef; color: var(--green); border: 1px solid #cfe3d4; }
.alert-error { background: #fdecea; color: #b3372c; border: 1px solid #f3c8c3; }

/* Landing page */
.landing-hero {
  background: linear-gradient(135deg, #d35400 0%, #b8480a 100%);
  color: #fff; text-align: center; padding: 80px 0;
}
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.landing-hero p { max-width: 620px; margin: 0 auto 30px; font-size: 1.15rem; opacity: .95; }
.landing-hero .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.landing-hero .btn-primary:hover { background: var(--cream); color: var(--brand-dark); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 10px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); }
.benefit .emoji { font-size: 2.6rem; margin-bottom: 12px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .95rem; }
.steps { max-width: 700px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 4px 22px; }
.faq-item summary { font-weight: 700; padding: 16px 0; cursor: pointer; list-style: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--brand); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding-bottom: 18px; color: var(--muted); }
.cta-band { background: #fff8f0; text-align: center; padding: 64px 0; border-top: 1px solid var(--line); }
.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
.site-footer { background: #2d2a26; color: #d8d3cc; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; padding: 54px 20px 40px; }
.footer-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: 'Nunito Sans', sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #d8d3cc; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: .93rem; }
.footer-bottom { border-top: 1px solid #423e39; padding: 18px 0; text-align: center; font-size: .87rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .recipe-header-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p { margin: 0 auto 28px; }
  .hero .btn-row { justify-content: center; }
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav ul li { border-top: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 14px 22px; border-bottom: none; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav-toggle-label {
    display: block; width: 28px; height: 22px; position: relative; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ''; position: absolute; height: 3px; width: 100%;
    background: var(--ink); border-radius: 2px; left: 0; transition: all .2s;
  }
  .nav-toggle-label span { top: 9px; }
  .nav-toggle-label span::before { top: -9px; }
  .nav-toggle-label span::after { top: 9px; }
  .footer-grid { grid-template-columns: 1fr; }
}
