/* =========================================================
   Thursday Island Pharmacy – Reef & Coral
   Every colour comes from the variables below: the first block
   is day mode, the [data-theme="dark"] block is night mode.
   ========================================================= */

:root {
  /* Brand colours */
  --reef:       #0b4f5c;   /* deep teal – owner panel, menu button */
  --coral:      #ef6a4c;   /* call-to-action buttons */
  --coral-dark: #d4512f;
  --mango:      #f6b33d;   /* highlights, today's hours */
  --palm:       #2f7a4d;
  --hibiscus:   #c8385a;
  --on-accent:  #ffffff;   /* text on coral / reef */

  /* Surfaces & text */
  --bg:         #fbf5ea;   /* page (sand) */
  --bg-alt:     #ffffff;   /* services section */
  --surface:    #ffffff;   /* cards */
  --surface-2:  #fbf5ea;   /* cards sitting on --bg-alt */
  --footer:     #073943;
  --heading:    #0b4f5c;
  --ink:        #1b2c30;
  --muted:      #5a6d70;
  --accent:     #138f96;   /* lagoon – links, eyebrows */
  --tint:       #bfeae6;   /* shallows – light accent fill */
  --shade-rgb:  7, 57, 67; /* overlays, shadows, borders (r,g,b) */

  --line:      rgba(var(--shade-rgb), .1);
  --shadow:    0 10px 30px -12px rgba(var(--shade-rgb), .28);
  --radius:    18px;
  --radius-sm: 10px;
  --container: 1160px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

/* Night mode – the reef after dark */
:root[data-theme="dark"] {
  --reef:       #0f4652;
  --coral:      #f0714f;
  --coral-dark: #e05a38;
  --mango:      #f7bd52;
  --palm:       #5fb889;
  --hibiscus:   #ec6f93;

  --bg:         #0a1e25;   /* lifted slightly from near-black – less glare from bright text */
  --bg-alt:     #0d252d;
  --surface:    #13343e;   /* cards stand further off the page */
  --surface-2:  #123039;
  --footer:     #051318;
  --heading:    #dcf4f0;
  --ink:        #e6eeee;   /* soft off-white rather than pure white (avoids halo/glow) */
  --muted:      #c4d3d5;   /* secondary text – was too grey to read comfortably */
  --accent:     #74ddd5;
  --tint:       #16444b;
  --shade-rgb:  2, 12, 16;

  --line:      rgba(255, 255, 255, .11);
  /* faint edge ring + drop shadow so cards read as separate panels in the dark */
  --shadow:    0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px -12px rgba(0, 0, 0, .65);

  color-scheme: dark;
}

/* Night-mode typography: light-on-dark text looks thinner and tighter than
   dark-on-light, so nudge weight, spacing and line height up slightly. */
:root[data-theme="dark"] body { font-weight: 460; letter-spacing: .008em; line-height: 1.72; }
:root[data-theme="dark"] .service p,
:root[data-theme="dark"] .pillar p,
:root[data-theme="dark"] .section-intro { font-weight: 470; }
:root[data-theme="dark"] .eyebrow { letter-spacing: .16em; }

/* Day/night content swaps */
:root[data-theme="dark"] .day-only { display: none !important; }
:root:not([data-theme="dark"]) .night-only { display: none !important; }

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--heading); }

h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }

