/* Forward OnQ: colors and type per Forward_OnQ_Brand_Style_Guide.docx */
:root {
  --deep-navy: #042C53;
  --primary-navy: #0C447C;
  --mid-blue: #378ADD;
  /* #378ADD as text on white is 3.6:1 (fails WCAG AA). This slightly
     darker blue is 4.6:1 and is used wherever bright blue is *text*;
     --mid-blue stays for fills, borders, and icon strokes. */
  --mid-blue-text: #2A78C2;
  --band-mid: #2268AC;
  --light-fill: #E6F1FB;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --border: #d7e3ee;
  /* One container width for header, footer, and every section: every
     section on a page starts and stops at the same x, and text fills it.
     Nothing inside a section gets its own narrower max-width; things that
     should read as centered (button rows, stats, graphics) are centered
     within the full container instead. */
  --max-width: 960px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

a {
  color: var(--mid-blue-text);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Header / nav */

/* Side padding lives on the outer bar, not the inner box, so the header
   and footer content shares the sections' exact left/right edges. */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
  padding: 0 1.5rem;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand .logo {
  height: 40px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--mid-blue-text);
}

/* Hero */

.hero {
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-home .hero-inner {
  max-width: var(--max-width);
}

.hero-home .hero-subhead {
  max-width: none;
}

/* Left-aligned hero (Fractional, Apps, About): same container as the
   sections below it, so the top of the page lines up with the rest. */
.hero-inner-prose {
  max-width: var(--max-width);
  text-align: left;
}

.hero-inner-prose .hero-subhead,
.hero-inner-prose .hero-tagline {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.hero-about-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-about-inner .headshot {
  width: 320px;
  flex-shrink: 0;
}

.hero-about-inner > div {
  flex: 1;
}

.hero-about-inner .hero-tagline {
  margin-bottom: 0;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--primary-navy);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 660px;
}

.hero-inner-prose p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.hero-inner-prose .btn-row {
  margin-top: 1.75rem;
  justify-content: center;
}

.eyebrow {
  color: var(--mid-blue-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

/* Headshots */

.headshot {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.headshot-round {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--light-fill);
}

/* Sections */

.section {
  padding: 3rem 1.5rem;
}

.section-muted {
  background: var(--light-fill);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  color: var(--primary-navy);
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.section-title-center {
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem !important;
}

.section-link-center {
  text-align: center;
  margin: 1.75rem auto 0 !important;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list strong {
  color: var(--primary-navy);
}

/* Stats strip */

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-navy);
}

.stat-label {
  color: var(--text);
  font-size: 0.95rem;
}

.stats-section {
  padding-top: 1rem;
}

.stats-caption {
  text-align: center;
  color: var(--text-muted);
  margin: 2rem auto 0 !important;
}

.section .stats + .stats,
.experience + .stats {
  margin-top: 2.5rem;
}

/* Homepage two-path cards */

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--primary-navy);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.card-headline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.card .btn {
  align-self: center;
}

/* Quote cards ("Sound familiar?") and callout box */

.quote-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.quote-card,
.callout {
  background: var(--light-fill);
  border-left: 4px solid var(--mid-blue);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.5rem 1.5rem 1.4rem;
}

.quote-card p,
.callout p {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}

.quote-card p::before,
.quote-card p::after {
  content: "\201C";
  color: var(--mid-blue-text);
}

.quote-card p::after {
  content: "\201D";
}

.section .callout {
  margin-bottom: 1.75rem;
}

/* "Facing this" cards */

.facing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.facing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.facing-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 640px;
  justify-self: center;
  width: 100%;
}

.facing-card h3 {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.facing-card h3::before {
  content: "\201C";
}

.facing-card h3::after {
  content: "\201D";
}

.facing-card p {
  margin: 0;
  color: var(--text);
}

/* Pull quote band */

.pull-quote {
  background: var(--light-fill);
}

.pull-quote blockquote {
  margin: 0 auto;
  text-align: center;
}

.pull-quote p {
  font-size: 1.5rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--primary-navy);
  margin: 0;
}

/* CTO / CIO band */

.cto-cio-band {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.75rem 0;
  color: #ffffff;
  text-align: center;
}

.cto-cio-panel {
  flex: 1;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.cto-cio-left {
  background: var(--primary-navy);
}

.cto-cio-center {
  background: var(--band-mid);
}

/* Darkened from #378ADD so the subtext passes WCAG AA against white */
.cto-cio-right {
  background: var(--mid-blue-text);
}

.cto-cio-heading {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.cto-cio-heading-lg {
  font-size: 1.75rem;
}

.cto-cio-sub {
  font-size: 0.95rem;
}

/* How I Help icon grid */

.icon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

.icon-item h3 {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.icon-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-fill);
  color: var(--mid-blue);
  margin-bottom: 1rem;
}

/* Backed by real experience */

.experience {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.experience p:last-child {
  margin-bottom: 0;
}

/* CTA band (dark tile, per brand guide) */

.cta-band {
  background: var(--deep-navy);
  color: var(--light-fill);
}

.cta-band-inner {
  text-align: center;
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

/* Buttons / links */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.btn-primary {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--deep-navy);
  border-color: var(--deep-navy);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--light-fill);
}

.btn-on-dark {
  border-color: #ffffff;
  color: #ffffff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Inverted on the dark band: a navy button would vanish, and white text on
   #378ADD fails AA, so the primary action becomes white-on-navy. */
.cta-band .btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--primary-navy);
}

.cta-band .btn-primary:hover {
  background: var(--light-fill);
  border-color: var(--light-fill);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link {
  color: var(--mid-blue-text);
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.btn {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-row-center {
  justify-content: center;
}

/* Button rows are centered in every section, on every page */
.section .btn-row {
  margin-top: 1.5rem;
  justify-content: center;
}

.section .btn-row + .pdf-text-link {
  margin-top: 1.25rem;
  text-align: center;
}

.btn-link .icon {
  vertical-align: -0.2em;
}

/* Footer */

.site-footer {
  background: var(--deep-navy);
  padding: 2.5rem 1.5rem;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.site-footer .logo-footer {
  height: 40px;
  width: auto;
  margin: 0 auto 1rem;
}

.footer-location {
  color: var(--light-fill);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-links {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
}

.footer-links a {
  color: var(--light-fill);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: var(--mid-blue);
  margin: 0 0.5rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #9fbcd6;
}

/* Responsive: tablet */

@media (max-width: 1023px) {
  .icon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive: mobile */

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  /* Two rows: logo + Book a Call, then the links beneath */
  .site-header {
    padding: 0 1.25rem;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0.75rem 0;
    min-height: 0;
  }

  .site-footer {
    padding: 2.5rem 1.25rem;
  }

  .brand .logo {
    height: 32px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav ul {
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
  }

  .header-cta {
    order: 2;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  /* Three short stats fit in a row; 2 + 1 leaves an orphan */
  .stats-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stats-3 .stat-number {
    font-size: 1.75rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.4rem;
  }

  .footer-links span {
    display: none;
  }

  .paths-grid,
  .quote-cards,
  .facing-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .facing-card:last-child:nth-child(odd) {
    max-width: none;
  }

  .cto-cio-band {
    flex-direction: column;
  }

  .experience {
    flex-direction: column;
    text-align: center;
  }

  .hero-about-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-about-inner .headshot {
    width: 100%;
  }

  .pull-quote p {
    font-size: 1.25rem;
  }

  section[id] {
    scroll-margin-top: 7.5rem;
  }
}
