/* ===========================================================================
   Norfolk & Portsmouth Belt Line Railroad — site design system
   =========================================================================== */

:root {
  --ink:      #14161b;   /* near-black charcoal */
  --ink-2:    #1b1e25;   /* dark panel */
  --ink-3:    #242831;   /* card on dark */
  --paper:    #ffffff;
  --paper-2:  #f4f5f7;   /* light section */
  --line:     #e4e6ea;   /* border on light */
  --line-d:   rgba(255,255,255,.12);  /* border on dark */
  --text:     #1b1e25;   /* body on light */
  --muted:    #5c636e;   /* muted on light */
  --text-d:   #e9eaed;   /* body on dark */
  --muted-d:  #98a1ae;   /* muted on dark */
  --gold:     #f3b81b;   /* primary accent */
  --gold-d:   #d49d08;
  --crimson:  #9a0b32;   /* brand red */
  --crimson-d:#7c0727;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --shadow: 0 18px 50px rgba(8,10,14,.16);
  --shadow-sm: 0 6px 20px rgba(8,10,14,.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold-d);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }

/* ---------- Buttons --------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 2px; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1a1505; }
.btn-gold:hover { background: #ffc934; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color:#fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top utility bar ------------------------------------------------*/
.topbar {
  background: var(--crimson);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar .dispatch strong { color: var(--gold); }

/* ---------- Header ---------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,22,27,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-d);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 50px; height: 50px; }
.brand .bt { font-family: var(--display); color: #fff; line-height: 1.05; }
.brand .bt .l1 { display: block; font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.brand .bt .l2 { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .08em;
  font-size: 14.5px; font-weight: 500; color: var(--text-d);
  padding: 10px 14px; border-radius: 2px; position: relative;
}
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background: var(--gold);
}
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- Hero -----------------------------------------------------------*/
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .bg::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(15,17,21,.92) 0%, rgba(15,17,21,.72) 42%, rgba(15,17,21,.30) 100%),
    linear-gradient(0deg, rgba(15,17,21,.85) 0%, rgba(15,17,21,0) 45%);
}
.hero .wrap { position: relative; padding: 118px 24px 124px; }
.hero-inner { max-width: 760px; }
.hero h1 {
  text-transform: uppercase; font-weight: 600;
  font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -.5px; margin: 8px 0 0;
}
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: #d9dde3; margin: 22px 0 0; max-width: 620px; line-height: 1.6; }
.hero .cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  position: relative; z-index: 1; border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 22px 0; max-width: var(--wrap); margin: 0 auto;
}
.hero-meta .item { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted-d); }
.hero-meta .item b { color: var(--gold); font-size: 15px; }

/* ---------- Sections -------------------------------------------------------*/
section { padding: 86px 0; }
.section-light { background: var(--paper); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--text-d); }
.section-dark.on-dark p { color: var(--muted-d); }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { text-transform: uppercase; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.3px; color: inherit; }
.section-light .section-head h2, .section-alt .section-head h2 { color: var(--ink); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.on-dark .section-head p { color: var(--muted-d); }

/* ---------- Stat band ------------------------------------------------------*/
.stats { background: var(--ink-2); border-top: 3px solid var(--gold); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 28px; text-align: center; border-right: 1px solid var(--line-d); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; color: var(--gold); }
.stat .num .suf { font-size: 26px; vertical-align: super; }
.stat .lab { margin-top: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--muted-d); }