.eyebrow {
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6em;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, transform .2s, color .2s;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6em 1.15em; font-size: .95rem; }
.btn-coral { background: var(--coral); color: var(--on-accent); }
.btn-coral:hover { background: var(--coral-dark); color: var(--on-accent); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn.is-soon { opacity: .6; pointer-events: none; }

.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  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; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); margin-right: auto; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.brand-text span { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; order: 3; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 2px solid var(--line); background: var(--surface); color: var(--heading);
  transition: transform .3s, background .2s;
}
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle .icon-sun { display: none; color: var(--mango); }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.site-nav { display: flex; align-items: center; gap: 26px; order: 2; }
.site-nav a:not(.btn) { color: var(--heading); text-decoration: none; font-weight: 700; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: var(--coral); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px;
    background: var(--reef); cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 720px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: 80px 0 120px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-bg.day-only { object-position: 50% 58%; }
.hero-bg.night-only { object-position: 50% 42%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(var(--shade-rgb), .82) 0%, rgba(var(--shade-rgb), .45) 45%, rgba(var(--shade-rgb), 0) 75%),
    linear-gradient(0deg, rgba(var(--shade-rgb), .3), transparent 40%);
}
:root[data-theme="dark"] .hero-shade {
  background:
    linear-gradient(100deg, rgba(var(--shade-rgb), .8) 0%, rgba(var(--shade-rgb), .35) 50%, rgba(var(--shade-rgb), 0) 80%),
    linear-gradient(0deg, rgba(var(--shade-rgb), .55), transparent 45%);
}
.hero-content { position: relative; z-index: 1; }
/* Location line sits on a frosted pill so busy photo detail (e.g. leaves) can't break up the letters */
.hero .eyebrow {
  display: inline-block; color: var(--mango);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 1em;
  line-height: 1.4;
}

/* Shared "frosted glass" for the header pills: no border, a very light tint,
   and a strong blur doing most of the work so busy photo detail melts away. */
.hero .eyebrow, .status-pill {
  background: rgba(var(--shade-rgb), .18);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
@media (max-width: 480px) {
  .hero .eyebrow { border-radius: 14px; font-size: .72rem; letter-spacing: .12em; }
}
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.2rem); margin-bottom: .3em; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin: 16px 0 0; font-size: .95rem; opacity: .92; }
.hero-note a { color: #fff; font-weight: 800; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #9ee6a8; box-shadow: 0 0 0 4px rgba(158,230,168,.25); }
.status-pill.is-closed .dot { background: var(--mango); box-shadow: 0 0 0 4px rgba(246,179,61,.25); }

@media (max-width: 640px) {
  .hero { min-height: 0; padding: 64px 0 110px; }
  .hero-bg { object-position: 42% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(var(--shade-rgb), .55), rgba(var(--shade-rgb), .85)); }
  :root[data-theme="dark"] .hero-shade { background: linear-gradient(180deg, rgba(var(--shade-rgb), .3) 0%, rgba(var(--shade-rgb), .45) 45%, rgba(var(--shade-rgb), .8) 100%); }
  .hero-bg.night-only { object-position: 38% 40%; }
}

/* ---------- Waves ---------- */
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.wave-bottom { bottom: -1px; fill: var(--bg); }
.wave-top { top: -1px; }

/* ---------- Quick info ---------- */
.quick { margin-top: -70px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card {
  background: var(--surface); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow);
  border-top: 5px solid var(--accent);
}
.quick-card:nth-child(2) { border-top-color: var(--mango); }
.quick-card-accent { border-top-color: var(--coral); }
.quick-title { font-size: 1.2rem; margin-bottom: .7em; }
.quick-card p { margin-bottom: .6em; }
.quick-links { display: grid; gap: 6px; justify-items: start; margin-top: 4px; }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 800; color: var(--heading); white-space: nowrap; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--coral-dark); }
:root[data-theme="dark"] .hours div.is-today dt, :root[data-theme="dark"] .hours div.is-today dd { color: var(--mango); }

@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-intro { font-size: 1.15rem; color: var(--muted); }
.section-intro a { font-weight: 700; }
.prose .lead { font-size: 1.2rem; color: var(--heading); font-weight: 600; }
.h-sub { font-size: clamp(1.5rem, 2.6vw, 2rem); }

@media (max-width: 640px) { .section { padding: 72px 0; } }

/* ---------- Photos & placeholders ---------- */
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.photo-tilt { transform: rotate(1.5deg); }
.photo-tilt img { border: 8px solid var(--surface); }
.photo-wide { margin: 56px 0; }
.photo-wide img, .photo-wide .placeholder { aspect-ratio: 16 / 4; min-height: 0; }
.photo-wide figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .photo-wide img, .photo-wide .placeholder { aspect-ratio: 16 / 7; } }

