/* =========================================================
   Day Needs Supermarket — styles.css
   Colours are taken directly from the uploaded logo.
   Change a value here and it updates across the whole site.
   ========================================================= */

:root {
  /* ---- BRAND PALETTE (sampled from the logo) ---- */
  --brand-red:        #E2020D;   /* the red circle in the logo */
  --brand-red-deep:   #B30009;   /* darker red, for hover/pressed states */
  --brand-yellow:     #FEE901;   /* the yellow bag in the logo */
  --brand-dark:       #1B1C17;   /* the charcoal in the logo wordmark */
  --brand-white:      #FFFFFF;
  --brand-light-bg:   #F5F4EF;   /* soft off-white section background */

  /* ---- SUPPORTING TOKENS ---- */
  --ink:              var(--brand-dark);
  --ink-muted:        #55564F;
  --line:            #E1E0D8;
  --line-strong:     #C9C8BF;
  --whatsapp:        #1FA855;    /* WhatsApp green, used only on the WhatsApp button */
  --whatsapp-deep:   #17803F;

  /* ---- LAYOUT ---- */
  --wrap:            1120px;
  --wrap-narrow:     720px;
  --radius:          10px;
  --radius-sm:       6px;
  --header-h:        68px;

  /* ---- TYPE SCALE ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.35rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--brand-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0 0 1em; }
address { font-style: normal; }

a { color: var(--brand-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-red-deep); }

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap.narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-dark); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-deep); color: #fff; }

.btn-red { background: var(--brand-red); color: #fff; }
.btn-red:hover { background: var(--brand-red-deep); color: #fff; }

.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand-dark); color: var(--brand-dark); background: #fff; }

.btn-sm { min-height: 44px; padding: 9px 16px; font-size: var(--step--1); }
.btn-lg { min-height: 58px; padding: 16px 30px; }
.btn-block { display: flex; width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.cta-row .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .cta-row .btn { flex: 0 0 auto; } }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(27,28,23,.07); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.05;
  font-weight: 800; letter-spacing: -0.02em; font-size: 1.02rem;
}
.brand-name-2 {
  font-weight: 500; font-size: .72rem; letter-spacing: .06em;
  color: var(--ink-muted); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav-list {
  display: flex; align-items: center; gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease;
}
.nav-list a:hover { border-bottom-color: var(--brand-red); color: var(--ink); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: var(--brand-dark);
  margin-inline: auto; transition: transform .2s ease, opacity .2s ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: 0 14px 28px rgba(27,28,23,.10);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block; padding: 14px 2px; border-bottom: 1px solid var(--line);
    font-size: 1.05rem; font-weight: 600;
  }
  .nav-list a:hover { border-bottom-color: var(--line); }
  .nav-cta { margin-top: 16px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(760px 420px at 88% -12%, rgba(226,2,13,.07), transparent 62%),
    var(--brand-white);
  overflow: hidden;
}
.hero::after {           /* slim brand rule closing the hero */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, var(--brand-red) 0 34%, var(--brand-yellow) 34% 46%, var(--line) 46%);
}

.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px; padding: 7px 14px 7px 12px;
  background: var(--brand-light-bg); border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--ink);
}
/* Used only by the optional status badge in the hero (commented out in index.html) */
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--brand-yellow); border: 1px solid #C9B900;
}
.status-sub { font-weight: 400; color: var(--ink-muted); }

h1 {
  font-size: var(--step-4);
  max-width: 16ch;
}
.h1-line2 {
  display: block; margin-top: .3em;
  font-size: clamp(1.15rem, .85rem + 1.2vw, 1.7rem);
  font-weight: 500; letter-spacing: -0.01em; color: var(--ink-muted);
  max-width: 24ch;
}

.lede {
  margin-top: 22px; max-width: 54ch;
  font-size: var(--step-1); line-height: 1.55; color: var(--ink);
}

.cta-note {
  margin-top: 18px; max-width: 48ch;
  font-size: var(--step--1); color: var(--ink-muted);
  padding-left: 14px; border-left: 3px solid var(--brand-yellow);
}

/* Store board (hero side panel) */
.board {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 26px 24px 8px;
  box-shadow: 0 10px 30px rgba(27,28,23,.06);
}
.board-logo { width: min(210px, 62%); height: auto; margin: 0 auto 22px; }
.board-list { margin: 0; }
.board-row { padding: 14px 0; border-top: 1px solid var(--line); }
.board-row:first-child { border-top: 0; padding-top: 0; }
.board-row dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px;
}
.board-row dd { margin: 0; font-size: .97rem; line-height: 1.5; }
.board-row dd a { font-weight: 600; text-decoration: none; }
.board-row dd a:hover { text-decoration: underline; }
.sep { color: var(--line-strong); margin: 0 8px; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-light { background: var(--brand-light-bg); }

/* Shelf-edge heading: a rule with a small yellow tab, like a shelf label */
.shelf-head {
  position: relative;
  font-size: var(--step-3);
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--brand-dark);
  max-width: 22ch;
}
.shelf-head::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 6px; background: var(--brand-yellow);
}
.shelf-head-light { color: #fff; border-bottom-color: rgba(255,255,255,.35); }

.section-intro { max-width: 60ch; color: var(--ink-muted); font-size: var(--step-1); }
.prose { max-width: 62ch; }
.prose p { color: var(--ink); }
.fineprint { font-size: var(--step--1); color: var(--ink-muted); margin-top: 22px; max-width: 60ch; }

/* ---------------- Categories ---------------- */
.cats {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; gap: 0;
}
@media (min-width: 620px) { .cats { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); column-gap: 44px; } }

