/* My Town Bazaar · v2
   Direction: bazaar signage. Big condensed sign lettering, tile-and-spice colour blocks,
   one reason per full-width band. Light only, by choice. No animation beyond button presses.
   Contrast: ink on white/tint/red/saffron/teal; white on cobalt/ink. */
/* Fonts are bundled with the site (both SIL Open Font License). */
@font-face { font-family: 'Big Shoulders Display'; src: url(fonts/big-shoulders-display-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url(fonts/big-shoulders-display-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --tint: #EAF7F5;      /* turquoise-tile white */
  --ink: #121C5E;       /* cobalt-navy ink, used instead of black */
  --ink-2: #3E4677;     /* muted text */
  --line: #121C5E;      /* rules and borders are ink, drawn like sign outlines */
  --red: #FF5A36;       /* pomegranate */
  --saffron: #FFC72C;
  --teal: #19C3AA;      /* Iznik turquoise */
  --cobalt: #2B3FD6;
  --white: #FFFFFF;

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --r: 10px;
  --shadow: 4px 4px 0 var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -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.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: .005em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(3.4rem, 9vw, 7.6rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; }
p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34ch; }
.small { font-size: .92rem; color: var(--ink-2); }
.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 8px 12px; }
.mark { background: linear-gradient(transparent 55%, var(--saffron) 55%, var(--saffron) 92%, transparent 92%); padding-inline: .04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.05rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--r); border: 2px solid var(--ink);
  background: var(--saffron); color: var(--ink); box-shadow: var(--shadow);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-plain { background: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:active { transform: translate(3px, 3px); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.65rem; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn { margin-left: 10px; padding: 9px 16px; }
.site-nav .btn:hover { background: var(--saffron); }
.nav-toggle { display: none; margin-left: auto; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font: 700 .95rem var(--body); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 6px; }
  .site-nav .btn { margin: 10px 0 0; }
}

/* ---------- Bands (one reason each) ---------- */
.band { padding-block: clamp(56px, 8vw, 112px); border-bottom: 2px solid var(--ink); }
.b-white { background: var(--paper); }
.b-tint { background: var(--tint); }
.b-red { background: var(--red); }
.b-saffron { background: var(--saffron); }
.b-teal { background: var(--teal); }
.b-cobalt { background: var(--cobalt); color: var(--white); }
.b-ink { background: var(--ink); color: var(--white); }
.b-cobalt .small, .b-ink .small { color: #D6DBFF; }
.b-cobalt a, .b-ink a { color: var(--white); }
.b-saffron .btn, .b-teal .btn, .b-red .btn { background: var(--paper); }

.reason { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.reason-copy { display: grid; gap: 16px; align-content: end; }
.big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.6rem, 14vw, 12rem); line-height: .8; letter-spacing: -.01em; }
@media (max-width: 760px) { .reason { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); border-bottom: 2px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.strip { background: var(--ink); color: var(--saffron); border-bottom: 2px solid var(--ink); }
.strip ul { list-style: none; margin: 0; padding-block: 14px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- The screen (the product, drawn flat) ---------- */
.screen { margin: 0; display: grid; gap: 10px; }
.tv { background: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; box-shadow: 8px 8px 0 var(--red); }
.tv-display { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 40% 1fr; font-size: clamp(.62rem, 1.15vw, .9rem); }
.tv-times { background: #0B1347; color: var(--white); padding: 6% 7%; display: grid; align-content: start; gap: 7%; }
.tv-masjid { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.6em; line-height: 1; }
.tv-times table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tv-times td { padding: .42em 0; border-bottom: 1px solid #2A3577; }
.tv-times td:last-child { text-align: right; }
.tv-times tr.next td { color: var(--saffron); font-weight: 700; }
.tv-ad { background: var(--saffron); color: var(--ink); padding: 8% 8%; display: grid; align-content: center; gap: .5em; position: relative; }
.tv-ad .tag { justify-self: start; font-weight: 700; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--ink); padding: .1em .5em; border-radius: 4px; }
.tv-ad b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.7em; line-height: .9; }
.tv-ad .qr { position: absolute; right: 7%; top: 9%; width: 18%; aspect-ratio: 1; border: 3px solid var(--ink); background:
  conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 34% 34%; }
.screen figcaption { font-size: .85rem; color: var(--ink-2); }

/* ---------- Lists ---------- */
.never { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.never li { font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: 1.12rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 2px solid var(--ink); }
.b-teal .ticks li::before { background: var(--saffron); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.steps li { padding: 24px; display: grid; gap: 8px; align-content: start; border-right: 2px solid var(--ink); }
.steps li:last-child { border-right: 0; background: var(--saffron); }
.steps .n { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: .8; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { border-right: 0; border-bottom: 2px solid var(--ink); } .steps li:last-child { border-bottom: 0; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.timeline li { padding: 18px 18px 0 0; display: grid; gap: 6px; }
.timeline time { font-family: var(--display); font-weight: 900; font-size: 2rem; text-transform: uppercase; line-height: .95; }
.timeline .key time { color: var(--red); }
@media (max-width: 760px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.member { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-right: 2px solid var(--ink); min-width: 0; }
.member > :last-child { margin-top: auto; } /* keeps emails and buttons level across cards */
.member:last-child { border-right: 0; background: var(--saffron); }
.member:nth-child(2) { background: var(--cobalt); color: var(--white); }
.member:nth-child(2) h3, .member:nth-child(2) .role, .member:nth-child(2) p { color: var(--white); }
.member:nth-child(2) a.btn { color: var(--ink); }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--teal); font-family: var(--display); font-weight: 900; font-size: 2.4rem; }
.avatar-photo { object-fit: cover; max-width: 100%; }
.member-cat .avatar-photo { width: 96px; height: 96px; }
.role { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.titles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.titles li { font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
.member p { font-size: 1rem; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-line code { font: 600 .95rem var(--body); background: var(--paper); border: 2px solid var(--ink); padding: 6px 10px; border-radius: 8px; user-select: all; overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 900px) { .team { grid-template-columns: minmax(0, 1fr); } .member { border-right: 0; border-bottom: 2px solid var(--ink); } .member:last-child { border-bottom: 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--display); font-weight: 900; font-size: 2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 22px; max-width: 62ch; display: grid; gap: 10px; }

/* ---------- Options (advertise) ---------- */
.options { display: grid; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.option { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 22px 26px; border-bottom: 2px solid var(--ink); align-items: center; }
.option:last-child { border-bottom: 0; }
.option .big-sm { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: .85; text-transform: uppercase; }
.option.hl { background: var(--teal); }
@media (max-width: 640px) { .option { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- Calculator ---------- */
.calc { border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); padding: clamp(20px, 3vw, 30px); display: grid; gap: 22px; box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.calc label, .calc legend { font-weight: 700; display: block; margin-bottom: 8px; }
.calc input[type="range"] { width: 100%; accent-color: var(--cobalt); height: 28px; }
.range-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-control { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-control label { margin: 0; font-weight: 600; font-size: .95rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-control input { position: absolute; opacity: 0; pointer-events: none; }
.seg-control label:has(input:checked) { background: var(--ink); color: var(--white); }
.seg-control label:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 2px solid var(--ink); padding-top: 18px; }
.calc-out div { display: grid; gap: 2px; }
.calc-out .num { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 4.6rem); line-height: .85; font-variant-numeric: tabular-nums; }
.calc-out span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); padding: clamp(20px, 3vw, 30px); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px; padding: 11px 12px;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.choice input { margin-top: 5px; accent-color: var(--cobalt); width: 18px; height: 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form-error { color: #B42318; font-weight: 700; }
.ready { border: 2px solid var(--ink); border-radius: var(--r); background: var(--teal); padding: clamp(18px, 3vw, 26px); display: grid; gap: 12px; color: var(--ink); }
.ready textarea { min-height: 170px; font-size: .9rem; }

/* ---------- Two-column helper ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Policy ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 8px; }
.doc nav a { text-decoration: none; font-weight: 600; }
.doc nav a:hover { text-decoration: underline; }
.doc article { display: grid; gap: 44px; max-width: 64ch; }
.doc section { display: grid; gap: 14px; scroll-margin-top: 96px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 880px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc nav { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 44px calc(36px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { color: var(--white); }
.site-footer .small { color: #D6DBFF; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }
.doc h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .brand-name { font-size: 1.35rem; }
  .brand svg { width: 26px; height: 26px; }
  .nav-toggle { padding: 7px 11px; }
}
[hidden] { display: none !important; }
.calc-out div { gap: 8px; }
.calc-out .num { line-height: 1; }

.never.welcome li { text-decoration: none; background: var(--tint); }
