/* ============================================
   CHEZ CHARLIE – ANIMATIONS & DYNAMIC STYLES
   ============================================ */

/* Base transitions */
a, button { transition: all 0.22s ease; }

/* ---- Hero Logo Float ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-logo {
  animation: float 4s ease-in-out infinite;
}

/* ---- Down Arrow Bounce ---- */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
.hero-arrow {
  display: inline-block;
  animation: bounceDown 1.3s ease-in-out infinite;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.32s; }

/* ---- Service Cards Hover Lift ---- */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important;
}

/* ---- About Image Hover Scale ---- */
.about-img {
  transition: transform 0.4s ease;
  cursor: pointer;
}
.about-img:hover {
  transform: scale(1.03);
}

/* ---- Nav Links ---- */
#menu a {
  transition: opacity 0.2s ease;
}
#menu a:hover {
  opacity: 0.65;
}
#mobile-menu a {
  transition: color 0.2s ease, transform 0.2s ease;
}
#mobile-menu a:hover {
  color: #3D556C;
  transform: translateX(6px);
}

/* ---- CTA Button ---- */
#services h5 {
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
#services h5:hover {
  background: #3D556C;
  border-color: #3D556C;
  transform: translateY(-2px);
}
#services h5:hover a {
  color: white;
}

/* ---- Anifit Link ---- */
.anifit-link {
  transition: opacity 0.2s ease;
}
.anifit-link:hover {
  opacity: 0.75;
}

/* ---- Contact Links ---- */
#contact a {
  transition: opacity 0.2s ease;
}
#contact a:hover {
  opacity: 0.75;
}

/* ---- Instagram Icon ---- */
.insta-icon {
  display: inline-block;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.insta-icon:hover {
  transform: scale(1.18);
  filter: brightness(1.15);
}

/* ============================================
   CAROUSEL – CLIENTS SATISFAITS
   ============================================ */

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 44px;
  box-sizing: border-box;
}

.carousel-container {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track.no-anim {
  transition: none !important;
}

.carousel-slide {
  flex: 0 0 auto; /* width set in JS */
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 13px));
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #3D556C;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(calc(-50% - 13px)) scale(1.1);
}
.carousel-btn:active {
  transform: translateY(calc(-50% - 13px)) scale(0.94);
}
.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B8A288;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.carousel-dot:hover {
  background: #3D556C;
}
.carousel-dot.active {
  background: #3D556C;
  transform: scale(1.4);
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */

/* Contact – fix narrow info column on mobile */
@media (max-width: 767px) {
  .contact-info-col {
    width: 100% !important;
    padding: 0 1rem;
  }
  .contact-map-col {
    width: 100%;
  }
}

/* Carousel on very small screens */
@media (max-width: 400px) {
  .carousel-wrapper {
    padding: 0 38px;
  }
  .carousel-btn {
    width: 34px;
    height: 34px;
  }
}

/* Services – ensure single column on mobile is full width */
@media (max-width: 640px) {
  #services > div > .grid {
    width: 100%;
  }
}
