/* Reusable section components layered on top of the Webflow base — on-brand
   (accent #9b51e0, indigo #1c1548, Poppins). Used to replace a few flat
   Webflow sections (clinical-services lists, partner logos) with nicer layouts. */

/* ---- Nav "Contact Us" CTA — refined proportions. The Webflow base ships a
   tall (35px) pill with thin (300) 18px text, which reads weak-but-chunky.
   Loads after the webflow sheet, so this wins. Gradient + hover sheen come
   from animations.css. ---- */
.c2anav {
  height: auto;
  padding: 9px 22px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Consistent top breathing room on every section (Webflow gave sections no
   padding, so spacing was uneven and cramped). */
.sectionclass,
.sectionclassaboutus { padding-top: 64px; }
@media (max-width: 767px) {
  .sectionclass,
  .sectionclassaboutus { padding-top: 44px; }
}

/* ---- Device compatibility row: even icon sizing + shared baseline ---- */
#Devices .w-layout-grid img {
  height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  align-self: end;
  justify-self: center;
}

/* ---- Team grid (About » Our Team): original 2-on-top / 3-below layout.
   Scoped to #Team so it wins over any concurrently-injected .team-grid rules. ---- */
#Team .team-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 20px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 16px;
  justify-items: center;
}
#Team .team-member { width: 100%; max-width: 200px; text-align: center; }
#Team .team-member:nth-child(1) { grid-column: 2 / 4; }
#Team .team-member:nth-child(2) { grid-column: 4 / 6; }
#Team .team-member:nth-child(3) { grid-column: 1 / 3; }
#Team .team-member:nth-child(4) { grid-column: 3 / 5; }
#Team .team-member:nth-child(5) { grid-column: 5 / 7; }
#Team .team-member .team-photo {
  display: block;
  width: 142px;
  height: auto;
  margin: 0 auto 14px;
}

/* ---- Section bands for visual separation / alternating backgrounds ---- */
.about-band--white,
.band-white { background: #ffffff; }
.about-band--soft,
.band-tint { background: linear-gradient(180deg, #f5f2fb 0%, #faf8fe 100%); }
/* a band that wraps a section adds generous vertical breathing room */
.band-tint { padding: 40px 0 56px; }

/* space between the section header and its description (Webflow gives none) */
#MultipleSpecialities .container-3 .heading3 { margin-bottom: 18px; }

/* Audience/segment icon row (Who We Serve » Hospitals / Physicians / Gov) — spread evenly.
   NOTE: id starts with a digit, so it must be escaped/attribute-selected, not `#3points`. */
[id="3points"] .columns {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 32px;
  max-width: 1120px;
  margin: 40px auto 0;
  padding-left: 0;   /* Webflow .columns adds 100px side padding that clustered these */
  padding-right: 0;
}
[id="3points"] .columns > .w-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* ---- Purple section title with accent rule (e.g. Key Features) ---- */
.section-title-accent {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  color: #9b51e0;
  text-align: center;
  margin: 0;
}
.section-title-accent::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  border-radius: 2px;
  background: #9b51e0;
  margin: 18px auto 0;
}

/* ---- Mission pull-quote (About » Our Story) ---- */
.story-quote {
  max-width: 940px;
  margin: 14px auto 0;
  padding: 24px 28px 0;
  text-align: center;
  position: relative;
}
.story-quote .quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: 0.7;
  height: 60px;
  color: #9b51e0;
  opacity: 0.18;
  user-select: none;
}
.story-quote blockquote {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: #1c1548;
}
.story-quote blockquote em {
  font-style: normal;
  color: #9b51e0;
}
.story-quote .quote-rule {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: #9b51e0;
  margin: 30px auto 0;
}

/* ---- Check-item grid (e.g. Scope of clinical services) ---- */
.svc-grid {
  max-width: 960px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.svc-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ecedf3;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: Poppins, sans-serif;
  color: #172b4d;
  font-size: 16px;
  line-height: 1.45;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.svc-item:hover {
  box-shadow: 0 12px 28px rgba(28, 21, 72, 0.08);
  transform: translateY(-2px);
  border-color: #e4d6f7;
}
.svc-check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: #9b51e0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* ---- Vertical check list (e.g. About our Intensivist Team) ---- */
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 15px;
  font-family: Poppins, sans-serif;
  color: #172b4d;
  font-size: 16px;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #9b51e0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Feature cards (e.g. Specialties / Care Models / Virtual Nursing) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px 72px; /* breathing room before the next background band */
}
.feature-card {
  background: #fff;
  border: 1px solid #ecedf3;
  border-radius: 18px;
  padding: 44px 34px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover {
  box-shadow: 0 20px 44px rgba(28, 21, 72, 0.1);
  transform: translateY(-5px);
  border-color: #e4d6f7;
}
.feature-icon {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon img { max-width: 68px; max-height: 68px; width: auto; height: auto; }
.feature-card h3 {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #1c1548;
  margin: 0 0 14px;
}
.feature-card p {
  font-family: Poppins, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: #5b6677;
  margin: 0;
}

/* ---- Partner logo strip ---- */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 40px auto 0;
}
.partner-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(158deg, #ffffff 0%, #faf7fe 100%);
  border: 1px solid #efeaf9;
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: 0 6px 20px rgba(28, 21, 72, 0.05);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* purple accent that wipes in from the left on hover */
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b51e0, #6320ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.partner-card img {
  max-height: 52px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.partner-card:hover {
  box-shadow: 0 20px 44px rgba(155, 81, 224, 0.18);
  transform: translateY(-6px);
}
.partner-card:hover::before { transform: scaleX(1); }
.partner-card:hover img { transform: scale(1.04); }

@media (max-width: 767px) {
  .svc-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .partner-strip { grid-template-columns: 1fr; max-width: 320px; }
}

/* ---- 404 / utility page: the Webflow base fixes the wrap to height:50vh, but
   the content (404 doctor image + heading + description + CTA) is taller than
   that. With align-items:center the overflow spills out the bottom, dropping the
   "Omnicure Home" button down into the footer. Let the block grow with its
   content instead, with comfortable vertical breathing room. ---- */
.utility-page-wrap {
  height: auto;
  min-height: 60vh;
  padding: 64px 20px 80px;
}
@media (max-width: 767px) {
  .utility-page-wrap { padding: 44px 18px 56px; }
}

/* ---- Mobile: stack the audience/value-prop icon row (Home, Who We Serve, RPM).
   The desktop rule above forces a no-wrap 3-up flex row; below Webflow's tablet
   breakpoint that row overflows the viewport, so let the three items stack and
   center instead (matches Webflow's native .w-col stacking at <=767). ---- */
@media (max-width: 767px) {
  [id="3points"] .columns {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
  }
  [id="3points"] .columns > .w-col {
    flex: 0 0 auto;   /* desktop sets flex:1 1 0, which collapses height to 0 in a column flex */
    width: 100%;
    max-width: 340px;
    text-align: center;
  }
}

/* ---- Mobile: the product "multiple use cases" grid is a fixed 3-up grid with
   no responsive rule, so the cards are cramped on phones. Drop to 2-up on
   tablet/large phones and 1-up on small phones. ---- */
@media (max-width: 767px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
  }
}
@media (max-width: 479px) {
  .grid-2 {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}
