/* Home page specific styles */
.hero-stack .hero-copy {
  max-width: min(1260px, 90vw);
  margin: 0 auto;
  text-align: center;
}

.hero-stack .container {
  width: min(1320px, 90vw);
}

.hero-stack .hero-copy h1 {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.55rem, 2vw, 2.4rem);
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.hero-stack .hero-copy p {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.08rem, 1.55vw, 1.78rem);
  line-height: 1.58;
  white-space: normal;
  text-align: center;
}

.applications-section .apps-lead p {
  max-width: none;
  white-space: normal;
}

.applications-section .apps-lead h3 {
  max-width: none;
  white-space: normal;
}

.hero-stack .hero-cta {
  justify-content: center;
}

.hero-stack .hero-cta .btn {
  min-width: 260px;
}

.hero-stack .hero-cta .btn-secondary {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(14, 111, 116, 0.24);
}

.hero-stack .hero-cta .btn-secondary:hover {
  transform: translateY(-1px);
}

.certificates-section .cert-layout {
  display: block;
}

.certificates-section .cert-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.certificates-section .cert-media .cert-wide {
  grid-column: auto;
}

.links-hub-section .home-link-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  padding: 4px 0;
}

.home-link-column h3 {
  margin: 0 0 14px;
  color: var(--ink-strong);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-link-column {
  display: grid;
  align-content: start;
  row-gap: 8px;
}

.home-link-column-offset {
  padding-top: 52px;
}

.home-link-column > a,
.home-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #36516d;
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
  padding: 8px 0;
}

.home-link-column > a:hover,
.home-contact-item:hover {
  color: #0e7f9e;
}

.home-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: #0e7f9e;
}

@media (max-width: 1100px) {
  .applications-section .apps-lead h3 {
    white-space: normal;
  }

  .links-hub-section .home-link-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .home-link-column-offset {
    padding-top: 0;
  }
}

@media (max-width: 800px) {
  .hero-stack .hero-copy h1,
  .hero-stack .hero-copy p {
    max-width: 100%;
    text-wrap: balance;
  }

  .applications-section .apps-lead p {
    white-space: normal;
  }

  .certificates-section .cert-media {
    grid-template-columns: 1fr;
  }

  .links-hub-section .home-link-matrix {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
