/**
 * Bongofey Phase 5 — light/white theme refinement layer (step 1).
 *
 * Loaded in <head> AFTER the header's inline <style>, so it overrides those
 * header-level component rules. It deliberately does NOT restyle page-specific
 * sections (hero, product/story cards, dark navy bands) because those are
 * defined in each page's own inline <style> that loads later and would win —
 * and several are intentionally dark. Those are restyled per page in later steps.
 *
 * Depends on assets/css/tokens.css for the variables.
 */

/* Keep the legacy accent variables pointing at the token accent (same amber
   hue, now centralised). Links use the darker accent for AA contrast on white. */
:root {
  --primary-green: var(--accent);
  --primary-green-hover: var(--accent-hover);
  --brand-link: var(--accent-hover);
}

/* ── Header: slim, flat, white, hairline border ─────────────────────────── */
.custom-navbar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

/* ── Buttons: solid accent, flat (no gradient/shadow), rounded ──────────── */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: none;
  box-shadow: none;
  border-radius: var(--r-md);
  font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}
.btn-outline-primary {
  color: var(--accent-hover);
  border-color: var(--border-strong);
  border-radius: var(--r-md);
  font-weight: 600;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Inputs: 44px touch targets, accent focus ring ──────────────────────── */
.form-control,
.form-select {
  border-radius: var(--r-md);
  border-color: var(--border-strong);
  min-height: 44px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-tint);
}

/* ── Accessibility: always-visible focus outline (never remove it) ──────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Links: darker accent for small-text contrast ───────────────────────── */
a {
  color: var(--accent-hover);
}
a:hover {
  color: var(--accent);
}

/* ── Generic Bootstrap cards: hairline border, barely-there shadow ──────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Minimum tap target for icon buttons / pills */
.btn {
  min-height: 40px;
}
