/* ==========================================================
   Medicur — styles
   Palette: pine (dark brand), shield mint (from the logo),
   sage paper (background), resin amber (primary actions)
   ========================================================== */

:root {
  --pine: #10332B;
  --pine-2: #1A4A3F;
  --mint: #8BCFB8;       /* logo background */
  --shield: #B0DFD5;     /* logo shield outline */
  --mint-soft: #DDF0EA;
  --paper: #F3F6F2;
  --white: #FFFFFF;
  --ink: #17201D;
  --muted: #56655F;
  --line: #D3DDD8;
  --resin: #E9A23B;
  --resin-ink: #3A2606;
  --open: #2E9E6E;
  --closed: #B8574A;

  /* Barlow is a DIN-style sans, matching the logo wordmark */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px;
  --radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

/* Headings echo the uppercase logo wordmark */
h1, h2 { text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.375rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.muted { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--resin); color: var(--resin-ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--resin); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--resin { background: var(--resin); color: var(--resin-ink); }
.btn--resin:hover { background: #F2B354; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--pine); }
.btn--ghost:hover { background: var(--mint-soft); }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 246, 242, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* Official wordmark artwork (assets/logo/medicur-wordmark.png) */
.brand img { height: 46px; width: auto; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: var(--radius-s);
}
.nav a:hover { background: var(--mint-soft); }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-s);
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 22px; height: 2px; background: var(--pine); margin: 0 auto;
  position: relative; transition: transform .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

/* Same mint as the logo and footer, with the logo's shield outline drawn large behind the headline */
.hero {
  position: relative; overflow: hidden;
  background: var(--mint);
  color: var(--ink);
  padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  margin-bottom: clamp(48px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: clamp(-120px, -6vw, -40px); top: clamp(-40px, -2vw, 0px);
  width: clamp(420px, 52vw, 720px); aspect-ratio: 300 / 350;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 350'%3E%3Cpath d='M12 12H288V176C288 262 214 314 150 338 86 314 12 262 12 176Z' fill='none' stroke='%23B0DFD5' stroke-width='16'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .92;
  color: var(--ink);
  margin-bottom: .35em;
}

.hero__lede { font-size: 1.1875rem; color: var(--pine); margin-bottom: 32px; max-width: 46ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
/* Matches the footer buttons: dark pine primary, white secondary */
.btn--pine { background: var(--pine); color: var(--white); }
.btn--pine:hover { background: var(--pine-2); }
.btn--white { background: var(--white); color: var(--pine); }
.btn--white:hover { background: var(--paper); }

/* News pills: app launch and new stores */
.hero__news { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__app {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .55);
  color: var(--pine); text-decoration: none; font-size: .9375rem;
  transition: background-color .15s;
}
.hero__app:hover { background: var(--white); }
.hero__app strong { color: var(--ink); }
.hero__app-badge {
  background: var(--pine); color: var(--white);
  font-weight: 700; font-size: .8125rem; padding: 5px 10px; border-radius: 999px;
}

/* Store photo */
.hero__photo { position: relative; margin: 0; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 40px 70px -36px rgba(16, 51, 43, .55);
}
.hero__photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .92); color: var(--pine); font-weight: 600;
  font-size: .8125rem; padding: 7px 12px; border-radius: 999px;
}

/* Live store status: a row of town chips, styled like the footer store list */
.board {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(16, 51, 43, .2);
}
.board__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.board__head h2 {
  font: 700 1.375rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  margin: 0; color: var(--pine);
}
.board__clock { font-variant-numeric: tabular-nums; color: var(--pine); font-size: .875rem; opacity: .75; }

.board__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px;
}
.board__list a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; min-width: 0;
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, .5); border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.board__list a:hover { background: var(--white); }
.board__town {
  font: 700 1.125rem/1.1 var(--display);
  text-transform: uppercase; letter-spacing: .03em; color: var(--pine);
}
/* Status may wrap onto a second line rather than spill out of the chip */
.board__status {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .8125rem; line-height: 1.35; font-variant-numeric: tabular-nums;
  color: var(--muted); overflow-wrap: anywhere;
}
.board__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--closed); flex: none;
  margin-top: .38em;
}
/* Scoped to the hero chips: store cards also get .is-open */
.board__list .is-open a { background: var(--pine); }
.board__list .is-open a:hover { background: var(--pine-2); }
.board__list .is-open .board__town { color: var(--white); }
.board__list .is-open .board__status { color: #9FE6C3; }
.board__list .is-open .board__status::before { background: #5BD39C; box-shadow: 0 0 0 3px rgba(91, 211, 156, .25); }

/* ---------- Ways to visit (photo strip) ---------- */

.ways { padding-bottom: clamp(56px, 8vw, 96px); }
.ways__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.way {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-l); text-decoration: none; color: var(--white);
  height: clamp(300px, 34vw, 440px); background: var(--pine);
}
.way img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.way:hover img { transform: scale(1.03); }
.way::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 38, 32, .88) 0%, rgba(11, 38, 32, .2) 55%, transparent 80%);
}
.way__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 32px); }
.way h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .15em; }
.way p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- App ---------- */

