:root {
  --blue: #1F8FE0;
  --teal: #0C9DB6;
  --red: #E43227;
  --foam: #AFDFE3;
  --navy: #1A1A2E;
  --black: #000000;
  --charcoal: #101020;
  --surface: #181830;
  --elevated: #22223f;
  --border: rgba(12, 157, 182, 0.24);
  --glow: rgba(12, 157, 182, 0.35);
  --glow-soft: rgba(12, 157, 182, 0.12);
  --glow-card-rest: 0.16;
  --glow-card-hover: 0.55;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.font-display { font-family: 'Oswald', sans-serif; letter-spacing: 0.01em; }

a, button, input { transition: transform 0.3s var(--spring), opacity 0.3s var(--spring), box-shadow 0.3s var(--spring), background-color 0.3s var(--spring), border-color 0.3s var(--spring), color 0.3s var(--spring); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* eyebrow rule */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--teal); display: inline-block; }

/* card glow */
.glow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(12,157,182,var(--glow-card-rest)) inset, 0 20px 40px -24px rgba(0,0,0,0.8), 0 0 32px -8px rgba(12,157,182,var(--glow-card-rest));
}
.glow-card:hover {
  box-shadow: 0 0 0 1px rgba(12,157,182,var(--glow-card-hover)) inset, 0 24px 48px -20px rgba(0,0,0,0.85), 0 0 40px -4px rgba(12,157,182,var(--glow-card-hover));
  transform: translateY(-4px);
}

.btn-primary { box-shadow: 0 1px 1px rgba(0,0,0,0.3), 0 10px 24px -8px rgba(31,143,224,0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(0,0,0,0.35), 0 16px 32px -8px rgba(31,143,224,0.65); }
.btn-primary:active { transform: translateY(0); }

.btn-outline:hover { background: rgba(12,157,182,0.08); border-color: var(--teal); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--spring);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active::after { transform: scaleX(1); }

.dropdown-panel {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--spring), transform 0.25s var(--spring);
}
.dropdown-wrap:hover .dropdown-panel,
.dropdown-wrap:focus-within .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pill-select {
  transition: background-color 0.25s var(--spring), color 0.25s var(--spring), border-color 0.25s var(--spring);
}

.marquee-track { animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.ig-gradient {
  background: linear-gradient(90deg, #833ab4, #fd1d1d 55%, #fcb045);
}
.ig-gradient:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 28px -8px rgba(253,29,29,0.45); }

.service-card { position: relative; overflow: hidden; }
.service-card img { transition: transform 0.6s var(--spring); }
.service-card:hover img { transform: scale(1.06); }
.service-card .overlay {
  background: linear-gradient(180deg, rgba(10,15,30,0.05) 0%, rgba(10,15,30,0.2) 50%, rgba(16,16,32,0.92) 100%);
  mix-blend-mode: multiply;
}
.service-card .overlay2 {
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0) 55%);
}

.popular-card {
  box-shadow: 0 0 0 1px rgba(31,143,224,0.55) inset, 0 0 60px -10px rgba(31,143,224,0.45);
}

/* before/after slider */
.ba-wrap { position: relative; overflow: hidden; user-select: none; touch-action: none; }
.ba-after { position: absolute; inset: 0; overflow: hidden; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--foam);
  box-shadow: 0 0 12px 2px rgba(175,223,227,0.6);
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 9999px;
  background: var(--foam);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.checklist li { display: flex; align-items: flex-start; gap: 10px; }

input::placeholder { color: rgba(255,255,255,0.35); }

.mobile-menu { transition: max-height 0.35s var(--spring), opacity 0.3s var(--spring); overflow: hidden; }

/* ===== service landing page components ===== */

/* step card numbering (real sequence: quote -> schedule -> clean -> report) */
.step-num {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); background: var(--surface); }
.faq-question {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.3s var(--spring); flex-shrink: 0; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  color: rgba(255,255,255,0.65);
}

/* feature/value tiles used on service pages */
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* related service cards reuse .glow-card + .service-card */

/* <picture> is only a wrapper for source selection — it must not participate in
   layout, or it breaks the absolutely-positioned image slots it sits inside. */
picture { display: contents; }

/* Pill state lives in CSS, not inline styles. The old JS painted inline styles
   per-pill on click, so a de-selected pill kept its highlight until it was
   clicked again — two pills could look selected at once. */
.pill-select {
  background: var(--elevated);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}
.pill-select:hover { border-color: rgba(12, 157, 182, 0.5); }
.pill-select.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
