/* Sorensen Advancement Group — site styles
   Palette: muted American tones — navy, brick red, slate, warm white */
:root {
  --navy-900: #0f2238;
  --navy-800: #16304d;
  --navy-700: #1f3d60;
  --navy-500: #3a5f8a;
  --navy-100: #e6ecf3;
  --red-700: #8e2a2a;
  --red-600: #a33a36;
  --red-100: #f5e7e5;
  --slate-700: #3d4652;
  --slate-500: #6b7480;
  --slate-300: #c9ced5;
  --slate-100: #eef0f3;
  --white: #ffffff;
  --paper: #f8f7f4;
  --ink: #1d2733;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 34, 56, .06), 0 8px 24px rgba(15, 34, 56, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Flag stripe accent */
.stripe { height: 5px; background: linear-gradient(90deg, var(--navy-800) 0 40%, var(--white) 40% 46%, var(--red-700) 46% 100%); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--slate-300); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-700); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; text-decoration: none; color: var(--slate-700); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red-700); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--slate-300); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--navy-900); }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer; }
.btn-primary { background: var(--red-700); color: var(--white); }
.btn-primary:hover { background: var(--red-600); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy-900); }
.nav .btn { padding: 10px 18px; }

/* Hero */
.hero { background: var(--navy-900); color: #dfe6ee; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 20%, rgba(58,95,138,.45), transparent 55%),
  repeating-linear-gradient(180deg, transparent 0 34px, rgba(255,255,255,.025) 34px 68px); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); box-shadow: none; }
.hero .lede { font-size: 1.2rem; max-width: 58ch; color: #c9d4e0; }
.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-700); margin-bottom: 14px; display: block; }
.hero .eyebrow { color: #e3a9a3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero .container { padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { max-width: 22ch; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-800); color: #dbe3ec; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate-500); font-size: 1.08rem; }
.section-navy .section-head p { color: #b7c4d3; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius); margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stat { padding: 28px 24px; border-right: 1px solid var(--slate-100); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy-800); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--slate-500); }

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.section-alt .card { background: var(--paper); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate-700); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--red-700); }
.card .more:hover { color: var(--navy-800); }
.card-top { border-top: 4px solid var(--navy-700); }
.card-top.red { border-top-color: var(--red-700); }
.icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }
.icon.red { background: var(--red-100); color: var(--red-700); }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--red-700); border-bottom: 2px solid var(--red-700); transform: rotate(-45deg); }
.section-navy .checks li::before { border-color: #e3a9a3; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: .9fr 1.1fr; }
.panel { background: var(--navy-800); color: #dbe3ec; border-radius: var(--radius); padding: 40px; }
.panel h3 { color: var(--white); }
.quote { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--navy-900); border-left: 4px solid var(--red-700); padding-left: 24px; margin: 0; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--slate-500); margin-top: 14px; }

/* Services detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--slate-300); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-meta { position: sticky; top: 110px; align-self: start; }
.service-meta .num { font-family: var(--serif); font-size: 3rem; color: var(--slate-300); line-height: 1; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--navy-100); color: var(--navy-700); padding: 4px 10px; border-radius: 99px; margin: 0 6px 6px 0; }
.tag.red { background: var(--red-100); color: var(--red-700); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--white); margin: 24px 0; }
.facts div { padding: 16px 20px; border-right: 1px solid var(--slate-100); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy-900); }
.deliverables { columns: 2; column-gap: 32px; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.2rem; color: var(--red-700); }
.step::after { content: ""; position: absolute; top: 22px; left: 64px; right: -14px; height: 1px; background: var(--slate-300); }
.step:last-child::after { display: none; }
.section-navy .step::after { background: rgba(255,255,255,.2); }
.section-navy .step::before { color: #e3a9a3; }
.section-navy .step p { color: #b7c4d3; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.compare thead th { background: var(--navy-800); color: var(--white); font-weight: 600; }
.compare thead th:last-child { background: var(--red-700); }
.compare tbody th { font-weight: 600; color: var(--navy-900); width: 26%; }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 20px; color: var(--slate-700); }

/* CTA band */
.cta { background: var(--red-700); color: #fbeceb; text-align: center; }
.cta h2 { color: var(--white); }
.cta p { max-width: 620px; margin: 0 auto 28px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy-500); outline-offset: 1px; border-color: var(--navy-500); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--slate-500); }
.form-status { padding: 14px 18px; border-radius: var(--radius); background: var(--navy-100); color: var(--navy-900); display: none; }
.form-status.show { display: block; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb0c3; font-size: .92rem; padding: 64px 0 28px; }
.site-footer a { color: #cfd9e4; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.verse { font-family: var(--serif); font-style: italic; color: #c3cfdc; }

/* Utilities */
.muted { color: var(--slate-500); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service-meta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--slate-100); }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--slate-300); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--slate-100); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--red-700); }
  .nav-links .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero .container { padding-top: 64px; padding-bottom: 80px; }
  .grid-2, .grid-3, .grid-4, .steps, .form .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--slate-100); }
  .deliverables { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .panel { padding: 28px; }
  .brand-name { font-size: 1.08rem; }
}

/* Career timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--slate-300); }
.timeline > li { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 0 0 40px 32px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--red-700); }
.timeline .when { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-500); padding-top: 4px; }
.timeline h3 { margin-bottom: .15em; }
.timeline .org { color: var(--slate-500); font-weight: 500; margin-bottom: .8em; }
.timeline .checks { margin-bottom: 0; }
@media (max-width: 760px) {
  .timeline > li { grid-template-columns: 1fr; gap: 6px; padding-left: 24px; }
}
