@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Jost:wght@300;400;500&display=swap');

/* ── Our Services Section (prefixed with .mag- to avoid Bootstrap/template conflicts) ── */

.services-wrap {
  background: #0a0a0a;
  padding: 60px 40px 70px;
  font-family: 'Jost', sans-serif;
  color: #fff;
}

.services-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin: 0 0 48px;
  letter-spacing: 0.5px;
}

.services-grid {
  display: grid;
  margin-top: 30px; /* adjust as needed */
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;    
  padding: 16px;     /* clips image to the card's rounded corners */
}

/* ── Slider ── */
.slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: #1a1a1a;
  margin-bottom: 20px;
  cursor: pointer;
}

.mag-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.mag-slide.active {
  opacity: 1;
}

/* ── Slide background themes ── */
.slide-arch-1 { background: linear-gradient(135deg, #3a4a2e 0%, #5c6b45 40%, #8fa06e 100%); }
.slide-arch-2 { background: linear-gradient(135deg, #2e3a4a 0%, #455c6b 40%, #6e8fa0 100%); }
.slide-arch-3 { background: linear-gradient(135deg, #4a3a2e 0%, #6b5c45 40%, #a08f6e 100%); }

.slide-auth-1 { background: linear-gradient(135deg, #1a1a2e 0%, #2e2e4a 50%, #4a4a6b 100%); }
.slide-auth-2 { background: linear-gradient(135deg, #2e1a1a 0%, #4a2e2e 50%, #6b4a4a 100%); }
.slide-auth-3 { background: linear-gradient(135deg, #1a2e1a 0%, #2e4a2e 50%, #4a6b4a 100%); }

.slide-con-1  { background: linear-gradient(135deg, #2a2a2a 0%, #444 50%, #666 100%); }
.slide-con-2  { background: linear-gradient(135deg, #3a3020 0%, #5a4a30 50%, #7a6a4a 100%); }
.slide-con-3  { background: linear-gradient(135deg, #203040 0%, #304050 50%, #405060 100%); }

/* ── Slide inner elements ── */
.slide-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Navigation arrows ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  padding: 0;
}

.slider-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.slider-arrow.prev  { left: 10px; }
.slider-arrow.next  { right: 10px; }

/* ── Dot indicators ── */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

/* Use .mag-dot to avoid any conflict with Bootstrap .dot */
.slider-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active { background: #fff; }

/* ── Service text — all scoped inside .services-wrap to avoid leaking ── */
.mag-service-heading {
  
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
  text-align: center;
}

.services-wrap .mag-service-body {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0 0 10px;
}

.services-wrap .mag-service-body strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.services-wrap .mag-service-item {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  
}

.services-wrap .mag-service-item strong {
  font-weight: 500;
  color: #fff;
}

/* Tablet: 2 column */
@media (max-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone: 1 column */
@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

  .services-wrap {
    padding: 40px 20px 50px;
  }


#companies .container {
  max-width: 1320px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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