/*
 * Site-wide chrome helpers for the AeroPlus header site part.
 *
 * The header class (.ap-header, a kit global class) is position:absolute and transparent so it
 * can float over the hero band on Home and Get a Quote. Pages without that band get
 * body.ap-header-solid (set in main.php), and the header sits in normal flow on a band that
 * matches the top of the hero: same colour, same pattern slice.
 */
body.ap-header-solid .elementor .ap-header {
  position: relative;
  inset-block-start: 0;
  padding-block-end: 24px;
  background-color: #DDEBF2;
  background-image: var(--ap-chrome-pattern, none);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 2400px auto;
}

@media (max-width: 1024px) {
  body.ap-header-solid .elementor .ap-header { padding-block-end: 20px; }
}

/*
 * Small desktops (1025–1199 px). Six nav items, the phone number and the button do not fit the
 * bar at full spacing, and Elementor's class CSS has no breakpoint between tablet and desktop.
 * Tighten the gaps, and below 1100 px drop the phone text (it stays in the footer).
 */
.elementor .ap-header .ap-hdr-bar a { white-space: nowrap; }

@media (min-width: 1025px) and (max-width: 1199px) {
  .elementor .ap-header .ap-hdr-bar { gap: 16px; }
  .elementor .ap-header .ap-hdr-bar > nav { gap: 16px; }
}

@media (min-width: 1025px) and (max-width: 1099px) {
  .elementor .ap-header .ap-hdr-bar a[href^="tel:"] { display: none; }
}

@media (max-width: 767px) {
  body.ap-header-solid .elementor .ap-header { padding-block-end: 12px; }
}
