/* Homepage composition only. Loaded after the shared styles and consultation entry. */
.soran-home .nav .wrap {
  min-height: 84px;
  height: auto;
  column-gap: 18px;
}

.soran-home .soran-wordmark {
  gap: 1px;
  padding: 7px 0;
}

.soran-home .soran-wordmark b {
  font-size: 30px;
  line-height: 1.18;
}

.soran-home .brand-description {
  font-size: 12px;
  line-height: 1.4;
}

.soran-home .soran-wordmark small {
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .11em;
}

.soran-home .services-first {
  padding: 28px 0 24px;
  background: linear-gradient(115deg, #eaf5ef 0%, #faf9f4 66%, #fcfbf7 100%);
  border-bottom-color: #e1e8df;
}

.soran-home .services-first .consult-welcome {
  max-width: 780px;
  margin-bottom: 26px;
}

.soran-home .services-first .consult-eyebrow {
  gap: 7px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.6;
  color: #52766a;
}

.soran-home .services-first .consult-eyebrow::before {
  width: 5px;
  height: 5px;
  background: #b29761;
}

.soran-home .services-first h1 {
  margin: 0 0 11px;
  font-size: 36px;
  line-height: 1.35 !important;
}

.soran-home .services-first .consult-intro {
  max-width: 700px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #5d726a;
}

.soran-home .hero-services-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dbe5db;
}

.soran-home .hero-services-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.5;
  color: #214d47;
}

.soran-home .hero-services-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6a7f74;
}

.soran-home .hero-services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.soran-home .hero-service {
  min-width: 0;
  border-color: #dce5dc;
  background: #fffefa;
}

.soran-home .hero-service-copy strong {
  font-size: 18px;
  line-height: 1.5;
}

.soran-home .hero-service-copy small {
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  body.soran-home {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .soran-home .nav .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    min-height: 70px;
    height: auto;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .soran-home .nav .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
  }

  .soran-home .nav .desktop-links,
  .soran-home .nav .btn {
    display: none;
  }

  .soran-home .soran-wordmark {
    justify-items: start;
    gap: 1px;
    padding: 4px 0;
    text-align: start;
  }

  .soran-home .soran-wordmark b {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .soran-home .brand-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .soran-home .soran-wordmark small {
    display: none !important;
  }

  .soran-home .nav .site-language {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #dfe8e1;
    border-radius: 11px;
    background: #f0f5ef;
    color: #456c60;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
  }

  .soran-home .nav .site-menu {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    margin: 0;
  }

  .soran-home .nav .site-menu > summary {
    width: 44px;
    height: 44px;
    border-color: #dfe6df;
    border-radius: 12px;
    background: #fffefa;
    color: #244d49;
  }

  .soran-home .nav .site-menu-panel {
    top: calc(100% + 10px);
    max-width: calc(100vw - 32px);
  }

  .soran-home .services-first {
    padding: 20px 0;
  }

  .soran-home .services-first .consult-welcome {
    margin-bottom: 23px;
  }

  .soran-home .services-first .consult-eyebrow {
    margin-bottom: 10px;
    font-size: 10.5px;
  }

  .soran-home .services-first h1 {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.35 !important;
  }

  .soran-home .services-first .consult-intro {
    font-size: 13px;
    line-height: 1.75;
  }

  .soran-home .hero-services-heading {
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 12px;
    padding-bottom: 9px;
  }

  .soran-home .hero-services-heading h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  .soran-home .hero-services-heading p {
    font-size: 11px;
    line-height: 1.5;
  }

  .soran-home .hero-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .soran-home .hero-service {
    border-radius: 14px;
  }

  .soran-home .hero-service img {
    aspect-ratio: 1.85;
  }

  .soran-home .hero-service-copy {
    padding: 10px 11px 12px;
  }

  .soran-home .hero-service-copy strong {
    font-size: 16px;
    line-height: 1.5;
  }

  .soran-home .hero-service-copy small {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.6;
  }

  .soran-home .hero-service-arrow {
    display: none;
  }

  .soran-home .hero-services-note {
    margin-top: 11px;
    font-size: 10px;
    line-height: 1.6;
  }

  .soran-home .clinic-actions {
    position: fixed;
    inset: auto 12px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    min-height: 62px;
    padding: 5px;
    border: 1px solid #d9e4dc;
    border-radius: 18px;
    background: #fffefa;
    box-shadow: 0 6px 24px #123b3024;
  }

  .soran-home .clinic-actions > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #2c5b52;
    font: 600 11px/1.3 var(--fb);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transform: none;
    box-shadow: none;
  }

  .soran-home .clinic-actions > * + * {
    border-inline-start: 0;
  }

  .soran-home .clinic-actions .soran-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .soran-home .clinic-actions .mobile-services {
    border: 0;
    border-radius: 12px;
    background: #e6f3eb;
    color: #1e6357 !important;
  }

  .soran-home .clinic-actions > *:focus-visible {
    outline: 2px solid #087d70;
    outline-offset: 1px;
  }
}

@media (max-width: 360px) {
  .soran-home .nav .wrap,
  .soran-home .services-first > .wrap {
    width: calc(100% - 28px);
  }

  .soran-home .nav .wrap {
    min-height: 68px;
    gap: 6px;
  }

  .soran-home .soran-wordmark b {
    font-size: 24px;
  }

  .soran-home .brand-description {
    font-size: 10.5px;
  }

  .soran-home .nav .site-language {
    padding-inline: 7px;
    font-size: 11.5px;
  }

  .soran-home .services-first h1 {
    font-size: 25px;
  }

  .soran-home .hero-services-heading h2 {
    font-size: 19px;
  }

  .soran-home .hero-services-heading p {
    font-size: 10.5px;
  }

  .soran-home .hero-service-copy {
    padding-inline: 9px;
  }

  .soran-home .hero-service-copy strong {
    font-size: 15px;
  }

  .soran-home .clinic-actions {
    inset-inline: 10px;
  }

  .soran-home .clinic-actions > * {
    font-size: 10.5px;
  }
}

@media (hover: none), (pointer: coarse) {
  .soran-home .hero-service:hover {
    transform: none;
    border-color: #dce5dc;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soran-home .hero-service {
    transition: none;
  }
}
