/* ==============================================
   CALICHI DESIGN ENHANCEMENTS
   Scroll animations, hover effects, mobile CTA,
   nav blur, logo reveal, counter animations
   ============================================== */

/* --- 1. SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal[style*="--i:1"] { transition-delay: 80ms; }
.reveal[style*="--i:2"] { transition-delay: 160ms; }
.reveal[style*="--i:3"] { transition-delay: 240ms; }
.reveal[style*="--i:4"] { transition-delay: 320ms; }
.reveal[style*="--i:5"] { transition-delay: 400ms; }

/* --- 2. NAV BACKDROP BLUR ON SCROLL --- */
.nav {
  transition: background 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(17,17,17,0.10);
}

/* --- 3. PROJECT CARD IMAGE HOVER ZOOM --- */
.project-card {
  overflow: hidden;
}
.project-card img {
  /* no transform */
}


/* --- 4. BENTO ITEM HOVER LIFT --- */
.bento-item {
  transition: box-shadow 300ms ease;
}
.bento-item:hover {
  box-shadow: 0 4px 20px rgba(17,17,17,0.06);
}

/* --- 5. LOGO BAR COLOR REVEAL --- */
.logo-placeholder img {
  filter: grayscale(100%) opacity(0.45) !important;
  transition: filter 350ms ease !important;
}
.logo-placeholder:hover img {
  filter: grayscale(0%) opacity(1) !important;
}

/* --- 6. STICKY MOBILE CTA BAR --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--cc-dark, #111111);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: 10px;
  align-items: center;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
}
.mobile-cta-bar .cta-phone {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-cta-bar .cta-btn {
  flex: 1.5;
  background: var(--cc-green, #169748);
  color: white;
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (min-width: 768px) {
  .mobile-cta-bar { display: none !important; }
}

/* --- 7. BLOG/TEAM CARD HOVER --- */
.blog-card {
  transition: box-shadow 250ms ease;
}
.blog-card:hover {
  box-shadow: 0 4px 20px rgba(17,17,17,0.06);
}
.team-card {
  transition: box-shadow 250ms ease;
}
.team-card:hover {
  box-shadow: 0 4px 20px rgba(17,17,17,0.06);
}

/* --- 8. LOCATION CARD HOVER ACCENT --- */
.location-card {
  transition: border-color 250ms ease;
  border-top: 3px solid transparent;
}
.location-card:hover {
  border-top-color: var(--cc-green, #169748);
}

/* --- 9. CTA BUTTON MICRO-INTERACTIONS --- */
.btn-primary, .btn-outline, [class*="btn-"] {
  transition: all 200ms ease;
}
.btn-primary:hover {
  background: var(--cc-blue-hover);
}

/* --- 10. SMOOTH SCROLL --- */
html {
  scroll-behavior: smooth;
}

/* --- 11. CREDENTIALS BAR STAGGER --- */
.credentials-bar span.reveal {
  display: inline-block;
}
