/* Responsive finishing layer for the exported ProGrid PK homepage. */
:root {
  --page-gutter: clamp(1rem, 3vw, 3rem);
  --section-space: clamp(1rem, 1.5vw, 5rem);
  --header-height: 6.25rem;
}

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

.container-p {
  width: 100%;
  padding-inline: var(--page-gutter);
}

:where(main, section, form, .grid > *, .flex > *) {
  min-width: 0;
}

:where(h1, h2, h3, h4, p) {
  overflow-wrap: break-word;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 4px;
}

:where(button, a, input) {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: var(--page-gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: white;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: 100%;
}

.announcement-content {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 2.25rem;
}

.announcement-content > span {
  min-width: 0;
}

.announcement-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 2rem;
}

.announcement-content > div {
  gap: 0.25rem;
}

.header-main {
  min-height: 4rem;
  gap: 1rem;
}

.header-main > a {
  width: fit-content;
  flex-shrink: 0;
}

.header-actions {
  justify-self: end;
}

.header-actions > a {
  min-height: 2.75rem;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.desktop-navigation {
  gap: 0.125rem;
}

.desktop-navigation > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  background: transparent;
  color: var(--foreground);
  font-weight: 500;
}

.desktop-navigation > a.route-active,
.desktop-navigation > a[aria-current="page"] {
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
}

.category-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}

.mobile-navigation {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 60;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 16px 30px rgb(15 35 50 / 12%);
}

.mobile-navigation-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem max(1rem, env(safe-area-inset-bottom));
  padding-inline: var(--page-gutter);
}

.mobile-navigation-links > a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.mobile-navigation-links > a:hover,
.mobile-navigation-links > a[aria-current="page"]:not(.mobile-submit-link) {
  background: var(--emerald-soft);
  color: var(--navy);
}

.mobile-navigation-links > a.route-active {
  background: var(--emerald-soft);
  color: var(--navy);
  font-weight: 700;
}

.mobile-navigation-links > .mobile-submit-link {
  justify-content: center;
  margin-top: 0.5rem;
  background: var(--emerald);
  color: white;
  font-weight: 600;
}

#main-content section.container-p,
#main-content section > .container-p {
  padding-block: var(--section-space);
}

#main-content h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.65vw, 2.75rem);
  line-height: 1.18;
}

#main-content h3 {
  line-height: 1.3;
}

#main-content .text-lg {
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);
}

#main-content .mb-10 {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

#main-content .mt-10 {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

#main-content .border-dashed > p {
  margin-inline: auto;
}

#main-content .hero-section > .hero-layout {
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(0rem, 1vw, 3.5rem);
}

.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-copy {
  align-self: start;
}

.hero-copy > p {
  margin-top: 0.75rem;
  line-height: 1.4;
}

.hero-eyebrow {
  max-width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: clamp(0.625rem, 0.52rem + 0.3vw, 0.75rem);
  line-height: 1.5;
  letter-spacing: 0.075em;
  margin-bottom: 1rem;
}

.hero-eyebrow > svg,
.hero-badge > div:first-child {
  flex-shrink: 0;
}

.action-row {
  align-items: stretch;
  margin-top: 1rem;
}

#main-content a.inline-flex,
#main-content button,
.action-row > a {
  min-height: 2.75rem;
  height: auto;
  max-width: 100%;
  padding-block: 0.75rem;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.action-row > a {
  padding-inline: clamp(1rem, 2.2vw, 2rem);
}

.search-form {
  min-width: 0;
  min-height: 3.5rem;
  margin-top: 1rem;
  gap: 0.125rem;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

.search-form:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}

.search-form > svg {
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.search-form input {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  font-size: 1rem;
}

.search-form input:focus-visible {
  outline: none;
}

.search-form button {
  flex-shrink: 0;
  padding-inline: 1rem;
}

.hero-visual {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-image {
  aspect-ratio: 1.72;
}

.hero-badge {
  max-width: min(13.75rem, calc(100% - 1rem));
}

/* Keep the verification card compact and fully inside the hero image. */
.hero-image + .hero-badge {
  top: clamp(0.4rem, 2vw, 0rem);
  right: auto;
  bottom: auto;
  left: clamp(0.4rem, 0vw, 0rem);
  max-width: 10.75rem;
  gap: 0.625rem;
  padding: 0.4rem;
  border-radius: 0.875rem;
}

.hero-image + .hero-badge > div:first-child {
  width: 2.25rem;
  height: 2.25rem;
}

.hero-image + .hero-badge > div:first-child svg {
  width: 1.125rem;
  height: 1.125rem;
}

.hero-image + .hero-badge > div:last-child {
  min-width: 0;
}

.hero-image + .hero-badge .text-xs {
  font-size: 0.6875rem;
  line-height: 1.2;
}

.hero-image + .hero-badge .text-sm {
  font-size: 0.8125rem;
  line-height: 1.25;
}

#main-content .benefits-grid {
  gap: 1.25rem;
  padding-block: 1.75rem;
}

.benefits-grid > div {
  min-width: 0;
}

.benefits-grid > div > span {
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.purpose-section > .grid {
  gap: clamp(2rem, 4vw, 3rem);
}

.purpose-artwork {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 15rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.purpose-artwork p {
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.35;
}

.platform-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.platform-card p,
.values-grid p {
  line-height: 1.75;
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.values-grid > div {
  padding: 1.5rem;
}

#main-content .why-section h2,
#main-content .journey-section h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
}

.why-section .mt-12 {
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}

.why-section .mt-10 > a {
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.journey-section .action-row > a[href="/contact"] {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
  color: white;
}

.journey-section .action-row > a[href="/contact"]:hover {
  background: white;
  color: var(--navy);
}

.newsletter-section > div {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.newsletter-form input {
  min-width: 0;
  min-height: 2.875rem;
  font-size: 1rem;
}

.newsletter-form button {
  flex-shrink: 0;
}

.form-status {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

/* Internal static pages */
.route-page {
  min-height: 55vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-soft), white 72%);
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 24px 24px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

#main-content .page-hero > .page-hero-inner {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.page-eyebrow {
  margin-bottom: 1rem;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 16ch;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 46rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem);
  line-height: 1.75;
}

.route-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

#main-content .route-section > .container-p {
  padding-block: 0;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.listing-card,
.content-card,
.prose-card,
.empty-panel {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 8px 30px rgb(15 35 50 / 5%);
}

.listing-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.listing-card.selected-industry {
  border-color: var(--emerald);
  box-shadow: 0 14px 38px rgb(15 35 50 / 10%);
  transform: translateY(-3px);
}

.listing-card h2,
.content-card h2,
.empty-panel h2,
.prose-card h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem);
  font-weight: 750;
  line-height: 1.3;
}

.listing-card p,
.content-card p,
.empty-panel p,
.prose-card p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.listing-card > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--emerald);
  font-size: 0.875rem;
  font-weight: 700;
}

