/* QSOC — styles.css */

:root {
  --ink: #10141b;
  --panel: #161c26;
  --paper: #ede9df;
  --muted: #8b93a3;
  --line: #2a3140;

  /* brand blue, sampled from the corporate logo (#387eba) */
  --signal: #387eba;        /* decorative use: icons, borders, dots — not text */
  --signal-text: #4888c0;   /* lightened tint — meets 4.5:1 on --ink for small text */
  --signal-btn: #2d6595;    /* darkened tint — paired with --paper text, meets AA on buttons */

  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* skip broken focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 20, 27, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
}

.primary-nav a:hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 6rem 1.75rem 4rem;
  max-width: 1100px;
  margin: 20px auto 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 10% -10%, rgba(56, 126, 186, 0.14), transparent 60%),
    repeating-linear-gradient(180deg, rgba(237, 233, 223, 0.025) 0px, rgba(237, 233, 223, 0.025) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: -1;
}

.hero-text {
  max-width: 560px;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--signal-btn);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
}

.btn-primary:hover {
  background: var(--signal);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0;
}

/* ---------- sections ---------- */

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.section-label {
  font-family: var(--font-head);
  color: var(--signal-text);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.prose {
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--paper);
}

.section h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 1rem;
  max-width: 30ch;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--panel);
  border-top: 3px solid var(--signal);
  padding: 1.75rem;
}

.service-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
}

.service-card h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

.coverage-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--paper);
  margin: 2rem 0 1rem;
}

.coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.coverage-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  position: relative;
  padding-left: 1.1rem;
}

.coverage-dot {
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.coverage-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.coverage-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- contact ---------- */

.contact .prose {
  margin-bottom: 1.25rem;
}

.email-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
  padding-bottom: 0.15rem;
}

.email-link:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* ---------- footer ---------- */

.site-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.75rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .primary-nav.open {
    max-height: 260px;
  }

  .primary-nav a {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .coverage-list {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}