.app { background: var(--mint); padding: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.app__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.app h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); color: var(--pine); font-weight: 800; }
.app__lede { font-size: 1.1875rem; color: var(--pine); }
.app__note { color: var(--pine-2); font-size: .9375rem; margin-top: 20px; }
.app__note a { font-weight: 600; }

.stores-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 22px 8px 16px;
  background: var(--pine); color: var(--white);
  border-radius: 14px; text-decoration: none;
  transition: background-color .15s;
}
.badge:hover { background: #0A2520; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; font: 600 1.125rem/1.15 var(--body); }
.badge small { font-size: .6875rem; font-weight: 500; opacity: .8; }
.badge[aria-disabled="true"] { cursor: default; position: relative; }
.badge[aria-disabled="true"]:hover { background: var(--pine); }
.badge[aria-disabled="true"]::after {
  content: "Coming soon";
  position: absolute; top: -10px; right: -8px;
  background: var(--resin); color: var(--resin-ink);
  font: 700 .6875rem/1 var(--body); padding: 5px 8px; border-radius: 999px;
}

.phone {
  justify-self: center; position: relative;
  width: min(290px, 72vw); aspect-ratio: 9 / 19;
  background: #0B2620; border-radius: 46px; padding: 11px;
  box-shadow: 0 0 0 2px #1E5045 inset, 0 50px 80px -30px rgba(16, 51, 43, .65);
  transform: rotate(3deg);
}
/* Camera notch */
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 999px; background: #0B2620;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper);
  container-type: inline-size;
}
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; }

