/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  padding: var(--spacing-3xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust Section */
.trust-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-subtitle {
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.trust-tagline {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-medium);
}

.trust-quote {
  background-color: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary-blue);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.trust-quote blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin: 0;
  font-weight: var(--font-weight-medium);
}

/* Why Us Section */
.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.why-us-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: var(--spacing-xl);
}

.why-us-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.highlight-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.highlight-content h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-dark);
  margin: 0 0 0.25rem;
}

.highlight-content p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 0;
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* For Mobile View */
@media screen and (max-width: 768px) {
    .why-us-content {
        display: flex;
        flex-direction: column-reverse; /* This ensures image is above the text */
        text-align: center;
    }

    .why-us-text {
        margin-bottom: 20px;
    }

    .why-us-image {
        margin-bottom: 20px;
    }

    .why-us-image img {
        height: auto;
        max-width: 100%;
    }

    .why-us-text h2 {
        text-align: center; /* Centers the heading on mobile */
    }
}


/* For Desktop View */
@media screen and (min-width: 769px) {
    .why-us-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .why-us-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
}



/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.service-card {
  background-color: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  text-align: center;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.price-wrapper {
  margin: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: auto;
  padding-top: var(--spacing-lg);
}

/* Choose Us Grid */
.choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.choose-us-card {
  background-color: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  border: 1px solid var(--border-light);
}

.choose-us-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.choose-us-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.choose-us-card p {
  color: var(--text-medium);
  margin: 0;
}

/* How It Works Section */
.steps-container {
  max-width: 800px;
  margin: var(--spacing-2xl) auto 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 2rem;
  top: 4rem;
  width: 2px;
  height: var(--spacing-2xl);
  background: linear-gradient(to bottom, var(--primary-blue), transparent);
  z-index: 1;
}

.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.step-content p {
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

/* Trusted Logos Section */
.trusted-logos {
  text-align: center;
  margin-top: 30px;
}

.trusted-logos h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.logo-scroll {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
}

.logo-scroll img {
  height: 80px; /* Increased logo size */
  margin-right: 40px; /* Increased space between logos */
  object-fit: contain; /* Ensure images don't stretch */
  animation: scroll-logos 15s linear infinite;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Mobile View - Ensure logos scroll smoothly and are of equal size */
@media (max-width: 768px) {
  .logo-scroll img {
    height: 60px; /* Resize logos for mobile */
    margin-right: 20px; /* Decrease space between logos */
  }

  .logo-scroll {
    animation: scroll-logos-mobile 20s linear infinite; /* Slower scroll on mobile for better visibility */
  }
}

@keyframes scroll-logos-mobile {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Guarantees Section */
.guarantees-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  padding: var(--spacing-3xl) 0;
  color: var(--bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guarantees-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.guarantees-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.guarantees-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-lg);
  color: var(--bg-white);
}

.guarantees-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
  color: var(--bg-white);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.guarantee-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.guarantee-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 1.5rem;
  color: var(--bg-white);
  transition: var(--transition-medium);
}

.guarantee-item:hover .guarantee-icon {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.guarantee-item h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--bg-white);
}

.guarantee-item p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
  padding: var(--spacing-3xl) 0;
  text-align: center;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-lg);
  color: var(--bg-white);
}

.cta-banner p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
  color: var(--bg-white);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Google Map Section */
.map-section {
  text-align: center;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--spacing-2xl) 0;
    min-height: 60vh;
  }
  
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn,
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .choose-us-grid {
    grid-template-columns: 1fr;
  }
  
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .step-item::after {
    display: none;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .card-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--spacing-xl) 0;
  }
  
  .service-card,
  .choose-us-card {
    padding: var(--spacing-lg);
  }
  
  .step-content h3 {
    font-size: 1.125rem;
  }
}

/* Performance optimizations */
.hero-section,
.cta-banner,
.guarantees-section {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .choose-us-card:hover,
  .guarantee-item:hover .guarantee-icon {
    transform: none;
  }
  
  .hero-section::before,
  .cta-banner::before,
  .guarantees-section::before {
    animation: none;
  }
}

/* Text utility classes */
.text-primary {
  color: var(--primary-blue);
}

.font-weight-semibold {
  font-weight: var(--font-weight-semibold);
}

