/* ==========================================================================
   Hard Deals — main.css
   Single shared stylesheet for the entire site. Every page imports only this.
   Mobile-first: default styles target a 5-inch Android on 3G.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, first-party, subset.
      These used to come from fonts.googleapis.com, which cost two extra
      DNS+TLS handshakes and a render-blocking stylesheet before the first
      paint — the single biggest delay on a weak mobile connection, and the
      reason headings broke when the service worker served the page offline.
      Both files are OFL 1.1 (see fonts/OFL.txt) and are rebuilt by
      tools/subset-fonts.py. Inter is one variable file covering 400-600.
      Never point these back at a CDN.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. CSS custom properties
   -------------------------------------------------------------------------- */
:root {
  /* Colours */
  --brand: #F97316;          /* primary brand — accents, borders, tints, theme-color */
  /* --brand-ink is the ONLY orange allowed on text or as a button fill behind
     white text. --brand itself is 2.8:1 on white, which fails WCAG AA on the
     one thing a shopper must be able to read: the price. --brand-ink is 5.0:1
     and reads in direct Potch sunlight on a cheap screen. */
  --brand-ink: #C2410C;
  --brand-deep: #EA580C;     /* decorative deep orange — never text, never a fill behind white */
  --brand-press: #9A3412;    /* :active state of an orange button (stays 4.5:1 under white) */
  --bg: #FFFBF7;             /* warm off-white app background — never pure white */
  --surface: #FFFFFF;        /* card surface */
  --text: #1C1917;           /* primary text */
  --text-2: #78716C;         /* secondary text — addresses, hours, captions */
  --whatsapp: #25D366;       /* WhatsApp button ONLY */
  --trust: #1D4ED8;          /* "Listed in Potch" badge, category icons */
  --highlight: #FEF3C7;      /* warm image placeholders, amber tags — never grey */
  --border: #E5E7EB;         /* card borders, dividers */

  /* Typography */
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font-body);
  --fs-title: 24px;          /* page title / app name */
  --fs-h1: 22px;             /* business name */
  --fs-h2: 16px;             /* section headings */
  --fs-body: 14px;           /* body / descriptions / buttons */
  --fs-price: 13px;
  --fs-caption: 12px;        /* captions / meta */
  --fs-tag: 11px;            /* badge pills */

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* Shape & elevation */
  --radius-card: 10px;
  --radius-pill: 20px;
  --radius-btn: 28px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.08);

  --header-h: 56px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography scale
   -------------------------------------------------------------------------- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.3;
  color: var(--text);
}

h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.4;
  color: var(--text);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-5) 0;
}

/* --------------------------------------------------------------------------
   5. Sticky header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* The brand is a TITLE, not a CTA. It is a <span> on every page — deliberately
   not a link, not a button. Never give it a border, background, pill radius,
   box-shadow, cursor: pointer or a :hover state. */
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  color: var(--brand-ink);
}

/* Listing pages: sticky back link instead of the full header */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--brand-ink);
}

/* --------------------------------------------------------------------------
   6. Hero strip (text only — no image, keeps 3G load fast)
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--sp-6) 0 var(--sp-5);
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  color: var(--text);
}

.hero-sub {
  margin-top: var(--sp-1);
  font-size: 16px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   8. Product card (listing page — vertical list, never a 2-col grid)
   -------------------------------------------------------------------------- */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-card {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}

.product-card:last-child {
  border-bottom: none;
}

.product-card__photo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: var(--sp-2);
  background: var(--highlight); /* warm placeholder — never grey */
  overflow: hidden;
}

.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__info {
  flex: 1;
  min-width: 0;
}

.product-card__name {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
}

/* Optional — if a product has no price, omit the element entirely. Never "POA". */
.product-card__price {
  margin-top: 2px;
  font-weight: 600;
  font-size: var(--fs-price);
  color: var(--brand-ink);
}

