/* =========================================================
   Colombo Diving and Marine Services (Pvt) Ltd
   Services listing + service detail page styles
   ========================================================= */

/* ---------- Service detail ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: center;
}

.svc-detail-img img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  height: 420px;
  width: 100%;
  object-fit: cover;
}

.svc-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(229, 54, 50, 0.12);
  color: var(--red);
  font-size: 22px;
  font-weight: 800;
  border-radius: 8px;
  margin-bottom: 12px;
}

.svc-detail-body h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 16px;
  line-height: 1.25;
}

.svc-detail-body > p {
  color: #000000;
  font-size: 15px;
  margin-bottom: 18px;
}

.svc-points {
  margin-bottom: 24px;
}

.svc-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #2c3e50;
}

.svc-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: rgba(254, 90, 4, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Related services ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.related-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.related-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.related-img {
  height: 170px;
  background-size: cover;
  background-position: center;
}

.related-item h4 {
  color: var(--navy);
  font-size: 15px;
  margin: 18px 18px 8px;
  line-height: 1.4;
}

.related-item .view-more {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: auto 18px 18px;
}

.related-item .view-more svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.25s;
}

.related-item:hover .view-more svg {
  transform: translateX(5px);
}

/* ---------- Services listing name cards ---------- */
.svc-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 20px;
}

.svc-name-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(50, 82, 120, 0.18);
  border-left: 4px solid #f26c2c;
  border-radius: 10px;
  padding: 18px 22px 18px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 110px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.svc-name-card:hover {
}

.svc-name-card:hover .svc-num {
}

.svc-name-card:hover h3 {
}

.svc-name-card:hover .view-more {
}

.svc-name-card:active {
  background: var(--accent);
  border-left-color: var(--accent);
  box-shadow: 0 4px 12px rgba(254, 90, 4, 0.35);
  transform: translateY(-1px);
}

.svc-name-card:active .svc-num {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.svc-name-card:active h3 {
  color: var(--white);
}

.svc-name-card:active .view-more {
  color: var(--white);
}

.svc-num {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(242, 108, 44, 0.14);
  color: #f26c2c;
  border-radius: 8px;
  font-size: 30px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.svc-name-card h3 {
  color: #000000;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

.svc-name-card .view-more {
  color: #f26c2c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  margin-left: auto;
}

.svc-name-card .view-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .svc-list-grid {
    grid-template-columns: 1fr;
  }

  .svc-name-card {
    min-height: 90px;
    padding: 16px 16px 16px 12px;
  }

  .svc-name-card h3 {
    font-size: 1.2rem;
  }
}

.marine-text-box {
  border: 1px solid rgba(50, 82, 120, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .svc-detail {
    grid-template-columns: 1fr;
  }

  .svc-detail-img img {
    height: 260px;
  }

  .related-grid,
  .svc-list-grid {
    grid-template-columns: 1fr;
  }
}
