/* ARM Consulting — shared styles
   Look: white and light grey, Inter, navy from the logo, Ray's soft blue as the one accent. */
:root {
  --navy: #0C2A42;
  --slate: #36546B;
  --ink: #0C2A42;
  --text: #3F4450;
  --muted: #55575F;
  --line: #D6D7DD;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F6;
  --sand: #E6E2DA;
  --blue: #8DB3DA;
  --radius: 24px;
  --wrap: 1200px;
  --ok: #1D6B45;
  --err: #A4262C;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(44px, 7vw, 84px); }
h2 { font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(34px, 4.4vw, 52px); }
h3 { font-weight: 500; font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text); }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.soft { background: var(--bg-soft); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 17px 34px; border-radius: 999px; border: 1px solid var(--navy); min-height: 48px;
  transition: background-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #071C2D; color: #fff; }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-sm { font-size: 15px; padding: 12px 22px; min-height: 44px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); border-bottom: 1px solid #EDEDF0; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 30px; justify-content: center; }
.nav a { text-decoration: none; font-size: 16px; padding: 6px 0; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--navy); }
.header-cta { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 15px; padding: 10px 16px; min-height: 44px; cursor: pointer; color: var(--navy); }

/* Grids */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.top { align-items: start; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 96px); padding-bottom: 40px; text-align: center; }
.hero .stack { align-items: center; gap: 26px; }
.hero h1 { max-width: 980px; }
.hero .lede { max-width: 720px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip .photo { height: 540px; }
.tag { position: absolute; left: 20px; top: 20px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }
.tag.dark { background: var(--navy); color: #fff; }
.caption { margin-top: 16px; text-align: center; font-size: 15px; color: var(--muted); }

/* Cards */
.card { background: #fff; border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); }
.soft .card { background: #fff; }
.card.outline { border: 1px solid var(--line); }

/* Checks */
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; }
.checks svg { margin-top: 4px; }

/* Steps */
.step { display: flex; flex-direction: column; gap: 10px; }
.step .num { font-size: 44px; font-weight: 300; color: var(--slate); line-height: 1; }
.step p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; color: var(--text); max-width: 70ch; display: flex; flex-direction: column; gap: 12px; }

/* CTA band */
.cta-band { background: var(--blue); }
.cta-band h2, .cta-band p { color: #0B1B29; }
.cta-band .btn-dark { background: #0B1B29; border-color: #0B1B29; }

/* Page header (inner pages) */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head .stack { max-width: 820px; gap: 22px; }

/* Services detail */
.svc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }

/* Prose (About, blog posts) */
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 18px; color: var(--text); font-size: 18px; }
.prose h2 { font-size: 32px; margin-top: 18px; }
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.creds strong { display: block; color: var(--ink); font-weight: 500; }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
form.intake { display: flex; flex-direction: column; gap: 34px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
legend { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; padding: 0 0 12px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--line); color: var(--ink); }
.fields { display: grid; gap: 18px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .group-label { font-weight: 500; font-size: 15px; color: var(--ink); }
.req { color: var(--slate); }
.hint { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #B9BCC6; border-radius: 12px; padding: 13px 14px; min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 2px solid var(--blue); outline-offset: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.35; background: #fff; }
.choice:hover { border-color: #9EA1AC; }
.choice input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #F3F7FB; }
.file-drop { border: 1.5px dashed #B9BCC6; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.file-drop input { font: inherit; font-size: 15px; max-width: 100%; }
.file-list { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.status.err { border-color: var(--err); color: var(--err); }
.success { border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-soft); }
.aside-card { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; }

/* Contact */
.contact-cards .card { border: 1px solid var(--line); }
.contact-cards .big { font-size: 26px; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }

/* Blog */
.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list h3 { font-size: 24px; font-weight: 400; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D2DC; font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h3 { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #C9D2DC; text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; text-decoration: underline; }
.logo-white { filter: brightness(0) invert(1); height: 52px; width: auto; margin-bottom: 14px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Responsive */
@media (max-width: 1000px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid #EDEDF0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #EDEDF0; }
  .nav a[aria-current="page"] { box-shadow: none; font-weight: 600; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
}
@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .g2, .g3, .split, .foot, .svc { grid-template-columns: 1fr; gap: 28px; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip .photo { height: 420px; }
  .fields.two, .choices { grid-template-columns: 1fr; }
  .logo img { height: 38px; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 420px) {
  .g4 { grid-template-columns: 1fr; }
  .header-cta .btn { padding: 9px 13px; font-size: 13px; }
  .menu-btn { padding: 9px 12px; font-size: 14px; }
  .logo img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
