/* Nouré Kitchen & Co. — styles
   Brand colours live here at the top if you ever want to tweak them. */
:root {
  --cream: #F4ECD8;       /* page background (matches logo) */
  --paper: #FBF7EC;       /* cards, menu card */
  --olive: #3E4A2B;       /* logo ink: headings, buttons */
  --olive-deep: #2C3520;
  --sage: #8EA27C;        /* brand sage */
  --sage-soft: #DCE3CC;
  --sage-mist: #E9EDDD;
  --ink: #2A2E22;         /* body text */
  --muted: #5E6450;
  --line: #D8CDB2;
  --error: #9A3B2A;

  --display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--olive); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--olive); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body);
  padding: 15px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--olive);
  transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--olive); color: var(--paper); }
.btn-solid:hover { background: var(--olive-deep); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--sage-mist); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--sage-soft); border-color: var(--sage-soft); color: var(--muted); cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--display); font-size: 22px; color: var(--olive); line-height: 1; }
.brand-name small { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-left: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--olive); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 880px) { .nav { display: none; } }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.01em; max-width: 12ch; }
.lede { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 50ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--muted); }

.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 36px 36px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(62, 74, 43, .35);
  text-align: center;
}
.menu-card-logo { width: 168px; margin: 0 auto 8px; }
.menu-card-title { font-size: 26px; }
.menu-card-week { color: var(--muted); font-size: 15px; margin-top: 4px; }
.menu-card-list { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.menu-card-list li {
  padding: 7px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--display); font-size: 16.5px; color: var(--ink);
}
.menu-card-list li.menu-card-sec {
  font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--sage);
  border-bottom: 0; padding: 16px 0 2px; text-align: left;
}
.menu-card-list li:not(.menu-card-sec) { text-align: left; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .menu-card { transform: none; padding: 24px 22px 28px; }
}

/* Sections */
.section { padding: 88px 0; }
.section-title { font-size: clamp(32px, 4.2vw, 46px); }

/* How it works */
.how { background: var(--olive); }
.how .section-title { color: var(--paper); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid rgba(251, 247, 236, .3); padding-top: 20px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 40px; color: var(--sage); display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { color: var(--paper); font-size: 22px; }
.steps p { color: #D6DBC8; margin-top: 8px; font-size: 16px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Gallery */
.gallery { padding-bottom: 24px; }
.gallery-grid {
  margin-top: 36px;
  display: grid; gap: 16px;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 260px;
}
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sage-mist); }
.shot:first-child { grid-row: span 2; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--olive);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3;
}
@media (max-width: 760px) {
  .gallery-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
}

/* Order */
.order-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.order-week { color: var(--muted); margin-top: 6px; font-size: 18px; }
.order-cutoff { background: var(--sage-mist); color: var(--olive); padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; }

.order-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .order-grid { grid-template-columns: 1fr; } }

.meals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.meals-sec { font-size: 26px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.meals-grid + .meals-sec { margin-top: 44px; }
.menu-note:empty { display: none; }
.menu-note { margin-top: 20px; }
.meal {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.meal.is-picked { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.meal-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-mist); display: grid; place-items: center; }
.meal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.meal-img svg { width: 44px; height: 44px; color: var(--sage); }
.meal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meal h3 { font-size: 21px; }
.meal-details { color: var(--muted); font-size: 15px; line-height: 1.5; }
.meal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--sage-mist); color: var(--olive); }
.tag-nutri { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.meal-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--olive); border-radius: 999px; }
.stepper button {
  width: 40px; height: 40px; border: 0; background: none; color: var(--olive);
  font-size: 22px; line-height: 1; cursor: pointer; border-radius: 999px;
}
.stepper button:hover:not([disabled]) { background: var(--sage-mist); }
.stepper button[disabled] { color: #B7B39F; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.meal-add { padding: 10px 18px; font-size: 15px; }
.meal-add[disabled] { background: transparent; border-color: var(--line); color: #A39F8B; }

/* Basket */
.basket {
  position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
}
.basket-title { font-size: 28px; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }

.bundle-options, .fulfil-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body {
  display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  background: var(--cream); transition: border-color .15s, background .15s;
}
.choice-title { font-weight: 600; }
.choice-price { font-family: var(--display); font-size: 26px; color: var(--olive); line-height: 1.1; }
.choice-meta { font-size: 13px; color: var(--muted); }
.choice input:checked + .choice-body { border-color: var(--olive); background: var(--sage-mist); box-shadow: inset 0 0 0 1px var(--olive); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--sage); outline-offset: 2px; }

/* The meal tray */
.tray-wrap { margin-bottom: 22px; }
.tray {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  background: var(--sage-soft); padding: 8px; border-radius: var(--r-md);
}
.slot {
  aspect-ratio: 1 / 1.05; border-radius: 7px;
  border: 1.5px dashed #AEB99C; background: var(--sage-mist);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--paper);
  letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .2s;
}
.slot.filled { background: var(--olive); border: 1.5px solid var(--olive); animation: pop .25s ease-out; }
.slot.over { background: var(--error); border-color: var(--error); }
@keyframes pop { 0% { transform: scale(.82); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tray-count { margin-top: 10px; font-weight: 600; font-size: 15px; }
.tray-count.warn { color: var(--error); }
.picked { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.picked li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }

/* Fulfilment */
.fulfil-panel { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select {
  font: 500 16px var(--body); color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.field-msg { font-size: 14px; margin-top: 6px; min-height: 1em; }
.field-msg.ok { color: var(--olive); }
.field-msg.bad { color: var(--error); }
.fine { font-size: 14px; color: var(--muted); margin-top: 8px; }

.totals { margin: 0 0 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals-grand { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--line); }
.totals-grand dt, .totals-grand dd { color: var(--olive); font-family: var(--display); font-size: 24px; font-weight: 400; }
.checkout-msg { font-size: 14px; margin-top: 10px; color: var(--muted); }
.checkout-msg:empty { display: none; }
.secure { text-align: center; }

/* Delivery info */
.delivery { background: var(--paper); border-block: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.info-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--cream); }
.info-block h3 { font-size: 26px; }
.info-price { font-family: var(--display); font-size: 40px; color: var(--sage); line-height: 1.1; margin: 6px 0 14px; }
.info-block p + p { margin-top: 8px; }
.slot-list { margin: 12px 0 0; padding-left: 20px; }
.cutoff-strip { margin-top: 28px; color: var(--olive); font-weight: 500; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 64px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.prose { margin-top: 18px; max-width: 60ch; }
.prose p + p { margin-top: 14px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .about-photo { aspect-ratio: 4 / 3; } }

/* FAQ */
.faq { padding-top: 24px; }
#faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--display); font-size: 21px; color: var(--olive);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--body); font-size: 26px; color: var(--sage); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Footer */
.site-footer { background: var(--olive-deep); color: #D6DBC8; padding: 56px 0 96px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 28px; color: var(--paper); }
.footer-tag { margin-top: 4px; color: var(--sage); }
.footer-h { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--paper); margin-bottom: 10px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li + li { margin-top: 6px; }
.contact-list a { color: #E8EBDD; }
.footer-small { grid-column: 1 / -1; font-size: 14px; color: #A9B09A; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 1001px) { .site-footer { padding-bottom: 56px; } }

/* Mobile order bar */
.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .basket { position: static; }
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 8px 8px 20px; box-shadow: 0 10px 30px -10px rgba(44, 53, 32, .45);
    font-weight: 600; font-size: 15px;
    transform: translateY(140%); transition: transform .25s ease;
  }
  .mobile-bar.show { transform: none; }
}
