/* ===== Colors – change these to re-theme the whole site ===== */
:root {
  --primary: #1f5c45;       /* deep herb green */
  --primary-dark: #143d2e;
  --accent: #f2a541;        /* saffron */
  --bg: #fbfaf6;
  --tint: #eef4ee;
  --text: #22302a;
  --muted: #66746d;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 61, 46, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.2; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 40px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: .25s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { background: var(--accent); color: var(--text); }
.btn--accent { background: var(--accent); color: var(--text); }
.btn--accent:hover { filter: brightness(.95); }

.link { color: var(--primary); font-weight: 600; font-size: 14px; }
.link:hover { color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6ebe5;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 8px; font-family: "Playfair Display", serif; font-size: 24px; font-weight: 700; color: var(--primary); }
.logo__icon { font-size: 26px; }
.logo__text span { color: var(--accent); margin: 0 2px; }
.logo--light { color: var(--white); }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 500; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: .25s; }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: var(--tint); color: var(--primary);
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--primary); transition: .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Search overlay ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 61, 46, .85);
  display: none; align-items: flex-start; justify-content: center;
  padding: 100px 16px 16px;
}
.search-overlay.open { display: flex; }
.search-box { width: min(640px, 100%); position: relative; }
.search-box input {
  width: 100%; padding: 18px 60px 18px 22px; font-size: 17px;
  border-radius: 50px; border: none; outline: none; font-family: inherit;
}
.search-box .icon-btn { position: absolute; right: 8px; top: 8px; }
.search-results { list-style: none; margin-top: 14px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.search-results li a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.search-results li a:hover { background: var(--tint); }
.search-results img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.search-results .empty { padding: 14px; color: var(--muted); }

/* ===== Hero ===== */
.hero { padding: 70px 0 90px; background: radial-gradient(circle at 85% 20%, #dfeee3 0, transparent 45%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.badge { display: inline-block; background: var(--tint); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--primary); font-weight: 500; }

.hero__images { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 16px; }
.hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__img--1 { grid-row: 1 / 3; }
.hero__stat {
  position: absolute; left: -24px; bottom: 30px;
  background: var(--white); padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hero__stat strong { font-size: 26px; color: var(--primary); font-family: "Playfair Display", serif; }
.hero__stat span { font-size: 13px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--tinted { background: var(--tint); }
.section__head { text-align: center; margin-bottom: 46px; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); }
.section__intro { max-width: 680px; margin: 14px auto 0; color: var(--muted); }
.section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; align-items: end; }
.section__head--split p { color: var(--muted); }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.eyebrow--light { color: var(--accent); }

/* ===== Categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.cat { text-align: center; }
.cat img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: var(--shadow); transition: .3s;
}
.cat:hover img { transform: translateY(-6px) scale(1.03); border-color: var(--accent); }
.cat span { display: block; margin-top: 12px; font-weight: 600; }

/* ===== Recipe cards ===== */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.recipe-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; display: flex; flex-direction: column; }
.recipe-card:hover { transform: translateY(-6px); }
.recipe-card__img { position: relative; overflow: hidden; }
.recipe-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: .5s; }
.recipe-card:hover .recipe-card__img img { transform: scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--text); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 50px; }
.recipe-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.recipe-card__body h3 { font-size: 21px; }
.recipe-card__body p { color: var(--muted); font-size: 14px; flex: 1; }

.recipe-card--featured { grid-column: span 2; flex-direction: row; }
.recipe-card--featured .recipe-card__img { flex: 1.3; }
.recipe-card--featured .recipe-card__img img { height: 100%; aspect-ratio: auto; }
.recipe-card--featured .recipe-card__body { flex: 1; justify-content: center; padding: 34px; }
.recipe-card--featured h3 { font-size: 28px; }

/* ===== Latest ===== */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { padding: 8px 20px; border-radius: 50px; border: 2px solid var(--primary); background: transparent; color: var(--primary); font-family: inherit; font-weight: 500; cursor: pointer; transition: .25s; }
.filter.active, .filter:hover { background: var(--primary); color: var(--white); }

