/* Homepage v0.9. All presentation stays scoped to the homepage wrapper. */
.em-home section {
  padding: 70px 0;
  scroll-margin-top: 92px;
}

.em-home .eyebrow {
  margin-bottom: 18px;
  color: var(--em-sage-750);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.em-home .lead {
  max-width: 660px;
  color: var(--em-muted);
  font-size: 18px;
}

.em-home .btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.em-home .btn-primary {
  background: var(--em-sage-750);
  color: #ffffff;
}

.em-home .btn-primary:hover {
  background: #50594a;
  transform: translateY(-2px);
}

.em-home .btn-secondary {
  border-color: rgba(95, 105, 88, 0.35);
  background: transparent;
  color: var(--em-ink);
}

.em-home .btn-secondary:hover {
  border-color: var(--em-sage-300);
  background: var(--em-sage-050);
  transform: translateY(-2px);
}

/* Hero */
.em-home .hero {
  padding: 32px 0 54px;
  overflow: hidden;
}

.em-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 52px;
}

.em-home .hero-copy {
  max-width: 620px;
}

.em-home .hero-copy .lead {
  max-width: 680px;
  margin-top: 24px;
}

.em-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.em-home .hero-art {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.em-home .hero-photo-wrap {
  position: relative;
  z-index: 2;
  width: 108%;
  max-width: 700px;
  justify-self: end;
}

.em-home .hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
  box-shadow: 0 34px 78px rgba(64, 68, 61, 0.14);
}

.em-home .hero-blob {
  position: absolute;
  width: 100%;
  height: 92%;
  border-radius: 44% 56% 52% 48% / 56% 42% 58% 44%;
  background: linear-gradient(145deg, var(--em-sage-100), var(--em-cream));
  opacity: 0.95;
  transform: rotate(-5deg);
}

/* Services */
.em-home .services {
  background: var(--em-paper);
}

.em-home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.em-home .section-head p {
  max-width: 520px;
  color: var(--em-muted);
  font-size: 16px;
}

.em-home .service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 18px;
}

.em-home .service-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-md);
  background: var(--em-bg);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.em-home .service-card:hover,
.em-home .service-card:focus-visible {
  border-color: rgba(117, 128, 109, 0.34);
  box-shadow: 0 20px 48px rgba(44, 47, 43, 0.11);
  transform: translateY(-5px) scale(1.018);
}

.em-home .service-no {
  margin-bottom: 34px;
  color: var(--em-sage-750);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.em-home .service-card h3 {
  margin-bottom: 14px;
}

.em-home .service-card p {
  color: var(--em-muted);
  font-size: 14px;
  line-height: 1.7;
}

.em-home .service-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 28px;
  place-items: center;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  color: var(--em-sage-750);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.em-home .service-card:hover .service-arrow,
.em-home .service-card:focus-visible .service-arrow {
  background: var(--em-sage-050);
  transform: translateX(3px);
}

.em-home .clinical-service-wrap {
  padding-top: 18px;
}

.em-home .clinical-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-md);
  background: var(--em-cream);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.em-home .clinical-service-card:hover,
.em-home .clinical-service-card:focus-visible {
  border-color: rgba(117, 128, 109, 0.3);
  box-shadow: 0 18px 44px rgba(44, 47, 43, 0.09);
  transform: translateY(-3px);
}

.em-home .clinical-service-no {
  align-self: start;
  padding-top: 5px;
  color: var(--em-sage-750);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.em-home .clinical-service-copy h3 {
  margin-bottom: 7px;
  font-size: 23px;
}

.em-home .clinical-service-copy p {
  max-width: 860px;
  color: var(--em-muted);
  font-size: 14px;
}

.em-home .clinical-service-link {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  color: var(--em-sage-750);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.em-home .clinical-service-card:hover .clinical-service-link,
.em-home .clinical-service-card:focus-visible .clinical-service-link {
  background: var(--em-sage-050);
  transform: translateX(3px);
}

.em-home .procurement-wrap {
  padding-top: 28px;
}

.em-home .procurement-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 34px 38px;
  border: 1px solid rgba(117, 128, 109, 0.2);
  border-radius: var(--em-radius-md);
  background: var(--em-sage-100);
}

.em-home .procurement-card h3 {
  margin-bottom: 10px;
  color: var(--em-sage-750);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.em-home .procurement-card p {
  max-width: 800px;
  font-size: 16px;
}

/* Adaptation */
.em-home .adaptation {
  position: relative;
  overflow: hidden;
  background: var(--em-cream);
}

.em-home .adaptation::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 48% 52% 44% 56%;
  background: rgba(221, 230, 216, 0.45);
  content: "";
  transform: rotate(18deg);
}

.em-home .adapt-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: start;
  gap: 92px;
}

