/* Unity Food Corporation — site styles */

:root {
  --green-950: #0f2a16;
  --green-900: #1b4024;
  --green-800: #23502e;
  --green-700: #2d6439;
  --green-100: #e5eee1;
  --green-50: #f1f6ee;
  --red: #c7341d;
  --red-dark: #a82a16;
  --saffron: #e3a21c;
  --saffron-100: #fbefd2;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #1c231e;
  --muted: #5b655e;
  --line: #e4ded1;
  --line-strong: #d3cbb9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(28, 35, 30, .06), 0 1px 3px rgba(28, 35, 30, .05);
  --shadow: 0 10px 30px -12px rgba(28, 35, 30, .18);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --header-h: 76px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-800); }
a:hover { color: var(--green-950); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-950); color: #fff; }
.btn-outline { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: #fff; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--green-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: var(--green-100); color: var(--green-950); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.list-link { padding: 8px 10px 8px 16px; }
.badge {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--saffron); color: var(--green-950);
  font-size: 13px; font-weight: 700;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(227, 162, 28, .14), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, rgba(45, 100, 57, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 56px; align-items: center; }
.eyebrow {
  margin: 0 0 12px; color: var(--red); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.01em;
  color: var(--green-950); margin-bottom: 18px; text-wrap: balance;
}
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }

.hero-steps {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hero-steps strong { display: block; font-size: 15px; line-height: 1.3; color: var(--green-950); }
.hero-steps small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.step-num {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--green-900); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.hero-steps li:nth-child(2) .step-num { background: var(--saffron); color: var(--green-950); }
.hero-steps li:nth-child(3) .step-num { background: var(--red); }

.spice-board { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px); color: var(--green-950); letter-spacing: -.01em;
}
.section-sub { margin-top: 8px; font-size: 17px; color: var(--muted); }
.section-sub strong { color: var(--ink); }

/* ---------- Products ---------- */
.products { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; min-height: 52px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--cream);
}
.search:focus-within { border-color: var(--green-700); background: var(--paper); }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 12px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip .icon { width: 17px; height: 17px; color: var(--green-700); }
.chip:hover { border-color: var(--green-700); }
.chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.chip[aria-pressed="true"] .icon { color: var(--saffron); }

.cat-group { padding-top: 36px; }
.cat-group-head { display: flex; align-items: center; gap: 14px; }
.cat-group-head h3 { font-family: var(--font-display); font-size: 24px; color: var(--green-950); }
.cat-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-50); color: var(--green-800);
}
.cat-group:nth-child(3n+2) .cat-icon { background: var(--saffron-100); color: #8a5a00; }
.cat-group:nth-child(3n) .cat-icon { background: #f9e3de; color: var(--red-dark); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-blurb { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.cat-note {
  display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 8px;
  background: var(--saffron-100); color: #6b4700; font-size: 14px; font-weight: 500;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px; margin-top: 18px;
}
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 16px 16px 8px; transition: border-color .15s, box-shadow .15s;
}
.product:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.product.in-list { border-color: var(--green-700); box-shadow: 0 0 0 1px var(--green-700) inset; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 6px; }
.sizes { list-style: none; margin: auto 0 0; padding: 0; }
.size {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 6px 0; border-top: 1px dashed var(--line);
}
.size:first-child { border-top: 0; }
.size-info { display: flex; flex-direction: column; min-width: 0; }
.pack { font-size: 14px; font-weight: 600; color: var(--green-900); }
.price { font-size: 14px; font-weight: 700; color: var(--ink); }
.price-note { font-size: 12px; color: var(--muted); }

.add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 38px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--green-900); background: var(--paper); color: var(--green-900);
  font-weight: 600; font-size: 14px; transition: background-color .15s, color .15s;
}
.add-btn .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.add-btn:hover { background: var(--green-900); color: #fff; }

.stepper {
  display: inline-flex; align-items: center; flex: none;
  border: 1.5px solid var(--green-700); border-radius: 999px; background: var(--green-50);
  overflow: hidden;
}
.step {
  width: 36px; height: 35px; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--green-900); display: grid; place-items: center;
}
.step:hover { background: var(--green-100); }
.qty {
  width: 44px; height: 35px; border: 0; background: transparent; text-align: center;
  font-weight: 700; font-size: 15px; -moz-appearance: textfield; appearance: textfield;
}
.qty::-webkit-outer-spin-button, .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty:focus { outline: 0; }

