/* ============================================================
   SERVICE INDEX PAGE — service.css
   Matches the design screenshot exactly
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Open+Sans:wght@400;500;700&display=swap");

/* ── Tokens ── */
:root {
  --cyan: #009ab5;
  --yellow: #f8cc00;
  --text: #111111;
  --gray: #555555;
  --white: #ffffff;
  --light: #f8f9fa;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--gray);
  line-height: 1.6;
}

.text-cyan {
  color: var(--cyan) !important;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 300px;
  background: url("/images/service-images/Area-Rug-Repair.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0,0,0,0.48); */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  color: #fff;
}

.hero-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  font-family: "Open Sans Condensed", sans-serif;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.hero-button {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  padding: 13px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease;
}

.hero-button:hover {
  background: #007a90;
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   2. SERVICES CARDS SECTION
   ============================================================ */
.services-cards-section {
  background: var(--light);
  padding: 50px 0 36px;
}

.services-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.services-header {
  text-align: center;
  margin-bottom: 36px;
}

.services-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #262262;
  margin-bottom: 10px;
}

.services-main-title {
  font-size: 30px;
  font-weight: 800;
  color: #262262;
  margin: 0 0 8px;
  font-family: "Open Sans Condensed", sans-serif;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
}

/* Grid — 4 columns */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* View all / less row */
.view-all-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 4px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 15px 32px;
  border-radius: 30px;
  background: #f25b2a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.view-all-link:hover {
  background: #262262;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Card ── */
.service-list-card {
  background: #fff;
  /* border-radius: 14px; */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

/* Card media */
.service-media {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Image with side padding + rounded top — exact match to design */
.service-media>a:not(.arrow-btn) {
  display: block;
}

.service-media img {
  display: block;
  /* width: calc(100% - 32px); */
  height: auto;
  /* border-top-left-radius: 40px; */
  /* border-top-right-radius: 40px; */
  /* margin: 40px 16px 0; */
  transition: transform 0.35s ease;
}

.service-list-card:hover .service-media img {
  transform: scale(1.04);
}

/* Yellow discount badge */
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.1;
  z-index: 2;
}

.pct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #000;
  color: var(--yellow);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

/* Teal arrow button */
.arrow-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--cyan);
  color: #fff;
  width: 52px;
  height: 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  z-index: 2;
  transition: background 0.2s;
}

.arrow-btn:hover {
  background: #007a90;
  color: #fff;
  text-decoration: none;
}

/* Card text */
.service-body {
  padding: 12px 14px 16px;
  flex: 1;
  text-align: left;
}

.service-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.3;
}

.service-body h3 a {
  color: inherit;
  text-decoration: none;
}

.service-body h3 a:hover {
  color: var(--cyan);
}

.service-body p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-slice__container {
    gap: 28px;
  }
}

@media (max-width: 768px) {

  /* Hero */
  .hero-section {
    min-height: 300px;
    padding: 60px 20px;
  }

  .hero-heading {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Services */
  .services-cards-section {
    padding: 36px 0 24px;
  }

  .services-main-title {
    font-size: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-media img {
    height: auto;
  }

  /* CTA */
  .cta-content {
    max-width: 100%;
    border-radius: 24px;
    padding: 50px 20px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-text {
    font-size: 15px !important;
  }

  /* About */
  .about-slice__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-slice__content h2 {
    font-size: 24px;
  }

  /* Contact */
  .contact-cta__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-heading {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-media img {
    height: auto;
    /* margin: 14px 10px 0; */
    width: calc(100% - 20px);
  }

  .cta-content::before,
  .cta-content::after {
    width: 120px;
    height: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-form-outline,
  .btn-form-cyan {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-heading {
    font-size: 24px;
  }
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  position: relative;
  padding: 60px 0;
  background: transparent;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/cta-bg.png) center center / cover no-repeat;
  z-index: 0;
}

/* Soft gradient overlay so text stays readable */
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(214, 230, 247, 0.92) 0%,
      rgba(214, 230, 247, 0.7) 60%,
      rgba(214, 230, 247, 0.4) 100%);
  z-index: 0;
}

/* ── Content ── */
.cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-content h2 {
  font-size: 34px;
  font-weight: 800;
  color: #1b3a5c;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.cta-content p {
  font-size: 18px;
  color: #1b3a5c;
  margin: 0;
  font-weight: 500;
}

/* ── Button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f26522;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.cta-btn:hover {
  background: #d94c1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }

  .cta-row {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  .cta-content p {
    font-size: 16px;
  }

  .cta-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 15px 32px;
  border-radius: 30px;
  background: #f25b2a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hs-btn:hover {
  background: #262262;
  color: #fff;
  transform: translateY(-2px);
  /* box-shadow: 0 10px 20px rgba(242, 91, 42, 0.35); */
}

/* ========================================= TESTIMONIALS SECTION ========================================= */
.testimonials-section {
  padding: 100px 0;
  background: #ffffff;
  background: url(../images/testimonials-bg.png) center center / auto no-repeat local;
}

.testimonials-row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

/* ── Left Title ── */
.testimonials-title {
  flex: 0 0 260px;
}

.testimonials-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1b3a5c;
  margin-bottom: 10px;
}

.testimonials-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1b3a5c;
  line-height: 1.15;
  margin: 0;
}

/* ── Right Slider ── */
.testimonials-slider-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

/* Grid stacking: all slides share the same cell so the tallest one naturally expands the container — no fixed heights needed */
.testimonials-track {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.testimonial-slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Quote Card ── */
.testimonial-card {
  border: 1px solid #c8ddf5;
  background: #ffffff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card p {
  font-size: 18px;
  line-height: 1.7;
  color: #000;
  margin: 0 0 24px;
}

/* ── Author ── */
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author strong {
  font-size: 18px;
  font-weight: 700;
  color: #1b3a5c;
}

.testimonial-author span {
  font-size: 18px;
  color: #000;
}

/* ── Dots ── */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonials-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.testimonials-dots .dot.active {
  background: #1b1b3a;
  transform: scale(1.1);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .testimonials-row {
    flex-direction: column;
    gap: 36px;
    align-items: center;
  }

  .testimonials-title {
    flex: 0 0 auto;
    text-align: center;
  }

  .testimonials-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 70px 0;
  }

  .testimonials-title h2 {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 28px;
  }
}

@media (max-width: 575px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-title h2 {
    font-size: 26px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card p {
    font-size: 15px;
  }
}