/* Oklahoma Freight Broker Association — site styles */

/* Self-hosted fonts (OFL, see fonts/OFL-*.txt), instanced to the weights used here by tools/fonts.py.
   The "Fallback" faces are local fonts resized to the web fonts' metrics, so the swap doesn't move text. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2?v=9b6174d074") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2?v=1cd6ca904b") format("woff2");
}
/* local() matches one face by full name, so each fallback weight needs its own face; otherwise the
   browser fakes bold from the regular face and the widths no longer match. Metrics measured in README. */
@font-face {
  font-family: "Inter Fallback"; font-weight: 400 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 106.98%; ascent-override: 90.56%; descent-override: 22.55%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback"; font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  size-adjust: 101.63%; ascent-override: 95.32%; descent-override: 23.73%; line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback"; font-weight: 600 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold");
  size-adjust: 104.34%; ascent-override: 99.29%; descent-override: 32.11%; line-gap-override: 0%;
}
:root {
  --navy: #0f2742;
  --navy-2: #16365a;
  --sky: #5aa0d8;
  --amber: #e3a62f;
  --amber-ink: #8a5a00;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --ink: #142233;
  --ink-2: #44546a;
  --line: #dbe2ea;
  --link: #1d5f97;
  --focus: #e3a62f;
  --ok: #1f7a4d;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 39, 66, .06), 0 8px 24px rgba(15, 39, 66, .06);
  --wrap: 1140px;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1726;
    --surface: #112236;
    --surface-2: #162b44;
    --ink: #e7edf4;
    --ink-2: #a9b7c8;
    --line: #24405f;
    --link: #8cc4f0;
    --amber-ink: #f0c060;
    --ok: #58c48c;
    --err: #ff8a7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy) 96%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img, .brand svg { width: 40px; height: 40px; flex: none; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.brand-name { font: 700 1.02rem/1.15 var(--serif); }
.brand-name small { display: block; font: 600 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fb6cf; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { color: #d7e2ee; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; display: block; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 10px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1b1300; }
.btn-primary:hover { background: #f0b543; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.nav .btn-primary { padding: 10px 16px; color: #1b1300; }
.nav .btn-primary:hover { background: #f0b543; color: #1b1300; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(90, 160, 216, .22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0b1d33 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lede { color: #c9d6e4; }
.hero .eyebrow { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-map { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 32px; }
}
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, #0b1d33 100%); color: #fff; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.9rem); }
.page-hero .lede { color: #c9d6e4; }
.page-hero .eyebrow { color: var(--amber); }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 60px 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-ink); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fact { padding: 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font: 700 1.6rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.fact span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

.callout {
  border-left: 4px solid var(--amber); background: var(--surface); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.callout p:last-child { margin: 0; }

.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 20px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c9d6e4; margin: 0; max-width: 56ch; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* Membership tiers */
.tier { display: flex; flex-direction: column; }
.tier .tag { align-self: flex-start; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-bottom: 14px; }
.tier.featured { border: 2px solid var(--amber); }
.tier.featured .tag { background: var(--amber); color: #1b1300; }
.tier .checks { margin: 8px 0 24px; flex: 1; }
.tier .btn { width: 100%; }

/* Resources */
.res-group { margin-bottom: 48px; }
.res-group > h2 { font-size: 1.5rem; margin-bottom: 16px; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.res-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease;
}
.res-list a:hover { border-color: var(--sky); transform: translateY(-1px); }
.res-list strong { font-weight: 600; }
.res-list span { grid-column: 1; color: var(--ink-2); font-size: .94rem; }
.res-list .src { grid-column: 2; grid-row: 1 / span 2; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 560px) { .res-list a { grid-template-columns: 1fr; } .res-list .src { grid-column: 1; grid-row: auto; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--amber-ink); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 22px 18px; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 35%, transparent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.form-status.err { display: block; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.fine { font-size: .85rem; color: var(--ink-2); }

/* Footer */
.site-footer { background: #0a1a2c; color: #a9b7c8; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: #d7e2ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-title { color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll. main.js adds .reveal-pending only to elements that start below the fold,
   so nothing that has already been painted is hidden again. */
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-pending.in { opacity: 1; transform: none; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 48px; margin-bottom: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: #1b1300; font: 700 .95rem/1 var(--sans);
}

/* Small layout helpers (instead of inline styles, which the CSP blocks) */
.wrap-narrow { max-width: 860px; }
.wrap-mid { max-width: 920px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.pt-0 { padding-top: 0; }
.footer-blurb { margin-top: 16px; max-width: 44ch; }
.page-hero-tall { min-height: 60vh; }

@media print {
  .site-header, .site-footer, .cta-band, .hero-actions, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1, .hero .lede, .page-hero .lede { color: #000; }
  .hero-map { display: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* Heroes carry their own padding on .wrap */
section.hero, section.page-hero { padding: 0; }
.facts-stack { grid-template-columns: 1fr; }
.facts-stack .fact { border-right: 0; border-bottom: 1px solid var(--line); }
.facts-stack .fact:last-child { border-bottom: 0; }
