/* One authoritative header implementation shared by every main page. */
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 253, 248, 0.94) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(20, 33, 61, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 28px rgba(20, 33, 61, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-family: Manrope, sans-serif !important;
}

.header > .container {
    box-sizing: border-box !important;
    width: min(1344px, calc(100% - 96px)) !important;
    max-width: none !important;
    height: 72px !important;
    margin-inline: auto !important;
    padding-inline: 32px !important;
}

.header .nav {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 72px !important;
    gap: 24px !important;
}

.header .logo {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 16px !important;
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    text-decoration: none !important;
}

.header .logo svg,
.header .logo .logo-icon {
    width: 50px !important;
    height: 50px !important;
    flex: 0 0 50px !important;
}

.header .logo-text {
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.header .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
}

.header .nav-links a {
    position: relative !important;
    color: #1d2939 !important;
    font-family: Manrope, sans-serif !important;
    font-size: 15.04px !important;
    font-weight: 850 !important;
    line-height: 24.064px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.header .nav-links a::after {
    bottom: -9px !important;
    height: 3px !important;
    background: #f59e0b !important;
}

.header .nav-links a:hover,
.header .nav-links a.active {
    color: #2457c5 !important;
}

.header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
}

.header .header-cta.btn-primary {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 228.125px !important;
    min-width: 228.125px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid #f59e0b !important;
    border-radius: 4px !important;
    background: #f59e0b !important;
    color: #10243f !important;
    font-family: Manrope, sans-serif !important;
    font-size: 14.4px !important;
    font-weight: 900 !important;
    line-height: 42px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 1199px) {
    .header > .container {
        width: min(1080px, calc(100% - 64px)) !important;
    }
}

@media (max-width: 1023px) {
    .header .nav-links,
    .header .header-actions {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .header > .container {
        width: calc(100% - 32px) !important;
        padding-inline: 16px !important;
    }

}

/* Centered header: all three rows participate in document flow. */
body[class][class][class][class] .header {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  overflow: visible !important;
}
body[class][class][class][class] .header > .container {
  width: min(1280px, calc(100% - 48px)) !important;
  height: auto !important;
  padding: 24px 0 18px !important;
}
body[class][class][class][class] .header .nav {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 20px !important;
}
body[class][class][class][class] .header .logo {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  translate: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: fit-content !important;
  height: auto !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[class][class][class][class] .header .logo .logo-icon {
  display: block !important;
  width: 44px !important;
  height: 50px !important;
  flex: none !important;
  object-fit: contain !important;
}
body[class][class][class][class] .header .logo .logo-wordmark {
  display: block !important;
  width: 150px !important;
  height: 28px !important;
  flex: none !important;
  object-fit: contain !important;
}
body[class][class][class][class] .header .nav-links {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body[class][class][class][class] .header .nav-links a { font-size: 14px !important; line-height: 24px !important; }
body[class][class][class][class] .header .header-actions {
  position: absolute !important;
  inset: 30px 0 auto auto !important;
  display: flex !important;
}
body[class][class][class][class] .header .hamburger,
body[class][class][class][class] .header .nav-mobile { display: none !important; }
@media (max-width: 1023px) {
  body[class][class][class][class] .header .header-actions { display: none !important; }
}
@media (max-width: 600px) {
  body[class][class][class][class] .header > .container { width: calc(100% - 24px) !important; padding: 18px 0 14px !important; }
  body[class][class][class][class] .header .nav { gap: 14px !important; }
  body[class][class][class][class] .header .nav-links { gap: 6px 12px !important; }
  body[class][class][class][class] .header .nav-links a { font-size: 13px !important; padding-inline: 4px !important; }
}

/* Let the brand scroll away while the navigation row stays pinned.
   Offset = top padding + brand height + gap before the navigation. */
body[class][class][class][class] .header {
  position: sticky !important;
  top: -132px !important;
  z-index: 1000 !important;
}
@media (max-width: 600px) {
  body[class][class][class][class] .header { top: -120px !important; }
}
/* Smooth brand fade and a balanced navigation strip. */
body[class][class][class][class] .header {
  background: #faf9f6 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body[class][class][class][class] .header > .container { padding-bottom: 0 !important; }
body[class][class][class][class] .header .logo {
  opacity: var(--brand-opacity, 1);
  transition: opacity 180ms ease-out;
}
body[class][class][class][class] .header .nav-links {
  box-sizing: border-box;
  min-height: 52px;
  padding-block: 14px !important;
  column-gap: 32px !important;
}
body[class][class][class][class] .header .nav-links li {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}
body[class][class][class][class] .header .nav-links a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}
@media (max-width: 600px) {
  body[class][class][class][class] .header .nav-links { column-gap: 20px !important; }
}

/* CTA shares the navigation row and remains inside the sticky strip. */
body[class][class][class][class] .header .header-actions {
  inset: auto 0 5px auto !important;
}
@media (min-width: 1024px) {
  body[class][class][class][class] .header .nav-links { padding-inline: 248px !important; }
}
@media (max-width: 1023px) {
  body[class][class][class][class] .header .nav {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 16px !important;
  }
  body[class][class][class][class] .header .logo { flex-basis: 100% !important; margin-bottom: 20px !important; }
  body[class][class][class][class] .header .header-actions { display: flex !important; position: static !important; padding-block: 5px; }
  body[class][class][class][class] .header .header-cta.btn-primary { width: auto !important; min-width: 0 !important; padding-inline: 12px !important; font-size: 12px !important; }
  body[class][class][class][class] .header .nav-links { column-gap: 14px !important; }
}
@media (max-width: 600px) {
  body[class][class][class][class] .header .logo { margin-bottom: 14px !important; }
  body[class][class][class][class] .header .nav { column-gap: 8px !important; }
  body[class][class][class][class] .header .nav-links { column-gap: 10px !important; }
  body[class][class][class][class] .header .header-cta.btn-primary { font-size: 11px !important; height: 36px !important; min-height: 36px !important; }
}
@media (max-width: 520px) {
  body[class][class][class][class] .header .header-actions { flex-basis: 100% !important; justify-content: center !important; padding: 0 0 10px !important; }
}
/* Align navigation and CTA within the same grid row. */
@media (min-width: 1024px) {
  body[class][class][class][class] .header .nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px 16px !important;
    align-items: center !important;
  }
  body[class][class][class][class] .header .logo { grid-area: 1 / 2; justify-self: center; }
  body[class][class][class][class] .header .nav-links { grid-area: 2 / 2; padding-inline: 0 !important; }
  body[class][class][class][class] .header .header-actions {
    grid-area: 2 / 3;
    position: static !important;
    align-self: center;
    justify-self: end;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* Horizontal brand lockup with a shorter upper header row. */
body[class][class][class][class] .header .logo {
  flex-direction: row !important;
  justify-content: center !important;
  gap: 14px !important;
}
body[class][class][class][class] .header { top: -94px !important; }
@media (max-width: 600px) {
  body[class][class][class][class] .header { top: -82px !important; }
}
/* Keep anchor destinations clear of the pinned navigation. */
#testimonials { scroll-margin-top: 110px; }
@media screen {
  html { scroll-behavior: smooth; }
}
