/*
 * Locations page.
 * Loaded only on the Locations page.
 * Mirrors the spacing and proportions established on the recent Resource pages.
 */

.injurease-locations-page {
  --locations-soft: #f5f8f1;
  --locations-line: rgba(8, 63, 28, .10);
  --locations-radius: 26px;
  overflow: clip;
}

.injurease-locations-page .injurease-container,
.injurease-locations-page * { min-width: 0; }

/* Hero — same scale, spacing and balance as WorkCover / CTP Resources. */
.injurease-locations-page__hero {
  min-height: 0;
  padding-block: clamp(54px, 5.5vw, 76px);
}

.injurease-locations-page__hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, var(--locations-hero-image-width-desktop, 490px));
  align-items: center;
  gap: clamp(46px, 5vw, 78px);
  min-height: 0;
  padding-block: 0;
}

.injurease-locations-page__hero-copy { max-width: 760px; }
.injurease-locations-page__hero-copy h1 { max-width: 15ch; margin-bottom: 22px; }
.injurease-locations-page__hero-copy .injurease-hero__lead { margin: 0; }
.injurease-locations-page__hero-copy .injurease-hero__actions { margin-top: 34px; }
.injurease-locations-page__hero-visual { display: grid; width: min(100%, var(--locations-hero-image-width-desktop, 490px)); min-height: 0; justify-self: center; place-items: center; }
.injurease-locations-page__hero-visual .injurease-locations-page__picture { display: block; width: 100%; }
.injurease-locations-page__hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.injurease-locations-page__hero-motif,
.injurease-locations-page__section-motif {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 380px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--locations-line);
  border-radius: var(--locations-radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(179, 206, 27, .22), transparent 28%),
    linear-gradient(145deg, #f8faf5, #e7eee2);
}

.injurease-locations-page__hero-motif {
  width: min(100%, 390px);
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
}

.injurease-locations-page__hero-motif span,
.injurease-locations-page__section-motif span {
  position: absolute;
  border: 1px solid rgba(8, 63, 28, .12);
  border-radius: 50%;
}

.injurease-locations-page__hero-motif span:first-child,
.injurease-locations-page__section-motif span:first-child { width: 220px; height: 220px; }
.injurease-locations-page__hero-motif span:nth-child(2),
.injurease-locations-page__section-motif span:nth-child(2) { width: 145px; height: 145px; border-color: rgba(89, 131, 28, .20); }
.injurease-locations-page__hero-motif span:nth-child(3) { width: 72px; height: 72px; border: 0; background: rgba(179, 206, 27, .18); }

.injurease-locations-page__hero-motif i,
.injurease-locations-page__section-motif i {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  color: var(--inj-primary);
  box-shadow: 0 20px 50px rgba(8, 63, 28, .10);
}

.injurease-locations-page__hero-motif svg,
.injurease-locations-page__section-motif svg { width: 36px; height: 36px; }

/* Shared editorial geometry. */
.injurease-locations-page__intro,
.injurease-locations-page__clinics,
.injurease-locations-page__coverage,
.injurease-locations-page__extra { padding-block: clamp(70px, 6vw, 92px); }

.injurease-locations-page__intro,
.injurease-locations-page__extra { background: #fff; }

/* Keep the clinic cards visually connected to the section above, then give the following
 * coverage + CTA block its own soft surface. */
.injurease-locations-page__clinics {
  margin-top: 0;
  padding-top: 0;
  background: #fff;
}
.injurease-locations-page__intro { padding-bottom: clamp(54px, 5vw, 72px); }
.injurease-locations-page__coverage {
  padding-top: clamp(64px, 5.5vw, 84px);
  padding-bottom: clamp(30px, 3vw, 42px);
  background: var(--locations-soft);
}

.injurease-locations-page__split {
  display: grid;
  align-items: stretch;
  gap: clamp(44px, 5.5vw, 78px);
}

.injurease-locations-page__split--media-left { grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr); }
.injurease-locations-page__split--media-right { grid-template-columns: minmax(0, 1.14fr) minmax(340px, .86fr); }

.injurease-locations-page__visual,
.injurease-locations-page__media,
.injurease-locations-page__media .injurease-locations-page__picture { min-height: 100%; height: 100%; }

.injurease-locations-page__media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--locations-radius);
  background: #e9eee6;
}

.injurease-locations-page__section-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.injurease-locations-page__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.injurease-locations-page__section-icon,
.injurease-locations-page__clinic-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(179, 206, 27, .55);
  background: var(--inj-accent);
  color: #fff;
}

.injurease-locations-page__section-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  margin-bottom: 20px;
  border-radius: 16px;
}

