/*
 * HelpAlong Services page — v12.0.4
 * Loaded only on /services/. Header, footer, service post types and forms remain
 * governed by the established theme and plugin design systems.
 */

.ha-content-page--services .ha-services-hero {
  padding: clamp(2.75rem, 5vw, 4.75rem) 0 clamp(3.2rem, 5.5vw, 5rem);
  background: var(--ha-page-hero-background);
}

.ha-content-page--services .ha-services-hero::after {
  right: -190px;
  top: -210px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39, 169, 204, .12), rgba(39, 169, 204, 0) 69%);
}

.ha-content-page--services .ha-services-hero .ha-breadcrumbs {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ha-services-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: clamp(2.75rem, 6vw, 6rem);
}

.ha-services-hero__copy { min-width: 0; }

.ha-content-page--services .ha-services-hero h1 {
  max-width: 700px;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  letter-spacing: -.05em;
}

.ha-content-page--services .ha-services-hero .ha-page-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: #415a66;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.ha-services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

.ha-services-hero__actions .ha-button {
  min-height: 48px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(157, 43, 120, .17);
}

.ha-services-hero__actions .ha-button--outline {
  border-color: #b8d5de;
  color: var(--ha-navy) !important;
  box-shadow: none;
}

.ha-services-hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.ha-services-hero__reassurance li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #49616c;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.45;
}

.ha-services-hero__reassurance .ha-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: #dff3eb;
  color: #126946;
}

.ha-services-hero__media {
  position: relative;
  width: min(100%, 560px);
  margin: 0;
  justify-self: end;
}

.ha-services-hero__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -14px 18px 18px -14px;
  border: 1px solid rgba(39, 169, 204, .25);
  border-radius: 24px;
  background: #eaf7fa;
}

.ha-services-hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 22px 55px rgba(16, 43, 58, .16);
}

.ha-services-hero__media figcaption {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 410px);
  margin: -2.15rem 1rem 0 auto;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  background: rgba(16, 43, 58, .94);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(16, 43, 58, .18);
}

.ha-services-intro-section {
  padding: clamp(2.25rem, 4.5vw, 4rem) 0 0;
  background: #fff;
}

.ha-services-intro {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 3.4vw, 2.35rem);
  border: 1px solid #d4e5ea;
  border-left: 5px solid var(--ha-primary);
  border-radius: 16px;
  background: linear-gradient(118deg, #f7fbfc 0%, #fff 65%);
  box-shadow: 0 14px 38px rgba(16, 43, 58, .055);
}

.ha-services-intro__heading .ha-eyebrow { margin-bottom: .7rem; }

.ha-services-intro__heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.14;
}

.ha-services-intro__copy {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid #d8e7eb;
  color: #49616c;
  font-size: 1rem;
  line-height: 1.7;
}

.ha-services-intro__copy > :first-child {
  color: #27434f;
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  font-weight: 650;
}

.ha-services-intro__copy > :last-child { margin-bottom: 0; }

.ha-content-page--services .ha-services-index {
  padding: clamp(3.25rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5.75rem);
  background: linear-gradient(180deg, #fff 0%, #f7fafb 100%);
}

.ha-content-page--services .ha-services-index .ha-archive-section-head {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.35rem);
  padding-bottom: 1.25rem;
}

.ha-content-page--services .ha-services-index .ha-archive-section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.ha-content-page--services .ha-services-index .ha-archive-section-head p:last-child {
  max-width: 700px;
}

.ha-content-page--services .ha-archive-count {
  min-height: 42px;
  padding: .55rem .9rem;
  border-color: #c8dfe6;
  background: #eef7f9;
  font-size: .78rem;
}

.ha-content-page--services .ha-services-index .ha-services-grid--archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.ha-content-page--services .ha-services-index .ha-service-card {
  min-height: 278px;
  padding: 1.4rem;
  border: 1px solid #d4e3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(16, 43, 58, .055);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ha-content-page--services .ha-services-index .ha-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--ha-primary);
  opacity: 0;
  transition: opacity .2s ease;
}

.ha-content-page--services .ha-services-index .ha-service-card::after { display: none; }

.ha-content-page--services .ha-services-index .ha-service-card:hover,
.ha-content-page--services .ha-services-index .ha-service-card:focus-within {
  transform: translateY(-3px);
  border-color: #b9d5dd;
  box-shadow: 0 16px 34px rgba(16, 43, 58, .09);
}

.ha-content-page--services .ha-services-index .ha-service-card:hover::before,
.ha-content-page--services .ha-services-index .ha-service-card:focus-within::before { opacity: 1; }

