/* ---- Design tokens (from the 9 to 6 Foods v3 Sunrise design) ---- */
:root {
  --ink: #14261C;
  --cream: #FFF7EC;
  --cream-text: #FFF6E5;
  --eyebrow: #B08B62;
  --orange: #F58220;
  --orange-text: #C25A0A;
  --amber: #F5A93B;
  --green: #4C8B3B;
  --green-2: #8CBE6E;
  --green-3: #2F7A2E;
  --blue: #1E6BA8;
  --red: #C2413A;
  --meta: #6B7A6E;
  --meta-2: #8B9A8E;
  --muted: #5C6B5F;
  --muted-2: #4A5A4D;
  --body-dark: #2F4536;
  --hair: rgba(20, 38, 28, .12);
  --hair-strong: rgba(20, 38, 28, .18);
  --on-dark: rgba(255, 246, 229, .8);
  --on-dark-soft: rgba(255, 246, 229, .16);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-devanagari: 'Tiro Devanagari Sanskrit', serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--orange-text); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--orange); color: #fff; }

img { max-width: 100%; }

button { font-family: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes slideOver { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.05); } }
@keyframes marquee { from { transform: none; } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---- Sky backdrop (dawn/noon/dusk cross-fade, driven by scroll on the home page) ---- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sky div {
  position: absolute;
  inset: 0;
  transition: opacity .6s linear;
}
.sky .dawn { background: linear-gradient(180deg, #FFE9CC 0%, #FFF7EC 46%, #FFF7EC 100%); opacity: 1; }
.sky .noon { background: linear-gradient(180deg, #FDF3DC 0%, #F4F7E9 55%, #EAF3E2 100%); opacity: 0; }
.sky .dusk { background: linear-gradient(180deg, #F7E2CE 0%, #E9D3C6 45%, #C9B4AE 100%); opacity: 0; }

.page { position: relative; z-index: 1; }

/* ---- Offer marquee ---- */
.marquee {
  background: var(--ink);
  color: var(--cream-text);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.marquee__track {
  display: inline-flex;
  gap: 40px;
  padding-right: 40px;
  animation: marquee 30s linear infinite;
}
.marquee__dot { color: var(--amber); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255, 247, 236, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-strong);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 11px 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img { height: 50px; width: auto; display: block; }
.brand__lockup { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.brand__tag { font-size: 12px; font-weight: 500; color: var(--meta); }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 300px;
  min-width: 0;
}
.nav a {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
}
.nav a:hover { background: #FFE9CC; color: var(--ink); }

.cart-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: var(--ink);
  color: var(--cream-text);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 12px 20px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cart-button:hover { background: var(--orange); }
.cart-button__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cream-text);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}

/* ---- Sun rail ---- */
.sun-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 82px;
  height: 210px;
  pointer-events: none;
}
.sun-rail__dot {
  position: absolute;
  left: 0;
  top: 0;
  transition: transform .25s linear, width .3s linear, height .3s linear;
}
.sun-rail__halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  animation: glow 4s ease-in-out infinite;
}
.sun-rail__core { position: absolute; inset: 0; border-radius: 50%; }
.sun-rail__label {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(20, 38, 28, .4);
  writing-mode: vertical-rl;
}
@media (max-width: 900px) {
  .sun-rail { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 17px 32px;
  border-radius: 999px;
  text-align: center;
}
.btn-solid { background: var(--ink); color: var(--cream-text); box-shadow: 0 4px 0 rgba(20, 38, 28, .35); }
.btn-solid:hover { background: var(--orange); color: #fff; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; padding: 15px 30px; }
.btn-outline:hover { background: var(--ink); color: var(--cream-text); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--cream-text); }
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 26px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.site-footer img { height: 64px; width: auto; display: block; background: var(--cream-text); border-radius: 14px; padding: 6px; }
.site-footer__tag { margin-top: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.site-footer__blurb { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255, 246, 229, .68); max-width: 40ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__heading { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--green-2); }
.site-footer__col a { font-size: 14.5px; color: rgba(255, 246, 229, .8); }
.site-footer__col a:hover { color: var(--amber); }
.site-footer__contact { font-size: 14.5px; color: rgba(255, 246, 229, .8); line-height: 1.6; }
.site-footer__base {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 26px 34px;
  border-top: 1px solid var(--on-dark-soft);
  font-size: 13px;
  color: rgba(255, 246, 229, .55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---- Cart drawer ---- */
.cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 38, 28, .5);
  animation: fadeIn .2s ease both;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: 420px;
  max-width: 92vw;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  animation: slideOver .28s cubic-bezier(.22, .8, .3, 1) both;
}
.cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hair);
}
.cart-panel__title { font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.cart-panel__close { border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: var(--ink); }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.cart-panel__empty { padding: 60px 0; text-align: center; color: var(--meta-2); font-size: 15px; font-weight: 600; }
.cart-line {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.cart-line__thumb { border-radius: 10px; height: 66px; display: flex; align-items: center; justify-content: center; }
.cart-line__thumb-img { width: 54px; height: 56px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.cart-line__name { font-size: 15px; font-weight: 800; line-height: 1.2; }
.cart-line__note { font-size: 13px; font-weight: 600; color: var(--meta-2); margin-top: 3px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 28px; height: 28px;
  border: 1px solid rgba(20, 38, 28, .3);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.stepper__qty { min-width: 18px; text-align: center; font-size: 15px; font-weight: 800; }
.cart-panel__foot {
  border-top: 1px solid var(--hair);
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-panel__row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.cart-panel__checkout {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: var(--cream-text);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 16px 0;
  border-radius: 999px;
  text-align: center;
  display: block;
}
.cart-panel__checkout:hover { background: var(--orange); color: #fff; }
.cart-panel__checkout[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

[hidden] { display: none !important; }
