/* ==========================================================================
   Service page — layout from Evolve-SEO 02-web-design-development.html
   Tokens from variables.css
   ========================================================================== */

.service-page {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

.service-page * {
  box-sizing: border-box;
}

.service-page__container {
  width: min(100% - (var(--page-inline) * 2), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Hero split
   -------------------------------------------------------------------------- */

.service-hero {
  padding: var(--space-8) 0 var(--space-9);
}

.service-hero__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: stretch;
}

.service-hero__copy {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  padding: var(--space-1) 0;
  gap: var(--space-7);
}

.service-hero__lead {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 2.1vw, var(--text-xl));
  font-weight: var(--weight-semibold);
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.service-hero__sub {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.service-hero__media {
  width: 100%;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #e5e7eb;
}

.service-hero__media.is-placeholder {
  min-height: 440px;
}

.service-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   Content blocks
   -------------------------------------------------------------------------- */

.service-block {
  padding: var(--space-8) 0;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.service-block__title {
  margin: 0 0 var(--space-7);
  max-width: 580px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  color: var(--heading);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
}

.service-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.service-three-col__card p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Icon grid
   -------------------------------------------------------------------------- */

.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-8);
  row-gap: var(--space-7);
}

.service-icon-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-service-icon-bg);
  color: var(--color-navy);
}

.service-icon svg {
  width: 35px;
  height: 35px;
  stroke: var(--color-navy);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon svg .icon-accent {
  fill: var(--color-lime);
  stroke: none;
}

.service-icon-item h2,
.service-icon-item__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--heading);
  letter-spacing: -0.015em;
  line-height: var(--leading-tight);
}

.service-icon-item__title a {
  color: inherit;
  text-decoration: none;
}

.service-icon-item__title a:hover,
.service-icon-item__title a:focus-visible {
  color: var(--link);
}

.service-icon-item p {
  margin: 0;
  max-width: 100%;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.service-icon-item p + p {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   FAQ steps
   -------------------------------------------------------------------------- */

.service-steps {
  border-top: 1px solid var(--border);
}

.service-step {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.service-step__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.service-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-lime);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.service-step__left h3 {
  margin: 0;
  max-width: 340px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--heading);
}

.service-step__right p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-muted);
}

.service-step__right p + p {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Bottom CTA + related
   -------------------------------------------------------------------------- */

.service-bottom {
  /* margin-top: var(--space-6); */
  padding: var(--space-8) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.service-bottom__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  align-items: start;
}

.service-cta-box h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.service-cta-box p {
  margin: 0 0 var(--space-5);
  max-width: 420px;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-body);
}

.service-cta-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-cta-box .btn:hover,
.service-cta-box .btn:focus-visible {
  background: var(--cta-bg-hover);
  box-shadow: var(--shadow-md);
  color: var(--cta-text);
  text-decoration: none;
}

.service-related-box h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--heading);
  line-height: var(--leading-tight);
}

.service-related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--heading);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.service-related-list a:hover,
.service-related-list a:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--link);
  text-decoration: none;
}

.service-related-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-service-arrow-bg);
  border: 1px solid var(--color-service-arrow-border);
  color: var(--color-service-icon);
  transition: background-color var(--transition);
}

.service-related-list a:hover .service-related-arrow,
.service-related-list a:focus-visible .service-related-arrow {
  background: var(--color-service-arrow-hover);
}

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

@media (max-width: 900px) {
  .service-hero {
    padding: var(--space-7) 0;
  }

  .service-hero__grid,
  .service-three-col,
  .service-icon-grid,
  .service-step,
  .service-bottom__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .service-hero__media,
  .service-hero__media.is-placeholder,
  .service-hero__image {
    min-height: 280px;
    object-position: right;
  }

  .service-block {
    padding: var(--space-7) 0;
  }

  .service-hero__copy {
    gap: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-cta-box .btn,
  .service-related-list a,
  .service-related-arrow {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Service work — horizontal Swiper carousel (all breakpoints)
   -------------------------------------------------------------------------- */

#service-work.evolve-work--desktop-carousel {
  overflow-x: hidden;
}

/* Keep homepage-style left/right gutters (override mobile full-bleed container). */
#service-work.evolve-work--desktop-carousel .evolve-work__container {
  width: min(100% - (var(--page-inline) * 2), var(--container));
  margin-inline: auto;
  padding-inline: 0;
}

#service-work.evolve-work--desktop-carousel .evolve-work__swiper.swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 2.4rem;
}

#service-work.evolve-work--desktop-carousel .evolve-work__grid,
#service-work.evolve-work--desktop-carousel .evolve-work__grid.swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0 !important;
  grid-template-columns: none !important;
}

#service-work.evolve-work--desktop-carousel .evolve-project,
#service-work.evolve-work--desktop-carousel .evolve-project.swiper-slide,
#service-work.evolve-work--desktop-carousel .evolve-project--wide {
  flex-shrink: 0;
  height: auto;
  min-width: 0;
  margin: 0;
  grid-column: auto !important;
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav {
  position: absolute;
  z-index: 3;
  top: calc(175px - 1.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-white) 35%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--work-bg, var(--bg-color)) 78%, transparent);
  color: var(--color-white);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    color var(--transition, 0.2s ease),
    background var(--transition, 0.2s ease),
    border-color var(--transition, 0.2s ease),
    opacity var(--transition, 0.2s ease);
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav svg {
  display: block;
  width: 16px;
  height: 16px;
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav--prev {
  left: 0.75rem;
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav--next {
  right: 0.75rem;
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav:hover,
#service-work.evolve-work--desktop-carousel .evolve-work__nav:focus-visible {
  border-color: var(--work-accent, var(--color-lime));
  background: var(--work-accent, var(--color-lime));
  color: var(--color-ink);
  outline: none;
}

#service-work.evolve-work--desktop-carousel .evolve-work__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

#service-work.evolve-work--desktop-carousel .evolve-work__pagination {
  position: relative !important;
  inset: auto !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-5);
}

#service-work.evolve-work--desktop-carousel .evolve-work__pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-white) 35%, transparent);
  opacity: 1;
  transition:
    width 250ms ease,
    background 250ms ease;
}

#service-work.evolve-work--desktop-carousel .evolve-work__pagination .swiper-pagination-bullet-active {
  width: 25px;
  background: var(--work-accent, var(--color-lime));
}

@media (max-width: 767px) {
  /* Same full-bleed track + padded header/dots as homepage Our Work. */
  #service-work.evolve-work--desktop-carousel .evolve-work__container {
    width: 100%;
  }

  #service-work.evolve-work--desktop-carousel .evolve-work__header,
  #service-work.evolve-work--desktop-carousel .evolve-work__pagination {
    padding-inline: var(--page-inline);
  }

  #service-work.evolve-work--desktop-carousel .evolve-work__nav {
    display: none;
  }

  #service-work.evolve-work--desktop-carousel .evolve-work__swiper.swiper {
    overflow: visible;
  }

  #service-work.evolve-work--desktop-carousel .evolve-project__view {
    display: none;
  }
}
