/* Override Elementor container padding/width so the widget bleeds full-viewport. */
.elementor-element[data-element_type="container"]:has(> .elementor-widget-aof-hero-scroll),
.elementor-element[data-element_type="container"]:has(.elementor-widget-aof-hero-scroll) {
  padding-inline: 0 !important;
  max-width: none !important;
}

.elementor-widget-aof-hero-scroll {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Smooth transition for header text, logo and background as panel changes. */
.elementor-location-header {
  transition: background-color 0.3s ease;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item,
.elementor-location-header .elementor-menu-toggle,
.elementor-location-header a {
  transition: color 0.3s ease;
}

.elementor-location-header .elementor-widget-theme-site-logo img {
  transition: filter 0.3s ease;
}

body.aofew-last-active .elementor-location-header,
body.aofew-last-active #header-container {
  background-color: var(--aofew-last-bg) !important;
}

body.aofew-nav-light .elementor-location-header .elementor-nav-menu--main li:not(:last-child) .elementor-item,
body.aofew-nav-light .elementor-location-header .elementor-nav-menu--dropdown .elementor-item,
body.aofew-nav-light .elementor-location-header .elementor-menu-toggle,
body.aofew-nav-light .elementor-location-header a {
  color: var(--aofew-nav-color, #ffffff) !important;
}

body.aofew-nav-dark .elementor-location-header .elementor-nav-menu--main li:not(:last-child) .elementor-item,
body.aofew-nav-dark .elementor-location-header .elementor-nav-menu--dropdown .elementor-item,
body.aofew-nav-dark .elementor-location-header .elementor-menu-toggle,
body.aofew-nav-dark .elementor-location-header a {
  color: var(--aofew-nav-color, #000000) !important;
}

body.aofew-nav-dark .elementor-location-header .elementor-widget-theme-site-logo img {
  filter: brightness(0);
}

.elementor-location-header .elementor-nav-menu--main li:last-child .elementor-item {
  color: #000000 !important;
}

.aofew-hero {
  --aofew-button-bg: #ffffff;
  --aofew-button-fg: #111111;
  --aofew-header-offset: 88px;
  position: relative;
  overflow: clip;
}

.aofew-pin {
  position: relative;
}

.aofew-track {
  position: relative;
  display: block;
}

.aofew-overlay {
  display: none;
}

.aofew-panel {
  position: relative;
  min-height: 100vh;
  padding-top: var(--aofew-header-offset);
  box-sizing: border-box;
  background-color: var(--aofew-panel-bg, #2a2a2a);
  display: flex;
  flex-direction: column;
}

.aofew-panel-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--aofew-hero-bg) center / cover no-repeat;
}

.aofew-panel-inner{
  padding-bottom: 72px;
}

.aofew-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45%;
  align-items: stretch;
  column-gap: 35px;
  box-sizing: border-box;
}

.aofew-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  gap: 64px;
  padding: 0 0 10px 84px;
  box-sizing: border-box;
  max-width: 730px;
}

.aofew-panel-media {
  position: relative;
  display: flex;
  /* align-items: center;
  justify-content: stretch; */
  /* max-height: 70vh; */
  height: 100%;
  box-sizing: border-box;
}

.aofew-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.aofew-headline {
  margin: 0 0 20px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.aofew-headline span {
  display: inline;
}

.aofew-description {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.65;
}

.aofew-panel-copy > :last-child {
  margin-bottom: 0;
}

.aofew-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--aofew-button-bg);
  color: var(--aofew-button-fg);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.aofew-button:hover,
.aofew-button:focus-visible {
  transform: translateY(-2px);
  opacity: 0.9;
}

.aofew-image,
.aofew-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 70vh;
  object-fit: contain;
  object-position: right center;
  border-radius: 0;
}

.aofew-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


.aofew-panel--dark {
  color: #ffffff;
}

.aofew-panel--dark .aofew-description {
  color: rgba(255, 255, 255, 0.65);
}

.aofew-panel--light {
  color: #111111;
}

.aofew-panel--light .aofew-description {
  color: rgba(20, 20, 20, 0.62);
}

.aofew-panel--light .aofew-button {
  background: #111111;
  color: #ffffff;
}

.aofew-hero.aofew--animated .aofew-track {
  display: flex;
  width: max-content;
}

.aofew-hero.aofew--animated .aofew-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.aofew-hero.aofew--animated .aofew-panel {
  width: 100vw;
  min-height: 100vh;
  flex: 0 0 100vw;
  background: transparent;
  z-index: 1;
}

/* Applied immediately via inline script before first paint to prevent CLS
   when GSAP loads asynchronously on desktop. Mirrors .aofew--animated rules. */
html.aofew-desktop .aofew-track {
  display: flex;
  width: max-content;
}

html.aofew-desktop .aofew-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

html.aofew-desktop .aofew-panel {
  width: 100vw;
  min-height: 100vh;
  flex: 0 0 100vw;
  background: transparent;
  z-index: 1;
}


@media (max-width: 1023px) {
  /* Repeated here to override Elementor's responsive container styles at this breakpoint. */
  .elementor-element[data-element_type="container"]:has(> .elementor-widget-aof-hero-scroll),
  .elementor-element[data-element_type="container"]:has(.elementor-widget-aof-hero-scroll) {
    padding-inline: 0 !important;
    max-width: none !important;
  }

  .elementor-widget-aof-hero-scroll {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .aofew-panel-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .aofew-panel-content {
    padding: 48px 24px 32px ;
  }

  .aofew-panel-media {
    padding: 48px 24px 32px;
  }

  .aofew-headline {
    font-size: clamp(2.25rem, 10vw, 3.6rem);
  }

  .aofew-description {
    max-width: none;
  }

  .aofew-panel-media {
    min-height: 340px;
  }
}
