/* Canonical Domscanner header and footer. Load this file after page styles. */
.site-header,
.site-header *,
.site-breadcrumbs,
.site-breadcrumbs *,
.site-contact-modal,
.site-contact-modal *,
.site-privacy-consent,
.site-privacy-consent *,
.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(16px);
}

.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #172554;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand:hover,
.site-footer .brand:hover {
  color: #172554;
}

.site-header .brand-dot,
.site-footer .brand-dot {
  width: 7px;
  height: 7px;
  margin: 8px 0 0;
  background: #dc147f;
  border-radius: 999px;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.site-header .site-nav a {
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.site-header .site-nav .nav-cta {
  display: none;
}

.site-header .site-nav .nav-contact {
  display: none;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .button,
.site-footer .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.site-header .button-primary,
.site-footer .button-primary {
  color: #fff;
  background: #172554;
  border-color: #172554;
}

.site-header .button-secondary,
.site-footer .button-secondary {
  color: #172554;
  background: #fff;
  border-color: #cbd5e1;
}

.site-header .header-contact {
  min-height: 42px;
  padding: 0 15px;
  font-size: 14px;
}

.site-header .menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.site-header .menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: #172554;
  border-radius: 999px;
}

.site-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.site-breadcrumbs a {
  color: #173b8f;
  font-weight: 600;
  text-decoration: none;
}

.site-breadcrumbs a:hover {
  color: #172554;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-breadcrumbs [aria-current="page"] {
  min-width: 0;
}

.site-footer.site-footer {
  padding: 32px 0 24px;
  color: #111827;
  background: #fff;
  border-top: 0;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.site-footer > .container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.06fr) minmax(180px, 0.86fr) minmax(220px, 1fr) minmax(240px, 1.02fr);
  gap: 0;
  align-items: stretch;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-footer .footer-grid > * {
  min-width: 0;
  min-height: 236px;
  padding: 24px 26px;
  background: transparent;
}

.site-footer .footer-grid h2 {
  min-height: 24px;
  margin: 0 0 14px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 24px;
  text-transform: none;
}

.site-footer .footer-grid nav,
.site-footer .footer-grid > div {
  display: grid;
  align-content: start;
  gap: 0;
}

.site-footer .footer-grid nav a + a {
  margin-top: 4px;
}

.site-footer p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.site-footer .footer-grid > div:first-child p {
  max-width: 31ch;
}

.site-footer .footer-grid nav a:not(.button) {
  display: block;
  width: auto;
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.site-footer .footer-grid .button {
  display: inline-flex;
  width: auto;
  margin: 0;
  gap: normal;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
}

.site-footer .footer-grid > div:last-child {
  grid-template-rows: auto 1fr auto;
}

.site-footer .footer-grid > div:last-child .button {
  min-height: 48px;
  margin-top: 16px;
  color: #172554;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.site-footer.site-footer .footer-grid > div:last-child .button:hover {
  color: #172554;
  background: #fff;
  border-color: #94a3b8;
}

.site-footer .footer-grid nav a:not(.button):hover {
  color: #172554;
}

.site-footer .footer-brand {
  min-height: 24px;
  margin: 0 0 14px;
  line-height: 24px;
}

.site-footer .footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.site-footer .footer-bottom p {
  max-width: 980px;
  margin: 0;
  font-size: 14px;
  white-space: normal;
}

body.site-contact-open {
  overflow: hidden;
}

.site-contact-modal[hidden] {
  display: none;
}

.site-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.site-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.site-contact-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.site-contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #334155;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
}

.site-contact-dialog h2 {
  max-width: calc(100% - 52px);
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
  letter-spacing: 0;
}

.site-contact-intro {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
}

.site-contact-form {
  display: grid;
  gap: 16px;
}

.site-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-contact-field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.site-contact-field-wide {
  grid-column: 1 / -1;
}

.site-contact-field input,
.site-contact-field select,
.site-contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.site-contact-field textarea {
  min-height: 104px;
  resize: vertical;
}

.site-contact-field input::placeholder,
.site-contact-field textarea::placeholder {
  color: #7c8799;
  opacity: 1;
}

.site-contact-field input:focus,
.site-contact-field select:focus,
.site-contact-field textarea:focus {
  border-color: #173b8f;
  outline: 3px solid rgba(23, 59, 143, 0.12);
}

.site-contact-consents {
  display: grid;
  gap: 10px;
}

.site-contact-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.site-contact-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.site-contact-consent a {
  color: #173b8f;
}

.site-contact-honeypot {
  position: absolute;
  left: -10000px;
}

.site-contact-submit {
  min-height: 50px;
  color: #fff;
  background: #15803d;
  border: 1px solid #15803d;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.site-contact-submit:hover {
  background: #166534;
  border-color: #166534;
}

.site-contact-submit:focus-visible {
  outline: 3px solid rgba(21, 128, 61, 0.25);
  outline-offset: 2px;
}

.site-contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-contact-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.site-contact-status[data-state="success"] {
  color: #047857;
}

.site-contact-status[data-state="error"] {
  color: #b91c1c;
}

.site-privacy-consent {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 240;
  display: grid;
  width: min(590px, calc(100vw - 36px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  color: #111827;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-privacy-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-privacy-consent-copy {
  display: grid;
  gap: 7px;
}

.site-privacy-consent h2 {
  margin: 0;
  color: #172554;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.site-privacy-consent p {
  margin: 0;
  color: #526075;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.site-privacy-consent a {
  color: #173b8f;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-privacy-consent-button {
  min-width: 112px;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: #172554;
  border: 1px solid #172554;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-privacy-consent-button:hover {
  background: #1e3475;
  border-color: #1e3475;
}

.site-privacy-consent-button:focus-visible {
  outline: 3px solid rgba(23, 59, 143, 0.22);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-header .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-self: end;
  }

  .site-header .site-nav {
    position: fixed;
    top: 73px;
    right: 18px;
    left: 18px;
    z-index: 81;
    display: none;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  }

  .site-header .site-nav.is-open {
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }

  .site-header .site-nav a {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .site-header .site-nav a:hover {
    background: #f8fafc;
  }

  .site-header .site-nav .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #fff;
    background: #172554;
  }

  .site-header .site-nav .nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #172554;
    background: #fff;
    border: 1px solid #cbd5e1;
  }

  .site-header .header-actions {
    display: none;
  }

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

  .site-footer .footer-grid > * {
    min-height: 218px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 9px 14px;
  }

  .site-header .site-nav {
    top: 64px;
    right: 14px;
    left: 14px;
  }

  .site-header .brand,
  .site-footer .brand {
    font-size: 18px;
  }

  .site-breadcrumbs {
    gap: 7px;
    width: calc(100% - 28px);
    padding-top: 20px;
    font-size: 12px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .site-footer.site-footer {
    padding: 24px 0 18px;
  }

  .site-footer > .container {
    width: calc(100% - 28px);
  }

  .site-footer .footer-grid > * {
    min-height: 0;
    padding: 22px 20px;
  }

  .site-footer .footer-grid > div:last-child {
    grid-template-rows: auto auto auto;
  }

  .site-footer .footer-grid .button {
    width: 100%;
    min-height: 50px;
  }

  .site-contact-modal {
    align-items: end;
    padding: 0;
  }

  .site-contact-dialog {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 22px 16px 18px;
    border-radius: 8px 8px 0 0;
  }

  .site-contact-dialog h2 {
    font-size: 22px;
  }

  .site-contact-fields {
    grid-template-columns: 1fr;
  }

  .site-contact-field-wide {
    grid-column: auto;
  }

  .site-privacy-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px 16px 16px;
  }

  .site-privacy-consent h2 {
    font-size: 16px;
  }

  .site-privacy-consent-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-privacy-consent {
    transition: none;
  }
}
