/* ---------------------------------------------------------------------------
   Muhimma public site.
   Tokens copied from client/tailwind.config.ts so the public site and the
   console read as one brand rather than two.
   --------------------------------------------------------------------------- */

:root {
  --orange: #f36b1f;
  --orange-hover: #e05e15;
  --orange-tint: #fff3eb;
  --amber: #fdb55b;
  --cream: #fdf6ef;
  --warm-light: #f0ebe3;
  --charcoal: #2e2e2e;
  --ink: #3b3b3b;
  --ink-secondary: #5a5a5a;
  --ink-muted: #707070;
  --ink-light: #909090;
  --edge: #e8e0d8;
  --edge-light: #e0d8ce;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.98;
  color: var(--charcoal);
  font-weight: 400;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(38px, 7vw, 76px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 22px; }

p { margin: 0 0 1rem; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--edge);
  background: rgba(253, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--charcoal);
}
.brand:hover { text-decoration: none; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 14px;
}
.nav a { color: var(--ink-secondary); }
.nav a:hover { color: var(--orange); }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--orange-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-quiet {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid var(--edge);
}
.btn-quiet:hover { background: var(--warm-light); color: var(--charcoal); }

/* ---- hero ---- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-tint);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  max-width: 46ch;
  margin-top: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---- sections ---- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-rule { border-top: 1px solid var(--edge); }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}
.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--orange-tint);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--edge);
  background: var(--warm-light);
  padding: 2.5rem 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links a { color: var(--ink-secondary); }
.footer-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge-light);
  font-size: 13px;
  color: var(--ink-light);
}

/* ---- legal pages ---- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h2 {
  font-size: 26px;
  margin: 2.5rem 0 0.75rem;
}
.legal h2:first-of-type { margin-top: 2rem; }
.legal p,
.legal li {
  color: var(--ink-secondary);
  font-size: 15.5px;
}
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.updated {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