.listing-card > span svg {
  width: 1rem;
  height: 1rem;
}

.page-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.page-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.route-search {
  display: flex;
  max-width: 50rem;
  min-height: 3.6rem;
  align-items: center;
  gap: 0.5rem;
  margin-inline: auto;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 30px rgb(15 35 50 / 7%);
}

.route-search:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}

.route-search > svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.route-search input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.route-search button,
.page-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.route-search button,
.page-button.primary {
  background: var(--emerald);
  color: white;
}

.route-result-space {
  margin-top: 2rem;
}

.empty-panel {
  padding: clamp(2rem, 6vw, 4.5rem);
  text-align: center;
}

.empty-panel .page-icon {
  margin-inline: auto;
}

.empty-panel p {
  max-width: 34rem;
  margin-inline: auto;
}

.empty-panel .page-button {
  margin-top: 1.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip-row a {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 650;
}

.chip-row a:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.page-split,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.feature-card {
  border-color: color-mix(in srgb, var(--emerald) 35%, white);
  background: linear-gradient(145deg, var(--emerald-soft), white);
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.detail-list li::before {
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--emerald);
  content: "";
}

.content-card .page-button {
  margin-top: 1.5rem;
}

.contact-email,
.prose-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--emerald);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.prose-card {
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.prose-card h2:not(:first-child) {
  margin-top: 2rem;
}

@media (max-width: 639px) {
  .route-search {
    border-radius: 1rem;
  }

  .route-search > svg {
    display: none;
  }

  .route-search input {
    padding-left: 0.65rem;
  }

  .route-search button {
    padding-inline: 1rem;
  }

  .chip-row {
    flex-wrap: nowrap;
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767px) {
  .page-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: 0;
}

.footer-grid {
  gap: 2.5rem 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-grid li > a {
  display: inline-block;
  padding-block: 0.375rem;
  line-height: 1.5;
}

.footer-grid ul > li {
  margin-block: 0;
}

.footer-bottom {
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  line-height: 1.75;
  text-align: center;
}

.footer-socials {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.footer-socials > span {
  margin-right: 0.375rem;
}

.footer-socials > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
}

.footer-socials > a:hover {
  background: rgb(255 255 255 / 8%);
}

@media (max-width: 639px) {
  .hero-eyebrow {
    border-radius: 0.75rem;
  }

  .hero-badge {
    padding: 0.625rem;
    gap: 0.5rem;
    border-radius: 0.875rem;
    max-width: 11.75rem;
  }

  .hero-badge > div:first-child {
    width: 2rem;
    height: 2rem;
  }

  .hero-badge .text-sm {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .hero-badge .text-xs {
    font-size: 0.6875rem;
  }

  .hero-badge > div:first-child svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .hero-image + .hero-badge {
    top: 0.5rem;
    left: 0.5rem;
    max-width: 9.75rem;
    gap: 0.5rem;
    padding: 0.55rem 0.625rem;
    border-radius: 0.75rem;
  }

  .hero-image + .hero-badge > div:first-child {
    width: 1.875rem;
    height: 1.875rem;
  }

  .hero-image + .hero-badge .text-xs {
    font-size: 0.625rem;
  }

  .hero-image + .hero-badge .text-sm {
    font-size: 0.72rem;
  }

  .benefits-grid > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .action-row > a,
  .why-section .mt-10 > a {
    width: 100%;
  }

  .vision-section .flex-wrap > span {
    max-width: 100%;
    padding-inline: 0.875rem;
    font-size: 0.8125rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .footer-grid li > a {
    min-height: 2.75rem;
    padding-block: 0.65rem;
  }

  .footer-bottom {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    text-align: left;
  }

  .footer-bottom > :first-child {
    flex: 1;
  }

  .footer-socials {
    flex-shrink: 0;
  }
}

@media (max-width: 1279px) {
  .desktop-navigation,
  .category-bar {
    display: none;
  }

  .site-header:has(.menu-toggle[hidden]) {
    position: relative;
  }

  .site-header:has(.menu-toggle[hidden]) .mobile-navigation {
    position: static;
    max-height: none;
    box-shadow: none;
  }
}

@media (min-width: 1280px) {
  .desktop-navigation {
    display: flex;
  }

  .menu-toggle,
  .mobile-navigation {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
