/*
 * theme.css — Sugar & Spoon. A warm home-bakery palette: blush ground,
 * cocoa ink, one raspberry accent, and a WhatsApp green kept for the one
 * action that matters (ordering). Dark mode is cocoa-dark with a lighter
 * raspberry, not the light palette inverted.
 */

:root {
  --canvas: #fff8f5;
  --surface: #ffffff;
  --surface-2: #fbe9e3;
  --border: #efd9d2;
  --border-strong: #c9a69d;
  --ink: #3a1f1d;
  --muted: #7a5650;
  --accent: #b3264f;
  --accent-hover: #96203f;
  --accent-ink: #ffffff;
  --accent-text: #b3264f;
  --accent-strong: #8c1a3b;
  --accent-soft: #fde1e7;
  --accent-border: #f2b3c1;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dff1e4;
  --success-strong: #116a33;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f7e7d6;
  --warning-strong: #8f4106;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f8dede;
  --danger-strong: #9f1818;
  --chart-1: #b3264f;
  --chart-2: #c9822b;
  --chart-3: #5a7d3a;
  --chart-4: #3a1f1d;
  --chart-5: #0b6b80;
  --chart-6: #6b4fa3;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --eyebrow-tracking: 0.08em;

  --radius-btn: 999px;
  --radius-card: 1.5rem;
  --radius-input: 0.875rem;
  --btn-weight: 600;
  --shadow-card: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent), 0 12px 32px -12px color-mix(in srgb, var(--ink) 18%, transparent);

  --x-band-bg: #3a1f1d;
  --x-band-ink: #fff3ee;
  --x-band-muted: #e5c4bb;
  --x-band-line: #5a3834;
  --x-bubble-bg: #dff3d4;
  --x-bubble-ink: #1f2d1a;
  --x-hero-ink: #fff8f4;
  --x-wa: #157a3e;
  --x-wa-hover: #0f6633;
  --x-wa-ink: #ffffff;
}

html[data-theme="dark"] {
  --canvas: #1c1211;
  --surface: #281a18;
  --surface-2: #33221f;
  --border: #473431;
  --border-strong: #6e5550;
  --ink: #fbeee9;
  --muted: #cfb0a8;
  --accent: #f27a9a;
  --accent-hover: #f68fab;
  --accent-ink: #2a0f17;
  --accent-text: #f58faa;
  --accent-strong: #fbb9ca;
  --accent-soft: #4a2330;
  --accent-border: #7a3a4f;
  --success: #1d9150;
  --success-ink: #ffffff;
  --success-soft: #173324;
  --success-strong: #6fcf97;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #3a2517;
  --warning-strong: #ddA06b;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #3b191b;
  --danger-strong: #e08585;
  --chart-1: #f27a9a;
  --chart-2: #e2a24f;
  --chart-3: #8bb866;
  --chart-4: #fbeee9;
  --chart-5: #4fb8d0;
  --chart-6: #a98be0;

  --x-band-bg: #120a09;
  --x-band-ink: #fbeee9;
  --x-band-muted: #cfb0a8;
  --x-band-line: #3a2724;
  --x-bubble-bg: #1f3a2a;
  --x-bubble-ink: #e3f5e8;
  --x-hero-ink: #fff8f4;
  --x-wa: #1d9150;
  --x-wa-hover: #167a42;
  --x-wa-ink: #ffffff;
}

/*
 * app.css — Sugar & Spoon's own rules: the hero, the dark order band,
 * the WhatsApp button and chat bubble. Tokens only.
 */

/* ---- Hero: full-bleed photo with a wash so the headline always reads ---- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -9;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12) 72%);
}
.hero-copy { color: var(--x-hero-ink); }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--x-hero-ink) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--x-hero-ink) 32%, transparent);
  backdrop-filter: blur(6px);
}
.hero-chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--x-hero-ink);
}

/* The one moment that moves: the photo settles in once on load. It rests
   visible and animates from an offset, never from opacity 0. */
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to   { transform: none; }
}
.hero-img { animation: hero-settle 1800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.reduced-motion .hero-img { animation: none; }

/* ---- WhatsApp action ---- */
.btn-wa {
  background: var(--x-wa);
  border-color: var(--x-wa);
  color: var(--x-wa-ink);
}
.btn-wa:hover {
  background: var(--x-wa-hover);
  border-color: var(--x-wa-hover);
  color: var(--x-wa-ink);
}

/* ---- Dark statement band ---- */
.band-dark { background: var(--x-band-bg); color: var(--x-band-ink); }
.band-muted { color: var(--x-band-muted); }
.step-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--x-band-line);
  background: color-mix(in srgb, var(--x-band-ink) 8%, transparent);
}
.step-line { border-top: 1px solid var(--x-band-line); }

/* The message the button will send, drawn as the outgoing chat bubble */
.bubble {
  max-width: 28rem;
  margin-left: auto;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem 1.5rem 0.375rem 1.5rem;
  background: var(--x-bubble-bg);
  color: var(--x-bubble-ink);
  line-height: 1.6;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}

/* ---- Opening hours ---- */
.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row.is-today { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.hours-row.is-closed .hours-time { color: var(--muted); }
.hours-row.is-today.is-closed .hours-time { color: var(--accent-strong); }