/* Mock app UI — every size scales with the phone width (cqw) */
.app-ui {
  height: 100%; display: flex; flex-direction: column;
  padding: 5cqw 6cqw 0; font-size: 4.6cqw; line-height: 1.3; color: var(--ink);
}
.app-ui__status { display: flex; justify-content: space-between; font-weight: 600; font-size: .8em; padding: 0 2cqw; height: 9cqw; align-items: center; }
.app-ui__icons { width: 14cqw; height: 3.4cqw; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 60%, transparent 60% 68%, var(--ink) 68%); opacity: .8; }
.app-ui__top { display: flex; align-items: center; justify-content: space-between; margin-top: 3cqw; }
.app-ui__top img { height: 9.5cqw; width: auto; }
.app-ui__avatar { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 2px var(--white); }
.app-ui__hello { margin: 4cqw 0 2.5cqw; font: 700 1.5em/1 var(--display); text-transform: uppercase; color: var(--pine); }
.app-ui__card { background: var(--white); border-radius: 4.5cqw; overflow: hidden; box-shadow: 0 2cqw 5cqw -2cqw rgba(16, 51, 43, .35); }
.app-ui__card img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.app-ui__card-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 2.4cqw 3.5cqw; font-size: .82em; }
.app-ui__card-meta span { color: var(--muted); }
.app-ui__card-meta strong { color: var(--pine); }
.app-ui__label { margin: 4cqw 0 1.8cqw; font-weight: 700; font-size: .82em; color: var(--muted); }
.app-ui__store { display: flex; gap: 3cqw; align-items: center; background: var(--white); border-radius: 3.5cqw; padding: 2cqw; }
.app-ui__store img { width: 15cqw; height: 15cqw; border-radius: 2.5cqw; object-fit: cover; }
.app-ui__store div { display: flex; flex-direction: column; }
.app-ui__store strong { font: 700 1.1em/1.1 var(--display); text-transform: uppercase; color: var(--pine); }
.app-ui__store span { display: flex; align-items: center; gap: 1.5cqw; font-size: .8em; color: #1D6B48; }
.app-ui__store i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #2E9E6E; }
.app-ui__menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.app-ui__menu span {
  aspect-ratio: 1; border-radius: 3cqw; background-size: cover; background-position: center;
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
}
.app-ui__menu span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 38, 32, .8), transparent 60%); }
.app-ui__menu b { position: relative; z-index: 1; color: var(--white); font-size: .72em; padding: 1.5cqw 2cqw; }
.app-ui__nav {
  margin: auto -6cqw 0; padding: 3.5cqw 10cqw 6cqw; background: var(--white);
  display: flex; justify-content: space-between; border-top: 1px solid var(--line);
}
.app-ui__nav i { width: 6cqw; height: 6cqw; border-radius: 1.8cqw; background: var(--line); }
.app-ui__nav i.on { background: var(--pine); }

/* ---------- Stores ---------- */

.stores { padding: clamp(64px, 9vw, 112px) 0; }

.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.stores__tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 .9375rem/1 var(--body); cursor: pointer;
}
.chip:hover { border-color: var(--pine); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: var(--white); }
.locate-msg { font-size: .9375rem; color: var(--muted); margin: 12px 0 0; min-height: 1.5em; }

.store-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.store {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px;
  scroll-margin-top: 96px;
}
.store__img {
  width: calc(100% + 44px); max-width: none; margin: -22px -22px 18px;
  height: 150px; object-fit: cover; border-radius: 15px 15px 0 0;
}
.store:target, .store.is-flash { border-color: var(--resin); box-shadow: 0 0 0 3px rgba(233, 162, 59, .35); }
.store__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.store__h { margin: 0 0 4px; font: inherit; letter-spacing: 0; text-transform: none; }
.store__name {
  font: 700 1.875rem/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--pine);
}
/* The header is a button (tap to expand on phones); on wider screens it looks like plain text */
.store__head {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: default;
}
.store__summary, .store__chev { display: none; }
.store__more { display: flex; flex-direction: column; flex: 1; }
.store__status {
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: #F6E2DF; color: #8A3227;
}
.store.is-open .store__status { background: #DDF2E8; color: #1D6B48; }

/* Stores coming soon: dashed outline and the shield on logo mint */
.store--soon { border: 2px dashed rgba(16, 51, 43, .3); background: rgba(255, 255, 255, .55); }
.store__soon-art {
  width: calc(100% + 44px); margin: -22px -22px 18px; height: 150px;
  border-radius: 14px 14px 0 0; background: var(--mint);
  display: grid; place-items: center;
}
.store__soon-art img { height: 110px; width: auto; }
.store__status--soon { background: var(--pine); color: var(--white); }
.store__addr { color: var(--muted); margin-bottom: 12px; }
.store__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.store__tags span {
  font-size: .8125rem; padding: 3px 10px; border-radius: 999px;
  background: var(--mint-soft); color: var(--pine);
}
.store__dist { font-size: .8125rem; color: var(--muted); align-self: center; }
.hours { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-size: .9375rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today { font-weight: 700; color: var(--ink); }
.store__actions { display: flex; gap: 8px; margin-top: auto; }
.store__actions .btn { flex: 1; padding: 0 12px; }
.store__actions .btn--call { background: var(--pine); color: var(--white); }
.store__actions .btn--call:hover { background: var(--pine-2); }
.store-empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }

/* ---------- Delivery ---------- */

.delivery { background: var(--pine); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.delivery h2 { color: var(--white); }
.delivery p { color: rgba(255, 255, 255, .82); }
.delivery__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 80px); align-items: start;
}
.delivery__grid > :not(.delivery__img) { grid-column: 2; }
.delivery__img {
  grid-column: 1; grid-row: 1 / span 3; align-self: stretch;
  width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--radius-l);
}
.delivery__facts { margin: 0; display: grid; gap: 0; }
.delivery__facts div { padding: 16px 0; border-bottom: 1px solid rgba(168, 220, 209, .22); }
.delivery__facts div:first-child { padding-top: 0; }
.delivery__facts dt { color: var(--mint); font-size: .9375rem; }
.delivery__facts dd { margin: 2px 0 0; font: 700 1.875rem/1.2 var(--display); }
.delivery__facts a { text-decoration: none; }
.delivery__facts a:hover { color: var(--resin); }
.delivery__soon {
  display: inline-block; margin-bottom: 14px;
  background: var(--mint); color: var(--pine);
  font-weight: 700; font-size: .875rem; padding: 6px 12px; border-radius: 999px;
}
.delivery__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }

