/* ==========================================================================
   Muddy Paws DIY Dog Wash - Master Stylesheet
   Theme: High-Contrast Pure Black (#000000) & Radioactive Slime Green (#39FF14)
   Target Domain: https://muddypaws.us/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Typography Smoothing
   -------------------------------------------------------------------------- */
:root {
  --color-slime: #39FF14;
  --color-slime-hover: #32E012;
  --color-slime-glow: rgba(57, 255, 20, 0.4);
  --color-slime-subtle: rgba(57, 255, 20, 0.15);
  --color-dark-base: #000000;
  --color-dark-surface: #0A0A0A;
  --color-dark-card: #141414;
  --color-dark-border: #262626;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-dark-base);
  color: #FFFFFF;
}

/* Custom Text Selection Highlight */
::selection {
  background-color: var(--color-slime);
  color: #000000;
}

::-moz-selection {
  background-color: var(--color-slime);
  color: #000000;
}

/* --------------------------------------------------------------------------
   1.5 Banner Strip Backgrounds
   -------------------------------------------------------------------------- */
.bg-banner-1 {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.20)), url('images/ui/banner-1.jpg');
}

.bg-banner-2 {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.20)), url('images/ui/banner-2.jpg');
}

/* --------------------------------------------------------------------------
   2. High-Contrast Dark Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
  border-left: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 5px;
  border: 2px solid #050505;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-slime);
  box-shadow: 0 0 10px var(--color-slime-glow);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #262626 #050505;
}

/* --------------------------------------------------------------------------
   3. Radioactive Slime Glow Utility Classes
   -------------------------------------------------------------------------- */
.glow-slime {
  box-shadow: 0 0 25px var(--color-slime-glow);
}

.glow-slime-sm {
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.25);
}

.glow-slime-lg {
  box-shadow: 0 0 45px rgba(57, 255, 20, 0.55);
}

.text-glow-slime {
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
}

.border-glow-slime {
  border-color: var(--color-slime);
  box-shadow: 0 0 20px var(--color-slime-subtle);
}

/* --------------------------------------------------------------------------
   4. FAQ Accordion & Summary Animations
   -------------------------------------------------------------------------- */
/* Hide default native browser chevron markers */
details > summary::-webkit-details-marker,
details > summary::marker {
  display: none;
}

details > summary {
  list-style: none;
}

/* Active / Open state styling */
details[open] {
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.08);
}

details summary .faq-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   5. Form Controls & High-Visibility Focus States
   -------------------------------------------------------------------------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-slime) !important;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.25);
}

/* Disabled button loading state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   6. Micro-Interactions & Hover Lift
   -------------------------------------------------------------------------- */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. Google Map Embed & Media Containers
   -------------------------------------------------------------------------- */
iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   8. Image Protection & Anti-Theft Invisible Shield Overlay
   -------------------------------------------------------------------------- */
.protected-img-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.protected-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: auto;
}

img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* --------------------------------------------------------------------------
   9. 2D Interactive Expanding Gallery Matrix & Frosted Name Badge
   -------------------------------------------------------------------------- */
.gallery-matrix-grid {
  position: relative;
  transition: all 0.4s ease;
}

.gallery-matrix-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

/* When the user hovers over the gallery, non-hovered photos gently compress and dim */
.gallery-matrix-grid:hover .gallery-matrix-item:not(:hover) {
  transform: scale(0.94);
  opacity: 0.75;
  filter: brightness(0.85);
}

/* The hovered photo expands, elevates above neighbors, and glows */
.gallery-matrix-item:hover {
  transform: scale(1.18);
  opacity: 1 !important;
  filter: brightness(1.05) !important;
  z-index: 25;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(57, 255, 20, 0.35);
  border-color: var(--color-slime) !important;
}

/* Target ONLY the main photo (direct child), preventing badge logo expansion */
.gallery-matrix-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-matrix-item:hover > img {
  transform: scale(1.05);
}

/* Keep the badge logo fixed to its explicit dimensions */
.dog-name-badge img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

/* Frosted Sub-Badge with Watermark Brand Icon */
.dog-name-badge {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 15;
}

.gallery-matrix-item:hover .dog-name-badge {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. Lightbox Fade-In & Modal Animation
   -------------------------------------------------------------------------- */
@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-animate {
  animation: lightboxFadeIn 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}