/**
 * Shared hero geometry for the eight module pages.
 * Copy and chips differ. Width, ratio, type, buttons, and frame do not.
 */

html body .ccd-mod-hero {
  --mod-primary: #25B7A7;
  --mod-deep: #1A9E8F;
  --mod-navy: #083530;
  --mod-text: #3D5250;
  --mod-muted: #616365;
  --mod-ice: #E8F8F6;
  --mod-line: rgba(37, 183, 167, 0.22);
  box-sizing: border-box;
  margin: 0 !important;
  padding: 28px 0 24px !important;
  background:
    radial-gradient(ellipse 55% 50% at 12% 20%, rgba(37, 183, 167, 0.16), transparent 60%),
    linear-gradient(180deg, #eefaf8 0%, #f7fcfb 100%) !important;
  overflow: hidden;
}

body .ccd-mod-hero *,
body .ccd-mod-hero *::before,
body .ccd-mod-hero *::after {
  box-sizing: border-box;
}

html body .ccd-mod-hero > .auto-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

body .ccd-mod-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  min-height: 378px;
}

body .ccd-mod-hero__copy {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

html body .ccd-mod-hero__copy h1 {
  margin: 0 0 16px !important;
  color: #083530 !important;
  font-size: 44px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

html body .ccd-mod-hero__copy p {
  max-width: 480px !important;
  margin: 0 auto 22px !important;
  color: #616365 !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
}

body .ccd-mod-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

html body .ccd-mod-hero a.ccd-mod-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 148px !important;
  width: auto !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  border-width: 1.5px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
}

html body .ccd-mod-hero a.ccd-mod-btn--primary {
  border: 1.5px solid #25B7A7 !important;
  background: #25B7A7 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 183, 167, 0.22) !important;
}

html body .ccd-mod-hero a.ccd-mod-btn--primary:hover,
html body .ccd-mod-hero a.ccd-mod-btn--primary:focus {
  background: #1A9E8F !important;
  border-color: #1A9E8F !important;
  color: #fff !important;
  transform: none !important;
}

html body .ccd-mod-hero a.ccd-mod-btn--ghost {
  border: 1.5px solid #25B7A7 !important;
  background: #fff !important;
  background-image: none !important;
  color: #083530 !important;
}

html body .ccd-mod-hero a.ccd-mod-btn--ghost:hover,
html body .ccd-mod-hero a.ccd-mod-btn--ghost:focus {
  background: #E8F8F6 !important;
  color: #083530 !important;
  transform: none !important;
}

html body .ccd-mod-hero__frame {
  width: 100%;
  max-width: 590px;
  height: 358px;
  margin-left: auto;
  padding: 22px;
  border: 1px solid rgba(37, 183, 167, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(26, 158, 143, 0.12);
  display: flex;
  align-items: center;
}

html body .ccd-mod-hero__frame--image {
  padding: 0;
  overflow: hidden;
  justify-content: center;
  background: #f7fcfb;
}

html body .ccd-mod-hero__frame--image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

body .ccd-mod-hero__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .ccd-mod-hero__frame[data-count="3"] .ccd-mod-hero__chips {
  grid-template-columns: 1fr;
}

body .ccd-mod-hero__chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 183, 167, 0.22);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 53, 48, 0.04);
}

body .ccd-mod-hero__frame[data-count="5"] .ccd-mod-hero__chips li,
body .ccd-mod-hero__frame[data-count="7"] .ccd-mod-hero__chips li {
  min-height: 58px;
  padding: 8px 12px;
}

body .ccd-mod-hero__frame[data-count="7"] .ccd-mod-hero__chips {
  gap: 8px;
}

body .ccd-mod-hero__ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #E8F8F6;
  color: #1A9E8F;
}

body .ccd-mod-hero__ico svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
}

body .ccd-mod-hero__chips strong {
  color: #083530;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* Old Elementor heroes sit above the shared hero's following content. */
body.page-id-105 .elementor-top-section:has(.banner-style-15),
body.page-id-123 .elementor-top-section:has(.banner-style-15),
body.page-id-3332 .page-title {
  display: none !important;
}

@media (max-width: 1024px) {
  body .ccd-mod-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 22px;
  }

  body .ccd-mod-hero__frame {
    height: auto;
    min-height: 0;
    max-width: 590px;
    margin: 0 auto;
  }

  html body .ccd-mod-hero__frame--image {
    height: auto;
    aspect-ratio: 2560 / 1536;
  }

  html body .ccd-mod-hero__frame--image img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 700px) {
  html body .ccd-mod-hero {
    padding: 22px 0 18px !important;
  }

  html body .ccd-mod-hero__copy h1 {
    font-size: 32px !important;
  }

  html body .ccd-mod-hero a.ccd-mod-btn {
    width: 100% !important;
  }

  body .ccd-mod-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  body .ccd-mod-hero a.ccd-mod-btn {
    width: 100%;
  }

  body .ccd-mod-hero__chips,
  body .ccd-mod-hero__frame[data-count="3"] .ccd-mod-hero__chips {
    grid-template-columns: 1fr;
  }
}
