/* Sakha Amathuba — Design System */

@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/BricolageGrotesque.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:   #00649F;
  --green:  #00954C;
  --yellow: #F0E907;
  --ink:    #2E2B2C;
  --paper:  #FAF9F4;
  --paper-2:#F2F0E8;
  --line:   #E6E2D6;
  --muted:  #6B6764;

  --accent:           var(--green);
  --tricolour:        linear-gradient(90deg, #00649F 0%, #00954C 50%, #F0E907 100%);
  --tricolour-soft:   linear-gradient(135deg, #00649F 0%, #00954C 55%, #F0E907 100%);

  --type-scale: 1;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 36px;

  --pad-x: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: calc(16px * var(--type-scale));
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Typography ─────────────────────────────────────────── */
.bricolage {
  font-family: "Bricolage", "Inter", sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 620, "wdth" 100;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.wordmark {
  font-family: "Bricolage", sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 640, "wdth" 95;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.h-hero {
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.h-display {
  font-size: clamp(44px, 6.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(36px, 4.8vw, 80px);
  line-height: 1;
  letter-spacing: -0.028em;
}
.h-card {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}

.stat-num {
  font-family: "Bricolage", sans-serif;
  font-weight: 600;
  font-variation-settings: "wght" 620, "wdth" 95;
  font-size: clamp(48px, 6vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* ── Layout ─────────────────────────────────────────────── */
.shell {
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section { position: relative; }

.section-pad    { padding-block: clamp(80px, 11vw, 180px); }
.section-pad-sm { padding-block: clamp(56px, 7vw, 110px); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent.yellow { color: var(--ink); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }

.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Pill ────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: rgba(0,0,0,.04);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pill::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* ── Chip ────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

/* ── Form fields ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-weight: 400;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ── Photo slot ──────────────────────────────────────────── */
.photo {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 14px, rgba(0,0,0,.0) 14px 28px),
    var(--paper-2);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
}

/* ── Marquee ─────────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

/* ── Tricolour underline ─────────────────────────────────── */
.tri-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.tri-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 6px;
  background: var(--tricolour);
  border-radius: 3px;
}

/* ── Pattern bands ───────────────────────────────────────── */
.band-green  { background: #00954C url("../assets/pattern-green-100.png") repeat center / 720px auto; }
.band-blue   { background: #00649F url("../assets/pattern-blue-100.png")  repeat center / 720px auto; }
.band-yellow { background: #F0E907 url("../assets/pattern-yellow-100.png") repeat center / 720px auto; }

/* ── Reveal animation ────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

/* ── Brand showcase grid ─────────────────────────────────── */
.brand-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .brand-showcase-grid { grid-template-columns: 1fr; }
}

/* ── Nav ─────────────────────────────────────────────────── */
header.sa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,244,.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all .25s ease;
}
header.sa-header.at-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}

.nav-desktop { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.burger.nav-burger { display: none; }
.nav-cta-desktop { display: inline-flex; }

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .burger.nav-burger { display: inline-flex; }
  .nav-cta-desktop { display: none; }
}

/* ── Burger ──────────────────────────────────────────────── */
.burger {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.burger:hover { background: var(--paper-2); }
.burger span {
  position: relative;
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger.open span              { background: transparent; }
.burger.open span::before      { top: 0; transform: rotate(45deg); }
.burger.open span::after       { top: 0; transform: rotate(-45deg); }

/* ── Mobile sheet ────────────────────────────────────────── */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad-x) 40px;
  animation: rise .25s ease both;
  overflow-y: auto;
}
.mobile-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 32px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.mobile-sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 32px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left .2s ease, color .2s ease;
}
.mobile-sheet-link:hover { padding-left: 12px; color: var(--accent); }
.mobile-sheet-link.active { color: var(--accent); }

/* ── Nav tab buttons ─────────────────────────────────────── */
.nav-tab {
  background: transparent;
  color: var(--ink);
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-tab:hover  { background: rgba(0,0,0,.06); }
.nav-tab.active { background: var(--ink); color: var(--paper); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.32); }

/* ── Selection ───────────────────────────────────────────── */
::selection { background: var(--yellow); color: var(--ink); }

/* ── Blazor error UI ─────────────────────────────────────── */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--green);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto;
    top: calc(20vh + 3.25rem);
}
.loading-progress-text:after { content: attr(data-nosnippet) " " counter(percent) "%"; counter-reset: percent var(--blazor-load-percentage, 0); }
