/* Inner Moxie homepage */

.im-home {
  background:
    linear-gradient(
      180deg,
      rgba(152, 207, 230, 0.92) 0%,
      rgba(178, 218, 234, 0.9) 55%,
      rgba(244, 245, 239, 0.95) 100%
    ),
    url("../images/home-background.png") center bottom / cover no-repeat;
}

.im-home-hero {
  display: grid;
  min-height: 680px;
  padding: clamp(90px, 11vw, 150px) 0;
  place-items: center;
  text-align: center;
}

.im-home-hero__content {
  width: min(calc(100% - 40px), 900px);
  margin-inline: auto;
}

.im-home-hero h1 {
  margin-bottom: 28px;
  color: #fffdf1;
  text-shadow: 0 3px 18px rgba(35, 70, 82, 0.22);
}

.im-home-hero p {
  width: min(100%, 760px);
  margin: 0 auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.im-home-hero__final {
  margin-top: 30px !important;
  color: #fffdf1;
  font-size: clamp(1.35rem, 2.8vw, 2rem) !important;
}

.im-home-hero .im-button {
  margin-top: 16px;
}

.im-home-panel {
  width: min(calc(100% - 40px), 980px);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 70px);
  background: rgba(251, 250, 239, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(44, 92, 108, 0.13);
  backdrop-filter: blur(8px);
}

.im-home-panel h2 {
  color: var(--im-teal-dark);
}

.im-home-welcome {
  padding: 40px 0 85px;
  text-align: center;
}

.im-home-welcome p {
  width: min(100%, 780px);
  margin-right: auto;
  margin-left: auto;
}

.im-home-welcome .im-lead {
  margin: 28px auto;
}

.im-home-features {
  display: grid;
  margin-top: 45px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.im-home-feature {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(49, 127, 146, 0.13);
  border-radius: 15px;
}

.im-home-feature__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 17px;
  place-items: center;
  color: #fff;
  background: var(--im-teal);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.im-home-feature h3 {
  margin-bottom: 10px;
  color: var(--im-teal-dark);
  font-size: 1.25rem;
}

.im-home-feature p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.im-home-moxie {
  padding: 20px 0 90px;
}

.im-home-moxie__title {
  color: #b59025;
}

.im-home-service-list {
  display: grid;
  margin: 35px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  text-align: left;
}

.im-home-service-list div {
  position: relative;
  padding-left: 28px;
}

.im-home-service-list div::before {
  position: absolute;
  left: 0;
  color: var(--im-teal);
  content: "✓";
  font-weight: 800;
}

.im-home-insurance {
  padding: 20px 0 110px;
}

.im-home-insurance-grid {
  display: grid;
  margin: 40px auto;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 20px;
  align-items: center;
}

.im-home-insurance-grid div {
  display: grid;
  min-height: 95px;
  padding: 16px;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
}

.im-home-insurance-grid img {
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.im-home-small {
  color: var(--im-muted);
  font-size: 0.87rem;
}

.im-home-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 780px) {
  .im-home-hero {
    min-height: 600px;
    padding: 75px 0;
  }

  .im-home-features,
  .im-home-service-list {
    grid-template-columns: 1fr;
  }

  .im-home-insurance-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .im-home-insurance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .im-home-panel {
    width: min(calc(100% - 24px), 980px);
    padding: 34px 20px;
  }
}