/* Stained-glass panorama: breaks out of the container to run edge to edge */
html, body { overflow-x: clip; }   /* stops 100vw from causing a sideways scroll on desktop */
.pano { width: 100vw; margin-left: calc(50% - 50vw); }
.pano-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pano-scroll::-webkit-scrollbar { display: none; }
.pano .pano-scroll img {
  width: auto; min-width: 100%; height: clamp(240px, 34vh, 400px);
  aspect-ratio: 3600 / 505;   /* lets the browser know the width before the image loads */
  max-width: none; object-fit: cover;
  border-radius: 0; box-shadow: none;
}
.pano figcaption { padding: 0 20px; }
.pano-hint { display: none; font-weight: 700; color: var(--accent); }
@media (max-width: 760px) {
  .pano .pano-scroll img { height: min(290px, 38vh); }
  .pano-hint { display: inline; }
}

/* Green Hill panorama – a taller, more cinematic strip */
.greenhill { padding: 40px 0 8px; }
.greenhill .pano { margin-top: 0; margin-bottom: 0; }
.pano-tall .pano-scroll img { aspect-ratio: 3800 / 842; height: clamp(300px, 46vh, 540px); }
@media (max-width: 760px) { .pano-tall .pano-scroll img { height: min(320px, 42vh); } }

/* Scroll-linked panning (turned on by script.js when the image is wider than the screen) */
.pano-pin.is-pinned .pano-sticky { position: sticky; }
.pano-pin.is-pinned .pano-scroll { overflow: hidden; }
.pano-pin.is-pinned img { will-change: transform; }
.pano.pan-active .pano-hint { display: none; }
.pano-progress {
  display: none; width: min(180px, 40%); height: 3px; margin: 12px auto 0;
  border-radius: 3px; background: var(--line); overflow: hidden;
}
.pano-pin.is-pinned .pano-progress { display: block; }
.pano-progress span {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}

:root[data-theme="dark"] img:not(.hero-bg):not(.brand img) { filter: brightness(.92); }

/* Drop-in photo placeholder. Replace the whole <div class="placeholder"> with an <img>. */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 24px; min-height: 220px;
  border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg,
    var(--tint) 0 14px,
    color-mix(in srgb, var(--tint) 55%, var(--surface)) 14px 28px);
  color: var(--heading); font-weight: 700; font-size: .95rem;
}
.placeholder span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.placeholder.night-only {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.4) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,.35) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 75%, rgba(255,255,255,.3) 0 1px, transparent 2px),
    linear-gradient(180deg, #0b2a3a, #12404a);
  color: #e6f4f1;
}
.placeholder.night-only span { color: var(--mango); }

/* ---------- About ---------- */
.about-grid, .team-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.team-grid { grid-template-columns: 1fr 1.2fr; margin-top: 72px; }
@media (max-width: 900px) {
  .about-grid, .team-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-tilt { transform: none; }
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.pillar:nth-child(2)::before { background: var(--coral); }
.pillar:nth-child(3)::before { background: var(--palm); }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.award {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--mango) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--mango) 45%, var(--surface));
}
.award p { margin: 0; line-height: 1.4; }
.award-badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mango); color: #fff; font-size: 1.3rem;
}