.cat {
  padding: 20px 0 20px 18px;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.cat::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 8px; height: 8px; background: var(--brand-red);
}
.cat:nth-child(3n+2)::before { background: var(--brand-yellow); }
.cat h3 { font-size: var(--step-1); margin-bottom: 6px; }
.cat p { margin: 0; color: var(--ink-muted); font-size: .96rem; max-width: 40ch; }

/* ---------------- Pillars ---------------- */
.pillars {
  display: grid; gap: 4px 48px; margin-top: 30px;
}
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { padding: 22px 0; border-top: 1px solid var(--line); }
.pillar h3 { font-size: var(--step-1); margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--ink-muted); max-width: 46ch; }

/* ---------------- Delivery band ---------------- */
.band { background: var(--brand-dark); color: #fff; }
.band .shelf-head { max-width: 18ch; }
.band-copy { font-size: var(--step-1); color: rgba(255,255,255,.86); max-width: 54ch; }
.band-copy strong { color: var(--brand-yellow); font-weight: 600; }
.band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.band .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------------- Visit ---------------- */
.visit-grid { display: grid; gap: 34px; margin-top: 34px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } }

.vh { font-size: var(--step-1); margin-bottom: 14px; }

.details { margin: 0; display: grid; gap: 0; }
@media (min-width: 560px) { .details { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.detail { padding: 16px 0; border-top: 1px solid var(--line-strong); }
.detail dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 5px;
}
.detail dd { margin: 0; line-height: 1.55; }
.detail a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (min-width: 560px) { .detail-wide { grid-column: 1 / -1; } }
.detail a:hover { text-decoration: underline; }

.visit-map {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.visit-map p { color: var(--ink-muted); font-size: .96rem; }
.visit-map .btn { margin-bottom: 10px; }

/* ---------------- Closing CTA ---------------- */
.closing {
  position: relative;
  background: var(--brand-white);
  text-align: left;
}
.closing::before {   /* same brand rule that closes the hero, book-ending the page */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(to right, var(--brand-red) 0 34%, var(--brand-yellow) 34% 46%, var(--line) 46%);
}
.closing-title { font-size: var(--step-3); max-width: 18ch; }
.closing-copy { margin-top: 16px; font-size: var(--step-1); max-width: 52ch; color: var(--ink); }
.closing-alt { margin-top: 24px; font-size: var(--step--1); color: var(--ink-muted); }
.closing-alt a { font-weight: 600; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.82); padding: 54px 0 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: auto 1.3fr 1fr 1fr; gap: 40px; } }

.footer-brand img { width: 84px; height: 84px; }
.fh { font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: #fff; margin-bottom: 12px; }
.site-footer address, .footer-hours { font-size: .93rem; line-height: 1.65; }
.footer-hours { margin-top: 12px; }

.footer-list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.footer-list li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--brand-yellow); text-decoration: underline; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  margin-top: 40px; padding-top: 18px; padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-base p { margin: 0; }

/* ---------------- Sticky mobile CTA bar ---------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(27,28,23,.08);
}
.mobile-bar .btn { flex: 1; min-height: 50px; padding: 12px 10px; font-size: .95rem; white-space: nowrap; }
.mobile-bar .btn-dark { flex: 0 0 42%; }

@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 82px; }
}

/* Very small phones (320–400px) */
@media (max-width: 400px) {
  .status-sub { display: none; }
  .mobile-bar { gap: 8px; padding-inline: 10px; }
  .mobile-bar .btn { font-size: .88rem; padding: 12px 6px; gap: 7px; }
  .mobile-bar .btn .ico { width: 18px; height: 18px; }
  .mobile-bar .btn-dark { flex: 0 0 40%; }
}

/* ---------------- Motion ---------------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------- Legal pages ---------------- */
.page-head {
  padding: clamp(34px, 5vw, 60px) 0 clamp(24px, 4vw, 40px);
  background: var(--brand-light-bg); border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--step-3); max-width: 20ch; }
.page-head .updated { margin: 14px 0 0; font-size: var(--step--1); color: var(--ink-muted); }
.legal { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 7vw, 80px); }
.legal .wrap { max-width: var(--wrap); }
.legal h2 {
  font-size: var(--step-2); margin: 40px 0 12px; max-width: 68ch;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-strong);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--step-1); margin: 24px 0 8px; max-width: 68ch; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal ul { padding-left: 20px; max-width: 68ch; }
.legal li { margin-bottom: 8px; }
.legal .back { display: inline-block; margin-top: 36px; font-weight: 600; }
