/* Quacent hero system — reference: For Architects.
   One full-width photograph, one overlay, one left-aligned text column.
   The q- prefix intentionally isolates heroes from legacy menu/content rules.
   Per-photo positions are CSS custom properties; no per-page layout variants. */
.q-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 580px;
  height: auto;
  margin: 0;
  padding: 72px clamp(24px, 5vw, 72px);
  background: #142f3a;
  color: #fff;
}
.q-hero__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}
.q-hero__picture img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: var(--hero-position, 50% 50%);
}
.q-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(8,27,36,.94) 0%,
    rgba(8,27,36,.84) 40%,
    rgba(8,27,36,.50) 68%,
    rgba(8,27,36,.16) 100%);
}
.q-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  min-width: 0;
}
.q-hero__copy { width: 100%; max-width: 680px; min-width: 0; }
.q-hero .q-hero__eyebrow {
  margin: 0 0 22px;
  color: #d5e9f1;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.q-hero .q-hero__title {
  max-width: 680px;
  margin: 0 0 25px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
}
.q-hero .q-hero__intro {
  max-width: 570px;
  margin: 0 0 30px;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.q-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
}
.q-hero .q-hero__cta, .q-hero .q-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 14px 21px;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #073449;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}
.q-hero .q-hero__secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.65);
}
.q-hero .q-hero__cta:hover { color: #073449; background: #dceef5; border-color: #dceef5; }
.q-hero .q-hero__secondary:hover { color: #073449; background: #fff; border-color: #fff; }
.q-hero a:focus-visible { outline: 3px solid #ffcb66; outline-offset: 5px; }
.q-hero .q-hero__note { max-width: 570px; margin: 20px 0 0; color: #e0ebef; font-size: 12px; line-height: 1.5; }
@media (max-width: 1024px) {
  .q-hero { min-height: 500px; padding-block: 56px; }
  .q-hero__copy { max-width: 590px; }
  .q-hero .q-hero__title { font-size: 46px; }
  .q-hero::after { background: linear-gradient(90deg, rgba(8,27,36,.94), rgba(8,27,36,.78) 60%, rgba(8,27,36,.35)); }
}
@media (max-width: 600px) {
  .q-hero { min-height: 440px; padding: 36px var(--page-gutter, 24px); }
  .q-hero__picture img { object-position: var(--hero-mobile-position, 50% 50%); }
  .q-hero::after { background: linear-gradient(180deg, rgba(8,27,36,.82), rgba(8,27,36,.78) 62%, rgba(8,27,36,.90)); }
  .q-hero .q-hero__eyebrow { font-size: 12px; line-height: 1.5; margin-bottom: 18px; letter-spacing: .11em; }
  .q-hero .q-hero__title { font-size: clamp(32px, 8.3vw, 36px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 20px; }
  .q-hero .q-hero__intro { font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
  .q-hero .q-hero__cta, .q-hero .q-hero__secondary { font-size: 14px; padding: 13px 18px; min-height: 48px; }
  .q-hero__actions { gap: 12px; }
  .q-hero .q-hero__note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-hero, .q-hero * { animation: none; transition: none; }
}
@media print {
  .q-hero { min-height: 0; display: block; padding: 20px 0; background: #fff; color: #142f3a; }
  .q-hero__picture, .q-hero::after, .q-hero__actions { display: none; }
  .q-hero .q-hero__title, .q-hero .q-hero__eyebrow, .q-hero .q-hero__intro, .q-hero .q-hero__note { color: #142f3a; }
}
