/* ==========================================================================
   Cleaning Warriors — Custom Styles
   Design tokens: Charcoal #1A1D21 · Deep Blue #0B3B60 · Warrior Blue #2F8FFF
   ========================================================================== */

:root {
  --charcoal: #1A1D21;
  --charcoal-light: #2A2E34;
  --deepblue: #0B3B60;
  --deepblue-light: #124E7D;
  --warrior: #2F8FFF;
  --warrior-dark: #1768D1;
  --cloud: #FAFAF8;
  --foam: #EEF3F7;
  --slate: #5B6470;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--cloud); color: var(--charcoal); font-family: 'Inter', sans-serif; }
.font-display { font-family: 'Archivo', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

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

::selection { background-color: var(--warrior); color: var(--cloud); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--warrior);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--foam); }
::-webkit-scrollbar-thumb { background: var(--deepblue); border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; background: var(--warrior); color: #fff;
  padding: 1rem 2rem; font-family: 'Archivo', sans-serif; font-weight: 700;
  box-shadow: 0 8px 30px rgba(47,143,255,0.4);
  transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--warrior-dark); box-shadow: 0 12px 40px rgba(47,143,255,0.55); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.05);
  padding: 1rem 2rem; font-family: 'Archivo', sans-serif; font-weight: 700; color: #fff;
  backdrop-filter: blur(4px); transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

.btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; border: 2px solid rgba(26,29,33,0.15);
  padding: 0.75rem 1.5rem; font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--charcoal);
  transition: all 0.3s ease;
}
.btn-primary-lg { padding: 1.15rem 2.5rem; font-size: 1.0625rem; }
.cta-arrow { transition: transform 0.3s ease; }
.btn-primary:hover .cta-arrow { transform: translateX(4px); }

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(47,143,255,0.55), 0 8px 30px rgba(47,143,255,0.35); }
  70% { box-shadow: 0 0 0 16px rgba(47,143,255,0), 0 8px 30px rgba(47,143,255,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(47,143,255,0), 0 8px 30px rgba(47,143,255,0.35); }
}
.cta-pulse { animation: ctaPulse 2.4s ease-out infinite; }
.cta-pulse:hover { animation-play-state: paused; }

/* ---------- Before/After: simulated dirty look (only used when before/after share one photo) ---------- */
.ba-simulated .ba-before { filter: saturate(0.65) brightness(0.74) sepia(0.28) contrast(0.92); }

.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--warrior); font-weight: 600;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Card lift ---------- */
.card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -12px rgba(11,59,96,0.25); }

/* ---------- Before/After slider ---------- */
.ba-slider {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 1rem; user-select: none; touch-action: none; cursor: ew-resize;
}
.ba-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-label {
  position: absolute; top: 0.75rem; z-index: 5; border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; color: #fff;
  backdrop-filter: blur(4px);
}
.ba-label-before { left: 0.75rem; background: rgba(26,29,33,0.7); }
.ba-label-after { right: 0.75rem; background: rgba(47,143,255,0.9); }
.ba-handle-line {
  position: absolute; top: 0; height: 100%; width: 3px; left: 50%; z-index: 10;
  background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.4); transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  height: 44px; width: 44px; border-radius: 9999px; background: #fff; color: var(--charcoal);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  pointer-events: none; transition: transform 0.25s ease;
}
.ba-slider:hover .ba-handle { transform: translate(-50%,-50%) scale(1.1); }
.ba-hint { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.5); }

/* ---------- Gallery expand button ---------- */
.gallery-expand {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 20;
  height: 2.25rem; width: 2.25rem; border-radius: 9999px; background: rgba(255,255,255,0.9);
  color: var(--charcoal); display: flex; align-items: center; justify-content: center;
  opacity: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-expand { opacity: 1; }

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  background: rgba(26,29,33,0.95); backdrop-filter: blur(4px); padding: 1rem;
}
#lightbox.open { display: flex; }
.lightbox-inner { width: 100%; max-width: 48rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid rgba(26,29,33,0.08); border-radius: 1rem; background: #fff; box-shadow: 0 4px 24px -8px rgba(26,29,33,0.12); overflow: hidden; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1); }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-icon { transition: transform 0.25s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Nav ---------- */
#navbar { transition: all 0.3s ease; background: transparent; padding-top: 1.25rem; padding-bottom: 1.25rem; }
#navbar.scrolled { background: rgba(26,29,33,0.95); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); padding-top: 0.75rem; padding-bottom: 0.75rem; }
#mobileMenu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: var(--charcoal); }
#mobileMenu.open { max-height: 480px; }

/* ---------- Map pins ---------- */
.map-pin-dot { height: 12px; width: 12px; border-radius: 9999px; background: var(--warrior); box-shadow: 0 0 0 6px rgba(47,143,255,0.2); }
.map-pin-label {
  position: absolute; left: 50%; top: 1.35rem; transform: translateX(-50%); white-space: nowrap;
  background: var(--charcoal); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  padding: 0.25rem 0.5rem; border-radius: 0.375rem; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.map-pin:hover .map-pin-label { opacity: 1; }

/* ---------- Chip hover ---------- */
.chip { transition: all 0.3s ease; }

/* ---------- Skeleton shimmer for lazy images (optional use) ---------- */
.skeleton {
  background: linear-gradient(90deg, #EEF3F7 25%, #E4EAEF 37%, #EEF3F7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Marquee trust ticker ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0 2rem; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Button shine sweep ---------- */
.btn-primary, .btn-secondary, .btn-outline-dark { position: relative; overflow: hidden; }
.btn-primary::after, .btn-secondary::after, .btn-outline-dark::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-secondary:hover::after, .btn-outline-dark:hover::after { left: 130%; }

/* ---------- Nav link underline ---------- */
#navbar nav a { position: relative; }
#navbar nav a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--warrior); transition: width 0.3s ease;
}
#navbar nav a:hover::after { width: 100%; }

/* ---------- Floating decorative blobs ---------- */
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
}
.blob-float { animation: floatBlob 9s ease-in-out infinite; }

/* ---------- Gallery image zoom on hover ---------- */
.ba-layer { transition: transform 0.6s ease; }
.gallery-card:hover .ba-layer:not(.ba-before) { transform: scale(1.06); }

/* ---------- Before/after intro sweep (auto demo on scroll into view) ---------- */
.ba-slider.ba-anim .ba-before,
.ba-slider.ba-anim .ba-handle-line { transition: clip-path 0.85s cubic-bezier(0.22,1,0.36,1), left 0.85s cubic-bezier(0.22,1,0.36,1); }

/* ---------- Service icon hover pop ---------- */
.service-icon { transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.group:hover .service-icon { transform: rotate(-8deg) scale(1.1); }
