/* ---------------------------
   Two-Column Services
---------------------------- */
/* Full-width container */
.service-full-width {
  width: 100%;
  background: var(--light-bg);
  padding: var(--spacing-lg) 0;
}

.service-full-width.white {
  background: var(--white);
}

.two-col-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 var(--spacing-sm);
  align-items: center;
  justify-content: space-between;
}

.service-image, .service-text {
  flex: 1;
  min-width: 300px;
}

.service-image {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.service-image img {
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  will-change: transform;
  width: 100%;
}

.service-image:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.service-text h2 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin-bottom: 0.7em;
  position: relative;
  padding-bottom: 12px;
}

.service-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.service-text p {
  font-size: clamp(1rem, 2vw, 1.05rem);
  line-height: 1.7;
}

/* Reverse layout helper */
.row-reverse {
  flex-direction: row-reverse;
}

/* ---------------------------
   Carousel Indicators
---------------------------- */
.carousel-indicators {
  display: none; /* Hide carousel indicators as requested */
}

.indicator {
  display: none; /* Hide indicators */
}

.carousel-nav:hover, .carousel-nav:focus {
  background: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ---------------------------
   Footer
---------------------------- */
footer {
  margin-top: 0;
  background: var(--white);
  color: var(--text-color);
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
}

footer p {
  margin-bottom: 0.5em;
}

footer a:hover, footer a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-contact {
  margin-bottom: var(--spacing-md);
}

.contact-heading {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.2em;
  color: var(--primary-color);
}

.contact-phone {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.1em;
}

.contact-email {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 0.4em;
  word-break: break-word;
}

.contact-address {
  font-size: 1rem;
  margin-bottom: 0.4em;
  color: #555;
}

.social-icons {
  margin: var(--spacing-md) 0;
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,44,95,0.1);
  width: 44px; /* Increased from 40px to 44px for better touch targets */
  height: 44px; /* Increased from 40px to 44px for better touch targets */
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover, .social-icons a:focus {
  background: rgba(10,44,95,0.2);
  transform: translateY(-3px);
}

.social-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  fill: var(--primary-color);
}

.copyright {
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--gray);
}

/* ---------------------------
   Responsive Layout with Viewport-Based Spacing
---------------------------- */
@media (max-width: 768px) {
  .two-col-section,
  .row-reverse {
    flex-direction: column;
  }

  .service-text {
    order: 2;
  }

  .service-image {
    order: 1;
    width: 100%;
  }

  .service-text h2::after {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80px;
  }

  .two-col-section {
    text-align: center;
    padding: 0 var(--spacing-xl); /* Using viewport-based spacing */
  }

  .site-logo-container {
    width: 140px;
    height: 100px;
  }
  
  /* At smaller screen sizes, force the line break and adjust spacing */
  .tagline {
    margin-top: -10px;  /* Increase space between logo and tagline when on two lines */
  }

  .tagline-part {
    display: block;
    line-height: 1.4;  /* Tighter line height for the multi-line display */
  }
  
  .tagline-part:first-child {
    margin-bottom: -5px;  /* Negative margin to pull the second line closer */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .two-col-section {
    gap: var(--spacing-md);
    padding: 0 var(--spacing-xl); /* Using viewport-based spacing */
  }

  .service-image img {
    height: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-slide {
    transition: none !important;
  }
}
