/* ============================================================
   SSOAC — institutional corporate site
   Multi-page, sober, content-first. One typeface (Public Sans),
   one blue accent, structured navigation. No marketing flourish.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-tint: #eef3f8;
  --ink: #11212e;          /* dark slate-navy text */
  --muted: #54626d;
  --primary: #1d4f91;      /* corporate blue */
  --primary-d: #143a6b;
  --link: #1a5cab;
  --navy: #0e2336;         /* utility bar + footer */
  --navy-2: #16314a;
  --border: #d7dde2;
  --border-strong: #b6bfc7;
  --focus: #ffbf47;

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-d); }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.measure { max-width: 68ch; }

:where(a, button, summary, .btn, input):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  text-decoration: none;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-d); color: #fff; }
.btn--secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--bg-alt); color: var(--primary-d); }

/* ---------- Utility bar ---------- */
.util { background: var(--navy); color: #cdd8e4; font-size: 0.82rem; }
.util__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.util__name { letter-spacing: 0.02em; }
.util a { color: #fff; text-decoration: none; }
.util a:hover { text-decoration: underline; }
.util__right { display: flex; gap: 1.4rem; align-items: center; }
.util__dot { color: #7fd4a8; }

/* ---------- Masthead ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.masthead__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__word { font-weight: 900; font-size: 1.4rem; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.7rem; line-height: 1.15; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; max-width: 12ch; }

.nav { display: flex; align-items: stretch; gap: 0.3rem; }
.nav a {
  display: inline-flex; align-items: center; padding: 0 1rem;
  color: var(--ink); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--primary); border-bottom-color: var(--border-strong); }
.nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; align-self: center; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav { display: none; }
.mobile-nav:not([hidden]) { display: flex; flex-direction: column; }
@media (min-width: 921px) { .mobile-nav { display: none !important; } }
.mobile-nav { background: #fff; border-bottom: 1px solid var(--border); padding: 0.4rem var(--pad) 1.1rem; }
.mobile-nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0.6rem 0; color: var(--muted); }
.crumbs li::after { content: "/"; margin-left: 0.4rem; color: var(--border-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Page hero (institutional masthead, not a pitch) ---------- */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; letter-spacing: -0.02em; max-width: 18ch; }
.page-hero__intro { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.home-hero { background: var(--bg-tint); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 60ch; margin-bottom: 1.8rem; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section__lead { margin-top: 0.9rem; color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 68ch; color: var(--ink); }
.prose p { margin-top: 1rem; }
.prose p:first-child { margin-top: 0; }
.prose .muted { color: var(--muted); }

/* ---------- Fact / feature list ---------- */
.facts { margin-top: 1.8rem; display: grid; gap: 1.4rem 2.4rem; grid-template-columns: repeat(2, 1fr); }
.fact { border-top: 2px solid var(--primary); padding-top: 0.9rem; }
.fact h3 { font-size: 1.08rem; }
.fact p { margin-top: 0.4rem; color: var(--muted); font-size: 0.98rem; }

/* ---------- Directory / service cards (links to other pages) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
  background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
a.card:hover { box-shadow: 0 8px 26px -14px rgba(17,33,46,0.4); transform: translateY(-2px); border-left-color: var(--primary-d); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 0.95rem; }
a.card:hover .card__more { color: var(--primary-d); }

/* ---------- Numbered process steps ---------- */
.steps { margin-top: 2rem; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 1.3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__n { font-size: 1.4rem; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 0.35rem; color: var(--muted); }

/* ---------- Operating terms ---------- */
.terms { margin-top: 1.8rem; display: grid; gap: 1.3rem; }
.term { border-left: 4px solid var(--primary); padding: 0.3rem 0 0.3rem 1.3rem; }
.term h3 { font-size: 1.1rem; }
.term p { margin-top: 0.35rem; color: var(--muted); max-width: 68ch; }

/* ---------- Closing block ---------- */
.closing { background: var(--navy); color: #eaf1f8; }
.closing .container { padding-block: clamp(2.4rem, 4vw, 3.4rem); }
.closing h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.closing p { margin-top: 0.8rem; color: #c4d2df; max-width: 60ch; }
.closing__actions { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.closing .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.closing .btn--secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.closing .btn--primary { background: #fff; color: var(--primary-d); }
.closing .btn--primary:hover { background: #e9eef4; color: var(--primary-d); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.contact-card { border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.contact-card h3 { font-size: 1.25rem; }
.contact-card p { margin: 0.6rem 0 1.3rem; color: var(--muted); }
.mono-mail { font-weight: 700; }

/* ---------- Mega footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d3; border-top: 4px solid var(--primary); padding: clamp(2.6rem, 5vw, 3.6rem) 0 2.2rem; font-size: 0.93rem; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand .brand__word { color: #fff; font-size: 1.25rem; }
.footer__tag { margin-top: 0.6rem; color: #93a4b5; max-width: 32ch; }
.footer__col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__col a { color: #c4d2df; text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__legal { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); color: #8fa0b1; font-size: 0.84rem; line-height: 1.7; max-width: 100ch; }
.footer__copy { margin-top: 1rem; color: #8fa0b1; font-size: 0.84rem; }

/* ---------- FAQ (terms page) ---------- */
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 1.2rem; color: var(--muted); max-width: 70ch; }

/* ---------- Legal / terms page ---------- */
.clause { border-top: 1px solid var(--border); padding: 1.7rem 0; }
.clause__id { font-size: 0.85rem; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; }
.clause h2 { font-size: 1.3rem; margin-top: 0.5rem; }
.clause p { margin-top: 0.6rem; color: var(--muted); max-width: 70ch; }

/* ---------- 404 ---------- */
.nf { padding: clamp(4rem, 12vw, 8rem) 0; }
.nf h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0.4rem 0 0.6rem; }
.nf p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .facts, .cards, .cards--3, .contact-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 42px 1fr; gap: 1rem; }
  .util__inner { min-height: 0; padding-block: 0.4rem; }
}