.em-home .adapt-copy p {
  max-width: 720px;
  color: #555b54;
  font-size: 17px;
}

.em-home .adapt-copy .adapt-intro {
  margin-top: 26px;
}

.em-home .adapt-copy p + p {
  margin-top: 18px;
}

.em-home .adapt-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(44, 47, 43, 0.15);
  list-style: none;
}

.em-home .adapt-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(44, 47, 43, 0.15);
  font-size: 16px;
  font-weight: 600;
}

.em-home .adapt-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--em-sage-600);
}

/* Five pillars */
.em-home .pillars {
  background: var(--em-paper);
}

.em-home .pillar-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 100px;
}

.em-home .pillar-intro {
  position: sticky;
  top: 120px;
}

.em-home .pillar-intro p {
  max-width: 430px;
  margin-top: 24px;
  color: var(--em-muted);
  font-size: 17px;
}

.em-home .pillar-intro strong {
  color: var(--em-ink);
}

.em-home .pillar-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--em-line);
  list-style: none;
}

.em-home .pillar {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--em-line);
}

.em-home .pillar-no {
  padding-top: 4px;
  color: var(--em-sage-750);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.em-home .pillar h3 {
  margin-bottom: 10px;
}

.em-home .pillar p {
  max-width: 720px;
  color: var(--em-muted);
  font-size: 15px;
}

/* Contact */
.em-home .contact {
  background: var(--em-cream);
}

.em-home .contact-head {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}

.em-home .contact-head p {
  margin-top: 18px;
  color: var(--em-muted);
}

.em-home .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(44, 47, 43, 0.16);
  border-bottom: 1px solid rgba(44, 47, 43, 0.16);
}

.em-home .contact-option {
  min-height: 260px;
  padding: 38px 34px 42px;
}

.em-home .contact-option + .contact-option {
  border-left: 1px solid rgba(44, 47, 43, 0.16);
}

.em-home .contact-option h3 {
  margin-bottom: 14px;
}

.em-home .contact-option p {
  min-height: 72px;
  color: var(--em-muted);
  font-size: 14px;
}

.em-home .contact-option .btn {
  margin-top: 24px;
}

.em-home .direct-line {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.em-home .direct-line a:hover {
  color: var(--em-sage-750);
}

@media (max-width: 1080px) {
  .em-home .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
  }

  .em-home .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-home .adapt-grid {
    gap: 54px;
  }

  .em-home .pillar-grid {
    gap: 60px;
  }
}

@media (min-width: 849px) and (max-width: 1080px) {
  .em-home .hero-copy {
    align-self: center;
    transform: translateY(-36px);
  }
}

@media (max-width: 820px) {
  .em-home section {
    padding: 62px 0;
    scroll-margin-top: 86px;
  }

  .em-home .hero {
    padding: 34px 0 52px;
  }

  .em-home .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .em-home .hero-copy {
    max-width: none;
  }

  .em-home .hero-art {
    min-height: 0;
  }

  .em-home .hero-photo-wrap {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }

  .em-home .section-head {
    display: block;
  }

  .em-home .section-head p {
    margin-top: 18px;
  }

  .em-home .clinical-service-card {
    grid-template-columns: auto 1fr auto;
    padding: 24px;
  }

  .em-home .procurement-card {
    grid-template-columns: 1fr;
  }

  .em-home .procurement-card .btn {
    justify-self: start;
  }

  .em-home .adapt-grid,
  .em-home .pillar-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .em-home .pillar-intro {
    position: static;
  }

  .em-home .contact-grid {
    grid-template-columns: 1fr;
  }

  .em-home .contact-head {
    margin-bottom: 30px;
  }

  .em-home .contact-head p {
    margin-top: 12px;
  }

  .em-home .contact-option {
    padding: 26px 22px 28px;
  }

  .em-home .contact-option + .contact-option {
    border-top: 1px solid rgba(44, 47, 43, 0.16);
    border-left: 0;
  }

  .em-home .contact-option h3 {
    margin-bottom: 10px;
  }

  .em-home .contact-option p {
    min-height: auto;
  }

  .em-home .contact-option .btn {
    margin-top: 18px;
  }
}

