/* Services pages styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #fff;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Top accent bar ── */
.services-accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), #3a7ae8);
  width: 100%;
}

/* ── Hero Section ── */
.services-hero {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 6rem) clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  background: #fff;
  max-width: 1320px;
  margin: 0 auto;
}

.services-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-light-red);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.services-hero__headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #111;
}

.services-hero__headline span {
  display: block;
}

.services-hero__description-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.services-hero__description {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  padding-left: 1.5rem;
  border-left: 3px solid var(--cta-accent);
}

/* ── Divider ── */
.services-divider {
  border: none;
  height: 1px;
  background: #e5e5e5;
  margin: 0 clamp(1.25rem, 5vw, 6rem);
  max-width: 1320px;
}

/* ── Featured Service (large card layout) ── */
.service-feature {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

/* Reversed variant: place image first, then content (no rtl hack) */
.service-feature--reversed .service-feature__content {
  order: 2;
}

.service-feature--reversed .service-feature__image {
  order: 1;
}

.service-feature__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-feature__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-feature__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-feature__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-feature__label-divider {
  width: 2px;
  height: 16px;
  background: #ccc;
}

.service-feature__label-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
}

.service-feature__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #111;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.service-feature__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  max-width: 30rem;
}

.service-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.service-feature__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  color: #555;
  background: transparent;
  text-transform: uppercase;
}

.service-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cta-accent);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-height: 44px;
  transition: gap 0.2s ease;
}

.service-feature__link:hover {
  gap: 0.7rem;
}

.service-feature__link:focus-visible {
  outline: 2px solid var(--cta-accent);
  outline-offset: 3px;
}

.service-feature__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-feature__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

/* ── Alt-background service row (full-width gray) ── */
.service-feature--alt-bg {
  background: #f5f5f5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 5vw, 6rem);
  max-width: none;
  align-items: center;
}

.service-feature--alt-bg > * {
  max-width: 1320px;
}

/* ── Bottom cards row ── */
.services-bottom {
  padding: 0 clamp(1.25rem, 5vw, 6rem) clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1320px;
  margin: 0 auto;
}

.service-bottom-card {
  border-radius: 14px;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-bottom-card--light {
  background: #f5f5f5;
  color: #111;
}

.service-bottom-card--dark {
  background: var(--primary-blue);
  color: #fff;
}

.service-bottom-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-bottom-card--dark .service-bottom-card__icon {
  background: rgba(255, 255, 255, 0.15);
}

.service-bottom-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #555;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-bottom-card--dark .service-bottom-card__icon svg {
  stroke: #fff;
}

.service-bottom-card__title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.service-bottom-card__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.85;
}

.service-bottom-card--light .service-bottom-card__desc {
  color: #666;
}

.service-bottom-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-height: 44px;
  transition: gap 0.2s ease;
}

.service-bottom-card--light .service-bottom-card__link {
  color: var(--cta-accent);
}

.service-bottom-card--dark .service-bottom-card__link {
  color: var(--accent-light-red);
}

.service-bottom-card__link:hover {
  gap: 0.7rem;
}

.service-bottom-card__link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
  .services-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .services-hero__description-wrap {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .service-feature,
  .service-feature--alt-bg {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile the reversed image should appear above the content */
  .service-feature--reversed .service-feature__content {
    order: 2;
  }

  .service-feature--reversed .service-feature__image {
    order: 1;
  }

  .services-bottom {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .service-feature__image {
    border-radius: 8px;
  }

  .service-feature__title {
    font-size: 1.5rem;
  }
}
