:root {
  --ink: #11100f;
  --muted: #625f58;
  --paper: #f8f2e5;
  --white: #ffffff;
  --primary: #b51f2c;
  --secondary: #6d5a24;
  --accent: #e2c15d;
  --display-font: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --line: color-mix(in srgb, var(--ink), transparent 84%);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topline {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 9px 20px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.9rem;
}

.topline span {
  color: var(--accent);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper), white 18%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--paper), white 35%);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.nav-phone,
.button {
  text-decoration: none;
}

.nav-phone {
  min-width: 156px;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  padding: 10px 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.06));
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 90px 0 118px;
}

.layout-harbor .hero-inner,
.layout-civic .hero-inner {
  text-align: center;
}

.layout-harbor .hero-copy,
.layout-civic .hero-copy,
.layout-harbor h1,
.layout-civic h1 {
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-family: var(--display-font);
  font-size: 4.9rem;
  line-height: 1.02;
}

h2 {
  margin-bottom: 16px;
  font-family: var(--display-font);
  font-size: 3.35rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  width: min(100%, 650px);
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.22rem;
  white-space: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.layout-harbor .actions,
.layout-civic .actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 5px;
  padding: 13px 18px;
  font-weight: 900;
}

.button.primary {
  color: var(--ink);
  background: var(--accent);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 48px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.layout-harbor .quick-facts,
.layout-civic .quick-facts {
  margin-left: auto;
  margin-right: auto;
}

.quick-facts div {
  min-height: 88px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-facts div:last-child {
  border-right: 0;
}

.quick-facts strong {
  display: block;
  font-size: 1.22rem;
}

.quick-facts span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section {
  padding: 86px 0;
}

.section.white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-block {
  display: grid;
  gap: 34px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.intro h2 {
  max-width: 620px;
  font-size: 3rem;
}

.intro p {
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.intro-copy p {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.service {
  display: grid;
  align-content: start;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.service:nth-child(2n) {
  transform: translateY(18px);
}

.service-mark {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 36px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-copy {
  min-width: 0;
}

.service-copy p {
  margin-bottom: 0;
}

.service p,
.step p,
.faq p,
.coverage p,
.final p {
  color: var(--muted);
}

.process-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  min-height: 118px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--primary);
  font-weight: 900;
}

.coverage {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper), white 36%);
  font-weight: 800;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}

summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  font-family: var(--mono-font);
  font-size: 1rem;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 18px 20px 20px;
}

.final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 40px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.final .button.secondary {
  color: var(--white);
}

.site-footer {
  padding: 26px 0 86px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.mobile-call {
  display: none;
}

.layout-command .service-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.layout-command .service {
  min-height: 118px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.layout-command .service:last-child {
  border-bottom: 0;
}

.layout-command .service:nth-child(2n) {
  transform: none;
}

.layout-command .service-mark {
  margin: 0;
  border-radius: 50%;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.layout-harbor .service-grid {
  display: block;
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}

.layout-harbor .service {
  min-height: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper), white 54%);
  box-shadow: none;
}

.layout-harbor .service:nth-child(2n) {
  transform: none;
}

.layout-harbor .service-mark {
  width: 44px;
  height: 8px;
  margin: 9px 0 0;
  border-radius: 0;
  background: var(--primary);
  box-shadow: 0 12px 0 var(--secondary), 0 24px 0 var(--accent);
}

.layout-command .service-copy,
.layout-harbor .service-copy {
  grid-column: 2;
}

.layout-grid .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--ink);
}

.layout-grid .service {
  min-height: 220px;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.layout-grid .service-mark {
  border-radius: 0;
  transform: rotate(45deg);
}

.layout-grid .step {
  border-bottom: 0;
  border-left: 5px solid var(--primary);
  padding-left: 20px;
}

.layout-civic .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-civic .service {
  min-height: 210px;
  border-left: 7px solid var(--primary);
  border-radius: 2px;
  box-shadow: none;
}

.layout-civic .service-mark {
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent) 0 28%, var(--primary) 29% 52%, var(--secondary) 53%);
}

.layout-civic .step-number {
  border-radius: 50%;
  background: var(--ink);
}

.layout-corridor .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-corridor .service {
  min-height: 228px;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper), white 42%);
  box-shadow: none;
}

.layout-corridor .service-mark {
  clip-path: polygon(24% 0, 76% 0, 100% 50%, 76% 100%, 24% 100%, 0 50%);
}

.layout-corridor .area-list li {
  border-style: dashed;
}

.layout-metro .section:not(.white) {
  color: var(--white);
  background: var(--ink);
}

.layout-metro .section:not(.white) .kicker,
.layout-metro .section:not(.white) h2,
.layout-metro .section:not(.white) h3 {
  color: var(--white);
}

.layout-metro .service,
.layout-metro .area-list li {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: color-mix(in srgb, var(--ink), var(--primary) 14%);
  box-shadow: none;
}

.layout-metro .service p,
.layout-metro .coverage p {
  color: rgba(255, 255, 255, 0.74);
}

.layout-metro .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-metro .service:nth-child(2n) {
  transform: none;
}

.layout-mountain .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-mountain .service {
  border-radius: 0 24px 0 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--paper), white 65%), color-mix(in srgb, var(--paper), var(--secondary) 16%));
  box-shadow: none;
}

.layout-mountain .step {
  border-bottom: 0;
  border-left: 5px solid var(--secondary);
  padding-left: 20px;
}

.layout-mountain .area-list li {
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper), var(--accent) 22%);
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: 620px;
  }

  h1 {
    font-size: 3.95rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .intro,
  .process-wrap,
  .coverage,
  .final {
    grid-template-columns: 1fr;
  }

  .intro h2 {
    max-width: 720px;
  }

  .service-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-corridor .service-grid,
  .layout-metro .service-grid,
  .layout-mountain .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topline {
    display: none;
  }

  .nav {
    width: min(1180px, calc(100% - 28px));
  }

  .nav-links {
    display: none;
  }

  .nav-phone {
    display: none;
  }

  .hero-inner,
  .inner {
    width: min(1180px, calc(100% - 28px));
    max-width: calc(100vw - 28px);
  }

  h1 {
    width: min(100%, 300px);
    max-width: 300px;
    font-size: 1.75rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-copy {
    width: 100%;
    max-width: 280px;
    font-size: 0.96rem;
    overflow-wrap: break-word;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 280px);
  }

  .button {
    width: 100%;
  }

  .quick-facts,
  .service-grid,
  .faq-list,
  .area-list {
    grid-template-columns: 1fr;
  }

  .layout-civic .service-grid,
  .layout-corridor .service-grid,
  .layout-grid .service-grid,
  .layout-metro .service-grid,
  .layout-mountain .service-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .quick-facts div:last-child {
    border-bottom: 0;
  }

  .service:nth-child(2n) {
    transform: none;
  }

  .section {
    padding: 66px 0;
  }

  .final {
    padding: 26px;
  }

  .footer-row {
    flex-direction: column;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: none;
    white-space: normal;
    text-align: center;
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--accent);
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow);
  }
}
