/* ============================================================
   R.B. Price & Company — site styles
   Palette aligned with DealChase.ai (navy / blue).
   No build step required; plain CSS served from /css.
   ============================================================ */

:root {
    --navy-900: #0a1733;
    --navy-800: #0d2147;
    --navy-700: #122a5c;
    --blue-600: #1d4ed8;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --blue-50:  #eff4ff;
    --ink:      #16203a;
    --slate:    #475569;
    --slate-300:#cbd5e1;
    --line:     #e3e8f0;
    --bg:       #ffffff;
    --bg-soft:  #f6f8fc;
    --white:    #ffffff;
    --gold:     #c9a23f;
    --radius:   14px;
    --radius-sm:10px;
    --shadow:   0 10px 30px rgba(10, 23, 51, 0.08);
    --shadow-lg:0 24px 60px rgba(10, 23, 51, 0.14);
    --maxw:     1140px;
    --font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif:"Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #dce4f5; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--blue-500); font-family: var(--font-sans); margin-bottom: 14px; }
.section--navy .eyebrow { color: var(--blue-400); }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 60ch; }
.section--navy .lead { color: #c3cfe6; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
    padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: all .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 8px 20px rgba(37,99,235,.35); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
/* On any dark background (hero or navy sections) ghost buttons must read in white. */
.section--navy .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.section--navy .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.brand a { color: var(--navy-900); text-decoration: none; }
.brand .brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem; letter-spacing: .2px; }
.brand .brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--slate); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .97rem; text-decoration: none; padding: 8px 0; }
.nav-links a:hover, .nav-links a.is-active { color: var(--blue-600); }
.nav-links a.is-active { font-weight: 600; }

/* dropdown */
.has-drop > .drop-toggle::after { content: "▾"; font-size: .7rem; margin-left: 5px; color: var(--slate); }
.drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    min-width: 240px; padding: 8px; opacity: 0; visibility: hidden; transition: all .15s ease; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.drop a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-cta { margin-left: 6px; }
/* Higher specificity than ".nav-links a" so the CTA keeps its white button text. */
.nav-links .nav-cta a.btn-primary { color: #fff; white-space: nowrap; }
.nav-links .nav-cta a.btn-primary:hover { color: #fff; }

/* mobile */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px;
        box-shadow: var(--shadow); display: none; }
    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0;
        padding: 0 0 0 14px; min-width: 0; }
    .has-drop:hover .drop { transform: none; }
    .nav-cta { margin: 12px 0 0; }
    .nav-cta .btn { display: block; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 140%);
    color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #cdd9f2; font-size: 1.25rem; max-width: 62ch; }
.hero .container { position: relative; z-index: 1; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blue-500); font-weight: 700; font-family: var(--font-sans); }

/* article cards */
.article { display: flex; flex-direction: column; }
.article .source { font-size: .82rem; color: var(--slate); font-weight: 600; margin-bottom: 6px; }
.article blockquote { margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--blue-400); color: var(--slate); font-style: italic; }
.article .read { margin-top: auto; font-weight: 600; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: #fff; }
.stat .label { font-size: .9rem; color: #b9c6e4; }

/* ---------- Tables (tools, comparison) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--navy-900); color: #fff; font-family: var(--font-sans); font-size: .9rem; letter-spacing: .3px; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; color: var(--navy-800); white-space: nowrap; }
table.data tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px;
    background: var(--blue-50); color: var(--blue-600); border-radius: 50%; text-align: center; font-size: .8rem;
    line-height: 22px; font-weight: 700; }

.track-list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .track-list { grid-template-columns: 1fr; } }
.track { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: var(--radius-sm); padding: 20px 22px; }
.track h3 { font-size: 1.08rem; margin-bottom: .35em; }
.track p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.note { background: var(--blue-50); border: 1px solid #d4e1fb; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; color: var(--navy-800); }

/* ---------- Contact form ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-800); }
label .req { color: var(--blue-600); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.field-error { color: #b91c1c; font-size: .85rem; margin-top: 5px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.form-alert.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aeb9d4; padding: 48px 0 36px; font-size: .92rem; }
.site-footer a { color: #cdd9f2; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.footer-brand .brand-name { font-family: var(--font-serif); color: #fff; font-size: 1.2rem; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: #8493b8; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--slate); }
.divide { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Founder block (About) ---------- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; margin-top: 28px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: 24px; } }
.founder-photo { margin: 0; }
.founder-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); display: block; background: var(--bg-soft); }
.founder-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--slate); font-weight: 600; text-align: center; }
.founder-bio p:first-child { margin-top: 0; }
