/* Header contact menu. Loaded after the main sheet so it wins on the homepage too. */
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.header-end .btn-planner { display: inline-block; }
.contact-pop { position: relative; }
.contact-toggle {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  padding: 9px 18px;
  min-height: 0;
  position: relative;
}
.contact-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.contact-toggle:focus-visible {
  outline: 2px solid var(--navy, #1f3b4d);
  outline-offset: 3px;
}
.contact-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  min-width: 280px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.contact-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}
.contact-pop:hover .contact-menu,
.contact-pop:focus-within .contact-menu,
.contact-pop.open .contact-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact-pop.shut .contact-menu,
.contact-pop.shut:hover .contact-menu,
.contact-pop.shut:focus-within .contact-menu,
.contact-pop.shut.open .contact-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.contact-card {
  background: #fff;
  color: var(--brand-navy, #122134);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(14, 26, 34, 0.18);
  padding: 8px;
  text-align: left;
}
.contact-office {
  margin: 8px 8px 2px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading, #333);
}
.contact-card a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--brand-navy, #122134);
  text-decoration: none;
  font-size: 15px;
}
.contact-card a:hover,
.contact-card a:focus-visible {
  background: var(--bg-light, #f5f6f7);
  outline: 2px solid var(--gold-text, #786c25);
  outline-offset: 0;
}
.header-end .nav-burger { margin-left: 0; }
@media (max-width: 1180px) {
  .header-end .btn-planner { display: none; }
  .header-end .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }
  /* 44px hit target, 22px bars centered, so the visible icon sits 11px inside the button. */
  .header-inner {
    --header-edge: 24px;
    --icon-inset: 11px;
    padding-left: var(--header-edge);
    padding-right: calc(var(--header-edge) - var(--icon-inset));
  }
  .header-end { gap: calc(var(--header-edge) - var(--icon-inset)); }
  .header-end .contact-toggle { padding: 7px 14px; font-size: 14px; }
  .logo { min-width: 0; flex: 0 1 auto; }
  .logo img { max-width: 100%; height: auto; max-height: 32px; }
}
@media (max-width: 700px) {
  .header-inner { --header-edge: 16px; }
  .header-end { display: flex; }
  .header-end .nav-burger { margin-left: 0; }
  .contact-toggle { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 380px) {
  .logo img { height: 26px; }
  .contact-toggle { padding: 8px 10px; font-size: 13px; }
  .hero-v3 p.tl { white-space: normal; }
}

/* Quiet product links and the EMS link: no resting underline, visible focus. */
main p a.quiet-link,
main li a.quiet-link,
main p a.ems-link {
  text-decoration: none;
  text-underline-offset: 3px;
}
main p a.ems-link { font-weight: 700; color: var(--navy, #1f3b4d); }
main p a.quiet-link:hover,
main li a.quiet-link:hover,
main p a.ems-link:hover,
main p a.quiet-link:focus-visible,
main li a.quiet-link:focus-visible,
main p a.ems-link:focus-visible {
  text-decoration: underline;
  outline: 2px solid var(--gold-text, #786c25);
  outline-offset: 3px;
}

.hero.hero-home.hero-v3 { min-height: 720px; }
.hero.hero-home.hero-v3 .hero-bg { object-position: center top; }
.hero.hero-home.hero-v3 { min-height: 840px; }
.hero.hero-home.hero-v3::before { background: linear-gradient(180deg, rgba(8,20,28,.55) 0%, rgba(8,20,28,.08) 22%, rgba(8,20,28,0) 42%, rgba(8,20,28,0) 58%, rgba(8,20,28,.45) 78%, rgba(8,20,28,.72) 100%); }
.hero.hero-home.hero-v3 h1 { font-size: clamp(30px, 4vw, 46px); max-width: 16em; margin-left: auto; margin-right: auto; }
.hero.hero-home.hero-v3 .hero-top { padding-top: 96px; padding-bottom: 0; max-width: 920px; }
.hero.hero-home.hero-v3 .hero-top .sub { margin-bottom: 0; font-size: clamp(15px, 1.6vw, 18px); }
.hero-stack { position: relative; z-index: 5; margin-top: auto; }
.hero-actions { max-width: 1100px; margin: 0 auto; padding: 0 24px 12px; text-align: center; }
.hero-actions .hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 22px; row-gap: 10px; margin: 18px 0 0; max-width: none; font-size: 15px; font-weight: 600; }
.hero-actions .hero-links a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.88); text-decoration-thickness: 1px; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.65); white-space: normal; }
.hero-actions .hero-links a:hover,
.hero-actions .hero-links a:focus-visible { text-decoration-color: #fff; outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  section.hero.hero-home.hero-v3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100svh - 56px);
  }
  .hero.hero-home.hero-v3 .hero-top { padding-top: 48px; }
  .hero-actions { padding-left: 16px; padding-right: 16px; }
  .hero-actions .hero-links { column-gap: 14px; row-gap: 8px; font-size: 14px; }
  .hero.hero-home.hero-v3 .hero-top .sub { font-size: 14px; line-height: 1.35; }
}
