/* McBride Funding design refresh (draft, Nov 28 2026). Blue and gold kept.
   Add-on layer only: remove this file + refresh.js and the site returns to the current look.
   Feng shui idea: balance light and dark (cream content, navy anchors), open space, soft edges,
   gold as an accent, calm motion. */

/* ---------- Palette scopes ---------- */
main {
  color-scheme: light;
  --paper: #f8f5ee;          /* warm cream: the breathing space */
  --surface: #ffffff;
  --surface-alt: #f1ebdd;
  --text: #1a2436;
  --navy-ink: #14264a;       /* brand navy for headings */
  --muted: #566078;
  --line: #e6ddca;
  --gold: #d4b25e;
  --gold-deep: #8a661f;      /* readable gold for text on light */
  --shadow: 0 18px 44px rgba(20, 38, 74, .10);
  --rf-radius: 16px;
  background: var(--paper);
  color: var(--text);
}
/* Navy anchors keep the original dark values */
main .hero, main .quote-band, main #faqs {
  color-scheme: dark;
  --navy-ink: #f3f5fa; --text: #f3f5fa; --muted: #c3cbdc; --line: #2f3d5c;
  --surface: #172443; --paper: #0f1a33; --gold-deep: #f0cf7e; --gold: #dbbb69;
}

