/* =========================================================
   Flawless Distribution: site styles
   Brand colours live in :root, change them here.
   ========================================================= */
:root {
  --navy-900: #071326;
  --navy-800: #0B1B33;
  --navy-700: #13294B;
  --navy-600: #1E3A66;
  --orange: #FF8A1F;
  --orange-dark: #E67308;
  --blue: #2F6BFF;
  --ink: #0B1B33;
  --text: #3C4A60;
  --muted: #6B7A92;
  --line: #E3E8F0;
  --bg-alt: #F4F6FA;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .95em 1.6em; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--navy-900); }
.btn-primary:hover { background: #FF9A3D; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-600); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(7, 19, 38, .96); box-shadow: 0 4px 20px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--white); }
.logo-mark { width: 42px; height: 42px; }
.logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .06em; line-height: .9;
  display: flex; flex-direction: column;
}
.logo-text span { font-size: .62rem; letter-spacing: .38em; color: var(--orange); font-weight: 700; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: width .2s;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: 170px 0 0;
  /* Layers: dark overlay, optional photo (drop one in images/hero.jpg), base gradient */
  background:
    linear-gradient(100deg, rgba(7,19,38,.95) 0%, rgba(11,27,51,.85) 40%, rgba(11,27,51,.55) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 80% 20%, #1E3A66 0%, transparent 60%),
    linear-gradient(160deg, #0B1B33 0%, #071326 100%);
}
/* faint map grid */
.hero::before { display: none;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%);
}
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .45; }
.route { stroke-width: 2; stroke-dasharray: 8 10; animation: dash 30s linear infinite; }
.r1 { stroke: rgba(255,138,31,.75); }
.r2 { stroke: rgba(255,255,255,.28); animation-duration: 40s; }
.r3 { stroke: rgba(47,107,255,.55); animation-duration: 36s; animation-direction: reverse; }
.r4 { stroke: rgba(255,255,255,.18); animation-duration: 48s; }
@keyframes dash { to { stroke-dashoffset: -1000; } }
.nodes circle[r="4"], .nodes circle[r="5"] { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }

.hero-inner { position: relative; max-width: 1200px; padding-bottom: 90px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.accent { color: var(--orange); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: .5em 1em; border-radius: 99px; margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,138,31,.25); }
.lead { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.8); margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.quick-bar {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.2); overflow: hidden;
}
.quick-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.8rem; color: var(--ink);
  border-right: 1px solid var(--line); transition: background .2s;
}
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--bg-alt); }
.quick-item svg { width: 34px; height: 34px; color: var(--orange); flex-shrink: 0; }
.quick-item strong { display: block; font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.quick-item span { font-size: .88rem; color: var(--muted); word-break: break-word; }

/* ---------- Value strip ---------- */
.value-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.4rem 0; }
.value-grid strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); text-transform: uppercase; }
.value-grid span { font-size: .92rem; color: var(--muted); }
.value-grid > div { border-left: 3px solid var(--orange); padding-left: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.kicker {
  font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-dark);
  display: flex; align-items: center; gap: .7em; margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker.light { color: var(--orange); }
.section-sub { font-size: 1.08rem; color: var(--muted); }
.section-sub.left { max-width: 520px; margin-bottom: 2rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative; padding: 2.2rem 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--orange); transition: width .3s;
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card:hover::after { width: 100%; }
.service-card .icon {
  width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--orange); margin-bottom: 1.4rem;
}
.service-card .icon svg { width: 34px; height: 34px; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Feature band ---------- */
.feature-band {
  position: relative; color: rgba(255,255,255,.82); padding: 110px 0; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
}
.feature-band::before { /* hazard stripe accent */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, var(--navy-900) 18px 36px);
}
.feature-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.feature-inner .checks { margin: 0; gap: 1.2rem; }
.feature-inner .checks li { font-size: 1.1rem; }
.feature-band h2 { color: var(--white); }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2.1rem; color: var(--white); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230B1B33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.feature-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.feature-art .containers { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.process li { position: relative; padding-top: 1.6rem; border-top: 3px solid var(--line); }
.step-num { display: block; font-size: .85rem; font-weight: 600; color: var(--orange-dark); margin-bottom: .4rem; }
.process p { color: var(--muted); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.industry {
  position: relative; min-height: 140px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end;
  padding: 1.4rem 1.6rem; color: var(--white);
  background: var(--navy-800); border-bottom: 3px solid var(--orange);
  transition: transform .25s;
}
.industry span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.why-card { padding: 1.8rem; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--orange); }
.why-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); padding: 60px 0; position: relative; overflow: hidden; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { margin: 0; color: var(--navy-900); font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band .btn-primary { background: var(--navy-900); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--navy-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-email {
  display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); font-size: 1.1rem;
  padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; word-break: break-all;
}
.contact-email:hover { border-color: var(--orange); }
.contact-email svg { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; }
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 2.2rem; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.quote-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: .8em .9em; border: 1px solid #CFD7E3; border-radius: 6px; background: #FBFCFE; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,31,.2); background: var(--white);
}
.quote-form .invalid { border-color: #D93838; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.65); padding: 80px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-grid a:not(.logo) { display: block; margin-bottom: .55rem; transition: color .2s; word-break: break-word; }
.footer-grid a:not(.logo):hover { color: var(--orange); }
.footer-tag { margin-top: 1rem; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .feature-inner, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .feature-art { max-width: 460px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 1rem 24px 1.6rem; box-shadow: 0 20px 30px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 1rem; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header.menu-open { background: var(--navy-900); }
  .hero { padding-top: 130px; }
  .eyebrow { font-size: .7rem; letter-spacing: .08em; }
  .hero-inner { padding-bottom: 60px; }
  .quick-bar { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.2rem 1.4rem; }
  .services-grid, .industries, .why-cards, .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .quote-form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
