/* ==========================================================================
   Winning Workflow — Shared Design System
   Pure CSS. No framework. Imported by every page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ---- Design Tokens ---- */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface-muted: #f5f5f4;
  /* Neutral near-black for headings + accents — timeless black/white base, no blue */
  --ink: #16181b;
  --ink-soft: #1d2024;
  --text: #44474d;
  --text-muted: #61656c;
  --text-faint: #8c9097;
  --border: #e3e3e2;
  --border-strong: #cccccb;
  --accent: #16181b;
  --accent-hover: #000000;
  --accent-soft: #f1f1f0;
  --highlight: rgba(0, 0, 0, 0.10);
  --neutral-muted: #9a9a98;
  --danger: #7c1f2b;

  /* Gold accent ramp — the single color pop, used for lines, focus and emphasis */
  --gold: #e6a93c;
  --gold-hover: #cf9530;
  --gold-soft: #faf1dd;
  --gold-ring: rgba(230, 169, 60, 0.35);
  --gold-line: linear-gradient(90deg, #e6a93c 0%, #d99b2e 55%, #c98e25 100%);

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09);

  --maxw: 1080px;
  --maxw-narrow: 720px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Iowan Old Style', 'Times New Roman', 'Times', serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- Layout ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6.5rem 0;
}

.section-tight { padding: 4.5rem 0; }

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

/* ---- Typography ---- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

h1, h2, h3 { color: var(--ink); font-family: var(--font-serif); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

.h-hero {
  font-family: var(--font-serif);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.h-section {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 1.25rem;
}

/* Gold underline highlight — a clean gold line under key phrases.
   Warm gold is the single color pop over the black/white base.
   Scoped with :not(tr) so blog tables that reuse .highlight (tr.highlight) stay intact. */
.highlight:not(tr) {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1em;
  color: var(--ink);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Bold variant — a solid gold hand-painted swipe with dark text for one catchy phrase. */
.highlight-bold {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%2052'%20preserveAspectRatio='none'%3E%3Cpath%20d='M5,18C45,8,95,12,150,11C205,10,255,15,295,9C298,9,299,40,296,41C250,49,200,42,150,44C100,46,55,41,12,45C7,45,3,40,4,35Z'%20fill='%23e6a93c'/%3E%3Ccircle%20cx='289'%20cy='4'%20r='2.6'%20fill='%23e6a93c'/%3E%3Ccircle%20cx='296'%20cy='48'%20r='1.8'%20fill='%23e6a93c'/%3E%3Ccircle%20cx='8'%20cy='49'%20r='2'%20fill='%23e6a93c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 118%;
  padding: 0.1em 0.4em;
  color: var(--ink);
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 38rem;
}

.muted { color: var(--text-muted); }

/* ---- Navbar ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Slim gold accent bar across the very top of every page */
.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.nav-brand img { width: 30px; height: 30px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

/* Gold underline grows in on hover for plain nav links */
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-links a:hover { color: var(--ink); }

/* Nav CTA button must keep white text (override the nav link color above) */
.nav-links a.btn,
.nav-links a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: #000; border-color: #000; }

/* Secondary: dark outline button, fills on hover */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Labels / Tags ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  vertical-align: middle;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Block wrapper for a standalone label above a heading/text — guarantees clear spacing, no overlap */
.badge-block { display: block; margin-bottom: 0.85rem; }

.badge-green { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.badge-amber { background: var(--surface-muted); color: var(--ink); border-color: var(--border-strong); }
.badge-gold { background: var(--gold-soft); color: var(--gold-hover); border-color: var(--gold-soft); }

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ---- Icon circle ---- */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--ink);
  flex-shrink: 0;
}

.icon-circle svg { width: 22px; height: 22px; }

/* Gold icon-circle variant for selective emphasis */
.icon-circle.gold { background: var(--gold-soft); color: var(--gold-hover); }

/* ---- Footer ---- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
  text-decoration: none;
}

.footer-brand img { width: 28px; height: 28px; object-fit: contain; }

.footer-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 18rem; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; margin-left: 1.25rem; }
.footer-bottom a:hover { color: var(--ink); }

/* ---- Trust bar ---- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
}

.trustbar span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---- Scroll reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 1.5rem; }
  .section { padding: 4.5rem 0; }
  .section-tight { padding: 3rem 0; }
  .card { padding: 1.5rem; }
  .h-hero { font-size: 2.1rem; }
  .h-section { font-size: 1.6rem; }
  .lede { font-size: 1.08rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Gold accent layer — additive only. The single color pop across interactive
   and decorative spots, over a neutral black/white base.
   ========================================================================== */

/* Gold text selection */
::selection { background: var(--gold-soft); color: var(--ink); }

/* Gold focus ring for inputs, textareas, selects and buttons */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-ring);
}

.btn:focus-visible,
.nav-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-ring);
}

/* Decorative gold bar — drop above a heading or section for a bold cue */
.accent-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold-line);
  margin-bottom: 1.25rem;
}

.accent-bar.center { margin-left: auto; margin-right: auto; }

/* Gold left rule for callout cards / blockquotes */
.card.accent-gold { border-left: 3px solid var(--gold); }

/* Inline gold text utility */
.text-gold { color: var(--gold); }

/* Gold link style — opt-in underline that thickens on hover */
.link-gold {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.link-gold:hover { color: var(--gold-hover); border-bottom-color: var(--gold); }
