/* ============================================================
   BUCĂTĂRIA NOASTRĂ — css/style.css
   Culorile sunt definite o singură dată, aici sus.
   ============================================================ */

:root {
  --bg:        #FAF7F2;   /* fundal cald, aproape alb */
  --surface:   #FFFFFF;   /* carduri */
  --sand:      #F1E7DA;   /* lemn deschis */
  --sand-deep: #E6D6C1;
  --sage:      #6E7556;   /* verde salvie, ca peretele din poze */
  --sage-soft: #E8EADF;
  --clay:      #B8744E;   /* accent discret, morcov */
  --text:      #2B2824;
  --muted:     #7B736A;
  --line:      #E8E1D7;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(43,40,36,.04), 0 6px 24px rgba(43,40,36,.06);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --wrap:  1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 .6rem;
}
.muted { color: var(--muted); }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
}
.logo em { font-style: italic; color: var(--sage); }
.nav { display: flex; gap: 28px; font-size: .95rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin: 1.2rem 0 2rem; }
.hero-img {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-img { aspect-ratio: 4 / 3; }
}

/* ─── SEARCH ─────────────────────────────────────────────── */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
  max-width: 480px;
}
.search svg { flex: none; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 8px 0;
}
.search button {
  border: 0; background: var(--sage); color: #fff; border-radius: 999px;
  padding: 10px 20px; cursor: pointer; font-weight: 500;
}
.search button:hover { background: #5d6448; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.section-head a { color: var(--sage); font-size: .95rem; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* Moduri de a găti (Rapid, Cu copiii, Sănătos) */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.way {
  background: var(--sand); border-radius: var(--radius); padding: 28px;
  transition: background .2s, transform .2s;
}
.way:hover { background: var(--sand-deep); transform: translateY(-2px); }
.way .icon { font-size: 1.6rem; margin-bottom: 14px; }
.way h3 { margin-bottom: 6px; }
.way p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) {
  .ways { grid-template-columns: 1fr; gap: 10px; }
  .way { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 18px 20px; }
  .way .icon { grid-row: span 2; margin: 0; font-size: 1.4rem; }
  .way h3 { margin: 0; font-size: 1.1rem; }
}

/* Categorii */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: border-color .2s, transform .2s;
}
.cat:hover { border-color: var(--sage); transform: translateY(-2px); }
.cat .icon { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.cat span.name { font-size: .92rem; }
.cat span.count { display: block; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cats { grid-template-columns: repeat(2, 1fr); } }

/* ─── RECIPE CARDS ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card-img {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; background: var(--sand); margin-bottom: 14px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 2.6rem; background: linear-gradient(135deg, var(--sand), var(--sand-deep));
}
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.92); color: var(--text);
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card .cat-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.card h3 { margin: 4px 0 6px; transition: color .2s; }
.card:hover h3 { color: var(--sage); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ─── LISTING PAGE ───────────────────────────────────────── */
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--muted); max-width: 36em; }
.filters { display: grid; gap: 16px; margin: 24px 0 36px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 16px; font-size: .9rem; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--sage); }
.chip.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.chip.soft.on { background: var(--sage-soft); color: var(--text); border-color: var(--sage); }
.results-info { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line);
}

/* ─── RECIPE PAGE ────────────────────────────────────────── */
.recipe-head { padding: 48px 0 28px; max-width: 760px; }
.recipe-head .back { font-size: .9rem; color: var(--muted); display: inline-block; margin-bottom: 20px; }
.recipe-head .back:hover { color: var(--text); }
.recipe-head p.excerpt { font-size: 1.1rem; color: var(--muted); margin: 1rem 0 0; }
.recipe-hero {
  border-radius: var(--radius); overflow: hidden; background: var(--sand);
  aspect-ratio: 16 / 9; margin-bottom: 32px;
}
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .placeholder { font-size: 4rem; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 40px;
}
.fact { padding: 18px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact small { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.recipe-body { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
@media (max-width: 860px) { .recipe-body { grid-template-columns: 1fr; gap: 40px; } }
.intro { max-width: 680px; margin-bottom: 40px; font-size: 1.05rem; }
.intro p { margin: 0 0 1em; }

.ingredients {
  background: var(--sand); border-radius: var(--radius); padding: 28px;
  position: sticky; top: 92px;
}
@media (max-width: 860px) { .ingredients { position: static; } }
.ingredients h2, .steps h2 { font-size: 1.5rem; margin-bottom: 18px; }
.servings { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.servings button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sand-deep);
  background: var(--surface); cursor: pointer; line-height: 1;
}
.servings strong { color: var(--text); min-width: 1.5em; text-align: center; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { padding: 9px 0; border-bottom: 1px solid var(--sand-deep); }
.ing-list li:last-child { border-bottom: 0; }
.ing-list li.group {
  border: 0; padding: 18px 0 4px; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sage);
}
.ing-list label { display: flex; gap: 12px; cursor: pointer; align-items: baseline; }
.ing-list input { accent-color: var(--sage); transform: translateY(2px); }
.ing-list input:checked + span { text-decoration: line-through; color: var(--muted); }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step-list li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 0 0 24px;
}
.step-list li::before {
  content: counter(s);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--sage); color: var(--sage);
  font-family: var(--serif); font-size: 1.05rem;
}
.step-list li p { margin: 5px 0 0; }

.recipe-video { margin: 8px 0 24px; }
.recipe-video video {
  width: 100%; max-width: 320px; display: block; border-radius: var(--radius); background: var(--sand);
}
.recipe-video figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.recipe-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 24px; }
.recipe-gallery figure { margin: 0; }
.recipe-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.recipe-gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) { .recipe-gallery { grid-template-columns: 1fr; } }

.note {
  border-radius: var(--radius); padding: 22px 24px; margin-top: 16px;
}
.note h3 { font-size: 1.1rem; margin-bottom: 8px; }
.note ul { margin: 0; padding-left: 1.2em; }
.note p { margin: 0; }
.note.kids { background: var(--sage-soft); }
.note.tip { background: var(--surface); border: 1px solid var(--line); }

.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: .8rem; padding: 4px 12px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage); font-weight: 500;
}

/* ─── ABOUT / PROSE ──────────────────────────────────────── */
.prose { max-width: 680px; font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.about-teaser {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 48px;
  border: 1px solid var(--line);
}
.about-teaser p { color: var(--muted); }
.btn {
  display: inline-block; border: 1px solid var(--text); border-radius: 999px;
  padding: 10px 22px; font-size: .95rem; transition: all .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; padding: 28px; gap: 16px; } }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px;
  color: var(--muted); font-size: .9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { color: var(--text); font-size: 1.1rem; }

/* ─── STRÂNGEM ÎMPREUNĂ ──────────────────────────────────── */
.note.cleanup { background: var(--sand); }

.clean-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 8px; }
@media (max-width: 640px) { .clean-grid { grid-template-columns: 1fr; } }
.clean-card { border-radius: var(--radius); padding: 24px; }
.clean-card h3 { margin-bottom: 10px; }
.clean-card ul { margin: 0; padding-left: 1.2em; }
.clean-card li { margin-bottom: 4px; }
.clean-card.kids { background: var(--sage-soft); }
.clean-card.mom { background: var(--surface); border: 1px solid var(--line); }
.clean-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: c; }
.clean-steps li {
  counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 18px;
}
.clean-steps li::before {
  content: counter(c); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); color: var(--text);
  font-family: var(--serif); font-size: 1.05rem;
}
.clean-steps li p { margin: 5px 0 0; }
