.ebp-header-1 {
  position: relative;
  padding-inline: 2rem !important;
}

.elementor-location-header {
  z-index: 99;
}

.ebp-header-1-container {
  display: flex;
  justify-content: space-between;
}

.ebp-header-1-logo img {
  height: 60px !important;
}

.ebp-header-1-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Social links and newsletter section */
.ebp-header-1-contact-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md, 2rem);
  position: fixed;
  width: calc(100% - 2rem);
  bottom: 0.5rem;
  left: 1rem;
  /* transform: translateY(-50%); */
}

.ebp-header-1-contact {
  display: flex;
  gap: var(--spacing-md, 2rem);
  position: relative;
}

/* Hover image shown above the last contact link (picsum placeholder) */
.ebp-header-1-contact-hover-image {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  width: 200px;
  height: auto;
  z-index: 999999;
  display: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ebp-header-1-contact-hover-image.is-visible {
  display: block;
}

.ebp-header-1-contact-hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ebp-header-1-contact-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.ebp-header-1-contact:hover {
  opacity: 0.7;
}

.ebp-header-1-newsletter-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* Newsletter trigger (button styled as link when popup is used) */
.ebp-header-1-newsletter-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.ebp-header-1-newsletter-trigger:hover {
  opacity: 0.7;
}

.ebp-header-1-newsletter-trigger:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ebp-header-1-newsletter-link:hover {
  opacity: 0.7;
}

/* Newsletter popup modal (same structure as footer policy popup) */
.ebp-header-1-newsletter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  pointer-events: none;
}

