/* ============ Herbcraft — prototype stylesheet ============ */

:root {
  /* sage & cream palette */
  --sage-900: #2f3d28;
  --sage-700: #4c6141;
  --sage-600: #6b8e5a;
  --sage-500: #8aa97a;
  --sage-400: #a8c09a;
  --sage-300: #c9d9bc;
  --sage-200: #e2ead9;
  --sage-100: #eff3e7;
  --cream-100: #faf7ef;
  --cream-50: #fdfbf5;
  --ink: #2a2e25;
  --ink-muted: #6b7568;
  --gold: #c9a961;
  --gold-dark: #a68740;
  --shadow-sm: 0 1px 2px rgba(47, 61, 40, 0.06), 0 1px 3px rgba(47, 61, 40, 0.05);
  --shadow-md: 0 4px 6px rgba(47, 61, 40, 0.05), 0 10px 20px rgba(47, 61, 40, 0.07);
  --shadow-lg: 0 20px 40px rgba(47, 61, 40, 0.1);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1200px;
  --ff-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }

/* images filling media placeholders */
.card-media img,
.recipe-media img,
.article-hero img,
.hero-art img,
.story-art img,
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

/* ---- typography ---- */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; line-height: 1.15; color: var(--sage-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 0.8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 56ch; }

/* ---- layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section--tight { padding: clamp(50px, 6vw, 80px) 0; }
.section--sage { background: var(--sage-100); }
.section--cream { background: var(--cream-50); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.row-head h2 { margin-bottom: 0; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sage-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-serif);
  font-size: 1.6rem; font-weight: 500;
  color: var(--sage-900);
  letter-spacing: 0.01em;
}
.logo svg { color: var(--sage-600); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.95rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav-links a:hover { color: var(--sage-700); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--sage-600); border-radius: 2px;
}
.nav-actions { display: flex; gap: 14px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sage-700); transition: background .2s;
}
.icon-btn:hover { background: var(--sage-200); }
.burger { display: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sage-700); color: var(--cream-50);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--sage-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent; color: var(--sage-900);
  border: 1px solid var(--sage-400);
}
.btn--ghost:hover { background: var(--sage-200); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 10vw, 140px) 0 clamp(80px, 12vw, 160px);
  background:
    radial-gradient(ellipse at 10% 10%, var(--sage-200) 0%, transparent 55%),
    radial-gradient(ellipse at 95% 90%, var(--sage-300) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: italic; color: var(--sage-700);
  font-family: var(--ff-serif); font-weight: 400;
}
.hero-lead { margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 3rem; display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--sage-300);
}
.hero-meta .stat strong {
  display: block; font-family: var(--ff-serif); font-size: 2rem; color: var(--sage-800, var(--sage-700));
}
.hero-meta .stat span { font-size: 0.88rem; color: var(--ink-muted); }
.hero-art {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sage-300) 0%, var(--sage-500) 100%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 55%);
}
.hero-art .botanical { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero-badge {
  position: absolute; left: -18px; top: 40px;
  padding: 10px 18px; background: var(--cream-50); color: var(--sage-800, var(--sage-700));
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-600);
}

/* ---- features strip ---- */
.features {
  padding: 70px 0; background: var(--sage-100);
  border-top: 1px solid var(--sage-200); border-bottom: 1px solid var(--sage-200);
}
.feature {
  display: flex; gap: 18px; align-items: flex-start;
}
.feature svg { flex: 0 0 44px; color: var(--sage-700); }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; font-family: var(--ff-sans); font-weight: 600; }
.feature p { color: var(--ink-muted); font-size: 0.94rem; }

/* ---- product card ---- */
.card {
  background: var(--cream-50);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--sage-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  aspect-ratio: 4/5; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--sage-200), var(--sage-400));
}
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: 20px 22px 22px; }
.card-cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-700); }
.card-title { font-size: 1.25rem; margin: 4px 0 10px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--ff-serif); font-size: 1.35rem; color: var(--sage-900); }
.price-old { font-size: 0.95rem; color: var(--ink-muted); text-decoration: line-through; margin-right: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  background: var(--gold); color: #fff;
}
.tag--sage { background: var(--sage-600); }

/* ---- recipe card ---- */
.recipe-card {
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--cream-50); border: 1px solid var(--sage-200);
  transition: transform .25s ease;
}
.recipe-card:hover { transform: translateY(-4px); }
.recipe-media { aspect-ratio: 16/10; background: linear-gradient(145deg, var(--sage-300), var(--sage-500)); position: relative; }
.recipe-media svg { width: 100%; height: 100%; }
.recipe-body { padding: 22px 24px 26px; }
.recipe-meta { display: flex; gap: 14px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 10px; }
.recipe-title { font-size: 1.35rem; margin-bottom: 10px; }
.recipe-body p { color: var(--ink-muted); font-size: 0.95rem; }

