:root {
  --ink: #101614;
  --deep: #17211d;
  --pine: #24433f;
  --foam: #f8fff8;
  --paper: #fff7df;
  --chrome: #bfefff;
  --water: #53d7ff;
  --hazard: #ffcf57;
  --flare: #f4663a;
  --grass: #5fc777;
  --muted: #69766e;
  --line: rgba(16, 22, 20, 0.14);
  --shadow: 0 24px 80px rgba(9, 15, 13, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: "Nunito Sans", "Trebuchet MS", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--hazard);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  color: var(--foam);
  background: rgba(16, 22, 20, 0.72);
  border-bottom: 1px solid rgba(248, 255, 248, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 13rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--ink);
  background: var(--hazard);
  border: 3px solid var(--foam);
  border-radius: 50%;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.25rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.brand small {
  color: rgba(248, 255, 248, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: rgba(248, 255, 248, 0.82);
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--chrome);
  outline: none;
}

.hero {
  position: relative;
  min-height: 47rem;
  padding: 10.6rem 4vw 6rem;
  color: var(--foam);
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  background-color: #dff9ff;
  background-image: url("assets/hero-service-truck.svg");
  background-position: 62% center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.98) 0%, rgba(10, 14, 12, 0.88) 30%, rgba(10, 14, 12, 0.32) 59%, rgba(10, 14, 12, 0.05) 100%),
    linear-gradient(0deg, rgba(16, 22, 20, 0.68) 0%, rgba(16, 22, 20, 0.06) 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 8rem;
  background:
    repeating-linear-gradient(120deg, rgba(255, 207, 87, 0.2) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, transparent, rgba(248, 255, 248, 0.72));
}

.hero-content {
  max-width: 49rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--hazard);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: 5.9rem;
  text-wrap: balance;
}

h2 {
  font-size: 3.55rem;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h3 {
  font-size: 2rem;
}

.hero-copy {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: rgba(248, 255, 248, 0.88);
  font-size: 1.22rem;
  font-weight: 800;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.82rem 1.05rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.26);
  font-weight: 1000;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--ink);
  background: var(--hazard);
  box-shadow: 0 18px 44px rgba(255, 207, 87, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ffe087;
}

