/* GHO Solutions: shared styles for every page. Fonts are self-hosted (no Google request, nothing to disclose). */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/red-hat-display.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/red-hat-text.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/red-hat-mono-500.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --surface: #FFFFFF;
  --fg: #0F172A;
  --muted: #5B6B82;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --on-accent: #FFFFFF;
  --focus: #2563EB;
  --danger: #B91C1C;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1120; --bg-alt: #0E1628; --surface: #111A2E; --fg: #F1F5F9; --muted: #94A3B8;
    --line: #1E293B; --line-strong: #334155; --accent: #3B82F6; --accent-hover: #60A5FA; --on-accent: #0B1120; --focus: #60A5FA; --danger: #F87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1120; --bg-alt: #0E1628; --surface: #111A2E; --fg: #F1F5F9; --muted: #94A3B8;
  --line: #1E293B; --line-strong: #334155; --accent: #3B82F6; --accent-hover: #60A5FA; --on-accent: #0B1120; --focus: #60A5FA; --danger: #F87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  padding-inline: var(--gutter);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
.inner { max-width: var(--max); margin-inline: auto; }
.band { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 500; }

/* header */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--fg); text-decoration: none; }
.brand svg { height: 24px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--fg); }
.theme-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; margin-left: 6px;
}
.theme-btn:hover { border-color: var(--fg); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .nav a.opt { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* hero */
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; }
.hero h1 .o { color: var(--accent); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.orbit-wrap { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
#orbit { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; }
  .orbit-wrap { max-width: 420px; order: -1; margin-bottom: -12px; }
}

/* sections */
section { scroll-margin-top: 84px; }
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; letter-spacing: -0.015em; margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 36em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: border-color .25s ease, transform .25s ease; }
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc svg { width: 56px; height: 56px; color: var(--fg); }
.svc h3 { font-size: 24px; font-weight: 700; margin-top: 6px; }
.svc p { color: var(--muted); }
.svc ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.svc li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.svc li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--accent); transform: translateY(-1px); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* line drawing (decorative) */
.draw :is(path, circle, rect, line) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw:not(.in) :is(path, circle, rect, line) { stroke-dashoffset: 1; }
.js .draw :is(path, circle, rect, line) { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.js .draw .late { transition-delay: .35s; }
.draw .fill-dot { transition: transform .5s ease .9s; transform-origin: center; transform-box: fill-box; }
.js .draw:not(.in) .fill-dot { transform: scale(0); }

/* process */
.process { position: relative; display: grid; gap: 0; max-width: 820px; }
.rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.rail::after { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--p, 0) * 100%); background: var(--accent); }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding-block: 20px; position: relative; }
.step .num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--mono); font-size: 15px; background: var(--bg); border: 2px solid var(--line-strong); color: var(--muted);
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.step.passed .num { border-color: var(--accent); color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.step p { color: var(--muted); margin-top: 6px; max-width: 38em; }
.step .meta { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 10px; letter-spacing: .04em; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); }
.contact h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.015em; margin-top: 12px; }
.contact .intro { color: var(--muted); margin-top: 16px; max-width: 30em; }
.details { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.details li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.details .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details .v { font-weight: 500; overflow-wrap: anywhere; user-select: all; }
.copy { font: 500 13px var(--text); color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--fg); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; min-width: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .details li { grid-template-columns: 1fr auto; } .details .k { grid-column: 1 / -1; } }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: 400 16px var(--text); color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; width: 100%; min-width: 0;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.topics legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics label { font-weight: 500; display: inline-flex; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 15px; }
.topics input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.topics input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.notice { border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.err { color: var(--danger); font-size: 14px; }

/* footer */
footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-end; }
.foot .logo { color: var(--fg); }
.foot .logo svg { height: 56px; width: auto; display: block; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--muted); }
.foot nav a { text-decoration: none; } .foot nav a:hover { color: var(--fg); }
.ph { color: var(--accent); }
.nap { font-style: normal; margin-top: 28px; font-size: 14px; color: var(--muted); }
.nap a { text-decoration: none; } .nap a:hover { color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.copyright { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* language switch */
.lang { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-decoration: none; color: var(--fg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; margin-left: 6px; }
.lang:hover { border-color: var(--fg); }

/* sub pages: breadcrumb, page hero, long-form text */
.crumbs { font-size: 14px; color: var(--muted); padding-top: clamp(24px, 4vw, 40px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin-top: 16px; max-width: 18em; }
.page-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 38em; margin-top: 20px; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.01em; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* facts table: short answers that read well for people and for answer engines */
.facts-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.facts-table th { font-weight: 600; color: var(--fg); width: 34%; }
.facts-table td { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 44em; }
.faq details > div p + p { margin-top: 10px; }

/* closing call to action */
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.01em; max-width: 18em; }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 34em; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* related links between service pages */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.related a:hover { border-color: var(--fg); }
.related strong { font-family: var(--display); font-size: 19px; display: block; }
.related span { color: var(--muted); font-size: 15px; display: block; margin-top: 4px; }
.svc .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.svc .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* legal pages */
.legal .page-hero + .sec { padding-top: 0; }
.legal dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; margin: 18px 0 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* skip link */
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .js .draw :is(path, circle, rect, line) { transition: none; stroke-dashoffset: 0; }
  .js .draw:not(.in) .fill-dot { transform: none; }
  .svc, .btn, body { transition: none; }
}