/* ---------- Products ---------- */

.products { padding: clamp(64px, 9vw, 112px) 0; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--pine);
}
.product { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.product:nth-child(3n+2), .product:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--line); }
.product__img {
  width: 100%; height: 210px; object-fit: cover;
  border-radius: 12px; margin-bottom: 18px; background: var(--mint-soft);
}
.product h3 { font-size: 1.625rem; text-transform: uppercase; color: var(--pine); }
.product p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Merch ---------- */

.merch { padding: 0 0 clamp(64px, 9vw, 112px); }
.merch__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .merch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.merch__item {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.merch__img, .merch__ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
/* Placeholder until real photos are added: the shield on logo mint */
.merch__ph { background: var(--mint); display: grid; place-items: center; }
.merch__ph img { width: 46%; height: auto; opacity: .9; }
.merch__body { padding: 18px 20px 22px; }
.merch__body h3 { font-size: 1.625rem; text-transform: uppercase; color: var(--pine); margin-bottom: 4px; }
.merch__body p { margin: 0; color: var(--muted); font-size: 1rem; }
.merch__where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.merch__tag {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  background: var(--mint-soft); color: var(--pine);
}
.merch__tag--now { background: var(--pine); color: var(--white); }
a.merch__tag:hover { background: var(--mint); }

/* ---------- Loyalty ---------- */

.loyalty { padding: 0 0 clamp(64px, 9vw, 112px); }
.loyalty__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(24px, 5vw, 56px);
}
.loyalty__img {
  width: 100%; border-radius: 18px;
  box-shadow: 0 30px 50px -28px rgba(16, 51, 43, .55);
  transform: rotate(-2deg);
}
.rewards { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rewards li {
  padding: 12px 16px; background: var(--mint-soft); border-radius: 10px;
  font-weight: 600; color: var(--pine);
}

/* ---------- Footer ---------- */

/* Mint is the logo's own background, so the shield logo sits as designed */
.footer {
  background: var(--mint); color: var(--ink);
  padding: clamp(48px, 7vw, 80px) 0 32px; font-size: 1rem;
}
.footer__grid {
  display: grid; gap: 40px clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
}
.footer h3 {
  font: 700 1.375rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--pine); margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: inherit; text-decoration: none; }

.footer__logo { width: 190px; height: auto; margin: -8px 0 4px -6px; }
.footer__tag { font-weight: 600; color: var(--pine); margin-bottom: 20px; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--white); color: var(--pine) !important; font-weight: 600;
  transition: background-color .15s;
}
.fbtn:hover { background: var(--paper); }
.fbtn svg { width: 18px; height: 18px; }
.fbtn--wa { background: var(--pine); color: var(--white) !important; }
.fbtn--wa:hover { background: var(--pine-2); }

