/* assessment.css / 10-header.css — ordered CSS owner. */
/* ==========================================================
   SECTION GROUP — SHARED HEADER
   ========================================================== */

/* Canonical one-pager shell. Page-specific final CTA only. */

/* ============================================================
   04. SITE HEADER AND 05. PRIMARY NAVIGATION
   ============================================================ */

.siteHeader {
  --surface: var(--axel-color-paper);
  --text-muted: var(--ink);
  --text-strong: var(--ink-strong);
  --border-strong: var(--line-strong);
  --content-max-width: 86rem;
  --type-brand-name: clamp(1.38rem, 1.58vw, 1.72rem);
  --type-brand-credentials: clamp(1.04rem, 1.16vw, 1.24rem);
  --type-brand-center: clamp(0.98rem, 1.02vw, 1.08rem);
  --header-logo-column: clamp(3.75rem, 4.5vw, 4.75rem);
  --header-brand-padding-block: clamp(0.35rem, 0.55vw, 0.6rem);
  --header-brand-copy-gap: clamp(0.75rem, 1vw, 1.05rem);
  --assessment-nav-start: calc(
    clamp(1rem, 2vw, 2rem) +
    var(--header-logo-column) +
    clamp(0.9rem, 1.4vw, 1.3rem)
  );
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  min-width: 0;
  min-height: var(--header-height);
  border-bottom: 0.0625rem solid var(--border-strong);
  background-image: url("../../assets/header-bg3.png");
  background-position: center 58%;
  background-repeat: no-repeat;
  background-size: cover;
  font-synthesis: none;
}

.headerBrandHero {
  display: flex;
  align-items: center;
  min-height: 6.625rem;
}

.headerBrandHeroInner,
.headerNavBarInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.8rem, 1.3vw, 1.15rem) clamp(1rem, 2vw, 1.75rem);
  width: min(calc(100% - 3rem), var(--main-content-max-width));
  min-width: 0;
  min-height: 5.25rem;
  margin-inline: auto;
}

.headerBrandHeroInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-height: 6.625rem;
  padding: 0;
}

.siteHeaderBrand {
  display: grid;
  grid-template-columns: var(--header-logo-column) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--header-brand-copy-gap);
  min-width: 0;
  padding-block: var(--header-brand-padding-block);
  padding-inline: 0;
}

.siteHeaderBrandMark {
  display: grid;
  align-self: center;
  width: var(--header-logo-column);
  height: var(--header-logo-column);
  place-items: center;
}

.siteHeaderBrandMark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logoText {
  display: grid;
  align-content: center;
  min-width: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  gap: clamp(0.42rem, 0.52vw, 0.56rem);
}

.logoText .headerHeroTitle {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-width: 0;
  gap: clamp(0.48rem, 0.65vw, 0.72rem);
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.logoText .headerHeroTitleName {
  color: var(--text-strong);
  font-size: var(--type-brand-name);
  font-weight: 600;
  white-space: nowrap;
}

.logoText .headerHeroTitle .headerHeroCredentials {
  color: var(--gold-shadow);
  font-size: var(--type-brand-credentials);
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}

.logoText p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-brand-center);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.34;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.headerTopActions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.875rem;
}

.headerContactLink {
  display: inline-flex;
  align-items: center;
  min-height: clamp(2.85rem, 3.1vw, 3.25rem);
  color: var(--text-strong);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--type-small);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.headerWhatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.85rem, 3.1vw, 3.25rem);
  height: clamp(2.85rem, 3.1vw, 3.25rem);
  padding: 0;
  border: 0.0625rem solid var(--charcoal);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.headerWhatsapp__icon {
  display: block;
  width: var(--icon-inline-size);
  height: var(--icon-inline-size);
}

.headerNavBar {
  display: flex;
  align-items: center;
  min-height: 5.25rem;
}

.headerNavBarInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-height: 5.25rem;
}

.siteHeaderNav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  min-width: 0;
  padding-left: var(--assessment-nav-start);
}

.siteHeaderNavLink {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding-block: 0.35rem;
  color: var(--text-strong);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--type-small);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.headerPictureCtas {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: auto;
  min-width: 0;
  gap: 0.875rem;
  white-space: nowrap;
}

.siteHeader a {
  text-decoration: none;
}

.headerContactLink,
.siteHeaderNavLink {
  position: relative;
}

.headerContactLink::after,
.siteHeaderNavLink::after {
  position: absolute;
  right: 0;
  bottom: calc(50% - 0.85em);
  left: 0;
  block-size: 0.0625rem;
  background: var(--gold-shadow);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-fast) ease;
}

.headerContactLink:hover::after,
.headerContactLink:focus-visible::after,
.siteHeaderNavLink:hover::after,
.siteHeaderNavLink:focus-visible::after {
  transform: scaleX(1);
}

.headerContactLink:hover,
.headerContactLink:focus-visible,
.siteHeaderNavLink:hover,
.siteHeaderNavLink:focus-visible {
  color: var(--text-strong);
  text-decoration: none;
}

.headerWhatsapp:hover,
.headerWhatsapp:focus-visible {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-0.06rem);
}

.headerCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.85rem, 3.1vw, 3.25rem);
  padding-inline: clamp(0.9rem, 1.2vw, 1.15rem);
  border: 0.0625rem solid var(--charcoal);
  border-radius: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--type-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.headerPictureCtas .headerCta {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: clamp(2.85rem, 3.1vw, 3.25rem);
  padding-inline: clamp(1rem, 1.35vw, 1.5rem);
  font-size: clamp(0.76rem, 0.86vw, 0.94rem);
}