.ebp-header-1-newsletter-modal-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ebp-header-1-newsletter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.ebp-header-1-newsletter-modal-content {
  position: relative;
  background-color: var(--purple, #4a1942);
  max-width: 90%;
  max-height: 90vh;
  width: 100%;
  max-width: 600px;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.ebp-header-1-newsletter-modal-active .ebp-header-1-newsletter-modal-content {
  transform: scale(1);
}

.ebp-header-1-newsletter-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  z-index: 2;
}

.ebp-header-1-newsletter-modal-close:hover {
  background-color: var(--white, #fff);
  color: #000;
}

.ebp-header-1-newsletter-modal-close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ebp-header-1-newsletter-modal-header {
  padding: 2rem 2rem 1rem;
  /* border-bottom: 1px solid var(--white, #fff); */
}

.wpcf7-spinner {
  position: absolute;
}

.ebp-header-1-newsletter-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white, #fff);
}

.ebp-header-1-newsletter-modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.ebp-header-1-newsletter-modal-body p {
  color: var(--white, #fff);
  margin-block-end: 1rem;
}

.ebp-header-1-newsletter-modal-body p:last-child {
  margin-block-end: 0;
}

.ebp-header-1-newsletter-modal-body h1,
.ebp-header-1-newsletter-modal-body h2,
.ebp-header-1-newsletter-modal-body h3,
.ebp-header-1-newsletter-modal-body h4,
.ebp-header-1-newsletter-modal-body h5,
.ebp-header-1-newsletter-modal-body h6 {
  margin-block-start: 1.5rem;
  margin-block-end: 1rem;
  color: var(--white, #fff);
}

.ebp-header-1-newsletter-modal-body h1:first-child,
.ebp-header-1-newsletter-modal-body h2:first-child,
.ebp-header-1-newsletter-modal-body h3:first-child,
.ebp-header-1-newsletter-modal-body h4:first-child,
.ebp-header-1-newsletter-modal-body h5:first-child,
.ebp-header-1-newsletter-modal-body h6:first-child {
  margin-block-start: 0;
}

.ebp-header-1-newsletter-modal-body ul,
.ebp-header-1-newsletter-modal-body ol {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
  padding-inline-start: 2rem;
  color: var(--white, #fff);
}

.ebp-header-1-newsletter-modal-body a {
  color: inherit;
  text-decoration: underline;
}

.ebp-header-1-newsletter-modal-body a:hover {
  opacity: 0.8;
}

.ebp-header-1-location {
  font-size: 0.8rem;
}

.ebp-header-1-locations > div:not(:first-child) {
  opacity: 0.4;
}

.ebp-header-1-locations {
  min-width: 250px;
}

.ebp-header-1-location-label {
  min-width: 140px;
  display: inline-block;
}

.ebp-header-1-menu-toggle {
  width: 129px;
  height: 35px;
  background-color: var(--yellow);
  font-size: 1.2rem;
  font-family: var(--font-primary);
  font-weight: bold;
  border: none;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  cursor: pointer;
  position: relative;
  right: 0;
}

.ebp-header-1-menu-toggle--menu-bg {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--yellow);
  z-index: 99;
  overflow: hidden;
}

/* Featured images displayed inside the menu background element */
.ebp-header-1-menu-featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
}

.ebp-header-1-menu-toggle-span {
  justify-content: center;
  align-items: center;
  display: flex;
  width: 100%;
  z-index: 999;
  cursor: pointer;
}

.ebp-header-1-locations-menu-wrapper {
  display: flex;
  gap: 1rem;
}

.menu-main-container,
.menu-home-menu-container {
  position: absolute;
  left: 50%;
  top: 75%;
  z-index: 999;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  margin-top: -3rem;
  transform: translateX(-50%);
  justify-content: center;
}

.menu-main-container ul,
.menu-home-menu-container ul {
  list-style: none;
  font-size: clamp(2.5rem, 1.6325rem + 4.3373vw, 7rem) !important;
}

.menu-main-container li,
.menu-home-menu-container li {
  pointer-events: none;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}

.menu-main-container li a,
.menu-home-menu-container li a {
  color: var(--black);
  position: relative;
  z-index: 1000;
  /* padding-inline-start: 3rem; */
  text-transform: uppercase;
  font-weight: bold;
}

.menu-main-container li a:hover,
.menu-home-menu-container li a:hover {
  background-color: var(--yellow);
  display: block;
  width: 100%;
}

.ebp-header-1-menu-toggle.wpcf7-submit {
  width: auto;
}

.wpcf7-form-control-wrap input {
  border-radius: 0;
  height: 40px !important;
  box-shadow: 5px 5px #000;
  border: 2px solid #fff;
}

.wpcf7-response-output {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* .ebp-header-1-menu {
  height: 100dvh;
} */

/* mobile */
@media (max-width: 991px) {
  .ebp-header-1-locations-menu-wrapper {
    flex-direction: column;
    justify-content: flex-end;
  }

  .menu-main-container li a,
  .menu-home-menu-container li a {
    padding-inline-start: 0;
  }

  .ebp-header-1-locations {
    display: none;
  }

  .ebp-header-1-tagline {
    font-size: 0.45rem;
  }

  .ebp-header-1-menu-toggle {
    height: auto;
    width: 5rem;
  }

  .ebp-header-1-menu-toggle span {
    padding-block-start: 0;
    padding-inline-end: 0;
    justify-content: center;
  }

  /* .menu-main-container li a,
  .menu-main-container ul {
    font-size: 2rem;
  } */

  /* .menu-main-container,
  .menu-home-menu-container {
    left: 0;
  } */

  .ebp-header-1-contact-link,
  .ebp-header-1-newsletter-link {
    font-size: 0.8rem;
  }

  .ebp-header-1-contact-newsletter {
    align-items: flex-end;
  }

  .ebp-header-1-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ebp-header-1-contact-newsletter {
    width: calc(100% - 2rem);
  }
}

/* Home page load animation */
.ebp-header-1-home-page-load-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ebp-header-1-home-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.ebp-header-1-home-bg-image img,
.ebp-header-1-home-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Zoom effect: logo starts at scale(0) on load, then scales out after text row gap is set. */
.ebp-header-1-home-mask-logo {
  transform: scale(0);
  transform-origin: 54.5% 55%;
  transform-box: fill-box;
  transition: transform 2s cubic-bezier(1, 0.01, 0.38, 1.05) !important   ; /* slow at start, fast at end; keep script.js timeout (4000) in sync */
}

/* Mask: black = hide loader BG. Only paths *inside* the mask get black so the logo-shaped hole reveals the video.
   Scoping to mask prevents the white overlay path (outside mask) from being forced black – fixes Safari. */
mask .ebp-header-1-home-mask-logo path,
mask .ebp-home-mask-solid {
  fill: #000 !important;
}

.ebp-header-1-home-bg-image.is-expanded .ebp-header-1-home-mask-logo {
  /* transition: transform 4s cubic-bezier(0.995, 0.012, 0.34, 1) !important; */
  transform: scale(40); /* end size: larger = zoom goes further (was 25) */
}

/* White circle overlay: its own path (not <use>) so fill is always white in Safari and others */
.ebp-header-1-home-white-circle .ebp-home-mask-solid-overlay {
  fill: #fff !important;
}

.ebp-header-1-home-text-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ebp-header-1-home-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.4rem;
  min-width: 150px;
  gap: 1rem;
  transition:
    gap 0.3s ease-out,
    opacity 0.3s ease-out;
}

.ebp-header-1-home-text-1,
.ebp-header-1-home-text-2,
.ebp-header-1-home-text-3,
.ebp-header-1-home-text-4 {
  display: block;
  opacity: 1;
  text-transform: uppercase;
  font-family: var(--font-secondary);
}

.ebp-header-1-home-logo {
  position: absolute;
  z-index: 2;
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.ebp-header-1-home-logo svg {
  max-width: 100%;
  height: 100px;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 4s ease-in-out;
}

.ebp-header-1-home-logo.is-expanding svg {
  transform: scale(12);
}

.ebp-header-1-home-logo path {
  fill: none;
}

.ebp-header-1-home-logo .ebp-home-logo-solid {
  fill: #fff;
}

.single-projects .header-perspective {
  display: none !important;
}

.header-perspective {
  perspective: 1200px;
}

.header-bg {
  position: relative;
  background: var(--black);
  height: 100px;
  width: 100%;
  margin-inline: auto !important;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(90deg) translateX(-50%);
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: top;
  max-width: calc(100% - 6rem);
  box-shadow: 5px 5px var(--white);
  border-left: 1px solid var(--white);
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  /* transform: rotateX(0deg) translateX(-50%); */
}

/* .header-bg:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid #fff;
  background: var(--white);
  z-index: 99;
} */

/* .ebp-header-1-menu-toggle--menu-bg:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(/wp-content/uploads/2026/01/AOF_Logo_White.svg);
  width: 90vw;
  height: 90vh;
  background-color: var(--yellow);
  z-index: 99;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
} */

.menu {
  padding-inline-start: 0 !important;
}

@media (max-width: 767px) {
  .ebp-header-1-home-text-row {
    max-width: 300px;
  }

  .ebp-header-1 {
    padding-inline: 0.5rem !important;
  }

  .header-bg {
    max-width: calc(100% - 2rem);
    height: 80px;
  }
}
