:root {
  --hq-ink: #282463;
  --hq-ink-dark: #171343;
  --hq-teal: #2dadaf;
  --hq-mist: #eef8f7;
}

/* Preserve the original full-image hero while preventing its legacy grid
   from pushing the overlay content off-screen. */
header .header-content {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  padding: 96px 0 40px 40px;
}

header .header-content > .container-fluid {
  width: min(650px, calc(100vw - 56px));
  margin: 0;
  padding: 0;
}

header .header-content .row {
  display: block;
  margin: 0;
}

header .header-content .row > .col-md-6 {
  float: none;
  width: 100%;
  padding: 0;
}

header .header-content .row > .col-md-6:empty {
  display: none;
}

header .header-content .logo {
  display: block;
  width: 324px;
  max-width: 72vw;
  height: auto;
}

header .header-content .hero-text {
  max-width: 600px;
  margin: 34px 0 30px;
}

header .header-content .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

header .header-content .btn-group > .btn {
  position: static;
  float: none;
  margin: 0 !important;
}

header .header-content > .container-fluid > .container-fluid {
  margin: 0;
  padding: 0;
}

header .header-content .tooltip1 {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 16px 0 0;
}

/* Redesigned registration section. */
.hq-eyebrow {
  margin: 0 0 16px;
  color: var(--hq-teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-form {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 130px);
  background: var(--hq-mist);
}

.signup-intro {
  align-self: start;
  position: sticky;
  top: 100px;
}

.signup-intro h2 {
  margin: 0;
  color: var(--hq-ink);
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.signup-intro > p:last-child {
  max-width: 440px;
  margin-top: 28px;
  font-size: 18px;
}

.section-form #form-container {
  max-width: 680px;
  margin: 0;
  padding: 0;
}

.section-form .form-content {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(38px, 6vw, 70px) clamp(22px, 5vw, 62px);
  overflow: visible;
  background: #fff;
  border: 1px solid rgba(40, 36, 99, 0.09);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(40, 36, 99, 0.12);
}

.section-form #signup-form {
  position: static;
  width: 100%;
  padding: 0;
}

.section-form #signup-form h2 {
  margin: 0 0 34px;
  color: var(--hq-ink);
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.section-form .form label,
.section-form .form-feedback,
.section-form #message,
.section-form .form input {
  width: 100%;
}

.section-form .submit {
  min-height: 50px;
  padding: 12px 26px;
  color: #fff;
  background: var(--hq-ink);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.section-form .submit:hover {
  background: var(--hq-ink-dark);
}

/* Redesigned footer. */
footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--hq-ink-dark);
}

footer .footer-heading,
footer .footer-text,
footer .contact-text,
footer .address-text {
  color: inherit;
  font-family: "Poppins", sans-serif;
}

footer .footer-heading {
  color: #fff;
  font-weight: 700;
}

footer a,
footer .link-text,
footer .linkedin-icon,
footer .youtube-icon {
  color: #8ee1df;
}

footer .youtube-icon {
  color: #ff0000;
}

footer a:hover {
  color: #fff;
}

footer #news-form {
  color: #292c3d;
  border-radius: 14px;
}

footer #newsletter-submit {
  color: #fff;
  background: var(--hq-teal);
}

.back-to-top {
  background: var(--hq-teal);
}

@media (max-width: 860px) {
  .section-form {
    grid-template-columns: 1fr;
  }

  .signup-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  header .header-content {
    padding: 72px 20px 30px;
  }

  header .header-content > .container-fluid {
    width: 100%;
  }

  header .header-content .hero-text {
    margin: 26px 0 30px;
  }

  .section-form {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Image-backed HQ hero, sharing the Research page's quieter typography. */
header.hq-hero {
  display: flex;
  align-items: center;
  padding: 128px clamp(24px, 6vw, 96px) 64px;
  background:
    linear-gradient(90deg, rgba(247, 248, 244, .98) 0%, rgba(247, 248, 244, .94) 27%, rgba(247, 248, 244, .78) 43%, rgba(247, 248, 244, .18) 68%, transparent 100%),
    url("../img/HQ_Banner-optimized.jpg") center / cover no-repeat;
}
.hq-hero .hq-hero__content { width: min(640px, 100%); min-width: 0; }
.hq-hero .hq-hero__logo { display: block; width: 148px; max-width: 50%; height: auto; margin: 0 0 32px; }
.hq-hero .hq-hero__eyebrow {
  margin: 0 0 18px;
  color: #246d6e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hq-hero h1 {
  margin: 0;
  max-width: 14ch;
  color: #282463;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hq-hero h1 span { color: #246d6e; }
.hq-hero .hq-hero__intro {
  max-width: 43ch;
  margin: 26px 0 28px;
  color: #424758;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}
.hq-hero .hq-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hq-hero .hq-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid #282463;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.hq-hero .hq-hero__button--primary { color: #fff; background: #282463; }
.hq-hero .hq-hero__button--primary:hover { background: #171343; }
.hq-hero .hq-hero__button--secondary { color: #282463; background: rgba(255, 255, 255, .7); border-color: #aaa9b9; }
.hq-hero .hq-hero__button--secondary:hover { background: #fff; border-color: #282463; }
.hq-hero .hq-hero__support {
  max-width: 49ch;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(40, 36, 99, .18);
  color: #4a4b5b;
  font-size: 13px;
  line-height: 1.7;
}
.hq-hero .hq-hero__support p { margin: 0; }
.hq-hero .hq-hero__recommendations {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  color: #282463;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hq-hero .hq-hero__recommendations:hover { color: #246d6e; }
@media (max-width: 767px) {
  header.hq-hero {
    padding: 108px 24px 48px;
    background:
      linear-gradient(90deg, rgba(247, 248, 244, .96), rgba(247, 248, 244, .85)),
      url("../img/HQ_Banner-optimized.jpg") center / cover no-repeat;
  }
  .hq-hero .hq-hero__logo { width: 132px; margin-bottom: 26px; }
  .hq-hero h1 { font-size: clamp(36px, 7.5vw, 54px); }
}
@media (max-width: 420px) {
  header.hq-hero { padding-right: 20px; padding-left: 20px; }
  .hq-hero .hq-hero__actions { flex-direction: column; }
  .hq-hero .hq-hero__button { width: 100%; }
}