/* Preserve the approved editorial tablet layout rather than the mobile stack. */
@media (min-width: 581px) and (max-width: 820px) {
  .em-home section {
    padding: 56px 0;
  }

  .em-home .adapt-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
    align-items: start;
    gap: 42px;
  }

  .em-home .adapt-copy p {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .em-home .adapt-item {
    padding: 14px 0;
    font-size: 14.5px;
  }

  .em-home .pillar-grid {
    grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 46px;
  }

  .em-home .pillar-intro {
    position: static;
  }

  .em-home .pillar-intro p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .em-home .pillar {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 21px 0 23px;
  }

  .em-home .pillar h3 {
    margin-bottom: 7px;
    font-size: 20px;
  }

  .em-home .pillar p {
    font-size: 14px;
    line-height: 1.58;
  }

  .em-home .contact-head {
    margin-bottom: 36px;
  }

  .em-home .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .em-home .contact-option {
    min-height: 0;
    padding: 26px 20px 28px;
  }

  .em-home .contact-option + .contact-option {
    border-top: 0;
    border-left: 1px solid rgba(44, 47, 43, 0.16);
  }

  .em-home .contact-option h3 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .em-home .contact-option p {
    min-height: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .em-home .contact-option .btn {
    min-height: 46px;
    margin-top: 18px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .em-home .direct-line {
    font-size: 13px;
  }
}

@media (max-width: 580px) {
  .em-home h1 {
    font-size: 44px;
  }

  .em-home h2 {
    font-size: 38px;
  }

  .em-home section {
    padding: 44px 0;
    scroll-margin-top: 80px;
  }

  .em-home .hero {
    padding: 24px 0 36px;
  }

  .em-home .hero-grid {
    gap: 20px;
  }

  .em-home .hero-copy .lead {
    margin-top: 18px;
  }

  .em-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }

  .em-home .btn {
    width: 100%;
  }

  .em-home .hero-art {
    min-height: 0;
    margin-top: 0;
  }

  .em-home .hero-photo-wrap {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .em-home .section-head {
    margin-bottom: 24px;
  }

  .em-home .section-head p {
    margin-top: 12px;
  }

  .em-home .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .em-home .service-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .em-home .service-no {
    margin-bottom: 20px;
  }

  .em-home .service-card h3 {
    margin-bottom: 10px;
  }

  .em-home .service-card p {
    line-height: 1.6;
  }

  .em-home .service-arrow {
    margin-top: 20px;
  }

  .em-home .clinical-service-wrap {
    padding-top: 14px;
  }

  .em-home .clinical-service-card {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 22px 20px;
  }

  .em-home .clinical-service-no {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .em-home .clinical-service-copy h3 {
    font-size: 21px;
  }

  .em-home .clinical-service-copy p {
    line-height: 1.6;
  }

  .em-home .procurement-wrap {
    padding-top: 16px;
  }

  .em-home .procurement-card {
    gap: 20px;
    padding: 28px 24px;
  }

  .em-home .adapt-grid,
  .em-home .pillar-grid {
    gap: 28px;
  }

  .em-home .adapt-copy p {
    font-size: 16px;
  }

  .em-home .adapt-copy p + p {
    margin-top: 14px;
  }

  .em-home .adapt-item {
    padding: 13px 0;
    font-size: 15px;
  }

  .em-home .pillar-intro p {
    margin-top: 18px;
  }

  .em-home .pillar {
    grid-template-columns: 42px 1fr;
    padding: 22px 0 24px;
  }

  .em-home .pillar h3 {
    margin-bottom: 8px;
  }

  .em-home .pillar p {
    line-height: 1.6;
  }

  .em-home .pillars {
    padding-bottom: 24px;
  }

  .em-home .contact {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .em-home .contact-option {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .em-home .contact-option + .contact-option {
    border-top: 1px solid rgba(44, 47, 43, 0.16);
  }

  .em-home .contact-option .btn {
    margin-top: 16px;
  }

  .em-home .contact-option:last-child {
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .em-home .btn:hover,
  .em-home .service-card:hover,
  .em-home .service-card:focus-visible,
  .em-home .clinical-service-card:hover,
  .em-home .clinical-service-card:focus-visible,
  .em-home .service-card:hover .service-arrow,
  .em-home .service-card:focus-visible .service-arrow,
  .em-home .clinical-service-card:hover .clinical-service-link,
  .em-home .clinical-service-card:focus-visible .clinical-service-link {
    transform: none;
  }
}
