/* ===========================================================
   JB Referrals — shared stylesheet
   Brand: Cabernet #670038 (Jordan Baris family) + brushed gold
   Type:  Marcellus (display) / Manrope (body)
   =========================================================== */

:root {
  /* JB Referrals brand: red #C3122F + slate gray #6B767C */
  --cabernet:      #c3122f;  /* primary brand red */
  --cabernet-deep: #9e0f26;  /* darker red (hover) */
  --cabernet-soft: #e0566b;  /* light red */
  --ink:           #2a2e31;  /* cool charcoal text */
  --ink-soft:      #5c656b;  /* muted gray text */
  --gold:          #6b767c;  /* slate gray accent */
  --gold-deep:     #515a60;  /* deep slate */
  --blush:         #fbf1f3;  /* very pale red section tint */
  --blush-deep:    #f3dfe3;  /* pale red border */
  --cream:         #f7f8f9;  /* cool off-white page bg */
  --white:         #ffffff;
  --line:          #e4e7e9;  /* cool light border */

  --shadow-sm: 0 1px 2px rgba(42,46,49,.06), 0 2px 8px rgba(42,46,49,.05);
  --shadow-md: 0 8px 30px rgba(42,46,49,.10);
  --shadow-lg: 0 24px 60px rgba(42,46,49,.16);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  color: var(--cabernet);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}

p { margin: 0 0 1em; }
a { color: var(--cabernet); text-decoration: none; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--blush { background: var(--blush); }
.section--ink { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  text-align: center; line-height: 1;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--cabernet); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--cabernet-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: #fff; color: var(--cabernet); }
.btn-gold:hover { background: var(--blush); color: var(--cabernet-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--cabernet); border-color: var(--cabernet); }
.btn-ghost:hover { background: var(--cabernet); color: #fff; transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: #fff; color: var(--cabernet); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,248,249,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-logo { height: 50px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--cabernet); color: #fff;
  display: grid; place-items: center;
  font-family: "Marcellus", serif; font-size: 20px; letter-spacing: 1px;
  box-shadow: inset 0 0 0 1.5px rgba(176,141,87,.55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Marcellus", serif; font-size: 21px; color: var(--cabernet); }
.brand-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink); padding: 9px 14px; border-radius: 8px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--cabernet); background: var(--blush); }
.nav-links a.active { color: var(--cabernet); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; width: 22px; background: var(--gold);
  margin: 3px auto 0; border-radius: 2px;
}
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cabernet); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 540px at 78% -8%, var(--blush) 0%, transparent 60%),
    radial-gradient(900px 480px at -10% 110%, #eef0f1 0%, transparent 55%),
    var(--cream);
  padding: 84px 0 78px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; margin-bottom: 22px; color: var(--ink); }