.owners {
  margin: 72px 0 0; padding: 36px; border-radius: var(--radius);
  background: var(--reef); color: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center;
}
.owners .eyebrow { color: var(--mango); }
.owners img.owners-photo { aspect-ratio: 4 / 5; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.owners img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
.owners-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; margin-bottom: .8em; }
.owners cite { font-style: normal; font-weight: 800; color: #bfeae6; }
@media (max-width: 760px) { .owners { grid-template-columns: 1fr; padding: 26px; } .owners img.owners-photo { aspect-ratio: 16 / 9; object-position: 50% 55%; } }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); padding-top: 120px; }
.services .wave-top { fill: var(--bg); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--heading); transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--reef); border-color: var(--reef); color: #fff; }
:root[data-theme="dark"] .chip.is-active { background: var(--accent); border-color: var(--accent); color: #062026; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  background: var(--surface-2); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service h3 { margin: .55em 0 .45em; font-size: 1.18rem; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }
.service.featured {
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 60%, var(--surface)), var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.service[hidden] { display: none; }

/* Tag text mixes toward --ink, so it darkens in day mode and lightens at night */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag-medicines { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.tag-checks    { background: color-mix(in srgb, var(--coral) 16%, var(--surface));  color: color-mix(in srgb, var(--coral) 70%, var(--ink)); }
.tag-diabetes  { background: color-mix(in srgb, var(--mango) 22%, var(--surface));  color: color-mix(in srgb, var(--mango) 50%, var(--ink)); }
.tag-everyday  { background: color-mix(in srgb, var(--palm) 16%, var(--surface));   color: color-mix(in srgb, var(--palm) 75%, var(--ink)); }

:root[data-theme="dark"] .tag-medicines { color: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
:root[data-theme="dark"] .tag-checks    { color: color-mix(in srgb, var(--coral) 40%, var(--ink)); }
:root[data-theme="dark"] .tag-diabetes  { color: color-mix(in srgb, var(--mango) 45%, var(--ink)); }
:root[data-theme="dark"] .tag-everyday  { color: color-mix(in srgb, var(--palm) 45%, var(--ink)); }

.services-cta { margin-top: 36px; text-align: center; font-size: 1.1rem; font-weight: 600; }

@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */
.shop-panel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  padding: 44px; border-radius: var(--radius);
  background: linear-gradient(140deg, color-mix(in srgb, var(--tint) 70%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.shop-copy .btn { margin-top: 8px; }
.shop-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shop-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.shop-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: #fff;
  background: rgba(var(--shade-rgb), .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 900px) { .shop-panel { grid-template-columns: 1fr; padding: 26px; gap: 28px; } }

/* ---------- Photo band ---------- */
.band { display: grid; grid-template-columns: repeat(3, 1fr); height: 260px; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .placeholder { min-height: 0; height: 100%; border-radius: 0; border: 0; }
@media (max-width: 640px) {
  .band { grid-template-columns: 1fr; height: auto; }
  .band img, .band .placeholder { height: 180px; }
  .band > :last-child { display: none !important; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow);
  border-left: 5px solid var(--accent); transition: transform .2s;
}
.contact-card:hover { transform: translateX(4px); color: var(--ink); }
.contact-card:nth-child(2) { border-left-color: var(--mango); }
.contact-card:nth-child(3) { border-left-color: var(--palm); }
.contact-card:nth-child(4) { border-left-color: var(--hibiscus); }
.contact-card-primary { background: var(--coral); border-left-color: var(--coral-dark); }
.contact-card-primary, .contact-card-primary:hover { color: var(--on-accent); }
.contact-card-primary .contact-label, .contact-card-primary .contact-value, .contact-card-primary .muted { color: var(--on-accent); }
.contact-card-primary .contact-value { font-size: 1.6rem; }
.contact-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 800; font-size: 1.15rem; color: var(--heading); overflow-wrap: anywhere; }

.contact-hours { background: var(--surface); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow); }
.contact-hours h3 { font-size: 1.1rem; }

.contact-side { display: grid; gap: 14px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
.contact-shopfront { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; min-height: 0; }
img.contact-shopfront { box-shadow: var(--shadow); object-position: 50% 62%; }

/* ---------- Gallery ---------- */
.gallery-section { padding-bottom: 24px; }
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: rgba(var(--shade-rgb), .72); color: #fff; backdrop-filter: blur(4px);
}
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .gallery .g-wide { grid-column: span 2; }
  .gallery .g-tall { grid-column: 1; grid-row: 2 / span 2; }
  .gallery figcaption { font-size: .8rem; left: 8px; bottom: 8px; }
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.sister {
  margin-top: 56px; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 8%, var(--surface)), color-mix(in srgb, var(--coral) 16%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--surface));
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.sister .eyebrow { color: var(--hibiscus); }
.sister h3 { font-size: 1.6rem; }
.sister p { margin: 0; }
.sister-details { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sister-details strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .sister { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer); color: rgba(255,255,255,.82); padding: 96px 0 28px; }
.site-footer .wave-top { fill: var(--bg); }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.footer-title { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: .4em; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--mango); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 640px) {
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--reef); border-radius: 999px; overflow: hidden;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
    border: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    text-align: center; padding: 14px 6px; color: #fff; text-decoration: none; font-weight: 800;
  }
  .action-bar a:first-child { background: var(--coral); }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  body { padding-bottom: 80px; }
}
