/* Sky Based Specialists Ltd — Shared stylesheet */

:root {
  --color-graphite: #0E1517;
  --color-graphite-2: #141F22;
  --color-graphite-3: #1B272B;
  --color-purple: #6E3884;
  --color-purple-2: #8A4FA3;
  --color-orange: #FAAC1E;
  --color-orange-2: #FFC04A;
  --color-yellow: #F6DC72;
  --color-white: #FFFFFF;
  --color-off-white: #F2F2F2;
  --color-muted: #8B989D;
  --color-line: rgba(255,255,255,0.08);
  --color-line-strong: rgba(255,255,255,0.16);

  /* Tweakable */
  --accent: var(--color-orange);
  --accent-on: #101819;
  --font-heading: 'Barlow Condensed', 'Roboto Condensed', 'DIN Condensed', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-graphite);
  color: var(--color-off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Accessibility: visible keyboard focus + skip link */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-on);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: 0.01em; }
h4 { font-size: clamp(16px, 1.2vw, 18px); letter-spacing: 0.14em; font-weight: 600; }
p  { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.muted { color: var(--color-muted); }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: #D7DDDF; }

/* Container */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--color-orange-2); }
.btn-ghost { background: transparent; color: var(--color-white); border-color: var(--color-line-strong); }
.btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,0.04); }
.btn-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--color-white); border-bottom: 1px solid var(--accent); padding-bottom: 4px; font-size: 14px; letter-spacing: 0.02em; }
.btn-link .arr { color: var(--accent); transition: transform .25s ease; }
.btn-link:hover .arr { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,21,23,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 16px; transition: transform .2s ease; }
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  width: 60px; height: 60px;
  background: var(--color-white); border-radius: 10px;
  display: grid; place-items: center;
  padding: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow .25s ease;
}
.brand:hover .brand-mark {
  box-shadow: 0 4px 24px rgba(250,172,30,0.30), 0 0 0 1px rgba(250,172,30,0.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-words {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: 22px;
  color: #fff;
}
.brand-words small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.22em; color: var(--color-muted);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .nav { height: 80px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-words { font-size: 18px; }
  .brand-words small { font-size: 10px; margin-top: 4px; }
}
/* Footer logo larger and elevated */
.site-footer .brand-mark {
  width: 84px; height: 84px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), 0 0 60px rgba(250,172,30,0.10);
}
.site-footer .brand-words { font-size: 28px; }
.site-footer .brand-words small { font-size: 12px; margin-top: 8px; }

/* Hero brand watermark — giant ghosted logo behind hero content */
.hero-brand-watermark {
  position: absolute;
  right: -3vw;
  bottom: -6vw;
  width: clamp(280px, 36vw, 540px);
  height: clamp(280px, 36vw, 540px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-6deg);
}
.hero-brand-watermark img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .hero-brand-watermark { display: none; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: #C9D0D2; transition: color .2s;
  position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-white); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-line-strong); color: #fff; width: 40px; height: 40px; border-radius: 8px; }
.nav-mobile-cta { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--color-graphite); flex-direction: column; padding: 24px var(--gutter); gap: 14px; border-bottom: 1px solid var(--color-line); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; }
  .nav-mobile-cta { display: inline-flex; align-self: flex-start; margin-top: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { display: none; }
}

/* Footer */
.site-footer {
  background: #0A1012;
  border-top: 1px solid var(--color-line);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-muted); margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #C9D0D2; font-size: 14px; transition: color .15s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--color-line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--color-muted); letter-spacing: 0.04em;
}
.footer-bottom .coord { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Geospatial overlays */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
}

/* Coordinate tag */
.coord-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; color: var(--color-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.coord-tag::before {
  content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(110,56,132,0.5); transform: translateY(-2px); }
.card .corner {
  position: absolute; top: 18px; right: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--color-muted); letter-spacing: 0.08em;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Section heading block */
.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* Page hero */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}
.page-hero .crumbs {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; color: var(--color-muted);
  text-transform: uppercase; margin-bottom: 24px;
}
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 60ch; margin-top: 28px; }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border-top: 1px solid var(--color-line-strong);
  padding-top: 20px;
}
.stat .num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1; color: var(--color-white);
}
.stat .num .unit { color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--color-muted); margin-top: 8px; letter-spacing: 0.04em; }

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--color-line-strong);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #D7DDDF;
  background: rgba(255,255,255,0.02);
}
.tag.accent { border-color: rgba(250,172,30,0.5); color: var(--accent); }
.tag.purple { border-color: rgba(110,56,132,0.6); color: #C99CDB; }

/* Service icon */
.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-line);
  margin-bottom: 24px;
  color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }
