/* Inner Moxie interior pages */

.im-page-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.im-page-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 58, 71, 0.2),
    rgba(21, 58, 71, 0.52)
  );
  content: "";
}

.im-page-hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 850px);
  margin-inline: auto;
}

.im-page-hero h1,
.im-page-hero h2,
.im-page-hero p {
  color: inherit;
}

.im-page-hero h1 {
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.24);
}

.im-page-hero p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.im-services-hero {
  background-image:
    url("../images/services-hero.png");
}

.im-page-block {
  padding: clamp(70px, 9vw, 120px) 0;
}

.im-page-block--sand {
  background: var(--im-sand);
}

.im-page-block--sand-light {
  background: var(--im-sand-light);
}

.im-page-block--cream {
  background: var(--im-cream);
}

.im-interior-heading {
  margin-bottom: 45px;
  text-align: center;
}

.im-interior-heading h2 {
  color: var(--im-teal-dark);
}

.im-services-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(35px, 7vw, 80px);
  align-items: center;
}

.im-services-photo {
  overflow: hidden;
  border-radius: var(--im-radius);
  box-shadow: var(--im-shadow);
}

.im-services-photo img {
  width: 100%;
  min-height: 410px;
  object-fit: cover;
}

.im-services-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;
  list-style: none;
}

.im-services-list li {
  position: relative;
  padding-left: 25px;
}

.im-services-list li::before {
  position: absolute;
  left: 0;
  color: var(--im-teal);
  content: "•";
  font-size: 1.35rem;
  line-height: 1.2;
}

.im-specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.im-specialty-card {
  padding: clamp(28px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(49, 127, 146, 0.13);
  border-radius: var(--im-radius);
}

.im-specialty-card h3 {
  margin-bottom: 14px;
  color: var(--im-teal-dark);
}

.im-specialty-card p:last-child {
  margin-bottom: 0;
}

.im-page-cta {
  padding: clamp(65px, 8vw, 100px) 0;
  color: #ffffff;
  background: var(--im-teal-dark);
  text-align: center;
}

.im-page-cta h2,
.im-page-cta p {
  color: inherit;
}

.im-page-cta p {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
}

.im-page-cta .im-button {
  margin-top: 15px;
  color: var(--im-teal-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.im-page-cta .im-button:hover,
.im-page-cta .im-button:focus {
  color: #ffffff;
  background: transparent;
}

/* Scheduling */

.im-scheduling-page {
  background: var(--im-sand);
}

.im-scheduling {
  padding: clamp(75px, 10vw, 135px) 0;
}

.im-scheduling-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.9fr) minmax(350px, 1.1fr);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  box-shadow: var(--im-shadow);
}

.im-scheduling-card__image {
  min-height: 620px;
}

.im-scheduling-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.im-scheduling-card__content {
  display: flex;
  padding: clamp(40px, 7vw, 80px);
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.im-scheduling-card__content h1 {
  margin-bottom: 25px;
  color: var(--im-teal-dark);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.im-scheduling-card__content .im-lead {
  margin-bottom: 14px;
}

.im-scheduling-card__content .im-button {
  align-self: center;
  margin: 18px 0 30px;
}

.im-contact-methods {
  display: grid;
  margin: 25px 0 0;
  gap: 12px;
}

.im-contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.im-contact-method__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  background: var(--im-teal);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.im-scheduling-note {
  margin-top: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--im-teal);
  border-radius: 8px;
  font-size: 0.92rem;
  text-align: left;
}

@media (max-width: 850px) {
  .im-services-intro,
  .im-scheduling-card {
    grid-template-columns: 1fr;
  }

  .im-scheduling-card__image {
    min-height: 420px;
    max-height: 520px;
  }

  .im-specialty-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .im-page-hero {
    min-height: 340px;
  }

  .im-services-list {
    grid-template-columns: 1fr;
  }

  .im-services-photo img {
    min-height: 300px;
  }

  .im-scheduling {
    padding: 45px 0;
  }

  .im-scheduling-card {
    border-radius: 15px;
  }

  .im-scheduling-card__content {
    padding: 38px 22px;
  }

  .im-scheduling-card__image {
    min-height: 330px;
  }
}

/* FAQ TEAM COUNSELOR PAGES */

/* FAQs */

.im-faq-page {
  min-height: 650px;
  padding: clamp(75px, 10vw, 125px) 0;
  background: var(--im-sand);
}

.im-faq-header {
  width: min(100%, 760px);
  margin: 0 auto 48px;
  text-align: center;
}

.im-faq-header h1 {
  color: var(--im-teal-dark);
}

.im-faq-list {
  display: grid;
  width: min(100%, 880px);
  margin-inline: auto;
  gap: 18px;
}

.im-faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(49, 127, 146, 0.16);
  border-radius: 14px;
}

.im-faq-item summary {
  position: relative;
  padding: 24px 65px 24px 26px;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  list-style: none;
}

.im-faq-item summary::-webkit-details-marker {
  display: none;
}

.im-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--im-teal-dark);
  content: "+";
  font-family: Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 300;
  transform: translateY(-50%);
}

