/* Computek Consultancy — redesign
   Palette: drafting paper, ink navy, PCB copper. */
:root {
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --card: #fffdf9;
  --ink: #122130;
  --ink-2: #33475a;
  --muted: #66727d;
  --line: #d9d3c6;
  --line-soft: #e6e1d6;
  --copper: #b4622a;
  --copper-hi: #e08a4c;
  --board: #0f1d29;
  --board-2: #172a3a;
  --board-line: #26405a;
  --mask: #2e7a68;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 4px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 -2px 0 var(--copper); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card); border-radius: 4px;
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--copper); padding-left: 14px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 20% 40%, var(--paper) 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--copper); }
.hero .lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 30ch; margin-bottom: 34px; }
.hero-art { width: 100%; max-width: 480px; justify-self: end; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 32px; }
  .hero-art { justify-self: start; max-width: 380px; }
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 4px; font-weight: 500; font-size: 15px;
  text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn .arr { font-family: var(--mono); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 60px 0; } }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); }
.prose { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.philosophy {
  background: var(--board); color: #e8edf2; position: relative; overflow: hidden;
}
.philosophy .wrap { position: relative; z-index: 1; }
.philosophy .eyebrow { color: var(--copper-hi); }
.philosophy blockquote {
  margin: 0; font-size: clamp(24px, 3.1vw, 36px); line-height: 1.3; letter-spacing: -0.015em;
  font-weight: 400; max-width: 30em;
}
.philosophy blockquote strong { color: var(--copper-hi); font-weight: 500; }
.philosophy h2 { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9fb0c0; margin-bottom: 28px; }
.trace-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.profile-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.profile-grid li {
  padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); position: relative;
}
.profile-grid li { grid-column: span 2; }
.profile-grid li:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr 1fr; } .profile-grid li, .profile-grid li:nth-child(n+4) { grid-column: span 1; } .profile-grid li:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } .profile-grid li:last-child { grid-column: span 1; } }
.profile-grid li .idx { display: block; font-family: var(--mono); font-size: 12px; color: var(--copper); margin-bottom: 16px; letter-spacing: .08em; }

/* ---------- Contact block ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.contact-card > div { padding: 32px; }
.contact-card > div + div { border-left: 1px solid var(--line); }
@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .contact-card > div { padding: 24px; }
}
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }

/* ---------- Inner page header ---------- */
.page-head {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  position: relative;
}
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 35%, transparent); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; margin: 0; max-width: 18ch; }
.page-head .intro { font-size: 19px; color: var(--ink-2); margin: 18px 0 0; max-width: 52ch; }
.page-head .head-icon { width: 92px; height: 92px; flex: none; color: var(--copper); opacity: .9; }
@media (max-width: 720px) { .page-head .wrap { padding-top: 44px; padding-bottom: 40px; } .page-head .head-icon { display: none; } }

.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 20px; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); }
.crumbs span { margin: 0 8px; color: var(--line); }

/* ---------- Spec list (inner pages) ---------- */
.content { padding: 64px 0 96px; }
.content .wrap { max-width: 920px; }
.spec { list-style: none; margin: 0; padding: 0; counter-reset: spec; border-top: 1px solid var(--ink); }
.spec > li {
  counter-increment: spec;
  display: grid; grid-template-columns: 64px 1fr; gap: 8px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; color: var(--ink-2);
}
.spec > li::before {
  content: counter(spec, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--copper); padding-top: 4px; letter-spacing: .05em;
}
.spec em {
  font-family: var(--mono); font-size: .86em; font-weight: 500; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px;
  white-space: nowrap;
}
.spec ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.spec ul li {
  font-size: 16px; padding: 12px 14px 12px 34px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; position: relative; line-height: 1.45;
}
.spec ul li::before { content: ""; position: absolute; left: 14px; top: 19px; width: 8px; height: 8px; border: 2px solid var(--copper); border-radius: 50%; }
@media (max-width: 560px) { .spec > li { grid-template-columns: 44px 1fr; font-size: 17px; } }

.content h2 { font-size: 30px; margin: 72px 0 8px; }
.content h2 + .sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Process steps (services) ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; position: relative; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 28px 64px; font-size: 18px; color: var(--ink-2);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  background: var(--card); border: 1.5px solid var(--copper); color: var(--copper);
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 38px; bottom: 0; width: 1.5px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }

/* ---------- Card grid (products / facilities) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 26px; min-height: 210px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(18, 33, 48, .35); color: var(--ink); }
.card .card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card svg { width: 44px; height: 44px; color: var(--copper); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card h3 { font-size: 22px; margin: 0; }
.card .go { font-family: var(--mono); font-size: 13px; color: var(--copper); margin-top: 8px; display: block; }
.card:hover .go { color: var(--ink); }

.next-links { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-links a {
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); text-decoration: none; color: var(--ink);
}
.next-links a:hover { border-color: var(--ink); }
.next-links .label { margin-bottom: 4px; }
.next-links strong { font-weight: 500; font-size: 17px; }
.next-links .r { text-align: right; }
@media (max-width: 560px) { .next-links { grid-template-columns: 1fr; } .next-links .r { text-align: left; } }

.callout {
  margin-top: 72px; padding: 36px; border-radius: var(--radius);
  background: var(--board); color: #e8edf2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.callout p { margin: 0; font-size: 20px; max-width: 36ch; }
.callout .btn { border-color: #e8edf2; color: #e8edf2; }
.callout .btn:hover { background: var(--copper); border-color: var(--copper); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--board); color: #9fb0c0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #c9d4de; text-decoration: none; }
.site-footer a:hover { color: var(--copper-hi); }
.site-footer .mono { font-size: 12.5px; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.contact-card.single { grid-template-columns: 1fr; width: fit-content; max-width: 100%; align-self: start; }
.email { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.email:hover { color: var(--copper); text-decoration: underline; }