/* ---- story (two-col block) ---- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-art {
  aspect-ratio: 5/4; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(155deg, var(--sage-400), var(--sage-700));
  box-shadow: var(--shadow-lg);
  position: relative;
}
.story-art .botanical { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.story h2 { margin-bottom: 1.2rem; }
.story p + p { margin-top: 1rem; }
.story p { color: var(--ink-muted); font-size: 1.05rem; }

/* ---- newsletter ---- */
.newsletter {
  background:
    radial-gradient(ellipse at 0% 50%, var(--sage-300) 0%, transparent 50%),
    linear-gradient(135deg, var(--sage-600) 0%, var(--sage-800, var(--sage-700)) 100%);
  color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: clamp(50px, 7vw, 90px) clamp(32px, 6vw, 80px);
  text-align: center;
}
.newsletter h2 { color: var(--cream-50); margin-bottom: 1rem; }
.newsletter p { color: rgba(253, 251, 245, 0.85); max-width: 48ch; margin: 0 auto 2rem; }
.nl-form {
  display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap;
}
.nl-form input {
  flex: 1; min-width: 220px;
  padding: 15px 22px; border-radius: 999px; border: 0;
  font: inherit; background: rgba(255,255,255,.14); color: var(--cream-50);
  outline: none; transition: background .2s;
}
.nl-form input::placeholder { color: rgba(253,251,245,.6); }
.nl-form input:focus { background: rgba(255,255,255,.22); }
.nl-form .btn--gold { padding: 15px 28px; }

/* ---- footer ---- */
.site-footer {
  background: var(--sage-900);
  color: rgba(239, 243, 231, 0.75);
  padding: 70px 0 30px;
}
.site-footer a:hover { color: var(--cream-50); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 60px;
}
.footer-grid h4 {
  color: var(--cream-50); font-family: var(--ff-sans);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 16px; font-weight: 600;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 0.94rem; }
.footer-about { font-size: 0.95rem; line-height: 1.7; max-width: 34ch; }
.footer-about .logo { color: var(--cream-50); margin-bottom: 16px; }
.footer-about .logo svg { color: var(--sage-400); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.socials a:hover { background: rgba(255,255,255,.18); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}

/* ---- page hero (inner pages) ---- */
.page-hero {
  padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 5vw, 70px);
  background: linear-gradient(180deg, var(--sage-100), var(--cream-100));
  border-bottom: 1px solid var(--sage-200);
}
.breadcrumbs { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.breadcrumbs a:hover { color: var(--sage-700); }
.page-hero h1 { margin-bottom: 0.8rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { color: var(--ink-muted); max-width: 60ch; }

/* ---- catalog filters ---- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.chip {
  padding: 10px 20px; border-radius: 999px;
  background: var(--cream-50); border: 1px solid var(--sage-300);
  font-size: 0.9rem; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--sage-600); }
.chip.active { background: var(--sage-700); color: var(--cream-50); border-color: var(--sage-700); }

/* ---- product detail ---- */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  padding: clamp(40px, 5vw, 70px) 0 clamp(60px, 8vw, 100px);
}
.product-gallery {
  aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(145deg, var(--sage-300), var(--sage-600));
  box-shadow: var(--shadow-md);
  position: relative;
}
.product-gallery .botanical { width: 100%; height: 100%; opacity: 0.9; }
.product-info h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 0.8rem; }
.product-info .price { font-size: 2rem; margin: 1rem 0; display: block; }
.product-info .lead { margin-bottom: 1.5rem; }
.meta-list { border-top: 1px solid var(--sage-300); margin-top: 2rem; }
.meta-list dt, .meta-list dd { padding: 14px 0; }
.meta-list > div {
  display: grid; grid-template-columns: 1fr 2fr; gap: 1rem;
  border-bottom: 1px solid var(--sage-200);
}
.meta-list dt { font-weight: 500; color: var(--sage-800, var(--sage-700)); }
.meta-list dd { color: var(--ink-muted); }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--sage-300);
  border-radius: 999px; overflow: hidden; background: var(--cream-50);
}
.qty button { padding: 10px 16px; color: var(--sage-800, var(--sage-700)); }
.qty button:hover { background: var(--sage-200); }
.qty input {
  width: 46px; text-align: center; border: 0; background: transparent;
  font: inherit; outline: none;
}
.buy-row { display: flex; gap: 14px; margin: 1.5rem 0; flex-wrap: wrap; align-items: center; }

/* ---- recipe detail ---- */
.article {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) 28px clamp(60px, 8vw, 100px);
}
.article .article-hero {
  aspect-ratio: 16/9; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(145deg, var(--sage-300), var(--sage-600));
  margin-bottom: 2rem;
  position: relative;
}
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.article-meta { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 2.5rem; display: flex; gap: 18px; flex-wrap: wrap; }
.article h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.article p { margin-bottom: 1.2rem; color: var(--ink); font-size: 1.05rem; line-height: 1.8; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: 1.2rem; color: var(--ink); }
.article ul li, .article ol li { margin-bottom: 0.5rem; list-style: disc; }
.article ol li { list-style: decimal; }
.callout {
  background: var(--sage-100); border-left: 3px solid var(--sage-600);
  padding: 20px 26px; border-radius: var(--r-sm);
  margin: 2rem 0;
}
.callout strong { color: var(--sage-800, var(--sage-700)); }

/* ---- contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; color: var(--sage-800, var(--sage-700)); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--sage-300); background: var(--cream-50);
  font: inherit; color: var(--ink); outline: none; transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--sage-600); }
.form-group textarea { min-height: 140px; resize: vertical; }
.info-card {
  background: var(--sage-100); border-radius: var(--r-lg); padding: 32px;
  border: 1px solid var(--sage-200);
}
.info-card h3 { font-family: var(--ff-sans); font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--sage-800, var(--sage-700)); }
.info-card p { color: var(--ink); margin-bottom: 1.4rem; }
.info-card > div + div { margin-top: 1.5rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream-50); flex-direction: column; gap: 0; padding: 20px 28px;
    border-bottom: 1px solid var(--sage-200); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--sage-200); }
  .burger { display: inline-flex; }
  .hero-grid, .story-grid, .product, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art, .story-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .icon-btn.search { display: none; }
}
