:root {
  --bg-top: #f3f8fd;
  --bg-bottom: #ecf4fb;
  --surface: #ffffff;
  --surface-2: #f3f8fd;
  --text: #13293d;
  --muted: #526a80;
  --accent: #047cac;
  --accent-2: #25bdfa;
  --border: #d8e4ef;
  --success-bg: #e9f8ef;
  --success-border: #9eceb0;
  --success-text: #225f3f;
  --radius: 18px;
  --shadow: 0 14px 30px rgba(8, 30, 52, 0.1);
  --max-width: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 8% -22%, #cde8fb 0%, transparent 60%),
    radial-gradient(900px 520px at 95% 10%, #dff2ff 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 999px;
  border: 1px solid rgba(4, 124, 172, 0.25);
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(12, 30, 50, 0.14);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.primary-nav a {
  display: inline-block;
  text-decoration: none;
  color: #3f5569;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.primary-nav a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), #046992);
  border-color: #046992;
}

.site-main {
  flex: 1;
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero h1,
h1,
h2 {
  line-height: 1.2;
}

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

h2 {
  margin-bottom: 0.65rem;
  color: #17344d;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 6vw, 3rem);
  color: #ffffff;
}

.hero {
  --hero-photo-bg: #b3d7f2;
  --spray-origin-x: 74%;
  --spray-origin-y: 46%;
  --spray-impact-x: 91%;
  --spray-impact-y: 27%;
  --spray-angle: -18deg;
  --spray-length: 290px;
  --spray-opacity: 0.78;
  display: grid;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(800px 340px at 18% 8%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #083b5b 0%, #047cac 55%, #24b4f0 100%);
  border-color: rgba(8, 70, 106, 0.45);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-wash-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-grime-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-spray-cone {
  position: absolute;
  left: var(--spray-origin-x);
  top: var(--spray-origin-y);
  width: var(--spray-length);
  height: clamp(88px, 12vw, 132px);
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(var(--spray-angle));
  opacity: var(--spray-opacity);
  clip-path: polygon(0 46%, 100% 0, 100% 100%);
  background:
    radial-gradient(circle at 2% 50%, rgba(255, 255, 255, 0.98) 0 12%, rgba(255, 255, 255, 0.68) 28%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2) 52%, rgba(255, 255, 255, 0) 100%);
  filter: blur(1.2px);
  mix-blend-mode: screen;
}

.hero-spray-mist {
  position: absolute;
  left: var(--spray-impact-x);
  top: var(--spray-impact-y);
  width: clamp(88px, 10vw, 146px);
  height: clamp(88px, 10vw, 146px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  opacity: calc(var(--spray-opacity) * 0.96);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0 20%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0) 78%);
  filter: blur(1.6px);
  mix-blend-mode: screen;
  animation: heroMistPulse 1.5s ease-in-out infinite;
}

@keyframes heroMistPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.hero-content,
.hero-logo-wrap {
  position: relative;
  z-index: 2;
}

.subtitle {
  color: #eaf7ff;
  max-width: 48ch;
  margin-bottom: 1.1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
}

.hero-logo-wrap {
  margin: 0;
  width: min(100%, 520px);
  justify-self: center;
  padding: 0.62rem;
  border-radius: 18px;
  background: var(--hero-photo-bg);
  border: 1px solid rgba(170, 203, 228, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-mascot-rig {
  background: var(--hero-photo-bg);
  border-radius: 12px;
  overflow: hidden;
  transform-origin: 52% 70%;
  will-change: transform;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 0;
  background: var(--hero-photo-bg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), #159ad4);
  color: #072438;
  box-shadow: 0 10px 22px rgba(4, 124, 172, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5cd0ff, #2abdfc);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #edf5fb;
}

.hero .btn-secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  gap: 1rem;
}

.product-jump h2 {
  margin-bottom: 0.7rem;
}

.product-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-catalog-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.product-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #cde0ee;
  border-radius: 10px;
  overflow: hidden;
}

.rate-table th,
.rate-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #d6e5f1;
  text-align: left;
  font-size: 0.95rem;
}

.rate-table thead {
  background: #eaf3fa;
}

.rate-table tbody tr:last-child td {
  border-bottom: 0;
}

.product-order-widget {
  gap: 0.8rem;
}

.order-controls {
  display: grid;
  gap: 0.65rem;
}

.order-controls label {
  display: grid;
  gap: 0.3rem;
}

.cart-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #083b5b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.store-product-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
}

.store-product-card {
  display: grid;
  gap: 0.75rem;
}

.store-buy-controls {
  display: grid;
  gap: 0.65rem;
}

.store-buy-controls label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.store-cart-wrap {
  display: grid;
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid #cddfed;
}

.cart-table th,
.cart-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #d7e6f2;
  text-align: left;
  vertical-align: middle;
}

.cart-table thead {
  background: #e8f2fa;
}

.cart-qty-input {
  width: 5rem;
}

.cart-empty {
  text-align: center;
  color: #4f6a80;
  font-weight: 600;
}

.cart-summary {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.cart-summary dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
}

.cart-summary .summary-total {
  padding-top: 0.45rem;
  border-top: 1px solid #cfdfeb;
  font-weight: 700;
}

.store-form-grid {
  grid-template-columns: 1fr;
}

.error-message {
  border-color: #e4a3a3;
  background: #fdeeee;
  color: #8a2727;
}

.product-card {
  display: grid;
  gap: 1rem;
}

.product-card h3 {
  margin-bottom: 0.55rem;
  color: #193a55;
}

.card-nested {
  box-shadow: none;
  border-color: #d4e1ec;
  background: #f8fbff;
}

.product-detail-grid {
  grid-template-columns: 1fr;
}

.product-media-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f5f9fd;
  padding: 0.95rem;
}

