/* ============================================
   GENERAL STYLES
   ============================================ */

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   FADE-IN EFFECTS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-img {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in-img.show {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   TESTIMONIAL SLIDESHOW SECTION
   ============================================ */
.testimonial-slideshow-section {
  padding: clamp(40px, 8vw, 80px) 0;
  background: #f8f9fa;
}

.testimonial-slideshow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(15px, 5vw, 20px);
}

.testimonial-slideshow-header {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 50px);
}

.testimonial-slideshow-header h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  margin-bottom: 10px;
  color: #1a1a1a;
}

.testimonial-slideshow-header p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #666;
}

/* Slideshow wrapper */
.slideshow-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.slideshow-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 40px);
  text-align: center;
  box-sizing: border-box;
}

.testimonial-slide .quote-icon {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #e0e0e0;
  margin-bottom: 20px;
}

.testimonial-slide .testimonial-text {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-slide .client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.testimonial-slide .client-avatar {
  width: clamp(50px, 6vw, 60px);
  height: clamp(50px, 6vw, 60px);
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: bold;
}

.testimonial-slide .client-details h4 {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: #1a1a1a;
}

.testimonial-slide .client-details p {
  margin: 5px 0 0;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: #666;
}

/* Navigation arrows */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.slideshow-nav button {
  pointer-events: all;
  background: rgba(255,255,255,0.9);
  border: none;
  width: clamp(35px, 5vw, 50px);
  height: clamp(35px, 5vw, 50px);
  border-radius: 50%;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  touch-action: manipulation;
  user-select: none;
}

.slideshow-nav button:hover {
  background: white;
  transform: scale(1.1);
}

.slideshow-nav button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Dots indicator */
.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px 0 0;
}

.slideshow-dot {
  width: clamp(8px, 1vw, 12px);
  height: clamp(8px, 1vw, 12px);
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background: #667eea;
  transform: scale(1.3);
}

/* ============================================
   TRUSTED CLIENTS LOGO SLIDER
   ============================================ */


.slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  animation: scroll-logos 30s linear infinite;
}

.trust-logo {
  flex: 0 0 auto;
  width: clamp(60px, 10vw, 120px);
  height: clamp(60px, 10vw, 120px);
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.trust-logo:hover {
  transform: scale(1.1);
}

.trust-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.slider-wrapper:hover .slider {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   GENERAL RESPONSIVE UTILITIES
   ============================================ */

/* Container padding */
.contain-1200 {
  padding-left: clamp(15px, 5vw, 20px);
  padding-right: clamp(15px, 5vw, 20px);
}

/* Flex layouts stack on mobile */
@media (max-width: 768px) {
  .flex-horiz,
  .flex-horiz-center {
    flex-direction: column;
  }

  .flex4col,
  .flex5col,
  .flex6col,
  .flex7col,
  .flex8col {
    width: 100%;
    max-width: 100%;
    text-align: justify;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .flooring-form {
    width: 100%;
    margin-top: 30px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .small-h1 {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Navigation responsive */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-nav-only {
    display: block !important;
  }
}

/* Responsive media */
img, video {
  max-width: 100%;
  height: auto;
}

.footer-text {
  text-align: justify;
}

/* Optional: align footer headings and links */
.footer-header,
.footer-list,
.footer-link,
.footer a {
  text-align: left;
}

/* Flex container layout */
    .flex-horiz {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        flex-wrap: nowrap;
    }

    /* Columns */
    .flex6col,
    .half-image {
        flex: 1;
        padding: 1rem;
    }

    /* Images responsive */
    .half-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Justify text in content */
    .flex6col p {
        text-align: justify;
    }

    /* Checklist styles */
    .check-list {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
    }

    .check-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        font-size: 1rem;
        text-align: justify;
    }

    .check-mark {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 0.3rem;
    }

    /* Button wrapper to center the CTA buttons */
    .button-wrapper {
        text-align: center;
        margin-top: 1.5rem;
    }

    /* Responsive layout for mobile */
    @media screen and (max-width: 768px) {
        .flex-horiz {
            flex-direction: column;
            align-items: stretch;
        }

        .half-image,
        .flex6col {
            width: 100%;
            padding: 1rem 0;
            text-align: left;
        }

        .section {
            padding: 2rem 1rem;
        }

        .check-item {
            font-size: 0.95rem;
        }
    }