/* ==========================================================================
   The Everyday Kitchen Cookbook — site styles
   Self-contained, no external fonts or libraries required.
   ========================================================================== */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2b2b2b;
  --muted: #6d675f;
  --brand: #2f6b4f;
  --brand-dark: #24543e;
  --accent: #c96f3a;
  --accent-dark: #a9582a;
  --border: #e7dfd4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: #f3ede3; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 640px; }
.section-sub { color: var(--muted); max-width: 620px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(201, 111, 58, 0.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--brand-dark); text-decoration: none; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--brand); }
.site-nav .nav-cta { color: #fff; background: var(--brand); padding: 9px 18px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 16px; }
.hero-note { color: var(--muted); font-size: 0.9rem; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* Book cover mockup ------------------------------------------------------ */
.book-wrap { display: flex; justify-content: center; }
.book-cover {
  position: relative;
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 3 / 4.2;
  border-radius: 6px 12px 12px 6px;
  background:
    linear-gradient(160deg, #2f6b4f 0%, #24543e 60%, #1d4633 100%);
  color: #fff;
  padding: 34px 30px;
  box-shadow: 0 24px 50px rgba(36, 84, 62, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(255,255,255,0.08));
  border-radius: 6px 0 0 6px;
}
.book-cover .bc-kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; opacity: 0.85; }
.book-cover .bc-title { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.book-cover .bc-sub { font-size: 0.9rem; opacity: 0.9; }
.book-cover .bc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.9; }
.bc-chip { background: var(--accent); padding: 4px 10px; border-radius: 999px; font-weight: 700; }

/* Stat strip -------------------------------------------------------------- */
.stat-strip { background: var(--brand); color: #fff; padding: 26px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-family: var(--serif); font-size: 2rem; display: block; }
.stat span { font-size: 0.9rem; opacity: 0.85; }

/* Category cards ----------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cat-card .cat-icon { font-size: 2.2rem; }
.cat-card h3 { font-size: 1.1rem; margin: 10px 0 4px; }
.cat-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Sample recipes ----------------------------------------------------------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.recipe-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.recipe-card .rc-body { padding: 22px; }
.recipe-card .rc-tag { color: var(--accent); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 700; }
.recipe-card h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.recipe-card .rc-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.recipe-card ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }

/* Benefits ----------------------------------------------------------------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.benefit { background: var(--surface); padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); }
.benefit .b-icon { font-size: 1.8rem; }
.benefit h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.benefit p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Testimonials -------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.quote { background: var(--surface); padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.quote p { font-style: italic; color: var(--ink); }
.quote .q-who { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.quote .q-who::before { content: "— "; color: var(--accent); }

/* FAQ ------------------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 36px auto 0; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .faq-plus { color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Buy CTA ---------------------------------------------------------------------- */
.buy-cta { background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; text-align: center; }
.buy-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.buy-cta .price { font-family: var(--serif); font-size: 3rem; margin: 10px 0 4px; }
.buy-cta .price small { font-size: 1.2rem; }
.buy-cta p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 26px; }
.buy-cta .btn-primary { background: var(--accent); }
.buy-cta .btn-primary:hover { background: var(--accent-dark); }
.buy-guarantee { margin-top: 18px; font-size: 0.85rem; opacity: 0.8; }

/* Footer ------------------------------------------------------------------------- */
.site-footer { background: #23211e; color: #bdb7ad; padding: 44px 0; font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #e8e2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Thank-you page ------------------------------------------------------------------ */
.thank-wrap { min-height: 70vh; display: flex; align-items: center; }
.thank-card {
  background: var(--surface);
  max-width: 640px;
  margin: 40px auto;
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.thank-icon { font-size: 3rem; }
.thank-card h1 { margin-top: 8px; }
.download-box { background: #f3ede3; border-radius: 12px; padding: 22px; margin: 26px 0; text-align: left; }
.download-box .dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* Responsive ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-wrap { order: -1; }
  .cat-grid, .recipe-grid, .benefit-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .cat-grid, .recipe-grid, .benefit-grid, .quote-grid { grid-template-columns: 1fr; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .nav-toggle { display: block; }
}
