/*=========================================
SERVICE CATEGORY / SUB-SERVICE PAGES
=========================================*/

:root {
  --primary: #ff6b00;
  --primary-dark: #ef5d00;
  --primary-light: #fff4ec;
  --dark: #111827;
  --text: #6b7280;
  --white: #ffffff;
  --border: #ececec;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.08);
  --transition: 0.35s ease;
}

.service-category-page {
  background: linear-gradient(180deg, #fffaf5 0%, #f5f7fb 45%, #eef4ff 100%);
  color: var(--dark);
  font-family: "Poppins", sans-serif;
}

.service-category-page a {
  text-decoration: none;
}

.service-category-header {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 157, 74, 0.22),
      transparent 22%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 107, 0, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #fffdfb 0%, #fff6ee 35%, #f7f8ff 100%);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.04);
}

.service-category-header::before,
.service-category-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.service-category-header::before {
  width: 260px;
  height: 260px;
  right: 8%;
  top: -90px;
  background: rgba(255, 118, 33, 0.18);
}

.service-category-header::after {
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: -100px;
  background: rgba(53, 108, 255, 0.09);
}

.service-category-header .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.service-category-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.15),
    rgba(255, 194, 122, 0.2)
  );
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 107, 0, 0.12);
  box-shadow: 0 12px 25px rgba(255, 111, 0, 0.08);
}

.service-category-header h1 {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.12;
  color: var(--dark);
}

.service-category-header h1 span {
  color: var(--primary);
}

.service-category-header p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.service-category-main {
  padding: 52px 0 72px;
}

.service-category-section {
  padding-bottom: 18px;
}

.service-category-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-category-heading {
  text-align: center;
  margin-bottom: 34px;
}

.service-category-heading span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.18),
    rgba(255, 233, 214, 1)
  );
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 107, 0, 0.1);
}

.service-category-heading h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.3;
  color: var(--dark);
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.business-licenses-category .service-category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.business-licenses-category .service-category-grid > .subservice-card {
  flex: 0 1 calc((100% - 48px) / 3);
}

.subservice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
  color: var(--dark);
  min-height: 196px;
}

.subservice-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 0, 0.28);
  box-shadow: 0 26px 60px rgba(255, 107, 0, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fff4ea 100%);
  filter: saturate(1.04);
}

.subservice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #ffb165 0%, var(--primary) 100%);
  border-radius: 24px 0 0 24px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.subservice-card:hover::before {
  transform: scaleY(1);
}

.subservice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.14),
    rgba(255, 193, 117, 0.28)
  );
  color: var(--primary);
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.05);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.subservice-card:hover .subservice-icon {
  background: linear-gradient(135deg, #ff8a1d 0%, #ff6b00 100%);
  color: #fff;
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 12px 24px rgba(255, 107, 0, 0.2);
}

.subservice-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.subservice-content h3 {
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--dark);
  font-weight: 600;
  margin: 0;
}

.subservice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  transition: gap 0.3s ease;
}

.subservice-card:hover .subservice-link {
  gap: 12px;
}

.subservice-group {
  margin-top: 32px;
}

.subservice-group h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 12px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.service-category-cta {
  position: relative;
  overflow: hidden;
  margin-top: 42px;
  background: linear-gradient(135deg, #0f172a 0%, #1c2a3b 32%, #ff7a1a 110%);
  border-radius: 28px;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--white);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

.service-category-cta::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.service-category-cta h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.service-category-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.service-category-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.service-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.service-category-btn.primary {
  background: linear-gradient(135deg, #ff9b2f 0%, #ff6b00 100%);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.3);
}

.service-category-btn.primary:hover {
  background: linear-gradient(135deg, #ff8e24 0%, #f25b00 100%);
  transform: translateY(-2px);
}

.service-category-btn.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-category-btn.secondary:hover {
  border-color: var(--primary);
  color: #fff;
}

.service-category-footer {
  padding: 22px 0 30px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-category-footer .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.service-category-footer a {
  color: #fff;
}

.service-category-footer a:hover {
  color: var(--primary);
}

@media (max-width: 920px) {
  .service-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-licenses-category .service-category-grid > .subservice-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  .service-category-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .service-category-header {
    padding-top: 60px;
  }

  .service-category-grid {
    grid-template-columns: 1fr;
  }

  .business-licenses-category .service-category-grid > .subservice-card {
    flex-basis: 100%;
    min-height: 196px;
  }

  .subservice-card {
    padding: 18px 16px;
    min-height: auto;
  }

  .subservice-icon {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .service-category-cta {
    padding: 24px 18px;
  }

  .service-category-cta-actions {
    width: 100%;
  }

  .service-category-btn {
    width: 100%;
  }
}
