/* ============================================
   BUCFIN.ORG — DESIGN SYSTEM
   Royal Blue / Gold / Warm Cream
   ============================================ */

:root {
  /* Color tokens */
  --navy-deep:    #14265C;
  --blue-royal:   #1E3A8A;
  --blue-mist:    #E8ECF7;
  --gold:         #C9A24B;
  --gold-bright:  #E0BC6B;
  --gold-pale:    #F3E9D2;
  --cream:        #FAF8F3;
  --cream-dim:    #F1ECE1;
  --charcoal:     #2A2A2A;
  --charcoal-soft:#5B5850;
  --line:         #E2DCC9;
  --white:        #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --shadow-card: 0 2px 14px rgba(20, 38, 92, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(20, 38, 92, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--charcoal-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.brand-word .fin { color: var(--gold); }
.brand-word .buc { color: var(--navy-deep); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-deep);
  position: relative;
}
.main-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,162,75,0.4); }
.btn-outline {
  border: 1.5px solid var(--navy-deep);
  color: var(--navy-deep);
}
.btn-outline:hover { background: var(--navy-deep); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(201,162,75,0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: relative;
}
.hero-art img {
  border-radius: 16px;
  box-shadow: var(--shadow-card-hover);
}

.trust-strip {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
.trust-strip strong { color: var(--navy-deep); font-family: var(--font-display); font-size: 1.3rem; display: block; }

/* ---------- Section shell ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-dim); }
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0.3em; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}
.cat-icon {
  width: 42px; height: 42px;
  margin-bottom: 16px;
  color: var(--gold);
}
.cat-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cat-card p { font-size: 0.86rem; margin-bottom: 12px; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--navy-deep);
  background: var(--blue-mist);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.payout-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.payout-recurring { background: var(--gold-pale); color: #7A5B1E; }
.payout-onetime { background: var(--blue-mist); color: var(--navy-deep); }
.product-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-card p { font-size: 0.9rem; flex-grow: 1; }
.product-card .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- Authenticity / why-trust ---------- */
.authentic-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.authentic-block .quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -0.2em;
}
.authentic-block blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin: 0 0 20px;
  line-height: 1.4;
}
.authentic-block cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  font-weight: 600;
}

/* ---------- Divider signature (antler-line motif) ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 48px;
  color: var(--gold);
}
.divider svg { width: 60px; height: 20px; }
.divider .rule { height: 1px; width: 80px; background: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C9CFE3;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 34px; margin-bottom: 12px; }
.footer-brand p { color: #A9B2CC; font-size: 0.86rem; max-width: 32ch; }
.site-footer h4 {
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C9CFE3; font-size: 0.88rem; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: #7E88AC;
}

/* ---------- Micropage-specific ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--navy-deep); font-weight: 600; }
.product-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
}
.product-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-cat { background: var(--blue-mist); color: var(--navy-deep); }
.badge-payout { background: var(--gold-pale); color: #7A5B1E; }
.badge-used { background: #DCEEE0; color: #1F6B3A; }
.badge-vetted { background: #EFEAE0; color: #6B5F45; }
.product-cta-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  min-width: 220px;
  box-shadow: var(--shadow-card);
}
.product-cta-box .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-deep);
  margin-bottom: 4px;
}
.product-cta-box .price-label { font-size: 0.78rem; color: var(--charcoal-soft); margin-bottom: 16px; }
.product-cta-box .btn { width: 100%; }
.disclosure-note {
  font-size: 0.76rem;
  color: var(--charcoal-soft);
  margin-top: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0;
}
.content-main h2 { font-size: 1.5rem; margin-top: 1.6em; }
.content-main h2:first-child { margin-top: 0; }
.content-main ul { padding-left: 1.2em; color: var(--charcoal-soft); }
.content-main li { margin-bottom: 8px; }

.sidebar-box {
  background: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-box h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sidebar-box a { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy-deep); margin-bottom: 10px; }
.sidebar-box a:hover { color: var(--gold); }

.honest-take {
  background: var(--blue-mist);
  border-left: 4px solid var(--navy-deep);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}
.honest-take p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .authentic-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
}
