/* GEO — mapping solutions. Design tokens + shared layout. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=Fira+Code:wght@500;600&display=swap');

:root {
  --ink: #0b1220;
  --ink-soft: #1c2740;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --line: #e1e6f0;
  --muted: #5b6577;
  --muted-soft: #8891a3;
  --brand: #1f5fd1;
  --brand-ink: #123a91;
  --brand-soft: #e9f0fd;
  --accent: #ff6a3d;
  --accent-ink: #b8431e;
  --accent-soft: #ffe9e0;
  --shadow: 0 1px 2px rgba(11,18,32,0.04), 0 12px 28px -16px rgba(11,18,32,0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; }

.mono {
  font-family: "Fira Code", ui-monospace, monospace;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 20px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark svg { flex: none; }
.brand-mark .wordmark {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.primary a.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .15s ease;
}
nav.primary a.nav-link:hover,
nav.primary a.nav-link[aria-current="page"] {
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 10%, transparent 75%);
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  padding-block: 76px 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 30ch;
  line-height: 1.08;
}
.hero .lede {
  margin-top: 20px;
  max-width: 105ch;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .n {
  font-family: "Fira Code", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-ink);
}
.stat .l {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section.block { padding-block: 72px; }
section.block.tight { padding-block: 56px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head .tag {
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); max-width: 24ch; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 10px 0 0 0; }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--legend, var(--brand));
}
.service-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.service-card .legend-tag {
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--legend, var(--brand-ink));
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Legend key */
.legend-key {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.legend-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--muted);
  font-family: "Fira Code", monospace;
}
.legend-key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* Store locator showcase */
.showcase-frames {
  position: relative;
  margin-bottom: 44px;
}
.showcase-frames .frame-desktop {
  display: block;
  width: 100%;
  max-width: 660px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.showcase-frames .frame-mobile {
  position: absolute;
  right: 8%;
  bottom: -32px;
  width: 150px;
  filter: drop-shadow(0 18px 30px rgba(11,18,32,0.22));
}
@media (max-width: 860px) {
  .showcase-frames {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 0;
  }
  .showcase-frames .frame-desktop { max-width: 100%; }
  .showcase-frames .frame-mobile {
    position: static;
    width: 190px;
    filter: drop-shadow(0 14px 24px rgba(11,18,32,0.18));
  }
}

/* Insight showcase (single panel, e.g. homepage) */
.insight-panel {
  display: block;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* About teaser / split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.fact-list { display: flex; flex-direction: column; gap: 14px; }
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.fact .k {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.fact .v { font-weight: 600; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); max-width: 34ch; }
.cta-band p { color: #b7c0d6; margin-top: 8px; max-width: 46ch; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-grid nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted-soft);
}

/* Page hero (inner pages) */
.page-hero { padding-block: 56px 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); max-width: 20ch; }
.page-hero .lede { margin-top: 16px; max-width: none; color: var(--muted); font-size: 1.08rem; }

/* Contact */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}
.contact-card .big-email {
  font-family: "Fira Code", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-ink);
}

/* Responsive */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .split { grid-template-columns: 1fr; }
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  header.site.open nav.primary {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 24px; }
  .contact-card { padding: 28px; }
}

/* Dark theme (system + explicit) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1f8;
    --ink-soft: #c7cee0;
    --paper: #0c1120;
    --surface: #131a2c;
    --line: #232c44;
    --muted: #9aa4bd;
    --muted-soft: #6c7793;
    --brand: #6ea1ff;
    --brand-ink: #a9c4ff;
    --brand-soft: #172444;
    --accent: #ff8f66;
    --accent-ink: #ffb494;
    --accent-soft: #3a2216;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 28px -16px rgba(0,0,0,0.6);
  }
  :root:not([data-theme="light"]) .cta-band { background: #060a14; }
  :root:not([data-theme="light"]) .cta-band p { color: #8b96b3; }
}
:root[data-theme="dark"] {
  --ink: #eef1f8;
  --ink-soft: #c7cee0;
  --paper: #0c1120;
  --surface: #131a2c;
  --line: #232c44;
  --muted: #9aa4bd;
  --muted-soft: #6c7793;
  --brand: #6ea1ff;
  --brand-ink: #a9c4ff;
  --brand-soft: #172444;
  --accent: #ff8f66;
  --accent-ink: #ffb494;
  --accent-soft: #3a2216;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 28px -16px rgba(0,0,0,0.6);
}
:root[data-theme="dark"] .cta-band { background: #060a14; }
:root[data-theme="dark"] .cta-band p { color: #8b96b3; }

/* Larger header logo + wordmark */
header.site .brand-mark .wordmark { font-size: 2.8rem; }
