/* Image-related styles for Flat Fee Movers website */

/* ====================================
   HERO BACKGROUND IMAGE STYLES
   ==================================== */

/* Enhanced hero background styles for all service pages */
.ffm-hero {
  background-attachment: fixed;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Ensure proper image display in service pages */
.hero-service .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Hero with background image */
.hero-background {
  background: none !important;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 54, 93, 0.8) 0%, rgba(44, 82, 130, 0.7) 100%);
  z-index: 2;
}

/* ====================================
   BENEFIT ICONS
   ==================================== */

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.benefit-icon:hover {
  background: rgba(255, 107, 53, 0.2);
  transform: scale(1.1);
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: inherit;
}

/* ====================================
   TRUST BADGES SECTION
   ==================================== */

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-5px);
}

.trust-badge img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.trust-badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B365D;
  margin-top: 0.5rem;
}

/* ====================================
   TEAM GALLERY
   ==================================== */

.team-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.team-member {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
  transform: scale(1.05);
}

.team-member-info {
  padding: 1.5rem;
  text-align: center;
}

.team-member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B365D;
  margin-bottom: 0.5rem;
}

.team-member-role {
  font-size: 1rem;
  color: #FF6B35;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ====================================
   BEFORE/AFTER GALLERY
   ==================================== */

.gallery-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-images {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.after-image {
  opacity: 0;
}

.gallery-item:hover .after-image {
  opacity: 1;
}

.gallery-item:hover .before-image {
  opacity: 0;
}

.gallery-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
}

.gallery-label {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-info {
  padding: 1.5rem;
  text-align: center;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B365D;
  margin-bottom: 0.5rem;
}

.gallery-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ====================================
   SERVICE ICONS
   ==================================== */

.service-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 120px;
}

.service-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.service-icon-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B365D;
}

/* ====================================
   SOCIAL MEDIA ICONS
   ==================================== */

.social-media-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1B365D;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #FF6B35;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ====================================
   RESPONSIVE IMAGES
   ==================================== */

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

.responsive-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Image loading and fallback styles */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.image-error {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-style: italic;
}

/* ====================================
   MOBILE RESPONSIVENESS
   ==================================== */

@media (max-width: 768px) {
  .trust-badges {
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .trust-badge img {
    width: 60px;
    height: 60px;
  }
  
  .team-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-icons {
    gap: 1rem;
  }
  
  .service-icon {
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
  }
  
  .benefit-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-media-icons {
    gap: 0.75rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
  }
  
  .social-icon svg {
    width: 18px;
    height: 18px;
  }
}