/* Store list: two columns of tappable rows */
.footer__stores ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.footer__stores a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid rgba(16, 51, 43, .18);
  font-weight: 600; color: var(--pine);
}
.footer__stores a::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
  opacity: .5;
}
.footer__stores a:hover { color: var(--ink); }
.footer__stores .footer__soon span {
  margin-left: auto; margin-right: 10px;
  background: var(--pine); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.footer__stores a:hover::after { opacity: 1; }

.footer__contact li + li { margin-top: 8px; }
.footer__contact a { font-weight: 600; color: var(--pine); border-bottom: 1px solid rgba(16, 51, 43, .3); }
.footer__contact a:hover { border-color: var(--pine); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine); color: var(--white); transition: background-color .15s;
}
.footer__social a:hover { background: var(--pine-2); }
.footer__social svg { width: 20px; height: 20px; }

.footer__base {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(16, 51, 43, .2);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  font-size: .875rem; color: var(--pine);
}
.footer__base p { margin: 0; }
.footer__age { display: flex; align-items: center; gap: 12px; max-width: 70ch; }
.footer__18 {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--pine); font: 800 .9375rem/1 var(--display);
}

/* ---------- Floating WhatsApp chat ---------- */

.wa {
  --wa-green: #25D366;
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.wa > * { pointer-events: auto; }

.wa__fab {
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--wa-green); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(16, 51, 43, .55);
  transition: transform .15s;
}
.wa__fab:hover { transform: scale(1.06); }
.wa__fab svg { width: 32px; height: 32px; }
.wa__fab[aria-expanded="true"] { background: var(--pine); }

.wa__teaser {
  margin: 0; max-width: none;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px 14px 4px 14px;
  padding: 10px 14px; font-size: .9375rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(16, 51, 43, .4);
  animation: wa-in .25s ease-out;
}

.wa__panel {
  width: min(340px, calc(100vw - 32px));
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px -16px rgba(16, 51, 43, .5);
  transform-origin: bottom right;
  animation: wa-in .2s ease-out;
}
.wa__panel[hidden], .wa__teaser[hidden] { display: none; }

.wa__head {
  display: flex; align-items: center; gap: 12px;
  background: var(--pine); color: var(--white); padding: 14px 14px 14px 16px;
}
.wa__head img { border-radius: 10px; }
.wa__head div { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.wa__head span { font-size: .8125rem; color: var(--mint); }
.wa__close {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--white); display: grid; place-items: center;
}
.wa__close:hover { background: rgba(255, 255, 255, .12); }
.wa__close svg { width: 20px; height: 20px; }

.wa__body { background: var(--mint-soft); padding: 20px 16px; }
.wa__bubble {
  margin: 0; background: var(--white); padding: 12px 14px;
  border-radius: 4px 14px 14px 14px; font-size: .9375rem;
  box-shadow: 0 1px 2px rgba(16, 51, 43, .12);
}

