/* Rispri public-site foundation. Loaded after legacy page styles. */
body.site-page {
  --site-ink: #123238;
  --site-ink-soft: #284b4e;
  --site-teal: #006b67;
  --site-teal-light: #bfe8cc;
  --site-paper: #f7f8f2;
  --site-white: #fff;
  --site-tint: #edf2ea;
  --site-line: #d9e2d9;
  --site-muted: #526761;
  --site-radius: 4px;
  background: var(--site-paper);
  color: var(--site-ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.site-page :where(h1, h2, h3, h4) {
  text-wrap: balance;
}

body.site-page :where(p, li) {
  text-wrap: pretty;
}

body.site-page:not(.solution-page):not(.home-v3) .page-main {
  padding-top: 0 !important;
  background: var(--site-paper);
}

/* Shared editorial hero treatment for legacy public pages. */
body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero, .page-hero, .cat-hero) {
  width: min(1380px, calc(100% - 64px));
  min-height: min(620px, 72vh);
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 2px 2px 56px 2px;
  background: var(--site-ink);
  box-shadow: none;
}

body.site-page:not(.solution-page):not(.home-v3) .ind-page-hero-left {
  padding: clamp(46px, 7vw, 100px) clamp(34px, 6vw, 88px) !important;
  background: var(--site-paper) !important;
  color: var(--site-ink) !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero-eyebrow, .page-hero .overline, .cat-kicker) {
  color: var(--site-teal) !important;
  font: 650 10px/1.5 Inter, Arial, sans-serif !important;
  letter-spacing: 1.8px !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero-title, .page-hero h1, .cat-hero h1) {
  max-width: 760px;
  margin-top: 18px;
  color: var(--site-ink) !important;
  font-family: Archivo, Inter, Arial, sans-serif !important;
  font-size: clamp(40px, 5vw, 70px) !important;
  font-weight: 500 !important;
  line-height: 1.03 !important;
  letter-spacing: -3px !important;
  text-transform: none !important;
  text-shadow: none !important;
}

/* Image-led industry and article heroes retain white foreground copy. */
body.site-page:not(.solution-page):not(.home-v3) .page-hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 25, 30, .34) !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero-sub, .page-hero p, .cat-hero p) {
  max-width: 620px;
  color: var(--site-muted) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

body.site-page:not(.solution-page):not(.home-v3) .page-hero p {
  color: #d8e4df !important;
}

/* Legal and policy pages do not use the standard marketing-page shell. */
body.site-page:not(.solution-page):not(.home-v3) #content {
  width: min(940px, calc(100% - 48px));
  margin: 48px auto 80px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: #fff;
}

body.site-page:not(.solution-page):not(.home-v3) #content h1 {
  color: var(--site-ink);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -2.4px;
}

body.site-page:not(.solution-page):not(.home-v3) #content h2 {
  margin-top: 42px;
  color: var(--site-ink);
  font-family: Archivo, Inter, Arial, sans-serif;
  font-weight: 550;
  letter-spacing: -.8px;
}

body.site-page:not(.solution-page):not(.home-v3) #content :is(p, li) {
  color: var(--site-muted);
  line-height: 1.8;
}

body.site-page:not(.solution-page):not(.home-v3) .ind-page-hero-right {
  background: #dfe9df;
}

body.site-page:not(.solution-page):not(.home-v3) .ind-page-hero-right-overlay {
  background: linear-gradient(180deg, transparent 48%, rgba(9, 40, 43, .72)) !important;
}

