/* Marshall Network Services — /next/ design system (staging only)
   Navy, white, cool gray, restrained orange. Modern sans. 1120px wrap. */
:root {
  --navy: #0B1F3A;
  --navy-mid: #1B2A4A;
  --navy-soft: #243552;
  --white: #ffffff;
  --bg: #F5F6F8;
  --bg-card: #ffffff;
  --text: #0B1F3A;
  --body: #3A4556;
  --muted: #5A6473;
  --line: #D5D9E0;
  --line-soft: #E6E9EE;
  --orange: #E07A2E;
  --orange-hover: #C96A26;
  --orange-ink: #0B1F3A;
  --wrap: 1120px;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;
  --pad: clamp(1.15rem, 3.6vw, 1.85rem);
  --section: clamp(3.75rem, 8vw, 6rem);
  --header-h: 5.75rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 8px 24px rgba(11, 31, 58, 0.05);
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--navy); text-underline-offset: 0.14em; }
a:hover { color: var(--orange-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: var(--pad); top: -3rem;
  background: var(--navy); color: var(--white);
  padding: 0.5rem 0.85rem; z-index: 100;
  border-radius: 0 0 6px 6px;
}
.skip:focus { top: 0; color: var(--white); }

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
}
.logo {
  display: flex; align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  width: 252px;
  height: auto;
}
.logo:hover { opacity: 0.92; }
.logo:focus-visible { outline-offset: 4px; }

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.util {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.util:hover { color: var(--navy); border-bottom-color: var(--line); }
.util[aria-current="page"] { color: var(--navy); }

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 2.6rem; height: 2.6rem;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.05rem; height: 2px;
  background: var(--navy);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 5px)); }
.nav-toggle:hover { border-color: var(--navy); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy-mid);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--orange); }
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

@media (max-width: 899px) {
  .logo img { width: 196px; }
  .util { display: none; } /* lives in the opened nav on small screens */
  .nav-toggle { display: inline-block; }
  .header-inner { flex-wrap: wrap; }
  .header-end { gap: 0.75rem; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0 0.85rem;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav a, .site-nav .util-mobile {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
  .util-mobile { display: block; font-size: 0.85rem; color: var(--muted); text-decoration: none; font-weight: 600; }
  #nav-toggle:checked ~ .header-inner .site-nav { display: flex; }
  #nav-toggle:checked ~ .header-inner .nav-toggle span { background: transparent; }
  #nav-toggle:checked ~ .header-inner .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
  #nav-toggle:checked ~ .header-inner .nav-toggle span::after { transform: translate(-50%, -50%) rotate(-45deg); }
}
@media (min-width: 900px) {
  .util-mobile { display: none; }
}

/* Type */
.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
h1, h2, h3, .h1, .h2 {
  font-family: var(--sans);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
h1, .h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.5rem; }
.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.5;
  color: var(--body);
  max-width: 40rem;
  margin: 0 0 1.35rem;
}
.note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 0.9rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--orange-ink);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-on-dark.btn-primary { color: var(--navy); }
.btn-on-dark.btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-on-dark.btn-secondary:hover { background: var(--white); color: var(--navy); }

/* Sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.section-muted { background: var(--bg); }
.section-navy {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lede { color: rgba(255,255,255,0.86); }
.section-navy .kicker { color: var(--orange); }
.section-navy .principle {
  color: var(--white);
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(224,122,46,0.10), transparent 55%),
    linear-gradient(180deg, #0B1F3A 0%, #152844 100%);
  color: rgba(255,255,255,0.88);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero h1 { color: var(--white); }
.hero .brand-promise {
  display: block;
  color: var(--white);
}
.hero .lede { color: rgba(255,255,255,0.84); max-width: 38rem; }
.hero .support { max-width: 40rem; color: rgba(255,255,255,0.78); margin: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
/* keep service cards 2x2 on desktop for comfortable type */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  border-color: #b9c0cc;
  color: inherit;
  box-shadow: 0 2px 4px rgba(11,31,58,0.05), 0 14px 28px rgba(11,31,58,0.07);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { margin: 0 0 0.7rem; }
.card p:last-child { margin-bottom: 0; }
.card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
a.card:hover .more { color: var(--orange-hover); }

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; }
}
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.step-num {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 0.2rem;
}
.step h3 { margin-top: 0; }
.step p { margin: 0; }

/* Principle quote */
.principle {
  margin: 1.4rem 0 1.5rem;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--orange);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.015em;
  max-width: 38rem;
}
.principle cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 600;
}
.principle a { color: inherit; }

/* Lists */
.plain-list { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.plain-list li { margin: 0.35rem 0; }
.discipline {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0; list-style: none;
}
.discipline li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-mid);
}

/* Directory entries (services page) */
.directory { display: grid; gap: 1.15rem; }
.entry {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.55rem;
  box-shadow: var(--shadow);
}
.entry h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { color: var(--orange-hover); }
.entry .meta-row {
  display: grid;
  gap: 0.85rem 1.5rem;
  margin: 1.1rem 0 1.2rem;
}
@media (min-width: 700px) {
  .entry .meta-row { grid-template-columns: 1fr 1fr 1fr; }
}
.entry dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.3rem;
}
.entry dd { margin: 0; }
.page-intro { padding-top: var(--section); padding-bottom: 0.5rem; }

/* Contact list */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li { margin: 0 0 0.85rem; }
.contact-list span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 2.25rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.1fr 1.4fr; align-items: start; }
}
.site-footer .logo img { width: 240px; margin-bottom: 1rem; }
.nap { margin: 0; font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.88); }
.nap a { color: var(--white); text-decoration: none; }
.nap a:hover { color: #f0c49a; text-decoration: underline; }
.footer-principle .principle {
  color: rgba(255,255,255,0.92);
  border-left-color: var(--orange);
  margin-top: 0;
}
.footer-principle cite, .footer-principle cite a { color: rgba(255,255,255,0.7); }
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.88rem;
}
.footer-bottom a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* Page utilities */
.prose p { max-width: 40rem; }
.prose p + p { margin-top: 0.9rem; }
hr.quiet { border: 0; border-top: 1px solid var(--line-soft); margin: 2rem 0; }

@media (max-width: 520px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}
