/* SOLVE METRICS: static site styles. No external resources. */

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --red: #f0333c;          /* "SOLVE" in the wordmark */
  --cyan: #00a9e6;         /* original brand accent */
  --cyan-text: #00719c;    /* cyan dark enough for text on white */

  /* Dark surfaces */
  --ink: #0b1320;
  --ink-2: #121d2f;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #e8eef5;
  --on-ink-muted: #9fb0c3;

  /* Light surfaces */
  --paper: #ffffff;
  --tint: #f3f6f9;
  --line: #e1e7ee;
  --text: #142033;
  --muted: #526073;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 19, 32, 0.06), 0 8px 24px rgba(11, 19, 32, 0.07);
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 8px 14px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Wordmark */
.wordmark {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wm-solve { color: var(--red); }
.wm-metrics { color: #ffffff; }
.wordmark-small { font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 32, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--on-ink-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.site-nav .nav-cta { color: var(--ink); background: var(--cyan); }
.site-nav .nav-cta:hover { color: var(--ink); background: #3cc3f2; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background:
    radial-gradient(52rem 30rem at 92% -12%, rgba(0, 169, 230, 0.26), transparent 62%),
    radial-gradient(36rem 22rem at -8% 112%, rgba(240, 51, 60, 0.18), transparent 60%),
    var(--ink);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.tags li {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-ink); padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(0, 169, 230, 0.45);
}

h1, h2, h3 { margin: 0; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; margin-bottom: 20px; }
h3 { font-size: 1.15rem; line-height: 1.3; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-ink-muted); max-width: 54ch; margin: 22px 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #3cc3f2; color: var(--ink); }
.btn-ghost { color: var(--on-ink); border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { color: #ffffff; border-color: #ffffff; }

.hero-visual { margin: 0; justify-self: center; width: min(100%, 420px); }
.window {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 0 14px 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.window-bar { display: flex; gap: 6px; padding: 12px 2px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.window-bar span:first-child { background: var(--red); }
.window-bar span:nth-child(2) { background: var(--cyan); }
.window img { width: 100%; border-radius: var(--radius-sm); }
.hero-visual figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--on-ink-muted); text-align: center; }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 12px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-text);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 10px; vertical-align: middle;
  background: var(--red); border-radius: 2px;
}
.eyebrow-dark { color: var(--cyan); }

.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.about-grid p { color: var(--muted); max-width: 60ch; }

.strengths {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.strengths h3 { margin-bottom: 14px; }
.strengths ul { list-style: none; margin: 0; padding: 0; }
.strengths li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600;
}
.strengths li:first-child { border-top: 0; }
.strengths li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 169, 230, 0.15);
}

/* Service cards */
.cards { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 19, 32, 0.06), 0 16px 36px rgba(11, 19, 32, 0.12); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.card-media {
  display: grid; place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 169, 230, 0.10), transparent 70%),
    #eaf0f5;
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; max-width: 300px; border-radius: var(--radius-sm); box-shadow: 0 6px 18px rgba(11, 19, 32, 0.14); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin: 10px 0 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tag-wireless { color: #b3121b; background: rgba(240, 51, 60, 0.10); }
.tag-gis { color: #0b6b4f; background: rgba(16, 163, 120, 0.12); }
.tag-data { color: var(--cyan-text); background: rgba(0, 169, 230, 0.12); }

/* Contact */
.contact {
  color: var(--on-ink);
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgba(0, 169, 230, 0.18), transparent 60%),
    var(--ink);
  padding: clamp(64px, 8vw, 104px) 0;
}
.contact-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.contact h2 { margin-bottom: 28px; }

.address-card {
  font-style: normal;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 28px 30px;
  border-left: 4px solid var(--red);
}
.address-card p { margin: 0 0 12px; color: var(--on-ink-muted); }
.address-card p:last-child { margin-bottom: 0; }
.address-card .address-name { font-family: var(--display); color: #ffffff; font-size: 1.1rem; }
.address-card a { color: var(--cyan); }
.address-card a:hover { color: #ffffff; }

/* Footer */
.site-footer { background: #070d17; color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 0; }
.footer-inner p { margin: 0; font-size: 0.9rem; }

/* Small screens */
@media (max-width: 560px) {
  .wordmark { font-size: 1.2rem; }
  .site-nav a { padding: 8px 9px; font-size: 0.9rem; }
  .site-nav a[href="#about"] { display: none; }
  .actions .btn { width: 100%; }
}
