/* ============================================================
   Central Global Technology — cgb-tech.com
   Design system: deep navy #1E2055 / white / signal red #CE0909
   Swiss-style grid, thin rules, uppercase micro-labels
   ============================================================ */

:root {
  --navy: #1E2055;
  --navy-deep: #14163a;
  --red: #CE0909;
  --gold: #E8A70C;
  --white: #ffffff;
  --off: #f6f6f8;
  --ink: #1E2055;
  --muted: rgba(30, 32, 85, 0.62);
  --line: rgba(30, 32, 85, 0.16);
  --line-strong: rgba(30, 32, 85, 0.34);
  --frame: 20px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- micro labels & headings ---------- */

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red);
}
.label.plain { color: var(--muted); }
.label.plain::before { background: var(--muted); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.small { font-size: 0.85rem; color: var(--muted); }

/* ---------- frame & layout ---------- */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--frame);
  padding-right: var(--frame);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
}
.col-1-5 { grid-column: 1 / 5; }
.col-6-13 { grid-column: 6 / 13; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.rule-top { border-top: 1px solid var(--line); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--red); }

.nav .cta {
  border: 1px solid var(--navy);
  padding: 9px 18px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--navy); color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: 0.3s ease; }

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero .label { color: var(--gold); }
.hero .label::before { background: var(--gold); }
.hero h1 { max-width: 14ch; margin: 26px 0 30px; }
.hero .lead { color: rgba(255,255,255,0.72); }
.hero .meta {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 28px;
}
.hero .meta div { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.hero .meta strong { display: block; font-size: 14px; color: #fff; font-weight: 500; margin-top: 6px; letter-spacing: 0.04em; }

.hero .geo {
  position: absolute;
  right: -140px; top: -140px;
  width: 560px; height: 560px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  pointer-events: none;
}
.hero .geo::after {
  content: "";
  position: absolute;
  inset: 90px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
}
.hero .geo i {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  top: 50%; left: -5px;
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 24px 0 22px; max-width: 18ch; }
.page-hero .lead { max-width: 66ch; }
.page-hero.dark { background: var(--navy); color: #fff; border-bottom: 0; }
.page-hero.dark .lead { color: rgba(255,255,255,0.72); }
.page-hero.dark .label { color: var(--gold); }
.page-hero.dark .label::before { background: var(--gold); }

/* ---------- index rows (numbered service index) ---------- */

.index-row {
  display: grid;
  grid-template-columns: 90px 4fr 5fr 120px;
  gap: 24px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s ease, padding 0.3s ease;
}
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row:hover { background: var(--off); }
.index-row .no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
}
.index-row h3 { font-size: 1.55rem; letter-spacing: -0.015em; }
.index-row p { color: var(--muted); font-size: 0.97rem; max-width: 52ch; }
.index-row .go {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.index-row .go::after { content: " →"; color: var(--red); }

/* ---------- split blocks ---------- */

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.split.rev { grid-template-columns: 6fr 5fr; }
.split h2 { margin: 20px 0 22px; }
.split p + p { margin-top: 16px; }
.split .body p { color: var(--muted); }

/* ---------- stat band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -0.02em; }
.stats span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- panels (flat, rule-based — no card nesting) ---------- */

.panels { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.panel {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 40px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.panel .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.panel h3 { margin-bottom: 14px; }
.panel p { color: var(--muted); font-size: 0.95rem; }
.panel ul { margin-top: 18px; list-style: none; }
.panel li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
}
.panel li::before { content: "—"; color: var(--red); flex: none; }

/* ---------- feature list ---------- */

.feat { border-top: 1px solid var(--line); }
.feat article {
  display: grid;
  grid-template-columns: 90px 4fr 6fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.feat .no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--red); }
.feat h3 { font-size: 1.15rem; }
.feat p { color: var(--muted); font-size: 0.95rem; }

/* ---------- dark band ---------- */

.band { background: var(--navy); color: #fff; }
.band .lead, .band p { color: rgba(255,255,255,0.72); }
.band .label { color: var(--gold); }
.band .label::before { background: var(--gold); }
.band .rule { border-color: rgba(255,255,255,0.2); }
.band .feat { border-top-color: rgba(255,255,255,0.2); }
.band .feat article { border-bottom-color: rgba(255,255,255,0.2); }
.band .feat .no { color: var(--gold); }

/* ---------- CTA ---------- */

.cta-block { text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  padding: 15px 30px;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.solid:hover { background: var(--navy); border-color: var(--navy); }
.btn.inv { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn.inv:hover { background: #fff; color: var(--navy); }

/* ---------- stories ---------- */

.story {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.story:first-of-type { border-top: 0; }
.story .sector {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.story h3 { font-size: 1.5rem; margin-bottom: 18px; letter-spacing: -0.015em; }
.story .body p { color: var(--muted); font-size: 0.97rem; }
.story .body p + p { margin-top: 14px; }
.story .outcome {
  margin-top: 24px;
  border-left: 2px solid var(--red);
  padding-left: 18px;
  font-size: 0.95rem;
}
.story .outcome b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; font-weight: 500; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 72px; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-list .v { font-size: 1.02rem; }
.contact-list .v a { border-bottom: 1px solid var(--red); transition: color 0.3s ease; }
.contact-list .v a:hover { color: var(--red); }

form.enquiry { border: 1px solid var(--line-strong); padding: 44px; }
form.enquiry .row { margin-bottom: 22px; }
form.enquiry label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 8px 0 10px;
  outline: none;
  transition: border-color 0.3s ease;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { border-bottom-color: var(--red); }
form.enquiry textarea { resize: vertical; min-height: 110px; }

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

.site-foot { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 72px 0 40px; }
.site-foot .top { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-foot img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.site-foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; font-weight: 500; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 10px; font-size: 0.92rem; }
.site-foot a { transition: color 0.3s ease; }
.site-foot a:hover { color: #fff; }
.site-foot .addr { font-size: 0.92rem; line-height: 1.8; }
.site-foot .bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ---------- reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid12, .split, .split.rev, .contact-grid, .story, .site-foot .top { grid-template-columns: 1fr; gap: 40px; }
  .col-1-5, .col-6-13 { grid-column: 1 / -1; }
  .index-row { grid-template-columns: 60px 1fr; }
  .index-row p, .index-row .go { grid-column: 2; text-align: left; }
  .feat article { grid-template-columns: 60px 1fr; }
  .feat p { grid-column: 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div { border-bottom: 1px solid var(--line); }
  .panels { grid-template-columns: 1fr; }
  section { padding: 64px 0; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--frame) 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