.hero h1 .accent { color: var(--cabernet); }
.hero h1 .accent em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 .accent em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: linear-gradient(transparent 55%, rgba(195,18,47,.18) 55%);
  z-index: -1;
}
.hero-lede { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.hero-trust strong { color: var(--cabernet); font-family: "Marcellus", serif; font-size: 17px; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Hero ledger card — the signature contrast device */
.ledger {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.ledger-head { background: var(--cabernet); color: #fff; padding: 20px 26px; }
.ledger-head .k { font-family: "Marcellus", serif; font-size: 20px; color: #fff; }
.ledger-head .s { font-size: 13px; opacity: .85; }
.ledger-body { display: grid; grid-template-columns: 1fr 1fr; }
.ledger-col { padding: 24px 26px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); }
.ledger-col h4 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ledger-col.skip h4 { color: var(--ink-soft); }
.ledger-col.keep h4 { color: var(--gold-deep); }
.ledger-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ledger-col li { font-size: 14.5px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.35; }
.ledger-col.skip li { color: var(--ink-soft); }
.ledger-col.skip li .ic { color: #c9b3ba; }
.ledger-col.keep li { color: var(--ink); font-weight: 600; }
.ledger-col.keep li .ic { color: var(--cabernet); }
.ledger-foot { background: var(--blush); padding: 16px 26px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.sec-head p { font-size: 18px; color: var(--ink-soft); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px;
  position: relative; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step .num {
  font-family: "Marcellus", serif; font-size: 15px; color: var(--gold-deep);
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Estimator (signature) ---------- */
.estimator {
  background: linear-gradient(155deg, var(--cabernet) 0%, var(--cabernet-deep) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 44px clamp(26px,4vw,56px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.estimator::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% -20%, rgba(176,141,87,.35), transparent 60%);
  pointer-events: none;
}
.estimator h2 { color: #fff; }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; position: relative; }
.est-controls label { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 700; margin-bottom: 8px; }
.est-price { font-family: "Marcellus", serif; font-size: 40px; color: #fff; margin-bottom: 18px; }
.est-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); outline: none; }
.est-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 0 5px rgba(255,255,255,.28); transition: transform .15s; }
.est-slider::-webkit-slider-thumb:hover { transform: scale(1.08); }
.est-slider::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.est-range { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.est-result { background: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-md); }
.est-result .lbl { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.est-payout { font-family: "Marcellus", serif; font-size: clamp(44px, 7vw, 64px); color: var(--cabernet); line-height: 1; margin: 12px 0; font-variant-numeric: tabular-nums; }
.est-note { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blush); color: var(--cabernet); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Testimonial ---------- */
.quote { max-width: 800px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: "Marcellus", serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
  color: var(--cabernet); margin: 0 0 22px; position: relative;
}
.quote blockquote::before { content: "\201C"; font-size: 70px; color: var(--gold); opacity: .5; display: block; line-height: .6; margin-bottom: 6px; }
.quote .who { font-weight: 700; color: var(--ink); }
.quote .who span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 56px clamp(28px,5vw,64px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(700px 320px at 50% -40%, rgba(176,141,87,.22), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 36em; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 24px 4px; font-family: "Marcellus", serif; font-size: 20px; color: var(--cabernet);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-q .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--ink-soft); font-size: 16px; padding: 0 4px 24px; margin: 0; }

/* ---------- Process timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content:""; position:absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--blush-deep); }
.tl-item { position: relative; padding: 0 0 36px 70px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--cabernet); display: grid; place-items: center; font-family: "Marcellus", serif; font-size: 18px; box-shadow: var(--shadow-sm); }
.tl-item h3 { font-size: 21px; margin-bottom: 6px; }
.tl-item p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Earnings table ---------- */
.earn-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.earn-table th { background: var(--cabernet); color: #fff; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 16px 22px; }
.earn-table td { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 16px; }
.earn-table tr:nth-child(even) td { background: var(--cream); }
.earn-table td.pay { font-family: "Marcellus", serif; color: var(--cabernet); font-size: 19px; font-variant-numeric: tabular-nums; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px,3.6vw,40px); }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.split ul li { display: flex; gap: 12px; font-size: 16px; color: var(--ink); }
.split ul li .ic { color: var(--cabernet); flex: none; margin-top: 3px; }
.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.stat .n { font-family: "Marcellus", serif; font-size: 44px; color: var(--cabernet); line-height: 1; }
.stat .l { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: "Manrope", sans-serif; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cabernet); box-shadow: 0 0 0 3px rgba(103,0,56,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { background: var(--cabernet); color: #fff; border-radius: var(--radius-lg); padding: 40px; }
.contact-info h3 { color: #fff; }
.contact-info .ci-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ci-item .ic { color: var(--gold); flex: none; margin-top: 2px; }
.contact-info .ci-item a, .contact-info .ci-item { color: rgba(255,255,255,.9); font-size: 15.5px; }
.contact-info .ci-item strong { display: block; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; max-width: 30em; margin-top: 14px; }
.footer-col h4 { color: #fff; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Photography ---------- */
.photo-band { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band .pb-overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(34,38,41,.86) 0%, rgba(34,38,41,.55) 50%, rgba(34,38,41,.18) 100%); }
.photo-band .wrap { position: relative; z-index: 2; }
.photo-band .pb-inner { max-width: 560px; color: #fff; }
.photo-band .eyebrow { color: #fff; opacity: .85; }
.photo-band h2 { color: #fff; font-size: clamp(28px,3.6vw,42px); }
.photo-band p { color: rgba(255,255,255,.9); font-size: 18px; margin: 0; }

.media-img { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; display: block; }

.cta-band .cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; z-index: 0; }
.cta-band.has-photo { background: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Nav collapses to the mobile menu earlier so it never crowds */
@media (max-width: 1180px) {
  .nav-links {
    position: fixed; inset: 80px 0 auto 0; background: var(--cream); flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 26px 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md); z-index: 55;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 8px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 940px) {
  .hero-grid, .est-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ledger-body { grid-template-columns: 1fr; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--line); }
  .stat-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

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