.product-media-block h3 {
  margin-bottom: 0.75rem;
}

.media-placeholder-split {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

.media-photo-split {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

.media-photo-card {
  margin: 0;
  border: 1px solid #c7d8e7;
  border-radius: 12px;
  overflow: hidden;
  background: #e6eef6;
}

.media-photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.media-photo-card figcaption {
  padding: 0.5rem 0.7rem;
  background: #f2f7fc;
  border-top: 1px solid #c7d8e7;
  color: #1f4868;
  font-weight: 700;
}

.media-placeholder {
  min-height: 180px;
  border: 1px dashed #7ea0ba;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #edf4fa 0%, #dfeaf5 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #2e597a;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1rem;
}

.gallery-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery-placeholder-item {
  min-height: 120px;
  border: 1px dashed #88abc4;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      -45deg,
      #eef5fb,
      #eef5fb 10px,
      #e5eff8 10px,
      #e5eff8 20px
    );
  display: grid;
  place-items: center;
  text-align: center;
  color: #325d7f;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem;
}

.pillars .card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pillars .btn {
  align-self: flex-start;
}

.trust-band {
  background:
    linear-gradient(180deg, #ffffff, #f3f8fc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}

.trust-band p {
  margin: 0;
  color: #23445d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.before-after-section .meta {
  margin-bottom: 0.85rem;
}

.before-after-viewer {
  --split: 52%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #c6d9e7;
  background: #dbe5ee;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-after {
  position: absolute;
  inset: 0;
  width: var(--split);
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
}

.before-after-after .before-after-image {
  object-position: left center;
}

/* Home slider: crop top/bottom to focus on trailer body and wheels. */
.home-before-after {
  aspect-ratio: 16 / 8;
}

.home-before-after .before-after-image {
  object-position: center 56%;
}

.home-before-after .before-after-after .before-after-image {
  object-position: left 56%;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(16, 44, 68, 0.24);
  pointer-events: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  background: #ffffff;
  color: #11466b;
  border: 1px solid rgba(13, 58, 90, 0.34);
  box-shadow: 0 8px 16px rgba(5, 26, 45, 0.22);
}

.before-after-label {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
}

.before-label {
  left: 0.75rem;
}

.after-label {
  right: 0.75rem;
}

.before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  z-index: 4;
}

.before-after-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.before-after-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0;
}

.before-after-range::-moz-range-track {
  height: 100%;
  background: transparent;
  border: 0;
}

.before-after-range::-moz-range-thumb {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0;
  border: 0;
}

.service-list {
  margin: 0.35rem 0 0 1.2rem;
  padding: 0;
}

.service-list li {
  margin-bottom: 0.45rem;
}

.faq details {
  margin-top: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0.7rem 0.85rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    radial-gradient(600px 260px at 85% -20%, #dcf2ff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f9fd);
}

.meta {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.field-group {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row label {
  font-weight: 500;
}

.hidden {
  display: none;
}

.success-message {
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, #0f3b57, #0b2f46);
}

.footer-inner {
  min-height: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.footer-inner p {
  margin: 0;
  color: #c8deee;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-inner a {
  color: #d6ebfa;
}

.construction-page {
  background:
    radial-gradient(900px 460px at 10% -8%, #d2e9f8 0%, transparent 62%),
    radial-gradient(1000px 540px at 94% 8%, #e2f2ff 0%, transparent 68%),
    linear-gradient(180deg, #f1f7fc, #e7f1f9);
}

.construction-main {
  min-height: calc(100vh - 2rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.construction-card {
  width: min(100%, 980px);
  text-align: center;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #cbddec;
}

.construction-card .subtitle {
  color: #294863;
  max-width: 64ch;
  margin: 0 auto 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.construction-hero-media {
  margin: 0;
}

.construction-hero-media picture {
  display: block;
}

.construction-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid #c8dced;
  box-shadow:
    0 22px 48px rgba(35, 68, 97, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.construction-actions {
  justify-content: center;
  margin-top: 1rem;
}

.preview-access-form {
  max-width: 480px;
  margin: 0.85rem auto 0;
}

.preview-access-row {
  display: grid;
  gap: 0.65rem;
}

.preview-access-feedback {
  margin: 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-spray-mist {
    animation: none;
  }
}

@media (min-width: 760px) {
  .site-main {
    padding-top: 2.4rem;
  }

  .card {
    padding: 1.45rem;
  }

  .split {
    grid-template-columns: 1.4fr 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .store-product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .store-buy-controls {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .store-cart-wrap {
    grid-template-columns: 1.65fr 1fr;
  }

  .store-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-controls {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
  }

  .media-placeholder-split {
    grid-template-columns: 1fr 1fr;
  }

  .media-photo-split {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-placeholder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-band {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-logo-wrap {
    justify-self: end;
  }

  .preview-access-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