.injurease-locations-page__section-icon svg { width: 23px; height: 23px; }

.injurease-locations-page__copy h2 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.injurease-locations-page__copy .injurease-prose { max-width: 720px; }
.injurease-locations-page__copy .injurease-text-link { margin-top: 22px; }

/* Clinic cards — two compact horizontal cards side-by-side on desktop. */
.injurease-locations-page__clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
  max-width: 1320px;
  margin-inline: auto;
}

.injurease-locations-page__clinic-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--locations-line);
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.injurease-locations-page__clinic-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.injurease-locations-page__clinic-hit:focus-visible {
  outline: 3px solid var(--inj-accent);
  outline-offset: -4px;
}

.injurease-locations-page__clinic-card:not(.has-image) { grid-template-columns: 1fr; }

.injurease-locations-page__clinic-media {
  width: 190px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  align-self: center;
  margin: 14px 0 14px 14px;
  overflow: hidden;
  border-radius: 18px;
  background: #e9eee6;
}

.injurease-locations-page__clinic-media .injurease-locations-page__picture,
.injurease-locations-page__clinic-image {
  display: block;
  width: 100%;
  height: 100%;
}

.injurease-locations-page__clinic-image { object-fit: cover; }

.injurease-locations-page__clinic-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 22px 18px 30px;
}

.injurease-locations-page__clinic-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(89, 131, 28, .10);
}

.injurease-locations-page__clinic-icon svg { width: 18px; height: 18px; }

.injurease-locations-page__clinic-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.injurease-locations-page__clinic-copy .injurease-prose { max-width: 650px; }
.injurease-locations-page__clinic-copy .injurease-prose > :last-child { margin-bottom: 0; }
.injurease-locations-page__clinic-copy .injurease-text-link { position: relative; z-index: 3; margin-top: 12px; }

@media (hover: hover) and (pointer: fine) {
  .injurease-locations-page__clinic-card:hover,
  .injurease-locations-page__clinic-card:focus-within {
    border-color: rgba(179, 206, 27, .72);
    box-shadow: 0 14px 34px rgba(8, 63, 28, .08);
    transform: translateY(-3px);
  }
}

.injurease-locations-page__additional { background: #fff; }

/* Final CTA continues the soft surface from the coverage section above. */
.injurease-locations-page__final-cta {
  padding-top: 12px;
  padding-bottom: clamp(70px, 6vw, 92px);
  background: var(--locations-soft);
}

.injurease-locations-page__final-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, auto);
  gap: 28px;
  align-items: center;
  min-height: 270px;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #083f1c, #315f36);
  color: #fff;
}

.injurease-locations-page__final-card.has-background-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 63, 28, .95) 0%, rgba(8, 63, 28, .80) 55%, rgba(8, 63, 28, .60) 100%);
}

.injurease-locations-page__final-background,
.injurease-locations-page__final-background .injurease-locations-page__picture,
.injurease-locations-page__final-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.injurease-locations-page__final-background-image { object-fit: cover; }

.injurease-locations-page__final-mark,
.injurease-locations-page__final-copy,
.injurease-locations-page__final-card > .injurease-button {
  position: relative;
  z-index: 2;
}

.injurease-locations-page__final-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 19px;
  background: rgba(255, 255, 255, .12);
  color: var(--inj-accent);
}

.injurease-locations-page__final-mark svg { width: 28px; height: 28px; }
.injurease-locations-page__final-copy .injurease-eyebrow { color: var(--inj-accent); }
.injurease-locations-page__final-copy h2 {
  margin: 5px 0 10px;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
}
.injurease-locations-page__final-copy p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(255, 255, 255, .84); }

@media (min-width: 961px) and (max-width: 1600px) {
  .injurease-locations-page__intro,
  .injurease-locations-page__extra { padding-block: clamp(66px, 5.3vw, 84px); }
  .injurease-locations-page__intro { padding-bottom: clamp(54px, 4.8vw, 70px); }
  .injurease-locations-page__clinics { padding-top: 0; padding-bottom: clamp(66px, 5.3vw, 84px); }
  .injurease-locations-page__coverage { padding-top: clamp(62px, 5vw, 80px); padding-bottom: clamp(30px, 3vw, 42px); }
}

