/* Foursight Global - "Sightline" direction
   Drafting-sheet precision: a blueprint grid, dimension-line details,
   technical mono labels, one amber sightline. Corporate, not decorative. */

:root {
  /* Surfaces */
  --paper: #F3F5F2;
  --white: #FFFFFF;
  --navy: #0B2545;
  --navy-2: #173A63;
  --navy-deep: #071A31;

  /* Text */
  --text: #1E2A38;
  --muted: #4A5568;
  --line: #D6DCE4;

  /* Accent: the sightline */
  --amber: #F5A623;
  --amber-hover: #FFB83D;

  /* Service tints */
  --tech: #0F766E;
  --tech-soft: #E2F1EE;
  --build: #A8520A;
  --build-soft: #FBEEDD;
  --capab: #4338CA;
  --capab-soft: #E8E9FA;

  --radius: 10px;
  --max: 1160px;

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.55em;
  font-stretch: 105%;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 750; letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.005em; }
h4 { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 96px 0; position: relative; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Mono "drafting label" used for eyebrows, sheet references and metadata */
.label {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted); }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head p { color: var(--muted); }

/* Buttons: 48px tall for touch comfort */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--amber); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.14rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand { min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 800; }
.brand span { font-weight: 500; opacity: 0.9; }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.86;
  padding: 8px 0;
  display: inline-block;
}
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; }
.menu a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--amber);
}
.menu .btn { padding: 10px 18px; min-height: 42px; font-size: 0.92rem; box-shadow: none; }
.menu .btn-amber { color: var(--navy); opacity: 1; }
.menu .btn-amber:hover { color: var(--navy); }
.menu .btn[aria-current] { box-shadow: none; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero: blueprint grid + sightline */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  color: #fff;
  padding: 96px 0 120px;
}
.hero::after {
  /* the sightline: a single amber horizon across the base of the hero */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--amber);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #C5D3E4; max-width: 560px; }
.hero .label { color: #C5D3E4; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { width: 100%; max-width: 480px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; }

/* Dimension line: the tagline's three beats, measured like a drawing */
.dimline {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C5D3E4;
  padding: 26px 0 0;
  margin: 40px 0 0;
  max-width: 560px;
  border-top: 1px solid rgba(245, 166, 35, 0.7);
}
.dimline::before, .dimline::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 1px;
  height: 13px;
  background: rgba(245, 166, 35, 0.9);
}
.dimline::before { left: 0; }
.dimline::after { right: 0; }
.dimline span { position: relative; }
.dimline span + span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -6px;
  width: 1px;
  height: 13px;
  background: rgba(245, 166, 35, 0.9);
}

/* Breadcrumb */
.crumbs { font-family: var(--f-mono); font-size: 0.8rem; color: #C5D3E4; margin: 0 0 22px; letter-spacing: 0.02em; }
.crumbs a { color: #C5D3E4; display: inline-flex; align-items: center; min-height: 44px; }

/* Hero variant for service pages (tinted) */
.hero--tech { background-color: #0B2F33; }
.hero--build { background-color: #2A1A0C; }
.hero--capab { background-color: #1B1A4A; }
.hero--tech::after { background: #5EEAD4; }
.hero--build::after { background: var(--amber); }
.hero--capab::after { background: #A5B4FC; }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-right: 1px solid var(--line);
  border-top: 4px solid var(--c);
  transition: background-color 0.2s;
}
.card:last-child { border-right: 0; }
.card:hover { background: var(--cs); }
.card .tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 18px;
}
.card .icon { width: 44px; height: 44px; color: var(--c); margin-bottom: 22px; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.28rem; }
.card > p { color: var(--muted); font-size: 0.98rem; }
.card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.94rem;
}
.card li { padding: 6px 0 6px 18px; position: relative; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 2px;
  background: var(--c);
}
.card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c);
  text-decoration: none;
}
.card .more::after { content: ""; position: absolute; inset: 0; }
.card .more:hover { text-decoration: underline; text-underline-offset: 4px; }

.tech { --c: var(--tech); --cs: var(--tech-soft); }
.build { --c: var(--build); --cs: var(--build-soft); }
.capab { --c: var(--capab); --cs: var(--capab-soft); }

/* Partner section */
.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: start;
}
.split p { color: var(--muted); }
.panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
}
.panel h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.panel .label { color: #C5D3E4; margin-bottom: 10px; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.panel li:first-of-type { border-top: 0; }
.panel .swatch { width: 14px; height: 14px; border-radius: 2px; flex: none; }

/* Why strip: a three-column spec sheet, not numbered (no sequence here) */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--navy);
}
.why-item { padding: 32px 30px 8px 0; }
.why-item + .why-item { padding-left: 30px; border-left: 1px solid var(--line); }
.why-item h3 { margin-top: 14px; }
.why-item p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.why-item .mark { width: 28px; height: 28px; }

