/* Hi-Res Homes 1125p35 — header nav zoom, tighter mid-width nav, smaller header CTAs. */
/* Nav hover: zoom only. No gold glow, no text-shadow. */

header.sticky nav[aria-label="Primary"] a,
#mobile-nav nav[aria-label="Mobile"] a {
  text-shadow: none !important;
  box-shadow: none;
  filter: none;
  background-image: none;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 220ms ease-out;
}

header.sticky nav[aria-label="Primary"] a:hover,
header.sticky nav[aria-label="Primary"] a:focus-visible,
#mobile-nav nav[aria-label="Mobile"] a:hover,
#mobile-nav nav[aria-label="Mobile"] a:focus-visible {
  transform: scale(1.07);
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  header.sticky nav[aria-label="Primary"] a,
  #mobile-nav nav[aria-label="Mobile"] a,
  header.sticky nav[aria-label="Primary"] a:hover,
  header.sticky nav[aria-label="Primary"] a:focus-visible,
  #mobile-nav nav[aria-label="Mobile"] a:hover,
  #mobile-nav nav[aria-label="Mobile"] a:focus-visible {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep the primary nav on one row at 1024–1440 after adding Checklists. */
@media (min-width: 1024px) {
  header.sticky nav[aria-label="Primary"] {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  header.sticky nav[aria-label="Primary"] a {
    white-space: nowrap;
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  header.sticky nav[aria-label="Primary"] {
    gap: 0.7rem;
  }
  header.sticky nav[aria-label="Primary"] a {
    font-size: 0.8125rem;
  }
}

/*
  Header CTAs only: "Book a shoot" and inverted "Client login".
  Before: px-4 (16px) py-2.5 (10px) text-sm (14px / 1.25rem line-height) ≈ 40px tall.
  After: × 0.87 → font 12.18px, padding 8.7px 13.92px, visual height ≈ 32.6px.
  Mobile / small tablets: min-height 40px for the touch target.
  Do not style hero, mid-page, or #mobile-nav Book buttons.
*/
header.sticky a[href="#contact"],
header.sticky a.hrh-header-book,
header.sticky a.hrh-header-login {
  font-size: 0.76125rem;
  line-height: 1.25;
  font-weight: 600;
  padding: 0.54375rem 0.87rem;
  border-radius: 999px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

header.sticky a.hrh-header-login {
  display: none;
  background: #fdfcf8;
  color: #234786;
  box-shadow: inset 0 0 0 1.5px #234786;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 1024px) {
  header.sticky a.hrh-header-login {
    display: inline-flex;
  }
}
header.sticky a.hrh-header-login:hover,
header.sticky a.hrh-header-login:focus-visible {
  background: #1d2f55;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #1d2f55;
}

html[data-theme="dark"] header.sticky a.hrh-header-login {
  background: transparent;
  color: #9eb6e0;
  box-shadow: inset 0 0 0 1.5px #9eb6e0;
}
html[data-theme="dark"] header.sticky a.hrh-header-login:hover,
html[data-theme="dark"] header.sticky a.hrh-header-login:focus-visible {
  background: #9eb6e0;
  color: #121821;
  box-shadow: inset 0 0 0 1.5px #9eb6e0;
}

@media (max-width: 767px) {
  header.sticky a[href="#contact"],
  header.sticky a.hrh-header-login {
    min-height: 40px;
  }
}

@media (min-width: 1024px) {
  header.sticky nav[aria-label="Primary"] a[href^="/client-login"] {
    display: none !important;
  }
}

/*
  1125p46: center the primary nav in the header/viewport, not in leftover space.
  Logo + Realtors/Rentals stay left; Client login + Book a shoot stay right.
  The nav is taken out of flow, so the CTA cluster must keep margin-left: auto
  (it has lg:ml-6, which would otherwise pull it next to the audience).
*/
@media (min-width: 1024px) {
  header.sticky nav[aria-label="Primary"] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 1;
  }
  header.sticky > div > div.ml-auto {
    margin-left: auto !important;
  }
}
