/* ============================================================
   Soto's Dog Grooming — custom styles (Upperhound-inspired)
   Palette: cream bg · deep blue primary · soft blue · sun yellow
   ============================================================ */

:root {
  --cream: #FDF6EC;
  --cream-dark: #F7EBDA;
  --navy: #17456E;
  --blue: #2D6BA3;
  --sky: #BCD3E6;
  --sun: #F4B942;
  --ink: #4A4A46;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: #E9F1F7;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #E9F1F7; /* soft hero blue (was cream) */
  color: var(--ink);
  overflow-x: hidden;   /* stop any element from creating extra horizontal scroll on mobile */
  width: 100%;
}

.font-display { font-family: 'Fraunces', serif; }

/* ---------- Organic blob shapes (work with <img> AND <video>) ---------- */
.blob-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#blobClip);
  -webkit-clip-path: url(#blobClip);
}
.blob-media-alt {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#blobClipAlt);
  -webkit-clip-path: url(#blobClipAlt);
}
/* Soft-blue blob sitting behind the media */
.blob-behind {
  position: absolute;
  inset: -6% -8% auto auto;
  width: 85%;
  height: 85%;
  background: var(--sky);
  clip-path: url(#blobClipAlt);
  -webkit-clip-path: url(#blobClipAlt);
  z-index: 0;
}

/* ---------- Circle media (services thumbnails) ---------- */
.circle-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

/* ---------- Testimonial carousel (auto-scroll in JS + manual swipe) ---------- */
.marquee {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   /* smooth momentum swipe on iOS */
  scrollbar-width: none;               /* Firefox: hide scrollbar */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }  /* Chrome/Safari: hide scrollbar */
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

/* ---------- 3D cursor dog canvas (desktop) ---------- */
#cursorDogCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
}

/* ---------- Star rating ---------- */
.stars { color: var(--sun); letter-spacing: 2px; }

/* ---------- Services tab (left rail) ---------- */
.service-tab {
  transition: all .25s ease;
  border-left: 4px solid transparent;
}
.service-tab.active {
  background: #fff;
  border-left-color: var(--sun);
  box-shadow: 0 10px 30px -12px rgba(23, 69, 110, .25);
}
.service-tab:not(.active):hover { background: rgba(255,255,255,.6); }

/* !important beats Tailwind's .grid utility (injected after this sheet) */
.service-panel { display: none !important; }
.service-panel.active { display: grid !important; animation: fadeUp .4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Navbar ---------- */
.nav-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(23, 69, 110, .08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--sun);
  transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-radius: 9999px;
  padding: .8rem 2rem;
  font-weight: 600;
  display: inline-block;
  transition: all .25s ease;
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(23, 69, 110, .5);
}
.btn-yellow {
  background: var(--sun);
  color: var(--navy);
  border-radius: 9999px;
  padding: .8rem 2rem;
  font-weight: 600;
  display: inline-block;
  transition: all .25s ease;
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(244, 185, 66, .6); }

/* ---------- Arrow link ---------- */
.arrow-link {
  color: var(--navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.arrow-link svg { transition: transform .25s ease; }
.arrow-link:hover svg { transform: translateX(6px); }

/* ---------- Doodles (decorative SVGs) ---------- */
.doodle { position: absolute; pointer-events: none; }
.doodle-float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ---------- Gallery masonry ---------- */
.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px)  { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(23, 69, 110, .35);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Admin ---------- */
.admin-input {
  width: 100%;
  border: 1.5px solid #E4D9C8;
  border-radius: .75rem;
  padding: .7rem 1rem;
  background: #fff;
  outline: none;
  transition: border-color .2s ease;
}
.admin-input:focus { border-color: var(--blue); }

/* Edit modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(23, 69, 110, .6);
  display: none;
  align-items: center; justify-content: center;
  z-index: 110; padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: fadeUp .3s ease;
}

/* Toggle switch */
.toggle { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: #D6CBB8;
  border-radius: 9999px;
  transition: .25s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .25s;
}
.toggle input:checked + .slider { background: var(--navy); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
