/* Northbound Group LLC — refined corporate stylesheet */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color system */
  --color-bg: #fafaf7;
  --color-surface: #f5f3ed;
  --color-surface-2: #efece3;
  --color-text: #0a0e1a;
  --color-muted: #475569;
  --color-muted-light: #64748b;
  --color-border: #e5e2d8;
  --color-border-strong: #d6d2c5;

  --color-primary: #0a1f3d;        /* deep navy */
  --color-primary-hover: #112d56;
  --color-primary-deep: #050f1f;

  --color-accent: #b8924b;          /* refined gold */
  --color-accent-soft: #d4b87a;
  --color-accent-deep: #8e6f33;

  /* Layout */
  --max-width: 1140px;
  --max-prose: 720px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 31, 61, 0.04), 0 1px 3px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 31, 61, 0.06), 0 2px 4px rgba(10, 31, 61, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 31, 61, 0.08), 0 4px 8px rgba(10, 31, 61, 0.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-accent); text-decoration: none; }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
}
.brand a:hover { color: var(--color-primary); }
.brand__logo {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.brand__name { font-weight: 600; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  color: var(--color-muted);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.nav a:hover { color: var(--color-primary); background: var(--color-surface); }
.nav__cta {
  padding: 8px 16px !important;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 6px;
  margin-left: 8px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--color-primary-hover) !important; color: #fff !important; }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  padding: 96px 28px 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(184, 146, 75, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(10, 31, 61, 0.04), transparent 50%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 680px;
  margin-bottom: 32px;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--color-muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* =================================================================
   Stats bar
   ================================================================= */
.stats-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 28px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 146, 75, 0.12), transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(184, 146, 75, 0.06), transparent 60%);
  pointer-events: none;
}
.stats-bar__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
}
.stat {
  text-align: left;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat__value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

/* =================================================================
   Section base
   ================================================================= */
.section {
  padding: 96px 28px;
  border-bottom: 1px solid var(--color-border);
}
.section--surface { background: var(--color-surface); }
.section--cream { background: var(--color-surface-2); }
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.section__lead {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.6;
}
.section p {
  color: var(--color-muted);
  margin-bottom: 16px;
}
.section p:last-child { margin-bottom: 0; }

/* =================================================================
   About — split layout
   ================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid__main p {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.quick-facts {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.quick-facts__title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.quick-facts dl {
  display: grid;
  gap: 18px;
}
.quick-facts dt {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-light);
  font-weight: 600;
  margin-bottom: 4px;
}
.quick-facts dd {
  font-size: 15.5px;
  color: var(--color-text);
  font-weight: 500;
}

/* =================================================================
   Services — cards with icons
   ================================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-soft);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* =================================================================
   Approach — numbered steps
   ================================================================= */
.approach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.approach__step {
  position: relative;
  padding: 32px 24px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-accent);
}
.approach__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.approach__step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.approach__step p {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* =================================================================
   Compliance — trust signals
   ================================================================= */
.compliance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.trust-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.trust-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* =================================================================
   FAQ
   ================================================================= */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq__item[open] { border-color: var(--color-accent-soft); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__answer {
  padding: 0 28px 24px;
  color: var(--color-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* =================================================================
   Contact
   ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.15s ease;
}
.contact-card:hover {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-md);
}
.contact-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.contact-card h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-light);
  font-weight: 600;
  margin-bottom: 12px;
}
.contact-card p, .contact-card address {
  font-style: normal;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}
.contact-card a { color: var(--color-primary); font-weight: 500; }
.contact-card a:hover { color: var(--color-accent); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  padding: 64px 28px 40px;
  background: var(--color-primary-deep);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer__brand .brand__logo { color: var(--color-accent); }
.site-footer__brand-name {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.site-footer__tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}
.site-footer h4 {
  color: #fff;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.site-footer a:hover {
  color: var(--color-accent-soft);
}
.site-footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.55); margin-left: 18px; }
.site-footer__bottom a:first-of-type { margin-left: 0; }

