/* ==============================
   Shared design tokens + components
   ==============================
   Loaded after each page's existing stylesheet(s) so it can layer in the
   redesign's shared banner/trust/button components and gently correct the
   handful of drifted colors, without having to touch the page-specific
   stylesheets that already carry the bulk of each page's real styling. */

:root {
  --gold: #bfa059;
  --gold-dark: #a08040;
  --gold-light: #f3c969;
  --maroon: #3d1220;
  --maroon-soft: #4d1a2c;
  --cream: #fffaf0;
  --cream-alt: #fff8e1;
  --cream-panel: #fffdf5;
  --border: #e8d9a0;
  --border-2: #ede0b8;
  --text: #333;
  --text-muted: #555;
  --text-soft: #666;
  --label: #7a5c20;
  --green: #1a7c3a;
  --green-bg: #f0fff4;
  --green-border: #b8e5c8;
}

/* ── Shared inner-page banner ─────────────────────────────────────────────
   Replaces the two divergent small-hero treatments (.hero in style.css,
   .page-hero in home_style.css — each over a different hardcoded Unsplash
   photo) with one consistent maroon→gold gradient used across every inner
   page, so "you're on an inner page" reads the same everywhere. */
.page-banner {
  width: 100%;
  background: linear-gradient(120deg, var(--maroon), var(--gold-dark) 150%);
  color: #fff;
  padding: 44px 20px;
  text-align: center;
}

.page-banner h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  border: none;
  padding: 0;
  color: #fff;
}

.page-banner p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Shared trust-badge strip (Home, Product Detail) ────────────────────── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.trust-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .trust-row { grid-template-columns: 1fr; }
}

/* ── Shared gold buttons ──────────────────────────────────────────────── */
.btn-primary-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s;
}

.btn-primary-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-outline-gold {
  background: #fff;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.2s, color 0.2s;
}

.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ── Calculator color corrections ─────────────────────────────────────────
   Everything else on the calculator (mode-switch, section-card, add/remove
   row buttons, final-grid) already matches the site's gold/maroon language.
   Three spots don't: the Final Estimate total renders green (#final_estimate
   in style.css wins on id-specificity over .final-total), and the Fetch Rate
   button is teal — both accidental leftovers from a generic admin-panel
   palette, not a deliberate semantic color. Selectors below are written to
   out-specificity style.css's rules without editing that file. */
.final-value.final-total#final_estimate,
#final_estimate.final-value {
  color: var(--gold-dark);
}

.fetch-rate {
  background: #fff !important;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
}

.fetch-rate:hover {
  background: var(--cream-alt) !important;
}

#givenGoldTable th,
#givenCashTable th,
#itemsTable th,
#othersTable th {
  background-color: var(--gold);
}
