/* ============================================================
   SCS EMBEDDED TECH — design tokens (v2)
   Direction: light, editorial, corporate — bold type, big photo
   tiles, hairline rules, single blue accent. No dark theme.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #12161c;
  --slate: #5b6472;
  --slate-light: #8993a1;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --line: #e2e6ea;

  --blue-700: #00006a;
  --blue-500: #2b3aa0;
  --blue-050: #eaeaf5;

  --brand-red: #e8262e;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  display: inline-block;
  margin-bottom: 0.9em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

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

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

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img { display: block; height: 64px; width: auto; }

.logo .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.15;
}
.logo .word .sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: uppercase;
}

nav.main-nav { display: flex; gap: 6px; }

nav.main-nav a {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
nav.main-nav a:hover { color: var(--blue-700); background: var(--mist); }
nav.main-nav a.active { color: var(--blue-700); }

/* mobile hamburger */
.nav-toggle-checkbox { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 780px) {
  .header-inner { position: relative; }
  .nav-toggle { display: flex; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  nav.main-nav a { padding: 13px 8px; }

  .nav-toggle-checkbox:checked ~ nav.main-nav { display: flex; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero (quiet, no graphic novelty) ---------- */

.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding: 76px 0 56px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-050), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30px;
  right: 60px;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--line) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  pointer-events: none;
}

@media (max-width: 780px) {
  .hero::after { display: none; }
}

.accent-bar {
  width: 52px;
  height: 5px;
  background: var(--blue-700);
  border-radius: 3px;
  margin-bottom: 1.4em;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero p.lede { color: var(--slate); font-size: 1.12rem; max-width: 600px; }

.badges { display: flex; gap: 10px; margin-top: 1.6em; flex-wrap: wrap; align-items: center; }
.badge {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 30px;
}
.badge-logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
}
.badge-logo img { height: 100%; width: auto; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 4px;
  background: #a9bdf5;
  color: var(--ink);
  margin-top: 1.8em;
  transition: background .15s;
}
.btn:hover { background: #8ea3e8; color: var(--ink); }

/* ---------- photo hero (signature visual system) ---------- */

.hero-photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-photo.tall { height: 373px; padding: 40px 0; overflow: hidden; }
.hero-photo.short { height: 373px; padding: 40px 0; overflow: hidden; }
.hero-photo h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(4,6,12,0.86) 0%, rgba(4,6,12,0.66) 42%, rgba(4,6,12,0.28) 100%);
}

.hero-photo-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-photo.short .hero-photo-inner { max-width: 720px; }
.hero-photo h1 { color: #fff; }
.hero-photo p.lede { color: rgba(255,255,255,0.86); }
.hero-photo .eyebrow { color: #a9bdf5; }
.hero-photo .accent-bar { background: #fff; }
.hero-photo .badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }
.hero-photo .badge-logo { background: #fff; border-radius: 6px; padding: 5px 10px; }

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

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--mist); }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

.section-head { max-width: 640px; margin-bottom: 2.2em; }

/* ---------- feature tiles (signature element) ---------- */

.tile-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile-band.asym {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.tile-band.asym .tile.big { grid-row: 1 / 3; aspect-ratio: auto; }
.tile-band.asym .tile:not(.big) { aspect-ratio: 1000 / 300; }

.tile {
  position: relative;
  aspect-ratio: 1000 / 480;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0) 100%);
}
.tile-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 2;
}
.tile-copy h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.3em; }
.tile-copy .arrow-link { color: #fff; font-size: 0.86rem; }
.tile-copy .arrow-link svg { color: #fff; }

@media (max-width: 860px) {
  .tile-band, .tile-band.asym { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile-band.asym .tile.big { grid-row: auto; aspect-ratio: 1000 / 480; }
}

/* ---------- logo wall ---------- */

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 8px 0;
}
.logo-wall img {
  height: 64px;
  width: auto;
}

/* ---------- portfolio strip (quiet, no icon boxes) ---------- */

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.portfolio-item {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.portfolio-item h3 { margin-bottom: 0.5em; color: #a9bdf5; }
.portfolio-item p { font-size: 0.92rem; margin: 0; }

/* ---------- generic card (suppliers / contact) ---------- */

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card .icon { width: 26px; height: 26px; color: var(--blue-700); margin-bottom: 12px; }
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
.card .label-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.25em;
}

.logo-box {
  height: 68px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.logo-box img { max-height: 100%; max-width: 220px; object-fit: contain; }

.logo-tile {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.logo-tile .logo-box {
  height: 120px;
  justify-content: center;
  margin-bottom: 0;
}
.logo-tile .logo-box img { max-height: 100%; max-width: 250px; }
.logo-tile h3 { margin: 0; }

/* ---------- service grid (3x2 rounded rectangles) ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(12,20,28,0.08); }
.service-card .icon { width: 38px; height: 38px; color: var(--blue-700); }
.service-card h3 { margin: 0; }

@media (max-width: 780px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- services list ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service-list .row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-list .row:nth-child(odd) { padding-right: 24px; }
.service-list .row:nth-child(even) { padding-left: 24px; }
.service-list .num { font-family: var(--font-display); font-weight: 800; color: var(--slate-light); font-size: 0.9rem; }
.service-list h3 { margin: 0; }

@media (max-width: 640px) {
  .service-list { grid-template-columns: 1fr; }
  .service-list .row:nth-child(odd) { padding-right: 0; }
  .service-list .row:nth-child(even) { padding-left: 0; border-left: none; }
}

/* ---------- stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip .stat {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--blue-700);
  display: block;
  line-height: 1.1;
}
.stat-strip .stat .label {
  font-size: 0.78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

footer {
  background: var(--paper);
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
}
footer a { color: var(--slate); font-weight: 600; }
footer a:hover { color: var(--blue-700); }

@media (max-width: 640px) {
  .header-inner { height: 68px; }
  section { padding: 44px 0; }
  .wrap { padding: 0 20px; }
}
