/* Roof 2 Ridges — Services section variants (shared background #1A2A3A) */

.services-section-v1,
.services-section-v2,
.services-section-v3 {
  background-color: #1a2a3a;
  color: #ffffff;
  padding: 80px clamp(16px, 5vw, 80px);
  font-family: "Barlow", sans-serif;
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
}

.services-section-v1 .container,
.services-section-v2 .container,
.services-section-v3 .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.services-section-v1 .heading,
.services-section-v2 .heading,
.services-section-v3 .heading {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #e8500a;
  margin: 0 0 24px;
}

.services-section-v1 .intro,
.services-section-v2 .intro,
.services-section-v3 .intro {
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 40px;
  max-width: 42rem;
}

.services-section-v2 .heading,
.services-section-v2 .intro,
.services-section-v3 .heading,
.services-section-v3 .intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.services-section-v3 .intro {
  max-width: 800px;
  margin-bottom: 48px;
}

/* —— Variant 1: stacked service rows —— */
.services-section-v1 .service-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-section-v1 .service-stack li {
  padding: 22px clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background: #243447;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.services-section-v1 .service-stack h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  color: #f4793a;
  margin: 0 0 8px;
  line-height: 1.2;
}

.services-section-v1 .service-stack p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.services-section-v1 .service-group-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 24px 0 12px;
}

.services-section-v1 .service-group-label:first-of-type {
  margin-top: 0;
}

/* —— Variant 2: card grid —— */
.services-section-v2 .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.services-section-v2 .service-card {
  padding: 24px 20px;
  border-radius: 8px;
  background: #243447;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.services-section-v2 .service-card h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.25;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
}

.services-section-v2 .service-card .card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8500a;
  margin-bottom: 10px;
}

.services-section-v2 .service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* —— Variant 3: two segment columns (site default) —— */
.services-section-v3 .service-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.services-section-v3 .segment {
  background-color: #243447;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  min-width: 0;
}

.services-section-v3 .segment-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.services-section-v3 .segment-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  text-transform: uppercase;
  color: #f4793a;
  margin: 0 0 10px;
}

.services-section-v3 .segment-description {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.services-section-v3 .service-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-section-v3 .service-items li {
  margin-bottom: 25px;
  position: relative;
  padding-left: 30px;
}

.services-section-v3 .service-items li:last-child {
  margin-bottom: 0;
}

.services-section-v3 .service-items li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: #e8500a;
  font-size: 1.5em;
  line-height: 1;
}

.services-section-v3 .service-items h3,
.services-section-v3 .service-items h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #ffffff;
  margin: 0 0 8px;
  text-transform: uppercase;
  line-height: 1.25;
}

.services-section-v3 .service-items p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .services-section-v2 .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-section-v3 .service-segments {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-section-v1,
  .services-section-v2,
  .services-section-v3 {
    padding: 56px clamp(16px, 4vw, 28px);
  }

  .services-section-v1 .intro,
  .services-section-v2 .intro,
  .services-section-v3 .intro {
    margin-bottom: 32px;
  }

  .services-section-v3 .service-items li {
    padding-left: 26px;
  }
}

@media (max-width: 560px) {
  .services-section-v2 .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-section-v1 .heading,
  .services-section-v2 .heading,
  .services-section-v3 .heading {
    font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  }

  .services-section-v1 .service-stack li {
    padding: 18px 16px;
  }
}
