/* === Service Template Styles === */
/* Shared styles for all individual service sub-pages */

/* ----------------------------------------
   SECTION 1: HERO
---------------------------------------- */
.service-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: var(--space-32) var(--space-6) var(--space-20);
}

.service-hero .container {
  position: relative;
  z-index: var(--z-base);
}

.service-hero-content {
  max-width: 700px;
  width: 100%;
}

/* Breadcrumb */
.service-breadcrumb {
  margin-bottom: var(--space-6);
}

.service-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-breadcrumb li {
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.service-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.service-breadcrumb a:hover {
  color: var(--color-text-on-dark);
}

.service-breadcrumb li[aria-current="page"] {
  color: var(--color-text-on-dark);
  font-weight: var(--font-weight-semibold);
}

.breadcrumb-sep {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Hero headings */
.service-hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text-on-dark);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: var(--space-4);
}

.service-hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: var(--space-2);
  flex-shrink: 0;
}

/* ----------------------------------------
   SECTION 2: INTRO / OVERVIEW
---------------------------------------- */
.service-intro {
  background: var(--color-bg);
}

.service-split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

.service-split-text {
  flex: 1 1 380px;
  min-width: 0;
}

.service-split-image {
  flex: 1 1 380px;
  min-width: 0;
}

.service-intro-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 460px;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow-lg);
}

.service-intro .heading-lg {
  color: var(--color-text);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.service-intro-body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.service-benefits-list {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

.benefit-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ----------------------------------------
   SECTION 3: FEATURES / WHY CHOOSE US
---------------------------------------- */
.service-features {
  background: var(--color-bg-dark, #002d7a);
  position: relative;
  overflow: hidden;
}

.service-features-header {
  text-align: center;
  margin-bottom: var(--space-12);
  width: 100%;
}

.service-features-header .section-label {
  color: var(--color-primary);
}

.service-features-title {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.service-features-subtitle {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.service-features-grid {
  width: 100%;
}

.service-feature-card {
  background: color-mix(in srgb, var(--color-bg-dark, #002d7a) 80%, #fff);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--duration-normal) var(--ease-default), box-shadow var(--duration-normal) var(--ease-default);
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-feature-icon {
  width: 26px;
  height: 26px;
  color: var(--color-text-on-dark);
}

.service-feature-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-dark);
  line-height: var(--line-height-snug);
  margin: 0;
}

.service-feature-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.68);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ----------------------------------------
   SECTION 4: PROCESS / HOW IT WORKS
---------------------------------------- */
.service-process {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.service-process-header {
  text-align: center;
  margin-bottom: var(--space-12);
  width: 100%;
}

.service-process-header .section-label {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: var(--letter-spacing-widest);
}

.service-process-title {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.service-process-subtitle {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.service-process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  width: 100%;
  counter-reset: none;
  justify-content: center;
}

.service-process-step {
  flex: 1 1 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.service-process-num {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-dark);
  flex-shrink: 0;
}

.service-process-step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-process-step-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-on-dark);
  margin: 0;
  line-height: var(--line-height-snug);
}

.service-process-step-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ----------------------------------------
   SECTION 5: FAQ ACCORDION
---------------------------------------- */
.service-faq {
  background: var(--color-bg-secondary);
}

.service-faq-header {
  text-align: center;
  margin-bottom: var(--space-10);
  width: 100%;
}

.service-faq-header .heading-lg {
  color: var(--color-text);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.service-faq-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.faq-contact-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: var(--font-weight-medium);
}

.faq-contact-link:hover {
  color: var(--color-primary-dark);
}

.service-accordion {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* ----------------------------------------
   SECTION 6: RELATED SERVICES
---------------------------------------- */
.service-related {
  background: var(--color-bg);
}

.service-related-header {
  text-align: center;
  margin-bottom: var(--space-10);
  width: 100%;
}

.service-related-header .heading-lg {
  color: var(--color-text);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.service-related-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.service-related-subtitle a {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.service-related-subtitle a:hover {
  color: var(--color-primary-dark);
}

.service-related-grid {
  width: 100%;
}

.service-related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  transition: transform var(--duration-normal) var(--ease-default), box-shadow var(--duration-normal) var(--ease-default);
}

.service-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.service-related-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-related-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary-dark);
}

.service-related-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-height-snug);
}

.service-related-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  flex: 1;
}

.service-related-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default);
  margin-top: auto;
}

.service-related-link:hover {
  color: var(--color-primary-dark);
  gap: var(--space-3);
}

.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-default);
}

.service-related-link:hover .link-arrow {
  transform: translateX(3px);
}

/* ----------------------------------------
   SECTION 7: SERVICE AREAS
---------------------------------------- */
.service-areas {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.service-areas::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

.service-areas-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: var(--z-base);
}

.service-areas-text {
  flex: 1 1 340px;
  min-width: 0;
}

.service-areas-text .section-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
}

.service-areas-title {
  color: var(--color-text-on-dark);
  margin: var(--space-2) 0 var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-areas-body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-8);
}

.service-areas-grid {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-content: flex-start;
}

.service-area-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.14);
  border: var(--border-width) solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
}

.service-area-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.service-area-pill i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ----------------------------------------
   SECTION 8: CTA BANNER
---------------------------------------- */
.service-cta-banner {
  background: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.service-cta-banner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

.service-cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

.service-cta-inner {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.service-cta-text {
  flex: 1 1 auto;
}

.service-cta-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-dark);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-3);
}

.service-cta-subtext {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  flex-shrink: 0;
}

/* Outline white button for use on dark/colored backgrounds */
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--color-text-on-dark);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-text-on-dark);
  transform: translateY(-1px);
}

.btn-outline-white:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ----------------------------------------
   SECTION LABEL VARIANT (on dark/colored bg)
---------------------------------------- */
.section-label-light {
  color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------
   RESPONSIVE BREAKPOINTS
---------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .service-hero-title {
    font-size: var(--font-size-4xl);
  }

  .service-process-step {
    flex: 1 1 180px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .service-hero {
    min-height: 460px;
    padding: var(--space-24) var(--space-6) var(--space-16);
  }

  .service-hero-title {
    font-size: var(--font-size-3xl);
  }

  .service-hero-subtitle {
    font-size: var(--font-size-base);
  }

  .service-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-split {
    flex-direction: column;
    gap: var(--space-8);
  }

  .service-split-text,
  .service-split-image {
    flex: 1 1 100%;
  }

  .service-intro-img {
    max-height: 300px;
  }

  .service-process-steps {
    flex-direction: column;
    align-items: center;
  }

  .service-process-step {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .service-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .service-cta-actions {
    width: 100%;
    justify-content: center;
  }

  .service-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-cta-heading {
    font-size: var(--font-size-2xl);
  }
}