@media (max-width: 960px) {
  .injurease-locations-page__hero { padding-block: 60px; }
  .injurease-locations-page__hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .injurease-locations-page__hero-copy,
  .injurease-locations-page__hero-copy h1 { max-width: none; }
  .injurease-locations-page__hero-visual { width: min(100%, var(--locations-hero-image-width-mobile, 560px)); justify-self: center; }
  .injurease-locations-page__hero-visual .injurease-locations-page__picture { width: 100%; }
  .injurease-locations-page__hero-motif { width: min(100%, 360px); }

  .injurease-locations-page__intro,
  .injurease-locations-page__extra { padding-block: 62px; }
  .injurease-locations-page__intro { padding-bottom: 52px; }
  .injurease-locations-page__clinics { padding-top: 0; padding-bottom: 62px; }
  .injurease-locations-page__coverage { padding-top: 58px; padding-bottom: 30px; }

  .injurease-locations-page__split,
  .injurease-locations-page__split--media-left,
  .injurease-locations-page__split--media-right { grid-template-columns: 1fr; gap: 34px; }

  .injurease-locations-page__copy { order: 1; }
  .injurease-locations-page__visual { order: 2; }
  .injurease-locations-page__media,
  .injurease-locations-page__media .injurease-locations-page__picture { height: auto; min-height: 0; }
  .injurease-locations-page__section-image { height: auto; min-height: 0; object-fit: contain; }
  .injurease-locations-page__section-motif { min-height: 330px; }

  .injurease-locations-page__clinic-card { grid-template-columns: 158px minmax(0, 1fr); min-height: 0; }
  .injurease-locations-page__clinic-media { width: 158px; min-height: 0; height: auto; margin: 12px 0 12px 12px; }
  .injurease-locations-page__clinic-copy { padding: 16px 18px 16px 26px; }
  .injurease-locations-page__clinic-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .injurease-locations-page__clinic-copy h2 { font-size: clamp(22px, 2.5vw, 27px); }

  .injurease-locations-page__final-cta { padding-top: 8px; }
  .injurease-locations-page__final-card { grid-template-columns: auto minmax(0, 1fr); }
  .injurease-locations-page__final-card > .injurease-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  .injurease-locations-page { overflow: hidden; }
  .injurease-locations-page__hero { padding-block: 46px; }
  .injurease-locations-page__hero-grid { gap: 32px; }
  .injurease-locations-page__hero-copy h1 { margin-bottom: 18px; }
  .injurease-locations-page__hero-copy .injurease-hero__lead { font-size: 1rem; line-height: 1.62; }
  .injurease-locations-page__hero-copy .injurease-hero__actions { align-items: stretch; margin-top: 28px; }
  .injurease-locations-page__hero-copy .injurease-hero__actions .injurease-button { flex: 1 1 100%; justify-content: center; }
  .injurease-locations-page__hero-visual { width: min(100%, var(--locations-hero-image-width-mobile, 560px)); max-width: 100%; }
  .injurease-locations-page__hero-visual .injurease-locations-page__picture { width: 100%; max-width: 100%; }
  .injurease-locations-page__hero-motif { width: 100%; max-width: 100%; }
  .injurease-locations-page__hero-image { width: 100%; max-width: 100%; height: auto; }

  .injurease-locations-page__intro,
  .injurease-locations-page__extra { padding-block: 52px; }
  .injurease-locations-page__intro { padding-bottom: 44px; }
  .injurease-locations-page__clinics { padding-top: 0; padding-bottom: 52px; }
  .injurease-locations-page__coverage { padding-top: 50px; padding-bottom: 24px; }
  .injurease-locations-page__split { gap: 28px; }
  .injurease-locations-page__copy h2 { font-size: clamp(30px, 9vw, 38px); }
  .injurease-locations-page__section-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .injurease-locations-page__section-motif { min-height: 280px; }

  .injurease-locations-page__clinic-grid { grid-template-columns: 1fr; gap: 14px; }
  .injurease-locations-page__clinic-card { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .injurease-locations-page__clinic-media { width: 100%; aspect-ratio: auto; height: 205px; min-height: 0; margin: 0; border-radius: 0; }
  .injurease-locations-page__clinic-copy { padding: 23px 21px 25px; }
  .injurease-locations-page__clinic-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .injurease-locations-page__clinic-copy h2 { font-size: 29px; }
  .injurease-locations-page__clinic-copy .injurease-text-link { margin-top: 16px; }

  .injurease-locations-page__final-cta { padding-top: 6px; padding-bottom: 52px; }
  .injurease-locations-page__final-card { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 30px 24px; border-radius: 24px; }
  .injurease-locations-page__final-mark { width: 54px; height: 54px; border-radius: 17px; }
  .injurease-locations-page__final-card > .injurease-button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .injurease-locations-page__clinic-card { transition: none; }
}


/* Locations final CTA — same approved visual system as Services / Resources. */
.injurease-locations-page .injurease-locations-final-cta {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--locations-soft);
}

.injurease-locations-final-cta .injurease-final-cta__picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 680px) {
  .injurease-locations-page .injurease-locations-final-cta {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}