/* ---------- Header: pinned, light glass ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 26, 51, .92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(219, 187, 105, .18); transition: box-shadow .25s ease; }
.site-nav.rf-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.rf-mono { width: 30px; height: 30px; flex: none; }
.nav-links a { border-bottom-width: 2px; transition: color .2s ease, border-color .2s ease; }

/* ---------- Hero ---------- */
main .hero { background: radial-gradient(120% 90% at 85% 20%, #1d3466 0%, #14264a 45%, #0f1a33 100%); }
main .hero:before { background: linear-gradient(100deg, #0f1a33f5 0%, #14264aeb 46%, #14264a40 72%, #14264a00 100%); }
main .hero-photo { -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%); mask-image: linear-gradient(to right, #000 72%, transparent 100%); }
@media (max-width: 900px) { main .hero-photo { -webkit-mask-image: none; mask-image: none; } }
.hero-tagline em { background: linear-gradient(90deg, #f0d58a, #d4b25e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .blurb:before { width: 4px; border-radius: 4px; background: linear-gradient(#f0d58a, #c79a3e); }
.hero-rule { height: 2px; background: linear-gradient(90deg, #d4b25e, transparent); }

/* ---------- Buttons: softer, warmer ---------- */
.button { border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { background: linear-gradient(180deg, #ecd189 0%, #d4b25e 100%); color: #15120a;
  box-shadow: 0 6px 18px rgba(212, 178, 94, .28); }
.button-primary:hover { background: linear-gradient(180deg, #f2da9a 0%, #dcbc6a 100%); transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 178, 94, .36); }
.button-ghost:hover { transform: translateY(-1px); }
main .button-dark { background: #14264a; }

/* ---------- Highlights: a floating white bar ---------- */
main .highlight-grid { border-radius: var(--rf-radius); overflow: hidden; border: 1px solid var(--line); }
main .highlight strong { color: #14264a; }
.highlight .rf-emblem, .rf-emblem { display: inline-flex !important; margin-top: 0 !important; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px;
  border-radius: 50%; background: #14264a; color: #e6c873; box-shadow: inset 0 0 0 1px rgba(230, 200, 115, .45); }
.rf-emblem svg { display: block; width: 24px !important; height: 24px !important; margin: 0 !important; color: #e6c873 !important; stroke-width: 1.9; position: static !important; transform: none !important; }

/* ---------- Section rhythm and space ---------- */
main section { padding: 112px 0; }
.section-index { color: var(--gold-deep); }
main h2 { color: var(--navy-ink); }
main .quote-band { padding: 96px 0; background:
  radial-gradient(60% 120% at 50% 0%, rgba(212, 178, 94, .16), transparent 60%), #14264a; }
main #faqs { background: linear-gradient(180deg, #0f1a33 0%, #14264a 100%); }
main .process { border: 0; background: var(--surface-alt); }
main .about { background: var(--paper); }

/* ---------- Cards: rounded, airy, gentle lift ---------- */
main :is(.program-card, .step-card, .program-tile, .about-card, .contact-wrap, .loan-item, .goal-row, .mini-tile,
  .blurb-panel, .post-cta, .hub-cta, .path-card, .narrow-card, .faq-close, .blog-empty, .newsletter-panel,
  .thankyou-panel, .calc-result, .calc-fieldset) { border-radius: var(--rf-radius); }
main :is(.program-card, .step-card, .program-tile, .loan-item, .goal-row, .mini-tile) {
  box-shadow: 0 1px 0 rgba(20, 38, 74, .04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
main :is(.program-card, .step-card, .program-tile, .loan-item, .goal-row, .mini-tile):hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9c79c; }
main :is(.program-card, .step-card, .program-tile):before { border-radius: 0 0 4px 4px; }
main .contact-wrap { overflow: hidden; box-shadow: var(--shadow); }
main .contact-aside { background: linear-gradient(160deg, #1d3466 0%, #14264a 70%); }
main .blurb:before, main .path-card:before { width: 5px; border-radius: 5px; background: linear-gradient(#f0d58a, #c79a3e); }
main .blurb-panel, main .post-cta, main .hub-cta, main .path-card, main .narrow-card, main .faq-close {
  background: linear-gradient(160deg, #1d3466 0%, #14264a 75%); box-shadow: var(--shadow); }
main .step-number { background: #14264a; color: #e6c873; border-color: rgba(230, 200, 115, .55); }
main #faqs .program-card { background: rgba(255, 255, 255, .04); border-color: rgba(230, 200, 115, .18); }
main #faqs .program-card:hover { border-color: rgba(230, 200, 115, .5); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }

/* Process cards on cream: readable text */
main .process-steps .step-card h3, main .narrow-steps .step-card p { color: var(--navy-ink); }
main .process-steps .step-card p { color: var(--muted); }
main .process-steps .step-card p strong { color: var(--text); }

/* ---------- Loan programs: emblem tiles instead of a plain list ---------- */
main .program-index { column-gap: 16px; row-gap: 14px; }
main .program-index a { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px;
  justify-content: flex-start; gap: 14px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
main .program-index a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9c79c; color: #14264a; }
main .program-index a .idx-arrow { margin-left: auto; }
.rf-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px;
  border-radius: 12px; background: #14264a; color: #e6c873; }
.rf-ico svg { width: 22px; height: 22px; }

/* ---------- Approach band with seal ---------- */
main .approach-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 36px; text-align: left;
  background: transparent; box-shadow: none; padding-left: 0; }
main .approach-card:before { display: none; }
main .approach-card .kicker, main .approach-card .approach-quote { text-align: left; }
.rf-seal { width: 150px; height: 150px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 650px) { main .approach-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rf-seal { width: 120px; height: 120px; } }

/* ---------- Forms on cream ---------- */
main input, main select, main textarea { border-radius: 10px; background: #fff; border-color: #ddd2bb; }
main input:focus, main select:focus, main textarea:focus { border-color: #14264a; outline: 3px solid rgba(20, 38, 74, .12); }

/* ---------- Article pages: comfortable reading ---------- */
main .post-article { max-width: 780px; }
main .post-body p { color: #27324a; }
main .post-body :is(.post-cta, .hub-cta, .blurb-panel, .path-card, .narrow-card, .faq-close, .thankyou-panel, .newsletter-panel) p { color: #d6ddec; }
main .post-body :is(.post-cta, .hub-cta, .thankyou-panel) a:not(.button) { color: #fff; }
main .program-block p { color: var(--muted); }

/* ---------- Footer: seal + gold hairline ---------- */
footer { background: linear-gradient(180deg, #0f1a33 0%, #0b1328 100%); border-top: 1px solid rgba(219, 187, 105, .25); margin-top: 0; }
.rf-footer-brand { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.rf-footer-seal { display: block; width: 84px; height: 84px; flex: none; }
.rf-footer-brand p { color: #e6c873; font-family: Newsreader, Georgia, serif; font-size: 1.35rem; margin: 0; }
.member-badges .badge-strip a { border-radius: 14px; }

/* ---------- Motion: calm reveal (only with JS, never for reduced motion) ---------- */
html.rf-js .rf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.rf-js .rf-reveal.rf-in { opacity: 1; transform: none; }
html.rf-js .hero-copy > * { animation: rf-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.rf-js .hero-copy > *:nth-child(2) { animation-delay: .06s; } html.rf-js .hero-copy > *:nth-child(3) { animation-delay: .12s; }
html.rf-js .hero-copy > *:nth-child(4) { animation-delay: .18s; } html.rf-js .hero-copy > *:nth-child(5) { animation-delay: .24s; }
html.rf-js .hero-copy > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes rf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.rf-js .rf-reveal { opacity: 1; transform: none; transition: none; }
  html.rf-js .hero-copy > * { animation: none; }
  main :is(.program-card, .step-card, .program-tile, .loan-item, .goal-row, .mini-tile, .program-index a):hover { transform: none; }
}