.ha-content-page--services .ha-services-index .ha-service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--ha-primary);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(157, 43, 120, .18);
}

.ha-content-page--services .ha-services-index .ha-service-card h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}

.ha-content-page--services .ha-services-index .ha-service-card h3 a {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.ha-content-page--services .ha-services-index .ha-service-card h3 a:hover { text-decoration: underline; }

.ha-content-page--services .ha-services-index .ha-service-card p {
  margin-bottom: 1.1rem;
  color: #536a75;
  font-size: .9rem;
  line-height: 1.62;
}

.ha-content-page--services .ha-services-index .ha-service-card .ha-text-link {
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid #e1eaed;
  font-size: .88rem;
}

.ha-content-page--services .ha-services-index .ha-service-card .ha-text-link .ha-icon {
  width: 19px;
  height: 19px;
}

.ha-content-page--services .ha-services-cta {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border: 0;
  background: linear-gradient(118deg, var(--ha-navy), #183f54);
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.ha-content-page--services .ha-services-cta .ha-container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.35rem;
}

.ha-services-cta__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--ha-primary);
  color: #fff;
}

.ha-services-cta__icon .ha-icon { width: 26px; height: 26px; }

.ha-services-cta__copy h2 {
  margin-bottom: .35rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
}

.ha-content-page--services .ha-services-cta__copy p {
  max-width: 730px;
  margin: 0;
  color: #cfe0e6;
  line-height: 1.6;
}

.ha-content-page--services .ha-services-cta .ha-button {
  min-height: 48px;
  border-radius: 10px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .ha-services-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 2.5rem; }
  .ha-content-page--services .ha-services-index .ha-services-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .ha-services-hero__grid { grid-template-columns: 1fr; }
  .ha-services-hero__media { width: min(100%, 680px); justify-self: start; }
  .ha-services-intro { grid-template-columns: 1fr; gap: 1.35rem; }
  .ha-services-intro__copy { padding: 1.25rem 0 0; border-top: 1px solid #d8e7eb; border-left: 0; }
  .ha-content-page--services .ha-services-cta .ha-container { grid-template-columns: auto 1fr; }
  .ha-content-page--services .ha-services-cta .ha-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 680px) {
  .ha-content-page--services .ha-services-hero { padding: 2.4rem 0 3rem; }
  .ha-content-page--services .ha-services-hero h1 { font-size: clamp(2.5rem, 13vw, 3.75rem); }
  .ha-services-hero__actions { display: grid; }
  .ha-services-hero__actions .ha-button { width: 100%; }
  .ha-services-hero__reassurance { display: grid; }
  .ha-services-hero__media::before { inset: -8px 10px 12px -8px; border-radius: 18px; }
  .ha-services-hero__image { border-radius: 15px; }
  .ha-services-hero__media figcaption { width: calc(100% - 1rem); margin: -1.5rem .5rem 0; }
  .ha-services-intro-section { padding-top: 1.75rem; }
  .ha-services-intro { padding: 1.3rem; border-left-width: 4px; border-radius: 13px; }
  .ha-content-page--services .ha-services-index { padding: 2.75rem 0 3.5rem; }
  .ha-content-page--services .ha-services-index .ha-services-grid--archive { grid-template-columns: 1fr; }
  .ha-content-page--services .ha-services-index .ha-service-card { min-height: 0; }
  .ha-content-page--services .ha-services-cta .ha-container { grid-template-columns: 1fr; text-align: left; }
  .ha-content-page--services .ha-services-cta .ha-button { grid-column: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-content-page--services .ha-service-card,
  .ha-content-page--services .ha-service-card::before { transition: none; }
  .ha-content-page--services .ha-service-card:hover,
  .ha-content-page--services .ha-service-card:focus-within { transform: none; }
}

@media (forced-colors: active) {
  .ha-services-hero__media::before { display: none; }
  .ha-services-hero__media figcaption,
  .ha-services-intro,
  .ha-content-page--services .ha-services-index .ha-service-card,
  .ha-services-cta__icon { border: 1px solid CanvasText; }
}

@media print {
  .ha-services-hero__actions,
  .ha-services-hero__media,
  .ha-services-cta { display: none !important; }
  .ha-content-page--services .ha-services-hero,
  .ha-content-page--services .ha-services-index { padding-block: 1.5rem; background: #fff; }
  .ha-services-intro { padding: 0; border: 0; box-shadow: none; }
  .ha-content-page--services .ha-services-index .ha-service-card { min-height: 0; break-inside: avoid; box-shadow: none; }
}
