* {
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

header img[src*="logo-horizontal"] {
  width: 183px !important;
  height: auto !important;
  aspect-ratio: 405 / 93;
  object-fit: contain;
}

a {
  text-underline-offset: 0.2em;
}

.cause-card,
.contact-method-card,
.email-cta {
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.email-cta {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.home-hero {
  background:
    radial-gradient(circle at 78% 15%, rgba(47, 166, 191, 0.14), transparent 28rem),
    linear-gradient(135deg, #f3f8fa 0%, #edf3f6 52%, #e7f0f4 100%);
  border-bottom: 1px solid #dce6ed;
  overflow: hidden;
  position: relative;
}

.home-hero::before {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(47, 166, 191, 0.09);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: -170px;
  top: -240px;
  width: 430px;
}

.home-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(48px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 580px;
  padding: 70px 32px 68px;
  position: relative;
  z-index: 1;
}

.home-hero__copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-hero__eyebrow {
  animation: riseIn 0.7s ease both;
  color: #238fa8;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-hero__lead {
  animation: riseIn 0.7s ease 0.14s both;
  color: #344a68;
  font-size: clamp(20px, 1.45vw, 23px);
  line-height: 1.55;
  margin: 0;
  max-width: 31ch;
}

.home-hero__actions {
  align-items: center;
  animation: riseIn 0.7s ease 0.22s both;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 6px;
}

.home-hero__primary {
  background: #2547b4;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(37, 71, 180, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 27px;
  white-space: nowrap;
}

.home-hero__primary:hover {
  background: #1c3a9c;
  box-shadow: 0 13px 28px rgba(37, 71, 180, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.home-hero__secondary {
  align-items: center;
  color: #2547b4;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 7px;
  padding: 13px 5px;
  white-space: nowrap;
}

.home-hero__secondary span {
  transition: transform 0.2s ease;
}

.home-hero__secondary:hover {
  color: #1c3a9c;
}

.home-hero__secondary:hover span {
  transform: translateX(3px);
}

.home-hero__credentials {
  align-items: center;
  animation: riseIn 0.7s ease 0.3s both;
  border-top: 1px solid rgba(122, 140, 161, 0.24);
  color: #55677f;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  gap: 8px 10px;
  letter-spacing: 0.075em;
  margin-top: 5px;
  padding-top: 19px;
  width: 100%;
}

.home-hero__separator {
  color: #a8baca;
}

.home-hero__brand {
  align-items: center;
  animation: riseIn 0.9s ease 0.18s both;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 216, 226, 0.9);
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(27, 42, 68, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: stretch;
  padding: clamp(28px, 3vw, 38px);
}

.home-hero__logo {
  display: block;
  height: auto;
  max-width: 560px;
  width: 100%;
}

.home-hero__tagline {
  border-top: 1px solid rgba(122, 140, 161, 0.2);
  color: #55677f;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(18px, 1.35vw, 21px);
  font-style: italic;
  line-height: 1.45;
  margin: 22px 0 0;
  max-width: 36ch;
  padding-top: 20px;
  text-align: center;
}

.nuance-alliance-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ed;
  border-radius: 12px;
  color: #2547b4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 10px;
  justify-content: center;
  min-height: 110px;
  padding: 18px 22px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.nuance-alliance-toggle:hover,
.nuance-alliance-toggle:focus-visible,
.nuance-alliance-toggle[aria-expanded="true"] {
  background: #f3fbfc;
  border-color: #2fa6bf;
  box-shadow: 0 9px 22px rgba(27, 42, 68, 0.1);
  transform: translateY(-2px);
}

.nuance-alliance-toggle:focus-visible {
  outline: 3px solid rgba(47, 166, 191, 0.28);
  outline-offset: 3px;
}

.nuance-toggle-label {
  align-items: center;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nuance-toggle-chevron {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nuance-alliance-toggle[aria-expanded="true"] .nuance-toggle-chevron {
  transform: rotate(180deg);
}

.nuance-resources-card {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #dce6ed;
  border-radius: 16px;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 28px;
  padding: 30px 34px;
}

.nuance-resources-card[hidden] {
  display: none;
}

.nuance-resources-intro {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nuance-resources-eyebrow {
  color: #2fa6bf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.nuance-resources-intro h3 {
  color: #1b2a44;
  font-family: "Spectral", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.nuance-resources-intro p {
  color: #55677f;
  font-size: 16px;
  line-height: 1.55;
  margin: 9px 0 0;
  max-width: 42ch;
}

.nuance-product-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nuance-product-link {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  color: #1b2a44;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 82px;
  padding: 15px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nuance-product-link strong,
.nuance-product-link small {
  display: block;
}

.nuance-product-link strong {
  font-size: 15.5px;
  line-height: 1.3;
}

.nuance-product-link small {
  color: #7a8ca1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 4px;
}

.nuance-product-link > span:last-child {
  color: #2fa6bf;
  flex-shrink: 0;
  font-size: 19px;
}

.nuance-product-link:hover,
.nuance-product-link:focus-visible {
  border-color: #2fa6bf;
  box-shadow: 0 9px 22px rgba(27, 42, 68, 0.1);
  color: #2547b4;
  transform: translateY(-2px);
}

.nuance-product-link:focus-visible {
  outline: 3px solid rgba(47, 166, 191, 0.28);
  outline-offset: 3px;
}

.consure-qr-card {
  align-items: center;
  background: #edf6f8;
  border: 1px solid #c9dfe5;
  border-radius: 16px;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 210px;
  margin-top: 28px;
  overflow: hidden;
  padding: 30px 34px;
}

.consure-qr-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.consure-qr-logo {
  height: auto;
  max-height: 42px;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}

.consure-qr-eyebrow {
  color: #2fa6bf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.consure-qr-copy h3 {
  color: #1b2a44;
  font-family: "Spectral", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.consure-qr-copy p {
  color: #55677f;
  font-size: 16px;
  line-height: 1.6;
  margin: 9px 0 0;
  max-width: 58ch;
}

.consure-qr-button {
  align-items: center;
  background: #2547b4;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 15.5px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  padding: 12px 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.consure-qr-button:hover,
.consure-qr-button:focus-visible {
  background: #1c3a9c;
  color: #fff;
  transform: translateY(-2px);
}

.consure-qr-button:focus-visible,
.consure-qr-link:focus-visible {
  outline: 3px solid rgba(47, 166, 191, 0.3);
  outline-offset: 3px;
}

.consure-qr-link {
  align-items: center;
  color: #2547b4;
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 700;
  gap: 8px;
  justify-self: end;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consure-qr-link img {
  background: #fff;
  border-radius: 10px;
  display: block;
  height: 185px;
  image-rendering: pixelated;
  width: 185px;
}

.cause-card:hover,
.cause-card:focus-visible,
.contact-method-card:hover,
.contact-method-card:focus-visible,
.email-cta:hover,
.email-cta:focus-visible {
  background: #f3fbfc !important;
  border-color: #2fa6bf !important;
  box-shadow: 0 12px 28px rgba(27, 42, 68, 0.14);
  transform: translateY(-4px);
}

.email-cta:hover,
.email-cta:focus-visible {
  color: #14243d !important;
}

.cause-card img {
  transition: transform 0.2s ease;
}

.cause-card:hover img,
.cause-card:focus-visible img {
  transform: scale(1.035);
}

.cause-card:focus-visible,
.contact-method-card:focus-visible,
.email-cta:focus-visible {
  outline: 3px solid rgba(47, 166, 191, 0.28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cause-card,
  .cause-card img,
  .contact-method-card,
  .email-cta {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  header > div {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding: 14px 22px !important;
  }

  nav {
    flex-wrap: wrap !important;
    gap: 12px 18px !important;
  }

  section > div,
  footer > div,
  footer + div > div {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="display: flex"][style*="justify-content: space-between"] {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .home-hero__inner {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .home-hero__copy {
    max-width: 680px;
  }

  .home-hero__lead {
    max-width: 42ch;
  }

  .home-hero__brand {
    justify-self: stretch;
    max-width: 680px;
    width: 100%;
  }

  .consure-qr-card {
    grid-template-columns: minmax(0, 1fr) 190px !important;
  }

  .nuance-resources-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(34px, 10vw, 46px) !important;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px) !important;
  }

  h3 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  header img[src*="logo-horizontal"] {
    width: 148px !important;
    height: auto !important;
  }

  nav a {
    font-size: 15px !important;
  }

  section > div {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .home-hero__inner {
    gap: 34px;
    padding-bottom: 48px !important;
    padding-top: 48px !important;
  }

  .home-hero__copy {
    gap: 20px;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .home-hero__primary {
    width: 100%;
  }

  .home-hero__secondary {
    justify-content: center;
  }

  .home-hero__credentials {
    letter-spacing: 0.045em;
  }

  .home-hero__brand {
    border-radius: 18px;
    padding: 24px 20px;
  }

  .home-hero__tagline {
    margin-top: 18px;
    padding-top: 17px;
  }

  a[href^="mailto:"],
  a[href^="tel:"],
  a[href*="linkedin.com"] {
    overflow-wrap: anywhere;
  }

  .consure-qr-card {
    gap: 26px;
    grid-template-columns: 1fr !important;
    padding: 26px 22px;
    text-align: center;
  }

  .nuance-resources-card {
    gap: 26px;
    padding: 26px 22px;
    text-align: center;
  }

  .nuance-resources-intro {
    align-items: center;
  }

  .nuance-product-links {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nuance-product-link {
    text-align: left;
  }

  .consure-qr-copy {
    align-items: center;
  }

  .consure-qr-logo {
    object-position: center;
  }

  .consure-qr-link {
    justify-self: center;
  }
}
