:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #55585e;
  --accent: #2454ff;
  --accent-fg: #ffffff;
  --border: #e4e4e7;
  --card-bg: #f7f7f8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --fg: #f1f1f3;
    --fg-muted: #a3a6ad;
    --accent: #5b82ff;
    --accent-fg: #0a0a0b;
    --border: #2a2b2f;
    --card-bg: #1a1b1e;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

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

a {
  color: var(--accent);
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--fg);
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-illustration {
  display: none;
  width: 100%;
  height: auto;
}

@media (min-width: 800px) {
  .hero-illustration {
    display: block;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
  margin: 0 0 24px;
}

.hero .lede {
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin: 0 0 32px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
}

.services,
.expertise,
.customers,
.about,
.work,
.contact {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.services h2,
.expertise h2,
.customers h2,
.about h2,
.work h2,
.contact h2 {
  font-size: 1.75rem;
  margin: 0 0 32px;
}

.expertise h2,
.customers h2 {
  margin-bottom: 12px;
}

.section-intro {
  max-width: 62ch;
  color: var(--fg-muted);
  margin: 0 0 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px 48px;
}

.expertise-block h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.expertise-block > p {
  margin: 0 0 16px;
  padding-left: 17px;
  color: var(--fg-muted);
}

.expertise-block ul {
  margin: 0;
  padding-left: 17px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expertise-block li {
  position: relative;
  padding-left: 20px;
  color: var(--fg-muted);
  font-size: 0.96rem;
}

.expertise-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fixed white background regardless of site theme — most of these
     logos are colored/dark marks designed for a light background, so
     they'd lose contrast against the dark-mode card color otherwise. */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  height: 90px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.logo-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Qvantel's official logo asset is white-only (made for a dark
   background) — give it a dark chip inside the white tile instead of
   sourcing/guessing at a different color variant. */
.logo-tile-dark {
  background: #1a1b1e;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

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

.about p,
.work p {
  max-width: 68ch;
  color: var(--fg-muted);
}

.contact p {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.contact .fine-print {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