.product-card__desc {
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   9. WhatsApp button (secondary — contact section only)
      NOT sticky. NOT fixed. NOT on every screen.
   -------------------------------------------------------------------------- */
/* The green is WhatsApp's own and is what makes this button recognisable at a
   glance, so it stays exactly as it is — but white on it is only 2:1. The label
   is near-black instead (8.8:1), which keeps the recognisable green AND the
   text readable outdoors. Do not put white text back on this. */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* --------------------------------------------------------------------------
   10. Category badge pill
   -------------------------------------------------------------------------- */
.category-badge {
  display: inline-block;
  background: var(--highlight);
  color: var(--brand-ink);
  font-weight: 500;
  font-size: var(--fs-tag);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   11. Listing page pieces (trust badge, contact, sections)
   -------------------------------------------------------------------------- */
.listing-head {
  padding: var(--sp-5) 0 0;
}

.listing-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-card);
  background: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--sp-3);
}

.listing-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}

.listing-meta {
  margin-top: var(--sp-2);
  font-size: var(--fs-body);
  color: var(--text-2);
}

.listing-meta p + p {
  margin-top: var(--sp-1);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
  color: var(--trust);
  font-weight: 500;
  font-size: var(--fs-caption);
}

.listing-desc {
  color: var(--text);
}

.section-heading {
  font-weight: 600;
  font-size: var(--fs-h2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-h2);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-6);
  padding: var(--sp-5) 0 var(--sp-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   13. Offline page
   -------------------------------------------------------------------------- */
.status-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-5);
}

.status-page__icon {
  font-size: 40px;
  margin-bottom: var(--sp-3);
}

.status-page h1 {
  font-size: var(--fs-h1);
}

.status-page p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  max-width: 320px;
}

.status-page .home-link {
  margin-top: var(--sp-4);
  display: inline-block;
  font-weight: 600;
  color: var(--brand-ink);
}

/* 14. The 404 page shares .status-page and needs nothing of its own — its icon
   is an emoji, which paints in its own colours and ignores `color`. */

/* --------------------------------------------------------------------------
   15. Media queries — 768px is primary breakpoint, 480px for small phones
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-3);
  }

  .hero {
    padding-top: var(--sp-5);
  }
}

/* --------------------------------------------------------------------------
   16. Site nav (shared 3-page header: wordmark = Home link + two text links)
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-ink);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Buttons & inline links
   -------------------------------------------------------------------------- */
.text-link {
  font-weight: 600;
  color: var(--brand-ink);
}

/* --------------------------------------------------------------------------
   18. Section break — full-width rule with a centred label sitting on it
   -------------------------------------------------------------------------- */
.section-break {
  position: relative;
  text-align: center;
  margin: var(--sp-5) 0 var(--sp-4);
}

.section-break::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  transform: translateY(-50%);
}

.section-break__label {
  position: relative;
  background: var(--bg);
  padding: 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-tag);
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   19. Home grid — 2 columns of portrait product cards, rendered by app.js.
       .product-card, __info and __name are ALSO used by the standalone
       business pages (section 8) as a horizontal row, so those three rules
       are scoped to .listing-stack. The rest are grid-only names.
   -------------------------------------------------------------------------- */
.listing-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-6);
}

.listing-stack .product-card {
  display: block;
  padding: 0;
  /* explicit all-round border re-states the bottom edge that section 8's
     .product-card:last-child rule removes */
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.product-card__btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

/* 4/5 matches images/placeholder.svg (400x500) and the width/height attributes
   on the card <img>. If the ratio here and the attributes ever disagree, real
   product photos will shift the grid as they load. */
.product-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--highlight); /* warm amber placeholder — never grey */
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-stack .product-card__info {
  flex: none;
  padding: 8px 10px 12px;
}

.listing-stack .product-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.product-card__old-price {
  font-size: 0.7rem;
  color: var(--text-2);
  text-decoration: line-through;
}

.product-card__new-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ink);
  font-family: var(--font-display);
}

/* 0.72rem / 0.7rem is the floor. These were 0.65 and 0.62 (~10px and ~9.9px),
   which is below what a middle-aged shopper can read on a 5-inch screen. */
.product-card__biz {
  font-size: 0.72rem;
  color: var(--text-2);
  margin: 0 0 2px;
  font-weight: 500;
}

