/* ============================================================
   PAGE ANIMATIONS & SHARED UTILITIES
   Path: /assets/css/page-animations.css
   Used by: all pages
   ============================================================ */

/* ── Scroll-reveal animations ─────────────────────────────── */
.fade_up,
.fade_in,
.zoom_in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Hero slide entrance animation ───────────────────────── */
.animate-slide {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Video hero ────────────────────────────────────────────── */
.video-slide {
  position: relative;
}

.video-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide-content {
  position: relative;
  z-index: 1;
}

/* ── Page loader ───────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.page-loader.hide {
  display: none;
}

/* ── Services slider ───────────────────────────────────────── */
.services-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
}

.services-slider .swiper-wrapper {
  display: flex;
  transition-timing-function: ease-in-out;
}

/* ── Cleaning card (shared between slider & grid) ─────────── */
.cleaning-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cleaning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Services page: feature list inside cards ─────────────── */
.services-features {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.services-features li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.services-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a365d;
  font-weight: 700;
}

/* ── Stats section ─────────────────────────────────────────── */
.section-stats {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 18px;
  color: #666;
}

/* ── Team section ──────────────────────────────────────────── */
.section-team {
  padding: 80px 0;
}

.team-sub-heading {
  font-size: 24px;
  color: #666;
  margin-bottom: 30px;
}

.team-benefit {
  padding: 30px;
}

.team-icon {
  display: block;
  font-size: 40px;
  margin-bottom: 20px;
}

/* ── Franchise section ─────────────────────────────────────── */
.section-franchise {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  padding: 80px 0;
  color: #fff;
}

.franchise-intro {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.franchise-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
}

.franchise-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
}

.btn-quote--light {
  background: #fff;
  color: #1a365d;
}

.icon-dark {
  filter: brightness(0) saturate(100%) invert(15%) sepia(24%) saturate(2477%) hue-rotate(183deg) brightness(94%) contrast(95%);
}

/* ── Culture section ────────────────────────────────────────── */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.culture-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Services page: page hero ───────────────────────────────── */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.services-hero {
  background-image: url('/assets/images/services/services-hero-bg.jpg');
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.72);
}

.page-hero__content {
  color: #fff;
  position: relative;
  z-index: 1;
}

.breadcrumb-nav {
  margin-bottom: 1.5rem;
}

.breadcrumb-nav .breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-nav .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Services intro section ─────────────────────────────────── */
.section-services-intro {
  padding: 80px 0 40px;
}

/* ── Services grid section ──────────────────────────────────── */
.section-services-grid {
  padding: 40px 0 80px;
}

/* ── CTA section ─────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  padding: 80px 0;
  color: #fff;
}

.section-cta .cap-text,
.section-cta .sec-text,
.section-cta .sec-sub-text {
  color: #fff;
}

.cta-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.btn-quote--outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Global tap highlight reset ─────────────────────────────── */
* {
  -webkit-tap-highlight-color: transparent;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-slider {
    margin: 0 -15px;
    padding: 1rem 15px;
  }

  .cleaning-card {
    width: 100%;
  }

  .video-swiper-row {
    padding: 20px 0;
  }

  .needs-text {
    font-size: 14px;
  }

  .lets-us-do {
    font-size: 28px;
    line-height: 1.3;
  }

  .residents {
    font-size: 16px;
  }

  .stat-number {
    font-size: 36px !important;
  }

  .stat-label {
    font-size: 16px !important;
  }

  .page-hero {
    padding: 100px 0 60px;
    min-height: 360px;
  }
}

@media (max-width: 576px) {
  .lets-us-do {
    font-size: 24px;
  }

  .stat-number {
    font-size: 32px !important;
  }

  .cta-btn-group {
    flex-direction: column;
    align-items: center;
  }
}