.headerCta--primary {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.headerCta--primary:hover,
.headerCta--primary:focus-visible {
  border-color: var(--line-strong);
  background: var(--line-strong);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-0.06rem);
}

.headerCta--secondary {
  border-color: var(--charcoal);
  background: transparent;
  color: var(--charcoal);
}

.headerCta--secondary:hover,
.headerCta--secondary:focus-visible {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-0.06rem);
}

.headerWellnessCta {
  color: var(--white);
}

.heroFaqBtn {
  border-color: var(--charcoal);
  background: var(--page);
  color: var(--charcoal);
}

.heroStartBtn {
  position: relative;
  overflow: visible;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.heroStartBtn:is(:hover, :focus-visible) {
  border-color: var(--charcoal);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .headerContactLink::after,
  .siteHeaderNavLink::after,
  .headerCta,
  .headerWhatsapp {
    transition: none;
  }

  .headerCta:hover,
  .headerCta:focus-visible,
  .headerWhatsapp:hover,
  .headerWhatsapp:focus-visible {
    transform: none;
  }
}

@media (forced-colors: active) {
  .siteHeader,
  .headerContactLink,
  .headerWhatsapp,
  .headerCta {
    border-color: CanvasText;
  }

  .siteHeaderNavLink {
    color: LinkText;
  }

  .siteHeader {
    background-color: Canvas;
    background-image: none;
    color: CanvasText;
  }

  .headerContactLink,
  .headerWhatsapp,
  .logoText .headerHeroTitleName,
  .logoText .headerHeroCredentials,
  .logoText p {
    color: CanvasText;
  }

  .headerCta {
    background: Canvas;
    color: ButtonText;
  }

  .headerCta--primary {
    border-color: Highlight;
    background: Highlight;
    color: HighlightText;
  }
}

@media (max-width: 68.75rem) {
  .headerNavBarInner {
    gap: 1.125rem;
  }

  .siteHeaderNav {
    gap: 1.125rem;
    padding-left: var(--assessment-nav-start);
  }

  .siteHeaderNavLink {
    font-size: var(--type-meta);
    letter-spacing: 0.055em;
  }

  .headerPictureCtas {
    gap: 0.625rem;
    min-width: 0;
  }

  .headerPictureCtas .headerCta {
    min-height: clamp(2.85rem, 3.1vw, 3.25rem);
    padding-inline: 1rem;
    font-size: clamp(0.76rem, 0.86vw, 0.94rem);
    letter-spacing: 0.08em;
  }

  .headerWellnessCta {
    min-width: 11.25rem;
  }
}

@media (max-width: 61.25rem) {
  .siteHeader {
    --header-logo-column: clamp(3.6rem, 5.2vw, 4.25rem);
    --header-brand-copy-gap: clamp(0.7rem, 1vw, 0.9rem);
  }

  .logoText .headerHeroTitle {
    gap: clamp(0.38rem, 0.55vw, 0.55rem);
  }

  .logoText p {
    font-size: var(--type-brand-center);
    letter-spacing: 0.045em;
  }
}

@media (max-width: 53.75rem) {
  .headerBrandHeroInner,
  .headerNavBarInner {
    width: min(calc(100% - 1.5rem), var(--content-max-width));
  }
}

@media (max-width: 64rem) {
  .siteHeader {
    position: static;
    min-height: auto;
  }

  .headerBrandHero,
  .headerBrandHeroInner {
    min-height: 5.125rem;
  }

  .headerBrandHeroInner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-block: 0.4rem;
  }

  .siteHeaderBrand {
    width: 100%;
  }

  .headerTopActions {
    justify-content: center;
  }

  .headerNavBar,
  .headerNavBarInner {
    min-height: auto;
  }

  .headerNavBarInner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 0.875rem 1.125rem;
  }

  .siteHeaderNav {
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .headerPictureCtas {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }

  .headerPictureCtas .headerCta {
    flex: 0 1 auto;
    min-width: min(100%, 12rem);
  }
}

@media (max-width: 40rem) {
  .siteHeader {
    --header-logo-column: 3.35rem;
  }

  .headerBrandHeroInner {
    padding-block: clamp(0.4rem, calc(0.05rem + 1.56vw), 0.429rem);
  }

  .siteHeaderBrand {
    grid-template-columns: var(--header-logo-column) minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    column-gap: var(--header-brand-copy-gap);
    text-align: left;
  }

  .logoText {
    display: grid;
    align-content: center;
    min-width: 0;
    padding-block-start: 0;
    gap: clamp(0.42rem, 1.8vw, 0.52rem);
  }

  .logoText .headerHeroTitle {
    flex-wrap: wrap;
    row-gap: 0.08rem;
  }

  .siteHeaderBrandMark {
    width: var(--header-logo-column);
    height: var(--header-logo-column);
  }

  .siteHeaderBrandMark img {
    width: 100%;
    height: 100%;
  }

  .logoText .headerHeroTitleName {
    font-size: clamp(0.92rem, 4vw, 1.12rem);
    white-space: normal;
  }

  .logoText .headerHeroTitle .headerHeroCredentials {
    font-size: clamp(0.82rem, 3.2vw, 0.98rem);
    white-space: normal;
  }

  .logoText p {
    margin-top: 0;
    font-size: var(--type-meta);
    letter-spacing: 0.045em;
    white-space: normal;
  }

  .siteHeaderNav {
    gap: 0.875rem;
  }

  .siteHeaderNavLink {
    font-size: clamp(0.82rem, 3.5vw, 0.94rem);
    letter-spacing: 0.07em;
  }

  .headerPictureCtas .headerCta {
    width: auto;
    max-width: 100%;
  }
}

@media print {
  .siteHeader,
  .headerNavBar {
    display: none;
  }
}