.product-card__validity {
  font-size: 0.7rem;
  color: var(--text-2);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.eye-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* Compact product rows inside the detail sheet — text only, no photos */
.mini-product-list {
  margin-top: var(--sp-3);
}

.mini-product {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
}

.mini-product:last-child {
  border-bottom: none;
}

.mini-product__name {
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--text);
}

/* If a product has no price, omit the element entirely. Never "POA". */
.mini-product__price {
  font-weight: 600;
  font-size: var(--fs-price);
  color: var(--brand-ink);
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.card-actions .contact-phone {
  font-size: var(--fs-body);
}

.card-more {
  margin-top: var(--sp-3);
}

.whatsapp-btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   20. Get Directions (native Maps deep link — no iframe, 3G-safe)
   -------------------------------------------------------------------------- */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 13px;
  color: var(--trust);
  border: 1px solid var(--trust);
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  background: transparent;
}

.maps-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* --------------------------------------------------------------------------
   21. View counter line + in-page back link (standalone listing pages)

   HD:OFF — .view-count is styled but NOT RENDERED. The counter was a
   localStorage number on the visitor's own device, so "N people viewed this
   business" was really "you have tapped this N times". Gated off behind
   SHOW_VIEW_COUNT in js/app.js; turn it back on the day a real server-side
   count exists. Keep this rule.
   -------------------------------------------------------------------------- */
.view-count {
  margin-top: var(--sp-2);
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.back-link--inline {
  height: auto;
  padding: var(--sp-4) 0 0;
  font-size: var(--fs-body);
}

/* --------------------------------------------------------------------------
   22. Marketing pieces (Get Listed page)
   -------------------------------------------------------------------------- */
.section {
  margin-top: var(--sp-6);
}

/* ---- HD:OFF — social proof, kept on ice --------------------------------
   .stats-strip, .testimonial-* and (below, §26) .partners-* are STYLED BUT
   NOT RENDERED. Their markup is commented out in contact.html because the
   numbers, the quotes and the partner logo were all invented — nothing on
   this site may claim something we cannot prove.
   These rules are deliberately kept so that switching the sections back on,
   the day we have real figures and a signed-off logo, is one uncomment and
   nothing else. Do not delete them as "unused CSS".
   ------------------------------------------------------------------------ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}

.stat-block {
  text-align: center;
  padding: var(--sp-4) var(--sp-2);
  background: #FFF7ED;
  border-radius: var(--radius-card);
  border: 1px solid #FED7AA;
}

.stat-block__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-ink);
}

.stat-block__label {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  line-height: 1.35;
  color: var(--text-2);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.5;
}

.feature-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.testimonial-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.testimonial-card {
  border-left: 3px solid var(--brand);
  background: var(--bg);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: var(--sp-4);
}

.testimonial-card__quote {
  font-style: italic;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin: 0 0 var(--sp-2);
}

.testimonial-card__attr {
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.contact-cta__sub {
  font-size: var(--fs-body);
  color: var(--text-2);
  text-align: center;
  margin-bottom: var(--sp-4);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   23. Bottom sheet (tap a deal card -> business detail slides up)
       z-index scale: header 10, scrim 40, sheet 50.
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 25, 23, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet-root.is-open .scrim {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sheet-root.is-open .sheet {
  transform: translateY(0);
}

.sheet__handle {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: var(--sp-2) auto 0;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.sheet__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text-2);
  border-radius: 50%;
}

.sheet__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-3) var(--sp-4) var(--sp-6);
}

.sheet__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.3;
  padding-right: 44px;
}

.sheet__meta {
  margin-top: var(--sp-1);
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.sheet__body .listing-desc {
  margin-top: var(--sp-2);
}

.sheet__body .mini-product-list {
  margin-bottom: var(--sp-3);
}

/* Sheet is product-first: the same price classes as the grid card, scaled up */
.sheet__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.sheet__pricing .product-card__old-price {
  font-size: var(--fs-h2);
}

.sheet__pricing .product-card__new-price {
  font-size: 28px;
  line-height: 1.1;
}

.validity-pill {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--highlight);
  color: var(--brand-ink);
  font-weight: 500;
  font-size: var(--fs-tag);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sheet__rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0;
}

