/* Page layout. Colours, fonts and .sb-button come from brand.css. */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  background: var(--sb-paper);
}

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.hero-logo {
  width: min(260px, 70vw);
  height: auto;
}

.tagline {
  margin: 1rem 0 0;
  color: var(--sb-grey);
  font-size: 1.125rem;
}

.shops { margin-top: 3rem; }

.shops h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A single shop sits centred rather than stretched full width */
.shop-list:has(> li:only-child) {
  grid-template-columns: minmax(0, 20rem);
  justify-content: center;
}

.shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1.75rem 1.25rem;
  border: 1px solid #E2DED4;
  border-radius: 1rem;
  background: var(--sb-white);
  color: var(--sb-ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.shop:hover,
.shop:focus-visible {
  color: var(--sb-ink);
  border-color: var(--sb-green);
  transform: translateY(-2px);
}

.shop:hover .sb-button,
.shop:focus-visible .sb-button { background: var(--sb-ink); }

.shop-name {
  font-family: var(--sb-font-display);
  font-weight: 700;
  font-size: 1.375rem;
}

.shop-logo {
  width: auto;
  height: 3rem;
  margin-bottom: 0.25rem;
}

.shop-desc {
  color: var(--sb-grey);
  margin-bottom: 0.75rem;
}

.shop .sb-button { margin-top: auto; }

.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--sb-grey);
  font-size: 0.875rem;
}

.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .shop { transition: none; }
  .shop:hover, .shop:focus-visible { transform: none; }
}
