/* 
 * R&R Tampa - Visual Design Enhancements with Photos
 * Professional photo integration and styling
 */

/* =================================================================
   HERO WITH PHOTO BACKGROUND
   ================================================================= */

.hero {
  background: 
    linear-gradient(135deg, rgba(26, 54, 93, 0.88), rgba(35, 78, 130, 0.85)),
    url('/images/delivery-home.jpg') center/cover no-repeat;
  min-height: 550px;
  position: relative;
}

/* Ensure hero text is always readable */
.hero h1,
.hero p,
.hero .trust-pill {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =================================================================
   SERVICE GALLERY SECTION
   ================================================================= */

.service-gallery {
  padding: 4rem 1.25rem;
  background: var(--sand);
}

.gallery-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.gallery-intro h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.gallery-intro p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 1.25rem;
  background: white;
}

.gallery-caption h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.gallery-caption p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* =================================================================
   HOW IT WORKS WITH PHOTOS
   ================================================================= */

.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.step-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

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

.step-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  background: #0d9488;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =================================================================
   BENEFITS WITH SUBTLE PHOTO BACKGROUNDS
   ================================================================= */

.benefit {
  position: relative;
  overflow: hidden;
}

.benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.benefit:hover::before {
  opacity: 0.08;
}

.benefit:nth-child(1)::before {
  background-image: url('/images/salt-filling.jpg');
}

.benefit:nth-child(2)::before {
  background-image: url('/images/salt-bags-stack.jpg');
}

.benefit:nth-child(3)::before {
  background-image: url('/images/delivery-home.jpg');
}

.benefit:nth-child(4)::before {
  background-image: url('/images/service-indoor.jpg');
}

.benefit > * {
  position: relative;
  z-index: 1;
}

/* =================================================================
   TRUST BAR BELOW HERO
   ================================================================= */

.trust-bar {
  background: white;
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem 1.25rem;
}

.trust-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

.trust-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 6px;
  color: var(--teal);
  font-weight: 700;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--card-border);
  display: none;
}

/* =================================================================
   PRICING CARDS WITH ENHANCED VISUALS
   ================================================================= */

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, transparent, rgba(13, 148, 136, 0.05));
  border-radius: 14px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* =================================================================
   IMPROVED SECTION DIVIDERS
   ================================================================= */

.section {
  position: relative;
}

.section:nth-child(even) {
  background: var(--sand);
}

.section:nth-child(odd) {
  background: white;
}

/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-divider {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
    padding: 4.5rem 2rem 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .step {
    grid-template-columns: 120px 1fr;
  }
  
  .step-image {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2) {
    grid-column: span 2;
  }
  
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(2) img {
    height: 320px;
  }
}

/* =================================================================
   IMAGE LAZY LOADING & OPTIMIZATION
   ================================================================= */

img {
  loading: lazy;
}

.gallery-item img,
.step-image img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* =================================================================
   PHOTO CREDIT (OPTIONAL - FOR STOCK IMAGES)
   ================================================================= */

.photo-credit {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.5rem;
}
