/* ==========================================================================
   Service Page Styles
   Base: 1rem = 10px (62.5% html). Colours/fonts match homepage redesign.
   ========================================================================== */

:root {
  --sp-blue:        #0072c6;
  --sp-blue-dark:   #004a8a;
  --sp-dark:        #1a1a2e;
  --sp-grey:        #5a6677;
  --sp-border:      #e2e6eb;
  --sp-bg-light:    #f6f8fa;
  --sp-white:       #ffffff;
}

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */

.service-section-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--sp-dark);
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
}


/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.service-intro {
  padding: 4rem 0 3rem;
}


.service-intro p {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--sp-grey);
  margin-bottom: 1.4em;
}

.service-intro h2,
.service-intro h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--sp-dark);
  font-size: 2rem;
}

.service-intro ul,
.service-intro ol {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--sp-grey);
  padding-left: 2rem;
  margin-bottom: 1.4em;
}

/* --------------------------------------------------------------------------
   Key Considerations — icon card grid
   -------------------------------------------------------------------------- */

.service-considerations {
  padding: 4rem 0 4.5rem;
  background: var(--sp-bg-light);
}

.considerations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.consideration-card {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.consideration-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sp-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.consideration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 50, 100, 0.10);
  border-color: #c0d4e8;
}

.consideration-card:hover::after {
  transform: scaleX(1);
}

.consideration-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.consideration-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.consideration-card__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--sp-dark);
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.consideration-card__text {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--sp-grey);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Inspection, Validation & Testing
   -------------------------------------------------------------------------- */

.service-inspection {
  padding: 1.5rem 0 4rem;
}

.service-inspection p {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--sp-grey);
  margin-bottom: 1.4em;
}

.service-inspection strong {
  color: var(--sp-dark);
}

.service-inspection ul,
.service-inspection ol {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--sp-grey);
  padding-left: 2rem;
  margin-bottom: 1.4em;
}

/* --------------------------------------------------------------------------
   Related Project
   -------------------------------------------------------------------------- */

.service-related-project {
  padding: 4rem 0 4.5rem;
  background: var(--sp-bg-light);
}

.related-project-card {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-top: 4px solid var(--sp-blue);
  background: var(--sp-white);
  box-shadow: 0 4px 20px rgba(0, 50, 100, 0.10);
}

.related-project-card__image {
  flex: 0 0 45%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.related-project-card__content {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-project-card__content h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--sp-dark);
  margin: 0 0 1.2rem;
  line-height: 1.3;
}

.related-project-card__content p {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--sp-grey);
  margin: 0 0 2.5rem;
}

.related-project-card__cta {
  display: inline-block;
  background-color: var(--sp-blue);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2.2rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.related-project-card__cta:visited,
.related-project-card__cta:hover,
.related-project-card__cta:focus {
  background-color: var(--sp-blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Related Articles feed
   -------------------------------------------------------------------------- */

.service-articles {
  padding: 4rem 0 5rem;
  background: var(--sp-bg-light);
}

.service-article-outer {
  margin-bottom: 2rem;
  display: flex;
}

.service-article {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-top: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 50, 100, 0.10);
  border-top-color: var(--sp-blue);
  text-decoration: none;
  color: inherit;
}

.service-article__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-article__body {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-article__body h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sp-dark);
  margin: 0 0 1rem;
  line-height: 1.4;
  flex: 1;
  border-bottom: none;
  min-height: 0;
}

.service-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sp-border);
}

.service-article__date {
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  color: var(--sp-grey);
}

.service-article__read-more {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-blue);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

  .related-project-card {
    flex-direction: column;
  }

  .related-project-card__image {
    flex: none;
    min-height: 240px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .service-intro,
  .service-considerations,
  .service-inspection,
  .service-related-project,
  .service-articles {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .considerations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-section-heading {
    font-size: 2rem;
  }
}
