/* ============================================================
   Drip Auto Spa Queen Creek — custom accents
   Dark automotive luxury: obsidian base, drip-cyan accent.
   ============================================================ */

:root {
  --c-obsidian:   #0B0D10;
  --c-carbon:    #14181F;
  --c-steel:     #1C222C;
  --c-drip:      #00B4D8;
  --c-drip-light:#38BDF8;
  --c-ink:       #F8FAFC;
  --c-body:      #AEB9C6;
  --c-line:      rgba(148, 163, 184, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-obsidian);
  color: var(--c-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 180, 216, 0.35);
  color: #fff;
}

/* Subtle themed scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-obsidian); }
::-webkit-scrollbar-thumb { background: #262d38; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #39424f; }

/* ---------- Accessible focus ---------- */
a, button, input, select, textarea, label { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-drip);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Scroll-reveal (subtle fade-up) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Vehicle-size segmented control ---------- */
.seg-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.seg-btn:hover { color: #e2e8f0; }
.seg-btn[aria-pressed="true"] {
  background: rgba(0, 180, 216, 0.12);
  border-color: rgba(0, 180, 216, 0.55);
  color: #fff;
}

/* ---------- Package price swap animation ---------- */
.price {
  transition: opacity 0.18s ease, transform 0.18s ease;
  display: inline-block;
}
.price.swap-out {
  opacity: 0;
  transform: translateY(5px);
}

/* ---------- Gallery ---------- */
.g-item img {
  filter: saturate(1.02);
}

/* ---------- Open-now badge states ---------- */
#open-badge.is-open {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}
#open-badge.is-open .badge-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
#open-badge.is-closed {
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
#open-badge .badge-dot {
  background: #94a3b8;
}

/* ---------- Lightbox ---------- */
#lightbox {
  animation: lb-fade 0.25s ease-out;
}
#lightbox img {
  animation: lb-zoom 0.25s ease-out;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lb-zoom {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Sticky header hairline glow on scroll ---------- */
header.scrolled {
  box-shadow: 0 1px 0 0 rgba(0, 180, 216, 0.25), 0 10px 30px -12px rgba(0, 0, 0, 0.65);
}

/* ---------- Hero badge shimmer (very subtle) ---------- */
@keyframes drip-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(252, 211, 77, 0); }
  50%      { text-shadow: 0 0 18px rgba(252, 211, 77, 0.35); }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