.wa__start {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px; min-height: 48px; border-radius: 999px;
  background: var(--wa-green); color: #073B1E;
  font-weight: 700; text-decoration: none;
}
.wa__start:hover { background: #3BE07A; }
.wa__start svg { width: 22px; height: 22px; }

@keyframes wa-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Mobile action bar ---------- */

.actionbar { display: none; }

/* ---------- Age gate ---------- */

.agegate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 16px;
  background: rgba(11, 38, 32, .94);
}
.agegate[hidden] { display: none; }
.agegate__panel {
  background: var(--paper); border-radius: var(--radius-l);
  padding: 36px 28px; max-width: 420px; width: 100%; text-align: center;
}
.agegate__logo { margin: 0 auto 20px; border-radius: 28px; box-shadow: 0 16px 32px -16px rgba(16, 51, 43, .5); }
.agegate__panel h2 { font-size: 2rem; color: var(--pine); }
.agegate__panel p { color: var(--muted); margin: 0 auto 24px; }
.agegate__actions { display: grid; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid, .app__grid, .delivery__grid, .loyalty__grid { grid-template-columns: 1fr; }
  .phone { width: min(270px, 70vw); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:nth-child(n) { padding: 24px 20px 28px 0; border-left: 0; }
  .product:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .loyalty__img { max-width: 480px; }
  .delivery__grid > :not(.delivery__img), .delivery__img { grid-column: auto; grid-row: auto; }
  .delivery__img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 960px) {
  .hero__photo img { aspect-ratio: 16 / 10; border-radius: 20px; }
}

@media (max-width: 720px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__news { margin-top: 20px; }
  /* Town chips scroll sideways on phones */
  .board__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .board__list::-webkit-scrollbar { display: none; }
  .board__list li { flex: 0 0 auto; scroll-snap-align: start; }
  .board__list a { min-width: 140px; }
  /* Merch swipes sideways on phones */
  .merch__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .merch__grid::-webkit-scrollbar { display: none; }
  .merch__item { flex: 0 0 78%; scroll-snap-align: start; }
  .ways__grid { grid-template-columns: 1fr; }
  .way { height: 300px; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .topbar__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }

  .actionbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px;
    padding: 6px; border-radius: 999px;
    background: var(--pine); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .actionbar a {
    display: grid; place-items: center; min-height: 48px; border-radius: 999px;
    color: var(--white); text-decoration: none; font-weight: 600;
  }
  .actionbar__main { background: var(--resin); color: var(--resin-ink) !important; }

  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

  /* Sit above the action bar */
  .wa { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .wa__fab { width: 54px; height: 54px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product:nth-child(n) { padding: 20px 0; border-left: 0; }
  .stores__tools { flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__logo { width: 170px; }
  .footer__actions .fbtn { flex: 1 1 auto; justify-content: center; }
  .board__status { font-size: .8125rem; }
  .phone { width: 250px; border-radius: 40px; padding: 9px; transform: none; }
  .phone::before { top: 16px; height: 18px; }
  .phone__screen { border-radius: 32px; }
  .loyalty__img { transform: none; }
}

/* ---------- Store list on phones: compact rows, tap to expand ---------- */
@media (max-width: 720px) {
  .store-list { gap: 10px; }
  .store {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center;
    padding: 10px; border-radius: 14px;
  }
  .store:not(.store--soon) { cursor: pointer; }
  .store__img, .store__soon-art {
    width: 64px; height: 64px; margin: 0; border-radius: 10px;
  }
  .store__soon-art img { height: 46px; }
  .store__h { margin: 0; min-width: 0; }
  .store__head {
    display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; column-gap: 8px;
    cursor: pointer; padding: 4px 0; -webkit-tap-highlight-color: transparent;
  }
  .store__head .store__top { grid-column: 1; }
  .store__name { font-size: 1.375rem; }
  /* On phones the coloured summary line replaces the Open/Closed pill */
  .store__head .store__status { display: none; }
  .store__summary {
    display: flex; align-items: center; gap: 6px; grid-column: 1; margin-top: 2px;
    font-size: .875rem; color: #8A3227;
  }
  .store__summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--closed); flex: none; }
  .store.is-open .store__summary { color: #1D6B48; }
  .store.is-open .store__summary::before { background: var(--open); }
  .store__chev {
    display: block; grid-column: 2; grid-row: 1 / span 2; justify-self: center;
    width: 9px; height: 9px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
  }
  .store.is-expanded .store__chev { transform: rotate(-135deg) translate(-2px, -2px); }

  /* Details panel: hidden until the row is tapped */
  .store__more {
    grid-column: 1 / -1; display: none;
    margin-top: 12px; padding: 12px 4px 4px; border-top: 1px solid var(--line);
  }
  .store.is-expanded .store__more { display: flex; }
  .store__addr { margin-bottom: 10px; }
  .hours { margin-bottom: 14px; }

  /* Coming-soon rows always show their short note */
  .store--soon .store__more { display: flex; }
  .store--soon .store__status { font-size: .75rem; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
