.amigo-page {
  --amigo-pale: #eef7ff;
  --amigo-line: #d7e5f4;
}

.site-navigation .amigo-brand { min-width: 0; justify-self: start; }
.site-navigation .brand.amigo-brand img { width: 330px; height: auto; max-width: 100%; }

@media (max-width: 1150px) {
  .site-navigation .brand.amigo-brand img { width: 285px; }
}

@media (max-width: 860px) {
  .site-navigation .brand.amigo-brand img { width: 248px; }
}

@media (max-width: 380px) {
  .site-navigation .brand.amigo-brand img { width: 210px; }
}

.amigo-hero {
  background: linear-gradient(130deg, #fff 12%, var(--amigo-pale) 86%);
}

.amigo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.amigo-hero .lead { max-width: 43ch; }

.amigo-hero-photo {
  position: relative;
  isolation: isolate;
  margin: 0 14px 14px 0;
}

.amigo-hero-photo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  border-radius: 68px 18px 44px 18px;
  background: #28afe9;
}

.amigo-hero-photo img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 68px 18px 44px 18px;
}

.amigo-hero-photo figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 20px;
  width: fit-content;
  max-width: calc(100% - 36px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 12px;
  color: var(--navy);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.amigo-hero-photo .ico { width: 17px; height: 17px; }

.amigo-promise { background: var(--navy); color: #fff; padding: 32px 0; }
.amigo-promise-grid {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 24px;
}
.amigo-promise h2 { color: #fff; }
.amigo-promise p { color: #f1efff; max-width: 62ch; }

.amigo-symbol {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcefff;
  color: var(--navy);
}
.amigo-symbol .ico { width: 27px; height: 27px; }

.amigo-facilities {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.amigo-facilities article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--amigo-line);
  border-radius: 22px;
  overflow: hidden;
}
.amigo-facilities article > img ,
.amigo-facilities article > picture[data-optimized-picture] > img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
}
.amigo-facility-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(17px, 2vw, 26px);
}
.amigo-facility-copy .textlink { margin-top: auto; }

.amigo-specialties {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 22px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
  background: var(--amigo-pale);
}
.amigo-specialties p { margin-top: 5px; }

.amigo-workflow { background: #f6f4ff; }
.amigo-workflow-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 5vw, 76px);
  align-items: center;
}
.amigo-illustration {
  display: grid;
  place-items: end center;
  width: min(300px, 90%);
  aspect-ratio: 1.24;
  margin: 22px auto 0;
  overflow: hidden;
  border-radius: 46% 54% 36% 44% / 63% 65% 35% 37%;
  background: #dfedff;
}
.amigo-illustration img { width: 83%; }
.amigo-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.amigo-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  padding: 20px;
  border: 1px solid #e2dcf4;
  border-radius: 18px;
  background: #fff;
}
.amigo-steps li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font: 700 .85rem Montserrat, Arial, sans-serif;
}
.amigo-steps p { margin-top: 7px; }

.amigo-contact-panel {
  padding: clamp(22px, 4.5vw, 62px);
  border: 1px solid var(--amigo-line);
  border-radius: 28px;
  background: var(--amigo-pale);
}
.amigo-contact-panel p { margin-top: 14px; }
.amigo-emergency { display: flex; align-items: flex-start; gap: 10px; max-width: none; margin-top: 20px; font-size: .94rem; }
.amigo-emergency .ico { color: var(--blue); }
.amigo-emergency a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .amigo-specialties { grid-template-columns: auto 1fr; }
  .amigo-specialties .textlink { grid-column: 2; justify-self: start; padding-top: 0; }
}

@media (max-width: 760px) {
  .amigo-hero-grid, .amigo-facilities, .amigo-workflow-grid { grid-template-columns: 1fr; }
  .amigo-hero h1 { max-width: 15ch; }
  .amigo-hero-photo img { aspect-ratio: 1.45; }
  .amigo-promise-grid { grid-template-columns: auto 1fr; gap: 14px; }
  .amigo-promise-grid p { grid-column: 1 / -1; }
  .amigo-illustration { width: min(245px, 80%); }
}

@media (max-width: 390px) {
  .amigo-specialties { grid-template-columns: 1fr; }
  .amigo-specialties .textlink { grid-column: 1; }
  .amigo-steps li { padding: 16px; gap: 11px; }
}