/* Process: a real sequence, so numbering is meaningful */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  counter-reset: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--build);
  opacity: 0.35;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-right: 18px;
}
.step .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--build);
  color: var(--build);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: none;
  position: relative;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--build);
}
.tile { padding: 26px 24px 8px 0; }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.tile p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.tile .mono { font-family: var(--f-mono); font-size: 0.78rem; color: var(--build); letter-spacing: 0.05em; text-transform: uppercase; }

/* Region chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 14px;
  border-radius: 4px;
}

/* Two-column text + art */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.feature p { color: var(--muted); }
.art-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.art-card svg { width: 100%; height: auto; }

/* Pull statement */
.callout {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 650;
  color: var(--navy);
  margin: 0;
  padding-left: 22px;
  border-left: 4px solid var(--build);
}

/* Engagement models (capability page) */
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.model {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--capab);
}
.model .label { color: var(--capab); margin-bottom: 14px; }
.model p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Service mini-list */
.scope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.scope li {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.scope li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--c, var(--navy));
  flex: none;
  transform: translateY(1px);
}

/* Other services */
.others {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--navy);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.12rem;
  transition: background-color 0.2s;
}
.other:hover { background: var(--cs); }
.other small {
  display: block;
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.other .arrow { color: var(--c); font-size: 1.4rem; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
  position: relative;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C5D3E4; max-width: 620px; }
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-actions a.plain {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-actions a.plain:hover { border-bottom-color: #fff; }

/* Contact page */
.contact-single { max-width: 720px; }
.detail {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
}
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail .label { margin-bottom: 8px; }
.detail strong {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
  color: var(--navy);
  word-break: break-word;
}
a.detail:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.detail span { color: var(--muted); font-size: 0.98rem; display: block; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #B8C6D9;
  padding: 72px 0 0;
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.foot-title {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: #B8C6D9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand { margin-bottom: 20px; }
.foot-desc { max-width: 300px; margin: 0; }
.foot-bottom {
  margin-top: 56px;
  padding: 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: #8FA1B9;
  letter-spacing: 0.02em;
}

/* Reveal on scroll (only when JS is running; content stays visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; }
  .step { flex-direction: row; align-items: flex-start; padding: 0 0 30px; }
  .step .dot { margin: 0 22px 0 0; }
  .step:last-child { padding-bottom: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tile:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .models { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 1rem; }
  section { padding: 72px 0; }

  .menu-toggle { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 4px 22px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 32px -24px rgba(0, 0, 0, 0.6);
  }
  .menu.open { display: flex; }
  .menu li a {
    display: block;
    padding: 16px 0;
    font-size: 1.02rem;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .menu a[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .menu li:last-child a { border-bottom: 0; }
  .menu .btn {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
  }

  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 380px; }

  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: 0; }
  .others { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
  .art-card { padding: 26px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile, .tile:nth-child(even) { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tile:last-child { border-bottom: 0; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-actions a.plain { min-height: 44px; justify-content: center; width: 100%; }
  .dimline { font-size: 0.7rem; }
  .panel { padding: 30px 24px; }
  .map, .map iframe { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
