/* ============================================================
   BADONGA — Service profile pages styles
   Used by tech-service-profile.html and
   contractor-service-profile.html (identical layout).
   ============================================================ */

/* Dark page header */
.sp-header {
  background: var(--gray-950);
  color: #fff;
  padding: 7rem 0 4rem;
}
.sp-back {
  display: inline-block;
  color: var(--yellow-400);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.sp-back:hover { color: var(--yellow-300); }
.sp-tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--yellow-400);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.sp-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sp-header h1 { font-size: 3rem; }
}
.sp-intro { color: var(--gray-300); max-width: 48rem; line-height: 1.7; }

/* Not-found state */
.sp-notfound {
  min-height: 100vh;
  background: var(--gray-950);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
}
.sp-notfound h1 { font-size: 1.875rem; margin-bottom: 1rem; color: #fff; }
@media (min-width: 768px) {
  .sp-notfound h1 { font-size: 2.25rem; }
}
.sp-notfound p { color: var(--gray-400); margin-bottom: 2rem; }
.sp-notfound a {
  display: inline-block;
  background: var(--yellow-400);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}
.sp-notfound a:hover { background: var(--yellow-300); }

/* Subservices section */
.sp-body { padding: 4rem 0; background: #fff; }
.sp-body h2 { font-size: 1.5rem; color: var(--gray-900); margin-bottom: 0.75rem; }
@media (min-width: 768px) {
  .sp-body h2 { font-size: 1.875rem; }
}
.sp-hint { color: var(--gray-600); font-size: 0.875rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) {
  .sp-hint { font-size: 1rem; }
}
.sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .sub-grid { grid-template-columns: repeat(3, 1fr); }
}
.sub-card {
  text-align: left;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.sub-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.sub-card > img { width: 100%; height: 15rem; object-fit: contain; }
.sub-card .sub-body { padding: 1.5rem; }
.sub-card h3 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.sub-card p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }
.sub-card .sub-explore {
  color: var(--yellow-600);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s;
  padding: 0;
}
.sub-card .sub-explore:hover { color: var(--yellow-500); }

/* Subservice overlay */
.sp-modal-panel { padding: 1.5rem; }
@media (min-width: 768px) {
  .sp-modal-panel { padding: 2rem; }
}
.sp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sp-modal-tag {
  display: inline-block;
  background: var(--yellow-100);
  color: var(--yellow-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.sp-modal-head h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .sp-modal-head h3 { font-size: 1.875rem; }
}
.sp-modal-head p { color: var(--gray-700); line-height: 1.7; }
.sp-modal-close {
  flex-shrink: 0;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.sp-modal-close:hover { background: var(--gray-200); }
.sp-highlights { margin-bottom: 2rem; }
.sp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .sp-highlights li { font-size: 1rem; }
}
.sp-highlights .dot { color: var(--yellow-500); margin-top: 0.125rem; }
.sp-examples-title {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .sp-examples-title { font-size: 1.25rem; }
}
.sp-examples {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.sp-example {
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .sp-example { min-width: 340px; }
}
.sp-example img { width: 100%; height: 13rem; object-fit:contain ; }
.sp-example .ex-body { padding: 1rem; }
.sp-example .ex-title { color: var(--gray-800); font-weight: 600; font-size: 0.875rem; }
.sp-example .ex-sub { color: var(--gray-500); font-size: 0.75rem; margin-top: 0.25rem; }