.im-faq-item[open] summary::after {
  content: "−";
}

.im-faq-answer {
  padding: 0 26px 28px;
  color: var(--im-muted);
}

.im-faq-answer p:last-child,
.im-faq-answer ul:last-child {
  margin-bottom: 0;
}

.im-rate-list {
  margin: 15px 0 0;
}

/* Team */

.im-team-hero {
  position: relative;
  display: grid;
  min-height: 610px;
  padding: clamp(70px, 9vw, 110px) 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(24, 56, 49, 0.3),
      rgba(24, 56, 49, 0.52)
    ),
    url("../images/team-forest.jpg") center / cover no-repeat;
}

.im-team-wrap {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.im-team-heading {
  margin-bottom: 35px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.28);
}

.im-team-heading h1,
.im-team-heading p {
  color: inherit;
}

.im-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.im-team-card {
  display: flex;
  min-height: 480px;
  padding: 30px 25px;
  flex-direction: column;
  align-items: center;
  background: rgba(251, 243, 215, 0.96);
  border-radius: 10px;
  box-shadow: var(--im-shadow);
  text-align: center;
}

.im-team-card__photo {
  width: min(100%, 270px);
  aspect-ratio: 1;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(49, 86, 94, 0.18);
}

.im-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.im-team-card h2 {
  margin-bottom: 8px;
  color: var(--im-ink);
  font-size: 1.5rem;
}

.im-team-card__credential {
  margin-bottom: 20px;
  color: var(--im-muted);
  font-size: 0.94rem;
}

.im-team-card .im-button,
.im-team-card__coming {
  margin-top: auto;
}

.im-team-card__coming {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 20px;
  color: var(--im-teal-dark);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Counselor bio */

.im-bio-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(
      rgba(20, 55, 65, 0.2),
      rgba(20, 55, 65, 0.46)
    ),
    url("../images/lynna-rocks.jpg") center 42% / cover no-repeat;
  text-align: center;
}

.im-bio-hero h1,
.im-bio-hero p {
  color: inherit;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
}

.im-bio-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.im-bio-content {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--im-sand);
}

.im-bio-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(400px, 1.28fr);
  gap: clamp(35px, 7vw, 80px);
  align-items: start;
}

.im-bio-photo {
  position: sticky;
  top: 25px;
  overflow: hidden;
  border-radius: var(--im-radius);
  box-shadow: var(--im-shadow);
}

.im-bio-photo img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
}

.im-bio-copy h2 {
  margin-bottom: 8px;
  color: var(--im-teal-dark);
}

.im-bio-copy__role {
  margin-bottom: 35px;
  color: var(--im-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.im-bio-copy p {
  margin-bottom: 20px;
}

.im-bio-signoff {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(49, 127, 146, 0.2);
}

.im-bio-actions {
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .im-team-grid {
    grid-template-columns: 1fr;
  }

  .im-team-card {
    width: min(100%, 500px);
    min-height: auto;
    margin-inline: auto;
  }

  .im-bio-grid {
    grid-template-columns: 1fr;
  }

  .im-bio-photo {
    position: static;
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .im-bio-photo img {
    min-height: 480px;
  }
}

@media (max-width: 600px) {
  .im-team-hero {
    min-height: auto;
  }

  .im-team-card__photo {
    max-width: 230px;
  }

  .im-bio-hero {
    min-height: 310px;
  }

  .im-bio-photo img {
    min-height: 400px;
  }
}