/* =================================================================
   Legal pages
   ================================================================= */
.legal {
  padding: 72px 28px 96px;
  background: var(--color-bg);
}
.legal__inner {
  max-width: var(--max-prose);
  margin: 0 auto;
}
.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.legal__date {
  color: var(--color-muted-light);
  font-size: 14px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--color-primary);
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.legal p, .legal ul {
  color: var(--color-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.legal ul { padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--color-text); font-weight: 600; }
.legal a { color: var(--color-primary); text-decoration: underline; text-decoration-color: var(--color-accent-soft); text-underline-offset: 3px; }
.legal a:hover { color: var(--color-accent); }

/* =================================================================
   Responsive
   ================================================================= */
/* Sub-page headers (services, careers, etc.) */
.page-header {
  padding-top: 88px;
  padding-bottom: 56px;
}
.page-header h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin-bottom: 18px;
  max-width: 760px;
}

/* Feature list — for service detail pages, value lists, etc. */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding: 0 0 0 28px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 1.5px;
  background: var(--color-accent);
}

/* Sub-section block (used on detail pages for grouped content) */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 32px;
}
.detail-block h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.detail-block p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* Inline page CTA section */
.cta-block {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 146, 75, 0.12), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(184, 146, 75, 0.08), transparent 60%);
  pointer-events: none;
}
.cta-block__inner { position: relative; z-index: 1; max-width: 720px; }
.cta-block .eyebrow { color: var(--color-accent-soft); }
.cta-block .eyebrow::before { background: var(--color-accent-soft); }
.cta-block h2 { color: #fff; font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
.cta-block p { color: rgba(255, 255, 255, 0.78); font-size: 17px; margin-bottom: 22px; }
.cta-block a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--color-accent);
  color: var(--color-primary-deep);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-block a:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
  transform: translateX(2px);
}

/* Mobile adjustments for new components */
@media (max-width: 720px) {
  .detail-block { grid-template-columns: 1fr; gap: 28px; }
  .cta-block { padding: 36px 24px; }
  .cta-block h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .page-header { padding-top: 56px; padding-bottom: 40px; }
  .page-header h1 { font-size: 32px; }
}

/* Predictable card grids — equal, balanced columns at every breakpoint */
.stats-bar__inner { grid-template-columns: repeat(3, 1fr); }
.services { grid-template-columns: repeat(4, 1fr); }
.approach { grid-template-columns: repeat(4, 1fr); }
.compliance { grid-template-columns: repeat(3, 1fr); }
.contact-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

/* Make cards stretch to equal heights, content flows top-to-bottom */
.service-card, .trust-card, .approach__step, .contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 980px) {
  .services, .approach { grid-template-columns: repeat(2, 1fr); }
  .compliance { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .section h2 { font-size: 30px; }
}

@media (max-width: 720px) {
  .stats-bar__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .services, .approach { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header__inner { padding: 14px 20px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 10px; font-size: 13.5px; }
  .nav__cta { display: none; }
  .hero { padding: 64px 20px 56px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 17px; }
  .stats-bar { padding: 36px 20px; }
  .stats-bar__inner { gap: 24px; }
  .stat__value { font-size: 18px; }
  .section { padding: 64px 20px; }
  .section h2 { font-size: 26px; }
  .section__lead { font-size: 16px; }
  .service-card, .trust-card, .contact-card { padding: 24px; }
  .quick-facts { padding: 24px; }
  .legal { padding: 48px 20px 64px; }
  .legal h1 { font-size: 30px; }
  .faq__item summary { padding: 18px 22px; font-size: 15.5px; }
  .faq__answer { padding: 0 22px 20px; font-size: 15px; }
  .site-footer { padding: 48px 20px 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom a { margin-left: 0; margin-right: 14px; }
}