body.site-page:not(.solution-page):not(.home-v3) .ind-page-hero-badge {
  border-radius: 2px !important;
  background: rgba(18, 50, 56, .92) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

/* Common content rhythm and typography. */
body.site-page:not(.solution-page):not(.home-v3) :is(.section, .career-section, .why-join-section, .geo-faq-section) {
  padding-top: clamp(64px, 8vw, 96px) !important;
  padding-bottom: clamp(64px, 8vw, 96px) !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.section--gray, .section--light) {
  background: var(--site-tint) !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.section-header h2, .section h2, .career-section h2, .why-join-section h2, .geo-faq-section h2) {
  color: var(--site-ink);
  font-family: Archivo, Inter, Arial, sans-serif !important;
  font-size: clamp(30px, 3.5vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -1.8px !important;
  text-transform: none !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.section-header p, .section > .container > p, .career-section p, .why-join-section p) {
  color: var(--site-muted);
  line-height: 1.8;
}

body.site-page:not(.solution-page):not(.home-v3) :is(.overline, .eyebrow, [class*="kicker"]) {
  color: var(--site-teal);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
}

/* Cards and data surfaces. */
body.site-page:not(.solution-page):not(.home-v3) :is(
  .bento-card, .consult-card, .course-card, .industry-card, .service-card,
  .blog-card, .career-card, .job-card, .cert-card, .client-card,
  .feature-card, .stat-item, .faq-item, .calc-card, .contact-card
) {
  border: 1px solid var(--site-line) !important;
  border-radius: var(--site-radius) !important;
  background: var(--site-white);
  box-shadow: none !important;
  transition: transform .22s ease, border-color .22s ease !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(
  .bento-card, .consult-card, .course-card, .industry-card, .service-card,
  .blog-card, .career-card, .job-card, .cert-card, .client-card,
  .feature-card, .calc-card, .contact-card
):hover {
  transform: translateY(-3px) !important;
  border-color: #82ae9c !important;
  box-shadow: none !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(
  .bento-card, .consult-card, .course-card, .industry-card, .service-card,
  .blog-card, .career-card, .job-card, .cert-card, .client-card,
  .feature-card, .faq-item, .calc-card, .contact-card
) h3 {
  color: var(--site-ink);
  font-family: Archivo, Inter, Arial, sans-serif !important;
  font-weight: 550 !important;
  letter-spacing: -.6px !important;
}

body.site-page:not(.solution-page):not(.home-v3) :is(
  .bento-card, .consult-card, .course-card, .industry-card, .service-card,
  .blog-card, .career-card, .job-card, .cert-card, .client-card,
  .feature-card, .faq-item, .calc-card, .contact-card
) p {
  color: var(--site-muted);
  line-height: 1.75;
}

/* Controls, forms, tables, and calls to action. */
body.site-page :is(.btn, .ind-btn, button[type="submit"]) {
  min-height: 44px;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.site-page :is(.btn-primary, .btn-orange, .ind-btn--dark, button[type="submit"]) {
  border-color: var(--site-ink) !important;
  background: var(--site-ink) !important;
  color: #fff !important;
}

body.site-page :is(.btn-primary, .btn-orange, .ind-btn--dark, button[type="submit"]):hover {
  border-color: var(--site-teal) !important;
  background: var(--site-teal) !important;
}

body.site-page :is(input, select, textarea) {
  border: 1px solid #bfcfc5 !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--site-ink) !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif !important;
}

body.site-page :is(input, select, textarea):focus {
  border-color: var(--site-teal) !important;
  outline: 2px solid rgba(0, 107, 103, .18) !important;
  outline-offset: 1px;
}

body.site-page table {
  border-collapse: collapse;
  border-color: var(--site-line) !important;
  background: #fff;
  color: var(--site-ink);
}

body.site-page table th {
  background: var(--site-ink) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .3px;
}

body.site-page table td {
  border-color: var(--site-line) !important;
}

body.site-page .cta-band {
  background: var(--site-ink) !important;
  color: #fff;
}

body.site-page .cta-band h2 { color: #fff !important; }
body.site-page .cta-band p { color: #c7d8d0 !important; }

/* One footer language across the whole public website. */
body.site-page .mega-footer {
  border-top: 1px solid rgba(191, 232, 204, .22);
  background: #102c31 !important;
}

body.site-page .mega-footer .mega-inner {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 48px;
}

body.site-page .mega-footer .footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

body.site-page .mega-footer .brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

body.site-page .mega-footer .brand-text {
  display: flex;
  flex-direction: column;
}

body.site-page .mega-footer h4 {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

body.site-page .mega-footer ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

body.site-page .mega-footer :is(p, li, address, a) {
  font-size: 12px;
  line-height: 1.7;
  text-decoration: none;
}

body.site-page .mega-footer .footer-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

body.site-page .mega-footer .cert-badge {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.2);
  color: #dce9e2;
  font-size: 8px;
  letter-spacing: .6px;
}

body.site-page .mega-footer .footer-newsletter {
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

body.site-page .mega-footer .newsletter-inner {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

body.site-page .mega-footer .newsletter-form {
  display: flex;
  gap: 8px;
}

body.site-page .mega-footer .newsletter-form input {
  min-width: 240px;
  padding: 11px 13px;
}

body.site-page .mega-footer .mega-legal {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #93aaa3;
  font-size: 10px;
}

body.site-page .mega-footer .brand img {
  filter: brightness(0) invert(1);
}

body.site-page .mega-footer :is(p, li, address, a) {
  color: #c3d3ce;
}

body.site-page .mega-footer h4,
body.site-page .mega-footer .brand strong {
  color: #fff;
}

body.site-page :focus-visible {
  outline: 2px solid #0b8179;
  outline-offset: 4px;
}

@media (max-width: 800px) {
  body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero, .page-hero, .cat-hero) {
    width: calc(100% - 32px);
    min-height: auto;
    margin-top: 18px;
    border-bottom-right-radius: 38px;
  }

  body.site-page:not(.solution-page):not(.home-v3) .ind-page-hero-left {
    padding: 44px 26px !important;
  }

  body.site-page:not(.solution-page):not(.home-v3) :is(.ind-page-hero-title, .page-hero h1, .cat-hero h1) {
    font-size: clamp(36px, 10vw, 52px) !important;
    letter-spacing: -2px !important;
  }

  body.site-page .mega-footer .mega-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
    padding: 48px 0 38px;
  }

  body.site-page .mega-footer .footer-brand {
    grid-column: 1 / -1;
  }

  body.site-page .mega-footer .newsletter-inner {
    width: calc(100% - 40px);
    align-items: stretch;
    flex-direction: column;
  }

  body.site-page .mega-footer .newsletter-form input {
    min-width: 0;
    width: 100%;
  }

  body.site-page .mega-footer .mega-legal {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-page *, body.site-page *::before, body.site-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