.latest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.latest { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); align-items: center; transition: .3s; }
.latest:hover { transform: translateX(4px); }
.latest.hide { display: none; }
.latest img { width: 170px; height: 140px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.latest time { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; }
.latest h3 { font-size: 19px; margin: 4px 0 6px; }
.latest p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* ===== About ===== */
.about { background: var(--primary); color: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about__img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: 18px 18px 0 var(--accent); }
.about h2 { font-size: clamp(30px, 4vw, 44px); }
.about__role { color: var(--accent); font-weight: 500; margin: 6px 0 18px; }
.about p { opacity: .92; margin-bottom: 26px; }

/* ===== Newsletter ===== */
.newsletter { padding: 70px 0; }
.newsletter__box { background: var(--tint); border-radius: 28px; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter h2 { font-size: 30px; margin-bottom: 6px; }
.newsletter p { color: var(--muted); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input { flex: 1; min-width: 200px; padding: 13px 20px; border-radius: 50px; border: 2px solid #d4e0d6; font-family: inherit; font-size: 15px; outline: none; }
.newsletter input:focus { border-color: var(--primary); }
#formMsg { width: 100%; font-size: 13px; }

/* ===== Footer ===== */
.footer { background: #10291f; color: #c9d6cf; padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 17px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer__note { font-size: 14px; margin-top: 16px; opacity: .8; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.socials a:hover { background: var(--accent); color: var(--text); }
.footer__mail { font-size: 14px; margin-top: 16px; }
.footer__bottom { text-align: center; padding: 22px 16px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* ===== Back to top ===== */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--accent); color: var(--text); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid #e6ebe5;
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.open { max-height: 520px; }
  .nav a { padding: 14px 16px; border-top: 1px solid #eef1ec; }
  .nav a::after { display: none; }

  .hero__grid, .about__grid, .newsletter__box, .section__head--split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero__stat { left: 12px; }
  .latest-grid { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card--featured { grid-column: auto; flex-direction: column; }
  .recipe-card--featured .recipe-card__img img { aspect-ratio: 16/10; }
  .recipe-card--featured .recipe-card__body { padding: 22px; }
  .hero__images { grid-template-rows: 150px 150px; }
  .latest { flex-direction: column; align-items: stretch; }
  .latest img { width: 100%; height: 180px; }
  .newsletter__box { padding: 28px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   INNER PAGES (recipes list, recipe detail, about, contact, policy)
   ========================================================= */
.nav a.active { color: var(--primary); }
.nav a.active::after { width: 100%; }
.h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 14px; }
.btn--sm { padding: 8px 18px; font-size: 14px; }

a.recipe-card__img { display: block; }
.latest > a:first-child { display: block; flex-shrink: 0; }
.latest h3 a:hover { color: var(--primary); }
.recipe-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.recipe-card h3 a:hover { color: var(--primary); }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb--light, .breadcrumb--light a { color: #e7efe9; }

/* Page banner */
.page-hero {
  background-size: cover; background-position: center;
  background-color: var(--primary);
  color: var(--white); text-align: center; padding: 80px 0 70px;
}
.page-hero--plain { background-image: linear-gradient(135deg, var(--primary), #10291f); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.page-hero p { opacity: .9; max-width: 620px; margin: 0 auto; }
.page-hero .breadcrumb { margin-bottom: 14px; }

/* Recipes list toolbar */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.filters--left { justify-content: flex-start; margin-bottom: 0; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  padding: 10px 16px; border-radius: 50px; border: 2px solid #d4e0d6; font-family: inherit; font-size: 14px; background: var(--white); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 50px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--primary); background: none; color: var(--primary); font-weight: 600; cursor: pointer; font-family: inherit; }
.pagination button.active, .pagination button:hover { background: var(--primary); color: var(--white); }

/* ---------- Recipe detail ---------- */
.recipe-page { padding: 40px 0 20px; }
.r-head { max-width: 820px; }
.r-cat { display: inline-block; background: var(--accent); color: var(--text); font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 50px; margin-bottom: 14px; }
.r-head h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 12px; }
.r-excerpt { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.r-byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.avatar--lg { width: 80px; height: 80px; font-size: 24px; margin: 0 auto 12px; border: 4px solid var(--accent); }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.r-actions button { font-family: inherit; background: none; }
.r-hero { width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }

.r-info {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: -40px auto 50px; width: min(900px, 92%); position: relative; overflow: hidden;
}
.r-info div { padding: 18px 10px; text-align: center; border-right: 1px solid #eef1ec; }
.r-info div:last-child { border-right: none; }
.r-info span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.r-info strong { color: var(--primary); font-size: 16px; }

.r-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.r-section { margin-bottom: 44px; }
.r-section h2 { font-size: 28px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--tint); position: relative; }
.r-section h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 60px; height: 3px; background: var(--accent); }
.r-section h3 { font-family: "Poppins", sans-serif; font-size: 17px; margin: 18px 0 10px; color: var(--primary); }
.r-section p { margin-bottom: 12px; }
.r-intro { font-size: 17px; }

.ingredients { list-style: none; display: grid; gap: 8px; }
.ingredients li { background: var(--white); border: 1px solid #e6ebe5; border-radius: 12px; padding: 10px 14px; }
.ingredients label { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.ingredients input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.ingredients li.done span { text-decoration: line-through; color: var(--muted); }

.check-list, .tip-list { list-style: none; display: grid; gap: 10px; }
.check-list li::before { content: "✔"; color: var(--primary); margin-right: 10px; font-weight: 700; }
.tip-list li { background: #fff7e8; border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.tip-list li::before { content: "💡 "; }

.steps { list-style: none; display: grid; gap: 28px; }
.step { display: flex; gap: 18px; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; font-size: 18px; }
.step__body { flex: 1; }
.step__body h3 { margin-top: 8px; }
.step__body img { margin-top: 12px; border-radius: 14px; width: 100%; max-width: 560px; }

.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nutrition div { background: var(--tint); border-radius: 14px; text-align: center; padding: 16px 8px; }
.nutrition strong { display: block; font-size: 22px; color: var(--primary); }
.nutrition span { font-size: 13px; color: var(--muted); }
.small-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Printable recipe card */
.recipe-box { border: 2px solid var(--primary); border-radius: 22px; overflow: hidden; margin-bottom: 44px; background: var(--white); scroll-margin-top: 90px; }
.recipe-box__head { display: flex; gap: 22px; background: var(--primary); color: var(--white); padding: 24px; align-items: center; }
.recipe-box__head img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--accent); flex-shrink: 0; }
.recipe-box__head h2 { font-size: 26px; margin-bottom: 6px; }
.recipe-box__head p { opacity: .9; font-size: 14px; margin-bottom: 12px; }
.recipe-box__info { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--tint); }
.recipe-box__info div { padding: 14px; text-align: center; font-weight: 600; color: var(--primary); }
.recipe-box__info span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.recipe-box__body { padding: 24px 28px; }
.recipe-box__body .ingredients li { border: none; border-bottom: 1px dashed #dfe6df; border-radius: 0; padding: 6px 0; background: none; }
.recipe-box__body h3:not(.box-title) { font-family: "Poppins", sans-serif; font-size: 15px; color: var(--primary); margin: 12px 0 6px; }
.box-title { font-size: 22px; margin: 22px 0 12px; }
.box-title:first-child { margin-top: 0; }
.method { padding-left: 22px; display: grid; gap: 10px; }
.method li::marker { color: var(--primary); font-weight: 700; }
.recipe-box__body ul:not(.ingredients) { padding-left: 20px; display: grid; gap: 6px; }

/* FAQ */
.faq { background: var(--white); border: 1px solid #e6ebe5; border-radius: 14px; margin-bottom: 10px; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; transition: .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 16px; color: var(--muted); margin: 0; }

/* Share + prev/next */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 0; border-top: 1px solid #e6ebe5; border-bottom: 1px solid #e6ebe5; margin-bottom: 24px; }
.share span { font-weight: 600; }
.share a, .share button { padding: 6px 16px; border-radius: 50px; background: var(--tint); color: var(--primary); font-size: 14px; font-weight: 500; border: none; cursor: pointer; font-family: inherit; }
.share a:hover, .share button:hover { background: var(--primary); color: var(--white); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.post-nav a { background: var(--white); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); font-weight: 600; font-family: "Playfair Display", serif; }
.post-nav a:hover { color: var(--primary); }
.post-nav span { display: block; font-family: "Poppins", sans-serif; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.post-nav__next { text-align: right; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: grid; gap: 24px; }
.widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.widget h3 { font-size: 20px; margin-bottom: 14px; }
.author-widget { text-align: center; }
.author-widget p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.cat-list { list-style: none; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef1ec; font-size: 15px; }
.cat-list a:hover { color: var(--primary); padding-left: 4px; }
.cat-list em { font-style: normal; background: var(--tint); color: var(--primary); border-radius: 50px; padding: 0 10px; font-size: 13px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.mini img { width: 70px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini strong { display: block; font-size: 14px; line-height: 1.3; }
.mini small { color: var(--muted); font-size: 12px; }
.mini:hover strong { color: var(--primary); }

.similar { padding: 40px 0 30px; }
.similar h2 { font-size: 32px; text-align: center; margin-bottom: 30px; }

/* ---------- About page ---------- */
.about-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-page__img img { border-radius: 24px; box-shadow: -18px 18px 0 var(--tint); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about-page p { color: var(--muted); margin-bottom: 14px; }
.stats { display: flex; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 30px; color: var(--primary); font-family: "Playfair Display", serif; }
.stats span { font-size: 14px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--white); padding: 28px 22px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.value span { font-size: 36px; }
.value h3 { margin: 10px 0 8px; font-size: 20px; }
.value p { font-size: 14px; color: var(--muted); }
.cta { text-align: center; background: var(--primary); color: var(--white); border-radius: 28px; padding: 54px 24px; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.cta p { opacity: .9; margin-bottom: 22px; }
.cta .btn--primary { background: var(--accent); color: var(--text); }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact__info > p { color: var(--muted); margin-bottom: 26px; }
.info-item { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.info-item > span { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.info-item p { color: var(--muted); font-size: 14px; }
.contact__form { background: var(--white); padding: 34px; border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact__form input, .contact__form select, .contact__form textarea {
  padding: 12px 16px; border-radius: 12px; border: 2px solid #e1e8e2; font-family: inherit; font-size: 15px; outline: none; resize: vertical; background: var(--white);
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-color: var(--primary); }
.contact__form .btn { justify-self: start; }
.form-status { font-size: 14px; }
.form-status.error { color: #c0392b; }
.form-status.success { color: var(--primary); }

/* ---------- Policy page ---------- */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.policy__nav { position: sticky; top: 92px; display: grid; gap: 6px; background: var(--white); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.policy__nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.policy__nav a:hover { background: var(--tint); color: var(--primary); }
.policy__body article { margin-bottom: 50px; scroll-margin-top: 100px; }
.policy__body h2 { font-size: 30px; margin-bottom: 14px; }
.policy__body h3 { font-family: "Poppins", sans-serif; font-size: 17px; margin: 18px 0 6px; color: var(--primary); }
.policy__body p { color: var(--muted); margin-bottom: 12px; }

/* ---------- Responsive for inner pages ---------- */
@media (max-width: 1024px) {
  .r-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-page, .contact, .policy { grid-template-columns: 1fr; }
  .policy__nav { position: static; }
  .toolbar { flex-direction: column; }
  .filters--left { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filters--left .filter { white-space: nowrap; }
}
@media (max-width: 600px) {
  .r-info { grid-template-columns: repeat(3, 1fr); margin-top: -24px; }
  .r-info div:nth-child(3) { border-right: none; }
  .r-info div:nth-child(n+4) { border-top: 1px solid #eef1ec; }
  .nutrition, .recipe-box__info { grid-template-columns: repeat(2, 1fr); }
  .recipe-box__head { flex-direction: column; text-align: center; }
  .recipe-box__head img { width: 110px; height: 110px; }
  .recipe-box__body { padding: 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; }
  .contact__form { padding: 22px; }
  .contact__form .row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .step { gap: 12px; }
  .step__num { width: 36px; height: 36px; font-size: 15px; }
}

/* ---------- Kitchen guides ---------- */
#guidesGrid .latest p,
#guidesList .recipe-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-wrap { max-width: 820px; }
.post-kicker { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.post .dek { font-size: 18px; color: var(--muted); margin-bottom: 12px; }
.post h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.post h2 { font-size: clamp(26px, 3vw, 34px); margin: 36px 0 12px; scroll-margin-top: 90px; }
.post h3 { font-family: "Poppins", sans-serif; font-size: 18px; color: var(--primary); margin: 22px 0 8px; scroll-margin-top: 90px; }
.post p { margin-bottom: 14px; }
.post ul, .post ol { margin: 0 0 16px 1.25em; }
.post li { margin: 6px 0; }
.post a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post .toc { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin: 22px 0 32px; }
.post .toc h2 { margin: 0 0 10px; font-size: 22px; }
.post .toc ol { margin-bottom: 0; }
.post table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; margin: 8px 0 20px; font-size: 15px; }
.post th, .post td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e6ebe5; vertical-align: top; }
.post th { background: var(--tint); color: var(--primary-dark); }
.post caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.post-back { margin-top: 36px; }

/* ---------- Print: only the recipe card ---------- */
@media print {
  body * { visibility: hidden; }
  .recipe-box, .recipe-box * { visibility: visible; }
  .recipe-box { position: absolute; left: 0; top: 0; width: 100%; border: 1px solid #999; }
  .recipe-box button { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
