/* ============================================================
   DESIRED SERVICES KC — Global Stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colors — pulled from the brand mark: fresh asphalt + traffic paint */
  --asphalt:        #14151a;
  --asphalt-2:      #1e2027;
  --asphalt-3:      #292c35;
  --paint-yellow:   #f7c600;
  --paint-yellow-2: #d9a900;
  --concrete:       #e6e2d6;
  --concrete-2:     #d8d3c3;
  --white-line:     #faf9f5;
  --ink:            #191a1d;
  --ink-soft:       #45464b;
  --safety-orange:  #e85d04;

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --radius: 6px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--concrete);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--safety-orange);
  outline-offset: 2px;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--asphalt);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { color: var(--ink-soft); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 42ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--asphalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--safety-orange);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--paint-yellow); }
.eyebrow.on-dark::before { background: var(--paint-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--paint-yellow);
  color: var(--asphalt);
  box-shadow: 4px 4px 0 var(--asphalt);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--asphalt); }
.btn-primary:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--asphalt); }

.btn-outline {
  background: transparent;
  color: var(--white-line);
  border: 2px solid var(--white-line);
}
.btn-outline:hover { background: var(--white-line); color: var(--asphalt); }

.btn-dark {
  background: var(--asphalt);
  color: var(--white-line);
  box-shadow: 4px 4px 0 var(--paint-yellow);
}
.btn-dark:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--paint-yellow); }

.btn-block { width: 100%; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  border-bottom: 4px solid var(--paint-yellow);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 52px;
  width: auto;
  border-radius: 5px;
  display: block;
}
.footer-logo { height: 60px; width: auto; border-radius: 5px; }
@media (max-width: 480px) {
  .brand-logo { height: 40px; }
}

/* ---------- Responsive split layout (replaces inline 2-col grid styles) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-lg { gap: 60px; }
.split-start { align-items: start; }
.split-lead { grid-template-columns: 1.05fr 1fr; }
.split-wide { grid-template-columns: 1.2fr 0.8fr; }

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .split > * { order: initial !important; }
}

/* ---------- Responsive diagram svgs ---------- */
.diagram-svg { width: 100%; height: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--white-line);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 3px;
  background: var(--paint-yellow);
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--paint-yellow); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: var(--white-line);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.nav-toggle {
  display: none;
  color: var(--white-line);
  font-size: 1.6rem;
}

@media (max-width: 860px) {
  .main-nav ul { display: none; }
  .header-cta .btn { padding: 12px 18px; font-size: 0.85rem; }
  .nav-toggle { display: block; }
}
@media (min-width: 1080px) {
  .header-phone { display: inline; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 82px 0 0 0;
  background: var(--asphalt);
  z-index: 49;
  padding: 30px var(--gutter);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  display: block;
  color: var(--white-line);
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--asphalt-3);
}
.mobile-nav .btn { margin-top: 26px; }

/* ---------- Painted stripe divider (signature element) ---------- */
.stripe-divider {
  width: 100%;
  height: 34px;
  display: block;
  overflow: visible;
}
.stripe-divider path {
  stroke: var(--paint-yellow);
  stroke-width: 10;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 36 26;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1);
}
.stripe-divider.dark path { stroke: var(--asphalt); }
.stripe-divider.painted path { stroke-dashoffset: 0; }

.hero-stripe {
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1);
}
.hero-stripe.painted { stroke-dashoffset: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-dark { background: var(--asphalt); color: var(--white-line); }
.section-dark h2, .section-dark h3 { color: var(--white-line); }
.section-dark p { color: #b9bac0; }
.section-tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-top: 14px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white-line);
  border-top: 1px solid var(--concrete-2);
  border-bottom: 1px solid var(--concrete-2);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 26px var(--gutter);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--asphalt);
}
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--safety-orange); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--white-line);
  border: 2px solid var(--asphalt);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 6px 6px 0 var(--concrete-2);
}
.service-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--paint-yellow); }
.service-card .icon {
  width: 52px; height: 52px;
  color: var(--asphalt);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.96rem; }
.service-card .tag {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--safety-orange);
  color: var(--white-line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: var(--white-line); padding: 64px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--asphalt-3);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--paint-yellow);
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { color: #b9bac0; font-size: 0.95rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--paint-yellow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #74757c;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 64px 0; }
}

/* ---------- Sticky mobile call button ---------- */
.sticky-call {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--paint-yellow);
  border-top: 3px solid var(--asphalt);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  font-weight: 700;
  color: var(--asphalt);
}
.sticky-call svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 58px; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asphalt);
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 2px solid var(--asphalt);
  border-radius: var(--radius);
  background: var(--white-line);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--safety-orange);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.18);
}
textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: -6px; margin-bottom: 20px; }
.form-success {
  display: none;
  background: var(--asphalt);
  color: var(--white-line);
  padding: 26px;
  border-radius: var(--radius);
  margin-top: 20px;
}
.form-success.show { display: block; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 48px; }
.flex-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.text-yellow { color: var(--paint-yellow); }