.empty-results {
  margin-top: 32px; padding: 28px; border-radius: var(--radius);
  background: var(--cream); border: 1px dashed var(--line-strong); text-align: center;
}

/* ---------- Send your list ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.my-list { position: sticky; top: calc(var(--header-h) + 16px); }
.my-list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.my-list h3, .order-form h3 { font-family: var(--font-display); font-size: 22px; color: var(--green-950); }
.order-form h3 { margin-bottom: 18px; }
.list-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 20px; border-radius: var(--radius); background: var(--cream); color: var(--muted); text-align: center;
}
.list-empty .icon { width: 36px; height: 36px; color: var(--line-strong); }
.list-empty p { margin: 0; }
.list-items { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.list-item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list-item:first-child { padding-top: 0; }
.item-name { font-weight: 600; font-size: 15px; line-height: 1.35; display: block; }
.item-pack { font-size: 13px; color: var(--muted); display: block; }
.item-price { font-size: 13px; font-weight: 600; display: block; }
.item-remove {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.item-remove:hover { background: #f9e3de; color: var(--red-dark); }
.item-remove .icon { width: 18px; height: 18px; }
.list-total { margin: 14px 0 0; font-weight: 600; color: var(--green-900); }
.list-total small { display: block; font-weight: 400; color: var(--muted); }

label > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
label em { color: var(--red); font-style: normal; }
.order-form input, .order-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--paper);
  font-size: 16px;
}
.order-form textarea { resize: vertical; min-height: 96px; }
.order-form input:focus, .order-form textarea:focus {
  outline: 0; border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.order-form [data-submit] { margin-top: 24px; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status.is-error { background: #fbe9e5; color: #7d1f10; border: 1px solid #f1c3b9; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.order-success { max-width: 600px; margin: 0 auto; text-align: center; padding: 44px 32px; }
.order-success:focus { outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--green-700); stroke-width: 1.6; }
.order-success h3 { font-family: var(--font-display); font-size: 26px; color: var(--green-950); margin-bottom: 12px; }
.order-success p { color: var(--muted); margin-bottom: 24px; }

/* ---------- About ---------- */
.about { background: var(--green-900); color: #e7efe4; }
.about .eyebrow { color: var(--saffron); }
.about .section-head h2 { color: #fff; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.feature .icon { color: var(--saffron); width: 30px; height: 30px; margin-bottom: 14px; }
.feature h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.feature p { color: #c6d4c2; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #c3d1bf; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--saffron); margin-bottom: 2px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }
.footer-contact .icon { color: var(--saffron); }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb19b; font-size: 13px; }

/* ---------- Bottom "Send list" bar (phones) ---------- */
.list-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-radius: 999px; background: var(--green-900); color: #fff;
  text-decoration: none; box-shadow: 0 12px 30px -8px rgba(15, 42, 22, .55); font-size: 15px; font-weight: 500;
}
.list-bar:hover { color: #fff; background: var(--green-950); }
.list-bar-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--saffron); }
.list-bar-cta .icon { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .my-list { position: static; }
  .list-items { max-height: none; }
  .list-bar.is-visible { display: flex; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .brand img { height: 36px; }
  .list-link { padding: 8px 8px 8px 12px; }
  .list-link-label { display: none; }
  .section { padding: 52px 0; }
  .lead { font-size: 17px; }
  .hero .btn-lg { width: 100%; }
  .hero-art { display: none; }
  .hero-steps { grid-template-columns: 1fr; gap: 8px; }
  .hero-steps li { padding: 12px 14px; align-items: center; }
  .product-grid { grid-template-columns: 1fr; gap: 10px; }
  .product { padding: 12px 14px 4px; }
  .product-name { margin-bottom: 0; }
  .card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Print: a clean product list ---------- */
@media print {
  .site-header, .hero, .toolbar, .order, .about, .list-bar, .size-ctrl, .empty-results { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .products { border: 0; padding: 0; }
  .product-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .product { break-inside: avoid; padding: 8px; }
}
