/* =============================================
   Oak Mountain Pressure Washing — Custom Styles
   ============================================= */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Anchor offset for sticky nav (80px tall nav) */
[id] {
  scroll-margin-top: 80px;
}

/* ---- Before/After Slider ---- */
.before-after-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  user-select: none;
  touch-action: none;
  aspect-ratio: 4 / 3;
}

.before-after-container .after-img,
.before-after-container .before-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after-container .before-img {
  clip-path: inset(0 50% 0 0);
}

/* Applied to "before" images using a CSS filter to simulate a dirty appearance */
.before-img-dirty {
  filter: brightness(0.6) contrast(1.2) saturate(0.35) sepia(0.5);
}

.before-after-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
  padding: 0;
}

/* Hide default range thumb across browsers */
.before-after-slider::-webkit-slider-thumb { opacity: 0; }
.before-after-slider::-moz-range-thumb    { opacity: 0; border: none; background: transparent; }
.before-after-slider::-ms-thumb           { opacity: 0; }
.before-after-slider::-webkit-slider-runnable-track { background: transparent; }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-label {
  position: absolute;
  top: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 6;
}

.ba-label-before {
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: white;
}

.ba-label-after {
  right: 12px;
  background: rgba(45, 139, 191, 0.85);
  color: white;
}

/* ---- Service Card Hover ---- */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.service-card .card-img-wrap {
  overflow: hidden;
  height: 180px;
}

.service-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* ---- Testimonial Card Hover ---- */
.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ---- CTA Pulse Animation ---- */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  60%       { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0); }
}

.cta-pulse {
  animation: pulse-accent 2.8s infinite;
}

/* ---- Hero overlay gradient ---- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.82) 0%,
    rgba(30, 58, 95, 0.65) 60%,
    rgba(45, 139, 191, 0.45) 100%
  );
}

/* ---- Section heading eyebrow ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2d8bbf;
  margin-bottom: 0.5rem;
}

/* ---- City pill hover ---- */
.city-pill {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.city-pill:hover {
  background-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* ---- FAQ border left accent ---- */
.faq-item {
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-left-color: #2d8bbf;
}

/* ---- Form focus ring ---- */
.form-input:focus {
  outline: none;
  border-color: #2d8bbf;
  box-shadow: 0 0 0 3px rgba(45, 139, 191, 0.2);
}

/* ---- Nav link underline animation ---- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2d8bbf;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Why card icon circle ---- */
.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(45, 139, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Responsive image fallback backgrounds ---- */
.img-placeholder {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d8bbf 100%);
}

/* ---- Star rating color ---- */
.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* ---- Scroll-to-top (future enhancement hook) ---- */
#scroll-top {
  display: none;
}
