:root {
  --green: #6BCB3C;
  --green-dark: #4FA528;
  --green-soft: #E7F6DE;
  --ink: #121712;
  --muted: #5B655C;
  --paper: #F4F8F2;
  --white: #ffffff;
  --line: rgba(18, 23, 18, 0.10);
  --shadow: 0 18px 50px rgba(18, 23, 18, 0.12);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107,203,60,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(79,165,40,.10), transparent 55%),
    var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244,248,242,.86);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.brand img { height: 42px; width: auto; }
.brand span { color: var(--green-dark); }
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { font-weight: 600; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--green-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .85rem 1.35rem;
  font-weight: 700; font-family: var(--font-body); cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 10px 24px rgba(107,203,60,.35); }
.btn-primary:hover { background: var(--green-dark); color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
  color: white;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,23,18,.15) 0%, rgba(18,23,18,.72) 70%, rgba(18,23,18,.88) 100%),
    url('/assets/images/hero-fresh.jpg') center/cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero-content { position: relative; z-index: 1; padding: 7rem 0 3.5rem; width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.hero-brand {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: -0.05em; margin-bottom: .3rem;
  animation: rise .8s ease both;
}
.hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); max-width: 16ch; color: white; font-weight: 700;
  animation: rise .9s ease .05s both;
}
.hero p { color: rgba(255,255,255,.88); max-width: 38ch; font-size: 1.08rem; animation: rise 1s ease .1s both; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; animation: rise 1.05s ease .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.section { padding: 4.5rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; color: var(--green-dark); margin-bottom: .55rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

.meal-card, .plan-card, .quote-card, .feature {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.meal-card:hover, .plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.meal-card img, .plan-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.meal-card .body, .plan-card .body, .quote-card, .feature { padding: 1rem 1.05rem 1.15rem; }
.macros { display: flex; gap: .45rem; flex-wrap: wrap; margin: .6rem 0; }
.chip {
  font-size: .75rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
}
.chip.muted { background: #eef1ee; color: var(--muted); }

.feature { padding: 1.25rem; }
.feature h3 { font-size: 1.2rem; }
.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.split img { border-radius: 24px; width: 100%; min-height: 360px; object-fit: cover; box-shadow: var(--shadow); }

.cta-band {
  margin: 2rem 0 0; padding: 2.4rem; border-radius: 28px;
  background: linear-gradient(135deg, var(--ink), #243024);
  color: white; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; background: #eef4eb; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h4 { margin-bottom: .8rem; }
.footer-grid a { display: block; margin: .35rem 0; color: var(--muted); font-weight: 600; }
.footer-bottom { margin-top: 2rem; color: var(--muted); font-size: .9rem; }

.form-grid { display: grid; gap: .85rem; }
label { font-weight: 700; font-size: .9rem; display: grid; gap: .35rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem;
  font: inherit; background: white;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(107,203,60,.45); border-color: var(--green); }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: var(--green-soft); color: var(--green-dark); }
.alert-error { background: #fde8e8; color: #8a1f1f; }

.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.step-pill { padding: .45rem .9rem; border-radius: 999px; background: #e8eee6; font-weight: 700; font-size: .85rem; }
.step-pill.active { background: var(--green); }

.order-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.4rem; align-items: start; }
.sticky-summary { position: sticky; top: 90px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.meal-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.meal-picker .meal-card { display: grid; grid-template-columns: 110px 1fr; }
.meal-picker .meal-card img { aspect-ratio: 1; height: 100%; }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty input { width: 64px; }

.calc-box { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; max-width: 560px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: var(--ink); color: white; padding: 1.4rem 1rem; }
.admin-nav a { display: block; color: rgba(255,255,255,.84); padding: .65rem .75rem; border-radius: 10px; font-weight: 600; margin-bottom: .2rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(107,203,60,.2); color: white; }
.admin-main { padding: 1.5rem; background: #f2f5f1; }
.admin-card { background: white; border-radius: 16px; border: 1px solid var(--line); padding: 1.1rem; margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.stat { background: white; border-radius: 16px; padding: 1rem; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.5rem; font-family: var(--font-display); }

.mobile-toggle { display: none; background: none; border: 0; font-size: 1.4rem; }

@media (max-width: 960px) {
  .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .split, .order-layout, .footer-grid, .admin-shell, .meal-picker { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); padding: 1rem; border-bottom: 1px solid var(--line); }
  .mobile-toggle { display: inline-block; }
  .meal-picker .meal-card { grid-template-columns: 90px 1fr; }
  .hero { min-height: 78vh; }
}
