/* Service Cards Section - Stylish Component-Based Design 2025 */

/* Service Section Container */
.service-section {
  padding: 6rem 0;
  background-color: var(--color-background-surface);
  position: relative;
  overflow: hidden;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.service-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.service-header h2 {
  font-size: var(--font-size-xxl);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.service-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.service-intro {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height-unitless-relaxed);
}

/* Service Detail Sections */
.service-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s 0.2s ease-out forwards;
}

.service-detail-reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.service-detail-reverse .service-detail-content {
  order: 2;
}

.service-detail-reverse .service-detail-image {
  order: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-detail-content {
  display: flex;
  flex-direction: column;
}

.service-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: rgba(217, 45, 39, 0.1);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-detail-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-brand-primary);
}

.service-detail h3 {
  font-size: var(--font-size-xl);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  font-weight: var(--font-weight-bold);
}

.service-detail h3::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.service-detail p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-unitless-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.service-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-best-for h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-primary);
  margin-bottom: 0.5rem;
}

.service-best-for p {
  font-size: var(--font-size-sm);
  margin-bottom: 0;
  color: var(--color-text-primary);
}

.service-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-keywords span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(217, 45, 39, 0.08);
  color: var(--color-brand-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: 9999px;
}

.service-card h3 {
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.service-card p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: var(--line-height-unitless-relaxed);
  flex-grow: 1;
}

.service-detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
  transform: perspective(1000px) rotateY(-5deg);
  height: 400px;
}

.service-detail:hover .service-detail-image {
  transform: perspective(1000px) rotateY(-2deg);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.5s ease;
}

.service-detail-image:hover img {
  transform: scale(1.05);
}

.service-detail-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

/* Call to Action Section */
.cta-section {
  padding: 6rem 0;
  background-color: var(--color-background-surface);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(217, 45, 39, 0.03) 0%, rgba(217, 45, 39, 0.01) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(60px);
}

/* Service Area Section */
.service-area-section {
  padding: 6rem 0;
  background-color: var(--color-background-surface-alt);
  position: relative;
}

.service-area-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-area-content h2 {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.service-area-content h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-brand-primary);
}

.service-area-content p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: var(--line-height-unitless-relaxed);
}

.service-area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-area-column h3 {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-semibold);
}

.service-area-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-area-column li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.service-area-column li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.35rem;
  height: 0.35rem;
  background-color: var(--color-brand-primary);
  border-radius: 50%;
}

.service-area-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

.service-area-note a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
}

.service-area-note a:hover {
  text-decoration: underline;
}

.service-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(217, 45, 39, 0.1), transparent);
  pointer-events: none;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
}

.cta-content h2 {
  font-size: var(--font-size-xxl);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: var(--line-height-unitless-relaxed);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cta-button-primary {
  background-color: var(--color-brand-primary);
  color: var(--color-raw-white);
  box-shadow: 0 4px 10px rgba(217, 45, 39, 0.25);
}

.cta-button-primary:hover {
  background-color: #c5201a;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(217, 45, 39, 0.3);
}

.cta-button-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text-primary);
  border: 1px solid rgba(217, 45, 39, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta-button-secondary:hover {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-brand-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(217, 45, 39, 0.4);
}

/* Animation delays for service details */
.service-detail:nth-child(1) {
  animation-delay: 0.1s;
}

.service-detail:nth-child(2) {
  animation-delay: 0.2s;
}

.service-detail:nth-child(3) {
  animation-delay: 0.3s;
}

.service-detail:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-area-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .service-detail-reverse .service-detail-content,
  .service-detail-reverse .service-detail-image,
  .service-detail-content,
  .service-detail-image {
    order: unset;
  }
  
  .service-detail-image {
    height: 300px;
    max-width: 600px;
    margin: 0 auto;
  }

  .service-map-container {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .service-header {
    margin-bottom: 3rem;
  }
  
  .service-area-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-content {
    padding: 3rem 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .service-section,
  .service-area-section,
  .cta-section {
    padding: 4rem 0;
  }
  
  .service-header h2 {
    font-size: var(--font-size-xl);
  }
  
  .service-intro {
    font-size: var(--font-size-sm);
  }
  
  .service-detail-image {
    height: 250px;
  }
  
  .service-detail h3 {
    font-size: var(--font-size-lg);
  }
  
  .service-detail p {
    font-size: var(--font-size-sm);
  }
  
  .service-detail-meta {
    padding: 1.25rem;
  }
  
  .service-area-content h2 {
    font-size: var(--font-size-lg);
  }
  
  .service-area-content p {
    font-size: var(--font-size-sm);
  }
  
  .service-map-container {
    min-height: 250px;
  }
  
  .cta-content h2 {
    font-size: var(--font-size-xl);
  }
  
  .cta-content {
    padding: 2.5rem 1.5rem;
  }
}
