:root {
  --navy: #0B2545;
  --white: #FFFFFF;
  --sky: #EAF2FB;
  --go: #FF7A00;
  --alert: #E5383B;
  --ok: #2DC653;
  --muted: #51627A;
  --line: #C9D8EA;
  --radius: 16px;
  --border: 2px;
  --shadow: 0 18px 48px rgba(11, 37, 69, 0.14);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; object-fit: cover; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 1200;
}
.skip-link:focus-visible { left: 12px; }

:focus-visible {
  outline: 3px solid var(--go);
  outline-offset: 3px;
}

.site-wrap { padding-top: 52px; }

.emergency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--alert);
  color: var(--white);
  font-weight: 700;
  z-index: 900;
}
.emergency-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.mobile-emergency {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--alert);
  color: var(--white);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  z-index: 920;
  font-weight: 700;
  box-shadow: var(--shadow);
}

header.site-header {
  position: sticky;
  top: 52px;
  z-index: 880;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: var(--border) solid var(--navy);
  display: grid;
  place-items: center;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link, .button, button, input, select, textarea {
  min-height: 44px;
}
.nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-link:hover { background: var(--sky); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: var(--border) solid var(--navy);
  font-weight: 700;
  gap: 8px;
}
.button-primary {
  background: var(--go);
  color: var(--navy);
}
.button-outline {
  background: var(--white);
}

.menu-toggle {
  display: none;
  border: var(--border) solid var(--navy);
  border-radius: 10px;
  background: var(--white);
  min-width: 44px;
}

.mobile-drawer {
  position: fixed;
  inset: 52px 0 0 auto;
  width: min(86vw, 360px);
  background: var(--white);
  border-left: var(--border) solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
  z-index: 910;
}
.mobile-drawer.open {
  transform: translateX(0%);
  visibility: visible;
  transition: transform .28s ease;
}

main { display: block; }
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px;
}
section.sky { background: var(--sky); max-width: 100%; }
section.sky > .inner { max-width: var(--maxw); margin: 0 auto; }

.hero {
  max-width: 100%;
  background: linear-gradient(130deg, #081d37, #0b2545 60%, #153964);
  color: var(--white);
  padding: 54px 20px 42px;
  min-height: min(92vh, 820px);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-family: "Familjen Grotesk", sans-serif;
  line-height: 0.98;
  font-size: clamp(2.6rem, 6vw, 6rem);
}
.hero p { margin: 0 0 18px; max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  aspect-ratio: 4/5;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,.22);
}

.ticket {
  border: var(--border) solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.job-ticket {
  padding: 16px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.mono {
  font-family: "Space Mono", monospace;
  letter-spacing: .01em;
}
.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(45,198,83,.55);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,198,83,.55); }
  80% { box-shadow: 0 0 0 11px rgba(45,198,83,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,198,83,0); }
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card, .review-card, .team-card, .area-card, .job-card, .blog-card {
  padding: 14px;
}
.service-card img, .area-card img, .blog-card img { aspect-ratio: 16/10; margin-bottom: 12px; }
.team-card img { aspect-ratio: 3/4; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
  min-height: 44px;
  font-weight: 600;
}

.steps { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 14px; }

.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%;
  border: var(--border) solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #f5f9ff;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 20px;
  display: grid;
  gap: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a {
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.page-title { margin: 0 0 10px; font-size: clamp(2rem,4.2vw,3.4rem); font-family: "Familjen Grotesk", sans-serif; }
.lead { max-width: 70ch; color: var(--muted); }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 810px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .cards, .steps, .form-row { grid-template-columns: 1fr; }
  .job-ticket { margin-top: 12px; }
}

@media (max-width: 390px) {
  .site-wrap { padding-bottom: 72px; }
  .mobile-emergency { display: flex; }
}

@media (max-width: 600px) {
  .ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .ledger-row .leader { display: none; }
  .ledger-row .value { white-space: normal; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