/* ---------- Service cards --------------------------------------------------*/
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 30px 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #d6d9de; }
.card .ico {
  width: 52px; height: 52px; border-radius: 3px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.card p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- Split feature --------------------------------------------------*/
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse .media { order: 2; }
.split .media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.split .body p { color: var(--muted); }
.section-dark .split .body p { color: var(--muted-d); }
.split .body h2 { text-transform: uppercase; font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.section-light .split .body h2, .section-alt .split .body h2 { color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* owners / pill row */
.owners { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.owner-pill {
  display: flex; align-items: center; gap: 12px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 12px 18px;
}
.owner-pill .pct { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--crimson); }
.owner-pill .who { font-size: 14px; line-height: 1.3; color: var(--muted); }
.owner-pill .who b { display:block; color: var(--ink); font-size: 15px; }

/* ---------- Download / PDF cards ------------------------------------------*/
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--crimson); border-radius: 4px; padding: 22px 24px; transition: box-shadow .15s, transform .15s;
}
.dl:hover { text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.dl .pdf-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 3px; background: var(--crimson); color:#fff; display:grid; place-items:center; font-family: var(--display); font-weight:600; font-size: 13px; letter-spacing:.05em; }
.dl .meta { min-width: 0; }
.dl .meta .t { font-family: var(--display); text-transform: uppercase; letter-spacing:.02em; font-size: 17px; color: var(--ink); line-height:1.2; }
.dl .meta .s { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dl .go { margin-left: auto; color: var(--crimson); font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing:.08em; white-space: nowrap; }

/* ---------- Staff grid -----------------------------------------------------*/
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 28px 26px;
  border-top: 3px solid var(--gold);
}
.person .nm { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 20px; color: var(--ink); letter-spacing:.02em; }
.person .ti { margin-top: 6px; color: var(--crimson); font-weight: 600; font-size: 14.5px; }
.person .initials {
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 18px;
}

/* ---------- Info / contact strip ------------------------------------------*/
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info {
  background: var(--ink-3); border: 1px solid var(--line-d); border-radius: 5px; padding: 30px 28px;
}
.info .ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(243,184,27,.14); color: var(--gold); display:grid; place-items:center; margin-bottom:16px; }
.info .ico svg { width: 22px; height: 22px; }
.info h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted-d); font-weight: 500; }
.info .v { margin-top: 8px; font-size: 18px; color: #fff; font-weight: 600; line-height: 1.4; }
.info .v a { color:#fff; } .info .v a:hover { color: var(--gold); text-decoration:none; }

/* ---------- CTA banner -----------------------------------------------------*/
.cta-band { background: var(--crimson); color:#fff; text-align:center; }
.cta-band h2 { text-transform: uppercase; color:#fff; font-size: clamp(28px,3.6vw,42px); }
.cta-band p { color: #f6dde3; max-width: 560px; margin: 14px auto 30px; }

/* ---------- Page hero (interior) ------------------------------------------*/
.page-hero { position: relative; background: var(--ink); color:#fff; overflow:hidden; }
.page-hero .bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.32; }
.page-hero .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, var(--ink) 4%, rgba(20,22,27,.55) 100%); }
.page-hero .wrap { position: relative; padding: 84px 24px 70px; }
.page-hero h1 { text-transform: uppercase; font-size: clamp(34px,5vw,58px); letter-spacing:-.4px; }
.page-hero .crumb { font-family: var(--display); text-transform: uppercase; letter-spacing:.16em; font-size:12.5px; color: var(--gold); margin-bottom: 16px; }
.page-hero p.sub { color:#d4d8de; max-width: 640px; margin: 18px 0 0; font-size: 18px; }

/* ---------- Contact form ---------------------------------------------------*/
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.npbl-contact-form { max-width: none; }
.npbl-field { margin-bottom: 18px; }
.npbl-field label { display:block; font-family: var(--display); text-transform: uppercase; letter-spacing:.08em; font-size: 13px; font-weight:500; color: var(--ink); margin-bottom: 7px; }
.npbl-field .req { color: var(--crimson); }
.npbl-field input, .npbl-field textarea {
  width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid #cfd3da; border-radius: 3px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.npbl-field input:focus, .npbl-field textarea:focus { outline:none; border-color: var(--gold-d); box-shadow: 0 0 0 3px rgba(243,184,27,.18); }
.npbl-hp { position:absolute; left:-5000px; width:1px; height:1px; overflow:hidden; }
.npbl-submit { font-family: var(--display); text-transform: uppercase; letter-spacing:.08em; font-weight:600; font-size:15px; background: var(--ink); color:#fff; border:0; padding: 15px 36px; border-radius:2px; cursor:pointer; transition: background .15s, transform .12s; }
.npbl-submit:hover { background:#000; transform: translateY(-2px); }
.npbl-submit:disabled { opacity:.55; cursor:default; transform:none; }
.npbl-status { margin-top: 16px; font-size: 15.5px; min-height: 22px; }
.npbl-status.ok { color: #1a7a32; font-weight: 600; }
.npbl-status.err { color: var(--crimson); font-weight: 600; }

/* ---------- Footer ---------------------------------------------------------*/
.site-footer { background: #0f1115; color: var(--muted-d); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .fbrand { display:flex; gap:14px; align-items:center; margin-bottom:18px; }
.site-footer .fbrand img { width: 48px; height:48px; }
.site-footer .fbrand .l1 { font-family: var(--display); color:#fff; text-transform:uppercase; font-weight:600; font-size:15px; letter-spacing:.04em; line-height:1.2; }
.site-footer .fbrand .l2 { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color: var(--gold); }
.site-footer p { font-size: 14.5px; line-height: 1.7; }
.footer-col h5 { font-family: var(--display); text-transform: uppercase; letter-spacing:.14em; font-size: 13px; color:#fff; margin:0 0 16px; font-weight:500; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted-d); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); text-decoration:none; }
.footer-col .line { font-size:14.5px; margin-bottom:10px; color:var(--muted-d); }
.footer-col .line b { color:#fff; display:block; font-weight:600; }
.footer-bottom { border-top: 1px solid var(--line-d); margin-top: 56px; padding: 22px 0; }
.footer-bottom .wrap { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; }
.footer-bottom, .footer-bottom a { color:#7c828c; }

/* ---------- Responsive -----------------------------------------------------*/
@media (max-width: 980px) {
  .split, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .media { order: 0; }
  .cards, .cards.three, .staff-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats .grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line-d); }
}
@media (max-width: 760px) {
  .topbar .est { display: none; }
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    border-bottom: 1px solid var(--line-d); padding: 10px 16px 18px; gap: 0;
  }
  .site-header.open .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line-d); }
  .site-header.open .main-nav a.active::after { display:none; }
  section { padding: 60px 0; }
  .hero .wrap { padding: 84px 24px 90px; }
  .cards, .cards.three, .downloads, .staff-grid, .info-grid { grid-template-columns: 1fr; }
  .hero .cta-row .btn { flex: 1 1 auto; justify-content:center; }
}
@media (max-width: 460px) {
  .stats .grid { grid-template-columns: 1fr; }
  .stat { border-right:0; }
  .footer-grid { grid-template-columns: 1fr; }
}