/* Business name carries weight without being a link — the sheet is already
   the business's page in miniature, there is nowhere else to go. */
.sheet__biz-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--brand-ink);
}

.sheet__more-heading {
  margin-top: var(--sp-4);
  color: var(--text-2);
}

.sheet__body .view-count {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 600;
  font-size: 13px;
  color: var(--trust);
}

/* Scroll lock while the sheet is open — position:fixed keeps the page from
   scrolling under the sheet; JS saves and restores the scroll offset. */
body.sheet-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   24. Small phones + reduced motion
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .site-logo {
    font-size: 20px;
  }

  .site-nav {
    gap: var(--sp-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrim,
  .sheet {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   25. Location popup — first visit, home page only.
       An acknowledgement, not a lightbox: the button is the only way out,
       so it sits above everything (header 10, sheet scrim 40, sheet 50).
   -------------------------------------------------------------------------- */
.loc-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  z-index: 200;
}

.loc-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.18);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  width: min(88vw, 340px);
}

.loc-popup.is-open,
.loc-scrim.is-open {
  display: block;
}

.loc-popup__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}

.loc-popup__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}

.loc-popup__body {
  font-size: var(--fs-body);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 var(--sp-5);
}

.loc-popup__btn {
  display: inline-block;
  background: var(--brand-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.loc-popup__btn:active {
  opacity: 0.88;
}

/* --------------------------------------------------------------------------
   26. Partners (Get Listed page)

   HD:OFF — styled but NOT RENDERED (see the note in §22). The Raad & Daad
   wordmark is a placeholder we drew, and they have not signed off on being
   listed as a partner. Markup is commented out in contact.html.
   -------------------------------------------------------------------------- */
.partners-section {
  margin-bottom: var(--sp-5);
}

.partners-intro {
  font-size: var(--fs-body);
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

.partner-logo-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  max-width: 180px;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   27. Category nav — links from the home page into the /potchefstroom/ pages.
       Generated between sentinels by tools/build-seo.js.
   -------------------------------------------------------------------------- */
.category-nav {
  margin: var(--sp-5) 0 var(--sp-6);
}

.category-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.category-nav__list a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text);
}

.category-nav__list a:active {
  border-color: var(--brand);
  color: var(--brand-ink);
}

/* --------------------------------------------------------------------------
   28. SEO landing pages (/potchefstroom/…)
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding-top: var(--sp-4);
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: underline;
}

.breadcrumb span[aria-current] {
  color: var(--text);
  font-weight: 500;
}

.seo-hero {
  padding: var(--sp-4) 0 var(--sp-3);
}

.seo-hero h1 {
  font-size: var(--fs-title);
}

.seo-intro {
  margin-top: var(--sp-2);
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Prose block. ul has list-style stripped globally (section 2) — put the
   markers back here, this is the one place the site runs real body copy. */
.seo-copy {
  margin: var(--sp-5) 0;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
}

.seo-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  margin: var(--sp-5) 0 var(--sp-2);
}

.seo-copy p {
  margin-bottom: var(--sp-3);
}

.seo-copy ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.seo-copy li {
  margin-bottom: var(--sp-1);
}

.seo-copy strong {
  font-weight: 600;
}

/* Orange-tinted panel, same family as .stat-block */
.cta-strip {
  margin: var(--sp-6) 0 var(--sp-5);
  padding: var(--sp-5) var(--sp-4);
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-card);
  text-align: center;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  margin-bottom: var(--sp-2);
}

.cta-strip p {
  font-size: var(--fs-body);
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.btn-primary {
  display: inline-block;
  background: var(--brand-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  letter-spacing: 0.02em;
}

.btn-primary:active {
  background: var(--brand-press);
}

.related-links {
  margin: var(--sp-5) 0;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.related-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.see-all {
  display: block;
  margin: var(--sp-4) 0 var(--sp-5);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--brand-ink);
}

/* Hub page: one row per category, tap target across the full width */
.hub-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.hub-list a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.hub-list__name {
  display: block;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
}

.hub-list__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--text-2);
}
