/* KPB Services — shared styles */
:root {
  --sky: #e6edf1;        /* overcast sky, page background */
  --paper: #f7f9fa;      /* lighter panels */
  --ink: #12263a;        /* deep navy, text */
  --ink-soft: #4a5d6e;   /* secondary text */
  --contour: #b9c8d2;    /* map contour lines */
  --signal: #f2c230;     /* aviation safety yellow, the one accent */
  --signal-ink: #3a2e00; /* text on yellow */
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.logo svg { width: 1.6rem; height: 1.6rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav a { text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Hero: flight plan over contour map */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  max-width: 11ch;
}
.hero p.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 34rem; margin: 0 0 2rem; color: var(--ink); }

.contour path { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.flight-path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 8; stroke-linecap: round; }
.waypoint { fill: var(--signal); stroke: var(--ink); stroke-width: 2.5; }
.waypoint-label { font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 600; fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .flight-path { animation: fly 3.2s ease-out both; }
  .waypoint, .waypoint-label { animation: appear .4s ease-out both; }
  .wp2 { animation-delay: 1s; } .wp3 { animation-delay: 1.9s; } .wp4 { animation-delay: 2.8s; }
}
@keyframes fly { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.btn:hover { background: #ffd448; }
.btn.secondary { background: transparent; color: var(--ink); margin-left: .5rem; }
.btn.secondary:hover { background: var(--paper); }

/* Sections */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
section.block.paper { background: var(--paper); }
h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
h3 { font-size: 1.3rem; margin: 0 0 .4rem; font-weight: 600; }
.intro { max-width: 40rem; color: var(--ink-soft); margin: 0 0 2.5rem; }

/* Service list: three columns, each marked with a waypoint */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.services li { padding-left: 2rem; position: relative; }
.services li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--signal); border: 2px solid var(--ink);
}
.services p { margin: 0; color: var(--ink-soft); }

/* Process (a real sequence, so it is numbered) */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 4rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--contour);
}
.process li:last-child { border-bottom: 1px solid var(--contour); }
.process li::before {
  content: counter(step);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--ink);
}
.process p { margin: 0; color: var(--ink-soft); max-width: 42rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem 4rem; align-items: start; }
.split .intro { margin-bottom: 0; }
.split ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.split li { margin-bottom: .4rem; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact p { color: #c9d5de; max-width: 36rem; }
.contact a.mail { color: var(--signal); font-weight: 600; font-size: 1.3rem; }
.contact a:focus-visible { outline-color: var(--signal); }

.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 1rem; }
.page-head h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1; margin: 0 0 1rem; max-width: 16ch;
}
.page-head p { max-width: 38rem; font-size: 1.25rem; margin: 0; }

footer { padding: 2rem 0; font-size: .95rem; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 40rem) {
  /* The flight path would run through the text on narrow screens: keep only the contours */
  .flight-path, .waypoint, .waypoint-label { display: none; }
  .btn.secondary { margin-left: 0; margin-top: .75rem; }
  .process li { grid-template-columns: 2.75rem 1fr; }
  .process li::before { font-size: 2rem; }
}