.button.secondary {
  color: var(--foam);
  background: rgba(248, 255, 248, 0.12);
  border: 1px solid rgba(248, 255, 248, 0.38);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(83, 215, 255, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 45rem;
  margin: 3rem 0 0;
}

.hero-stats div {
  padding: 1rem;
  background: rgba(248, 255, 248, 0.1);
  border: 1px solid rgba(248, 255, 248, 0.18);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  color: rgba(248, 255, 248, 0.76);
  font-size: 0.88rem;
  font-weight: 800;
}

.intro-band {
  padding: 1.25rem 4vw;
  color: var(--ink);
  background: var(--hazard);
}

.intro-band p {
  max-width: 74rem;
  margin: 0 auto;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  text-align: center;
}

.section {
  padding: 5.8rem 4vw;
}

.section-light {
  background:
    linear-gradient(135deg, rgba(83, 215, 255, 0.12), transparent 46%),
    var(--foam);
}

.section-dark {
  color: var(--foam);
  background:
    repeating-linear-gradient(135deg, rgba(255, 207, 87, 0.16) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, var(--ink), #24433f);
}

.section-heading {
  max-width: 62rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 44rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-weight: 800;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(248, 255, 248, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 74rem;
  margin: 0 auto;
}

.service-card {
  position: relative;
  min-height: 31.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0.65rem;
  cursor: pointer;
  perspective: 1200px;
}

.service-card:focus-visible {
  outline: 4px solid rgba(83, 215, 255, 0.7);
  outline-offset: 5px;
}

.service-card-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.service-card.is-flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: inherit;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 18px 54px rgba(16, 22, 20, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover .service-front,
.service-card:focus-visible .service-front {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-back {
  padding: 0;
  color: var(--foam);
  background: var(--ink);
  transform: rotateY(180deg);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
  background: var(--chrome);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.4rem;
}

.service-card:nth-child(2) .service-icon {
  background: var(--hazard);
}

.service-card:nth-child(3) .service-icon {
  background: #c9f0a4;
}

.service-card:nth-child(4) .service-icon {
  background: #ffae91;
}

.service-front-copy,
.service-back-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem 1.2rem 1.2rem;
}

.service-front p {
  color: var(--muted);
  font-weight: 800;
}

.flip-cue {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 0.42rem 0.62rem;
  color: var(--ink);
  background: var(--hazard);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.service-before-photo,
.service-after-photo {
  position: relative;
  min-height: 12.4rem;
  background: #0b100e;
  border-bottom: 4px solid var(--hazard);
}

.service-before-photo img,
.service-after-photo img {
  width: 100%;
  height: 12.4rem;
  object-fit: cover;
}

.show-before {
  object-position: left center;
}

.show-after {
  object-position: right center;
}

.demo-before {
  filter: saturate(0.58) sepia(0.24) brightness(0.68) contrast(1.12);
}

.demo-after {
  filter: saturate(1.08) brightness(1.12) contrast(1.04);
}

.photo-label {
  position: absolute;
  top: 0.7rem;
  padding: 0.34rem 0.54rem;
  color: var(--foam);
  background: rgba(16, 22, 20, 0.76);
  border: 1px solid rgba(248, 255, 248, 0.32);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.photo-label.before {
  left: 0.7rem;
}

.photo-label.after {
  right: 0.7rem;
  color: var(--ink);
  background: var(--hazard);
  border-color: rgba(16, 22, 20, 0.12);
}

.service-back-copy h3 {
  color: var(--foam);
}

.service-back-copy p {
  margin: 0.65rem 0 1rem;
  color: rgba(248, 255, 248, 0.78);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.38;
}

.service-back-copy .flip-cue {
  color: var(--ink);
  background: var(--chrome);
}

.asset-credit {
  max-width: 60rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.asset-credit a {
  color: var(--pine);
  font-weight: 1000;
}

.quote-section {
  background:
    linear-gradient(90deg, rgba(244, 102, 58, 0.12), transparent 55%),
    var(--paper);
}

.quote-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: stretch;
}

.quote-controls,
.quote-result,
.booking-form,
.route-notes {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.quote-controls {
  display: grid;
  gap: 1rem;
}

label,
legend {
  color: var(--ink);
  font-weight: 1000;
}

select,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid rgba(16, 22, 20, 0.18);
  border-radius: 0.5rem;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(83, 215, 255, 0.55);
  border-color: var(--ink);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: 1rem;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--flare);
}

output {
  padding: 0.65rem 0.75rem;
  color: var(--foam);
  background: var(--ink);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 1000;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.segmented label {
  min-width: 0;
}

.segmented input,
.toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 3.1rem;
  padding: 0.75rem;
  background: var(--foam);
  border: 2px solid rgba(16, 22, 20, 0.16);
  border-radius: 0.5rem;
  font-size: 0.92rem;
  text-align: center;
  cursor: pointer;
}

.segmented input:checked + span {
  color: var(--ink);
  background: var(--hazard);
  border-color: var(--ink);
}

.segmented input:focus-visible + span,
.toggle input:focus-visible + span {
  outline: 3px solid rgba(83, 215, 255, 0.55);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding-left: 4rem;
  cursor: pointer;
}

.toggle span::before,
.toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.toggle span::before {
  width: 3.25rem;
  height: 1.75rem;
  background: rgba(16, 22, 20, 0.22);
  border-radius: 999px;
}

.toggle span::after {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  background: var(--foam);
  border-radius: 50%;
  transition: transform 160ms ease;
}

.toggle input:checked + span::before {
  background: var(--grass);
}

.toggle input:checked + span::after {
  transform: translateX(1.5rem);
}

.quote-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--foam);
  background: linear-gradient(145deg, var(--ink), var(--pine));
}

.result-label {
  color: var(--hazard);
  font-weight: 1000;
  text-transform: uppercase;
}

#quote-total {
  display: block;
  margin: 0.25rem 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 5.5rem;
  line-height: 0.95;
}

.quote-result p {
  color: rgba(248, 255, 248, 0.78);
  font-weight: 800;
}

.before-after {
  max-width: 72rem;
  margin: 0 auto;
}

.real-before-after {
  margin: 0;
}

.real-before-after img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid rgba(248, 255, 248, 0.9);
  border-radius: 0.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.real-before-after figcaption {
  max-width: 54rem;
  margin: 1rem auto 0;
  color: rgba(248, 255, 248, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.route-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(95, 199, 119, 0.14), transparent 46%),
    #fffdf3;
}

.route-copy {
  max-width: 46rem;
}

.route-copy p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.route-notes {
  display: grid;
  gap: 1rem;
}

.route-notes p {
  margin: 0;
}

.site-qr {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.site-qr:hover,
.site-qr:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 22, 20, 0.14);
  outline: none;
}

.site-qr img {
  width: 6rem;
  height: 6rem;
  padding: 0.25rem;
  background: var(--foam);
  border: 1px solid rgba(16, 22, 20, 0.14);
  border-radius: 0.35rem;
  image-rendering: pixelated;
}

.site-qr span {
  min-width: 0;
}

.site-qr strong,
.site-qr small {
  display: block;
}

.site-qr strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.85rem;
  line-height: 0.95;
}

.site-qr small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.booking-section {
  background:
    repeating-linear-gradient(90deg, rgba(16, 22, 20, 0.04) 0 1px, transparent 1px 38px),
    var(--foam);
}

.booking-form {
  max-width: 72rem;
  margin: 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-actions {
  margin-top: 1.2rem;
}

#form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 4vw;
  color: var(--foam);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--hazard);
  font-weight: 1000;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 48rem;
    padding-top: 12rem;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3rem;
  }

  .service-grid,
  .quote-tool,
  .route-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    padding: 0.85rem;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 0.55rem 0.65rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 49rem;
    padding: 13.8rem 1rem 4rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 14, 12, 0.92) 0%, rgba(10, 14, 12, 0.72) 54%, rgba(10, 14, 12, 0.45) 100%);
  }

  .hero-art {
    background-position: 72% center;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.1rem;
    line-height: 1;
    text-wrap: wrap;
    white-space: normal;
  }

  .section-heading {
    max-width: 100%;
    overflow: hidden;
  }

  .section-heading h2 {
    max-width: 16ch;
    margin-inline: auto;
  }

  .section-heading p:not(.eyebrow) {
    max-width: 32ch;
  }

  .hero-copy {
    max-width: 20.5rem;
    font-size: 1.05rem;
    overflow-wrap: break-word;
  }

  .hero-actions {
    align-items: stretch;
    max-width: 20.5rem;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    width: 100%;
    max-width: 20.5rem;
  }

  .hero-stats,
  .service-grid,
  .field-grid,
  .segmented,
  .range-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1rem;
  }

  .intro-band {
    padding-inline: 1rem;
  }

  .intro-band p {
    max-width: 21rem;
    font-size: 1.55rem;
  }

  .site-qr {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .site-qr img {
    width: 5.5rem;
    height: 5.5rem;
  }

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