/* ============================
   ADRASA HEADER (ELEMENTOR WIDGET)
============================ */

/* =========================================================
   BASE / TOKENS
========================================================= */
.adrasa-header {
  /* OPTION B: Fluid logo sizing (no scale ratio) */
  --adrasa-logo-max-width: clamp(160px, 14vw, 250px);
  --adrasa-logo-max-height: clamp(34px, 3.6vw, 52px);

  /* NEW: Fluid desktop menu tokens */
  --adrasa-menu-font-size: clamp(12px, 0.95vw, 16px);
  --adrasa-menu-gap: clamp(14px, 2.2vw, 34px);
  --adrasa-menu-underline-height: clamp(1px, 0.15vw, 2px);
  --adrasa-menu-underline-offset: clamp(3px, 0.35vw, 4px);

  /* NEW: Fluid spacing around logo (so it doesn’t stay huge on smaller desktops) */
  --adrasa-nav-left-gap: clamp(24px, 6vw, 139px);
  --adrasa-nav-right-gap: clamp(24px, 6vw, 139px);

  /* Default megamenu row height (Figma 112px) */
  --adrasa-mega-row-height: 6.16rem;

  /* Figma padding ~26px top/bottom */
  padding: 1.43rem 0;

  background-color: var(--adrasa-header-bg);

  position: relative;
  z-index: 100;
}

/* =========================================================
   COLUMNS (Bootstrap handles row, we control alignment)
========================================================= */
.adrasa-header__col-left,
.adrasa-header__col-logo,
.adrasa-header__col-right {
  display: flex;

  /* IMPORTANT: allow flex items to shrink (prevents logo “stuck” size) */
  min-width: 0;
}

.adrasa-header__col-left { justify-content: flex-start; }
.adrasa-header__col-logo { justify-content: center; }
.adrasa-header__col-right { justify-content: flex-end; }

/* =========================================================
   LOGO
========================================================= */
.adrasa-header__logo img {
  display: block;

  /* make it actually responsive inside flex */
  width: 100%;
  height: auto;

  max-width: var(--adrasa-logo-max-width) !important;
  max-height: var(--adrasa-logo-max-height);
}

/* =========================================================
   MENUS (desktop baseline)
========================================================= */
.adrasa-header__menu {
  display: flex;
  gap: var(--adrasa-menu-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.adrasa-header__menu li { margin: 0; padding: 0; }
.adrasa-header__menu > li { flex: 0 0 auto; }

/* Menu links */
.adrasa-header__menu > li > a {
  position: relative; /* underline */
  font-family: "Roboto", sans-serif;
  font-weight: 500;

  /* Fluid text sizing like logo */
  font-size: var(--adrasa-menu-font-size);

  text-transform: uppercase;
  color: #1d2f66;
  text-decoration: none;

  /* Fluid underline offset */
  padding-bottom: var(--adrasa-menu-underline-offset);

  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Figma distances around logo (now fluid) */
.adrasa-header__nav--left { margin-right: var(--adrasa-nav-left-gap); }
.adrasa-header__nav--right { margin-left: var(--adrasa-nav-right-gap); }

/* Underline effect */
.adrasa-header__menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  /* Fluid underline thickness */
  height: var(--adrasa-menu-underline-height);

  background-color: #3fb6e2;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.adrasa-header__menu li a:hover { color: #3fb6e2; }
.adrasa-header__menu li a:hover::after { transform: scaleX(1); }

/* =========================================================
   ACTIVE MENU (WP current page / ancestor)
   - Underline like hover
   - Does NOT open the megamenu
========================================================= */

/* Current page item */
.adrasa-header__menu-item.current-menu-item > .adrasa-header__menu-link::after,
.adrasa-header__menu-item.current_page_item > .adrasa-header__menu-link::after,

/* Parent of current page (important for child pages under Solutions) */
.adrasa-header__menu-item.current-menu-ancestor > .adrasa-header__menu-link::after,
.adrasa-header__menu-item.current_page_ancestor > .adrasa-header__menu-link::after,
.adrasa-header__menu-item.current_page_parent > .adrasa-header__menu-link::after {
  transform: scaleX(1);
}

/* Optional: also tint the active label (same behavior as hover) */
.adrasa-header__menu-item.current-menu-item > .adrasa-header__menu-link,
.adrasa-header__menu-item.current_page_item > .adrasa-header__menu-link,
.adrasa-header__menu-item.current-menu-ancestor > .adrasa-header__menu-link,
.adrasa-header__menu-item.current_page_ancestor > .adrasa-header__menu-link,
.adrasa-header__menu-item.current_page_parent > .adrasa-header__menu-link {
  color: #3fb6e2;
}


/* =========================================================
   RIGHT SIDE (desktop)
========================================================= */
.adrasa-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  flex-wrap: nowrap;
}

/* CTA icon */
.adrasa-header__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 1.32rem;
  height: 1.32rem;
}

.adrasa-header__cta-icon img {
  width: 0.7777rem;
  height: 0.7777rem;
  display: block;
}

.adrasa-header__cta-icon:not(:has(img)) {
  font-size: 0.77rem;
  color: #009dd8;
}

/* Language toggle */
.adrasa-header__lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.51rem;
  height: 2.42rem;
  border: 0.88px solid #1c3066;
  border-radius: 1.21rem;
  overflow: hidden;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(238, 247, 250, 0.39) 0%,
    rgba(198, 227, 238, 0.39) 100%
  );
  white-space: nowrap;
  transition: background-color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.adrasa-header__lang::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background-color: #1c3066;
  border-radius: 1.21rem;
  transform: translateX(0);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:last-child.is-active)::before,
.adrasa-header__lang.is-pending-last::before {
  transform: translateX(100%);
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:first-child.is-active)::before,
.adrasa-header__lang.is-pending-first::before {
  transform: translateX(0);
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:last-child:not(.is-active):hover)::before {
  transform: translateX(100%);
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:first-child:not(.is-active):hover)::before {
  transform: translateX(0);
}

.adrasa-header__lang-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.715rem;
  line-height: 1.13;
  text-transform: uppercase;
  color: #1d2f66 !important;
  text-decoration: none;
  background: transparent !important;
  transition: color 0.2s ease;
}

.adrasa-header__lang-btn:not(.is-active):hover {
  color: #1d2f66 !important;
}

.adrasa-header__lang-btn.is-active {
  background-color: transparent !important;
  color: #eff7fa !important;
  border-radius: 1.21rem;
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:not(.is-active):hover) .adrasa-header__lang-btn,
.adrasa-header__lang.is-pending-first .adrasa-header__lang-btn,
.adrasa-header__lang.is-pending-last .adrasa-header__lang-btn {
  color: #1c3066 !important;
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:first-child:not(.is-active):hover) .adrasa-header__lang-btn:first-child,
.adrasa-header__lang:has(.adrasa-header__lang-btn:last-child:not(.is-active):hover) .adrasa-header__lang-btn:last-child,
.adrasa-header__lang.is-pending-first .adrasa-header__lang-btn:first-child,
.adrasa-header__lang.is-pending-last .adrasa-header__lang-btn:last-child {
  color: #eff7fa !important;
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:first-child.is-active) .adrasa-header__lang-btn:first-child,
.adrasa-header__lang:has(.adrasa-header__lang-btn:last-child.is-active) .adrasa-header__lang-btn:last-child {
  color: #eff7fa !important;
}

.adrasa-header__lang:has(.adrasa-header__lang-btn:first-child:not(.is-active):hover) .adrasa-header__lang-btn:last-child,
.adrasa-header__lang:has(.adrasa-header__lang-btn:last-child:not(.is-active):hover) .adrasa-header__lang-btn:first-child {
  color: #1c3066 !important;
}

.adrasa-header__lang-btn.is-active:hover {
  background-color: transparent !important;
  color: #eff7fa !important;
}

/* CTA button */
.adrasa-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  background-color: #1d2f66;
  color: #ffffff;
  font-family: "Roboto", sans-serif;

  /* optional: fluid CTA font too (matches menu behaviour) */
  font-size: clamp(12px, 0.95vw, 0.88rem);

  font-weight: 500;
  text-transform: uppercase;
  padding: 0.55rem 1.43rem;
  border-radius: 999px;
  text-decoration: none;
  height: 2.42rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.adrasa-header__cta:hover,
.adrasa-header__cta:hover .adrasa-header__cta-text {
  background-color: #3fb6e2 !important;
  color: #132b57 !important;
}

.adrasa-header__cta:hover .adrasa-header__cta-icon { color: #132b57; }

.adrasa-header__cta.is-active,
.adrasa-header__cta.is-active:visited,
.adrasa-header__cta.is-active .adrasa-header__cta-text,
body.page-id-1986 .elementor-77 .elementor-element.elementor-element-b8f1242 .adrasa-header__cta,
body.page-id-1986 .elementor-77 .elementor-element.elementor-element-b8f1242 .adrasa-header__cta:visited,
body.page-id-1986 .elementor-77 .elementor-element.elementor-element-b8f1242 .adrasa-header__cta .adrasa-header__cta-text {
  background-color: #3fb6e2 !important;
  color: #132b57 !important;
}

.adrasa-header__cta.is-active .adrasa-header__cta-icon,
body.page-id-1986 .elementor-77 .elementor-element.elementor-element-b8f1242 .adrasa-header__cta .adrasa-header__cta-icon {
  color: #132b57 !important;
}

/* Force same hover behavior when megamenu/mobile is open */
.adrasa-header--megamenu-open .adrasa-header__cta:hover,
.adrasa-header--mobile-open .adrasa-header__cta:hover {
  background-color: #3fb6e2 !important;
  color: #132b57 !important;
}

.adrasa-header--megamenu-open .adrasa-header__cta:hover .adrasa-header__cta-text,
.adrasa-header--mobile-open .adrasa-header__cta:hover .adrasa-header__cta-text,
.adrasa-header--megamenu-open .adrasa-header__cta:hover .adrasa-header__cta-icon,
.adrasa-header--mobile-open .adrasa-header__cta:hover .adrasa-header__cta-icon {
  color: #132b57 !important;
  background: transparent !important;
}

/* =========================================================
   MEGAMENU (desktop)
========================================================= */
.adrasa-header__menu-item.has-megamenu { position: static; }

.adrasa-megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #132b57;
  padding: 3.52rem 0 3.08rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.adrasa-megamenu__inner { display: block; }

.adrasa-megamenu__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

/* =========================================
   MEGAMENU — ACTIVE CARD (current page)
========================================= */

/* When the card itself is the current page */
.adrasa-megamenu__item.current-menu-item .adrasa-megamenu__card,
.adrasa-megamenu__item.current_page_item .adrasa-megamenu__card,
.adrasa-megamenu__item.current-menu-ancestor .adrasa-megamenu__card,
.adrasa-megamenu__item.current_page_ancestor .adrasa-megamenu__card {
  border-color: #3fb6e2;
  /* keep it subtle: same hover background or a lighter highlight */
  background: url("../img/background-hover-image.jpg");
  background-size: initial;
  background-position: 100% 100%;
  background-repeat: no-repeat;
}

/* Optional: bump title color a bit */
.adrasa-megamenu__item.current-menu-item .adrasa-megamenu__card-title,
.adrasa-megamenu__item.current_page_item .adrasa-megamenu__card-title {
  color: #ffffff;
}


@media (min-width: 992px) {
  .adrasa-megamenu__grid { grid-auto-rows: var(--adrasa-mega-row-height); }

  .adrasa-megamenu__item,
  .adrasa-megamenu__card-link,
  .adrasa-megamenu__card { height: 100%; }

  .adrasa-megamenu__item--tall { grid-column: 3; grid-row: span 2; }

  .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu__item--pos-3 { grid-column: 1; grid-row: 2; }
  .adrasa-megamenu__item--pos-4 { grid-column: 2; grid-row: 2; }

  .adrasa-megamenu__item--featured { grid-column: 4; grid-row: 2; }
}

@media (min-width: 992px) {
  html[lang^="es"] .adrasa-megamenu__card {
    padding:
      1.2rem
      1.35rem
      1.3rem
      1.35rem;
  }

  html[lang^="es"] .adrasa-megamenu__card-title {
    margin-bottom: 0.28rem;
    font-size: 1.08rem;
    line-height: 0.94;
    text-wrap: balance;
  }

  html[lang^="es"] .adrasa-megamenu__card-text {
    max-width: 25.25rem;
    font-size: 1rem;
    line-height: 1.02;
  }
}

.adrasa-megamenu__item { margin: 0; padding: 0; }

.adrasa-megamenu__card-link {
  display: block;
  text-decoration: none;
}

.adrasa-megamenu__card {
  box-sizing: border-box;
  padding:
    1.705rem
    1.76rem
    3.245rem
    1.76rem;
  border-radius: 17px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.37);
  box-shadow: 15px 17px 25.7px -5px rgba(28, 52, 99, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.adrasa-megamenu__card-title {
  margin: 0 0 0.44rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 0.92;
  color: #ffffff;
  text-transform: none;
}

.adrasa-megamenu__card-text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.9936rem;
  line-height: 1;
  color: #c6e3ee;
  text-transform: none;
}

@media (min-width: 992px) {
  .adrasa-megamenu__card-text {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-overflow: clip;
  }
}

.adrasa-megamenu__card-list {
  margin: 0.44rem 0 0;
  padding-left: 1.32rem;
  list-style: disc;
}

.adrasa-megamenu__card-list li {
  margin-bottom: 0.22rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.9936rem;
  line-height: 1.1;
  color: #c6e3ee;
}

/* Hover ONLY on normal cards (not featured, not image background cards) */
.adrasa-megamenu__card-link:hover
  .adrasa-megamenu__card:not(.adrasa-megamenu__card--featured):not(.adrasa-megamenu__card--background):not([style*="background-image"]) {
  border-color: #3fb6e2;
  background: url("../img/background-hover-image.jpg");
  background-size: initial;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 15px 17px 25.7px -5px rgba(28, 52, 99, 0.06);
}

/* Show megamenu on desktop */
@media (min-width: 992px) {
  /* Give left submenu cards more effective width in 4-col grammars,
     while keeping existing grammar-specific placement logic. */
  .adrasa-megamenu--g-sustainability .adrasa-megamenu__grid,
  .adrasa-megamenu--g-resources .adrasa-megamenu__grid {
    grid-template-columns:
      minmax(0, 1.45fr)
      minmax(0, 1.45fr)
      minmax(0, 0.55fr)
      minmax(0, 0.55fr);
  }

  .adrasa-header__menu-item.has-megamenu:hover > .adrasa-megamenu,
  .adrasa-header__menu-item.has-megamenu:focus-within > .adrasa-megamenu,
  .adrasa-header__menu-item.has-megamenu.is-open > .adrasa-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Keep desktop megamenu open state stable for translated menus too. */
  .adrasa-header .adrasa-header__menu-item.has-megamenu:hover > .adrasa-megamenu,
  .adrasa-header .adrasa-header__menu-item.has-megamenu:focus-within > .adrasa-megamenu,
  .adrasa-header .adrasa-header__menu-item.has-megamenu.is-open > .adrasa-megamenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

/* Featured card base */
.adrasa-megamenu__item--featured { margin: 0; padding: 0; }

.adrasa-megamenu__card--featured {
  box-sizing: border-box;
  padding:
    1.32rem
    1.76rem
    1.32rem
    1.76rem;
  border-radius: 17px;
  background: url("../img/background-active-image.png");
  background-size: cover;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid #3fb6e2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adrasa-megamenu__card--featured .adrasa-megamenu__card-title,
.adrasa-megamenu__card--featured .adrasa-megamenu__card-text,
.adrasa-megamenu__card--featured .adrasa-megamenu__featured-cta {
  color: #ffffff;
}

.adrasa-megamenu__card--featured-single {
  text-align: center;
  justify-content: center;
}
.adrasa-megamenu__card--featured-single .adrasa-megamenu__card-title {
  text-transform: uppercase !important;
}

/* Disable underline style inside grid items */
.adrasa-header__menu li.adrasa-megamenu__item a::after { display: none; }

/* Force megamenu to never uppercase */
.adrasa-megamenu,
.adrasa-megamenu__card,
.adrasa-megamenu__card-title,
.adrasa-megamenu__card-text,
.adrasa-megamenu__card-list,
.adrasa-megamenu__card-list li {
  text-transform: none !important;
}

/* =========================================================
   GRAMMARS (ACF “Featured Grammar”)
========================================================= */

/* g-industries: 3 simple + stat (ALL 196px tall) */
.adrasa-megamenu--g-industries {
  --adrasa-mega-row-height: 10.78rem;
}

@media (min-width: 992px) {
  .adrasa-megamenu--g-industries .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-industries .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-industries .adrasa-megamenu__item--pos-3 { grid-column: 3; grid-row: 1; }
  .adrasa-megamenu--g-industries .adrasa-megamenu__item--featured { grid-column: 4; grid-row: 1; }
}

/* g-about: 3 simple (112px) + image featured (one row) */
@media (min-width: 992px) {
  .adrasa-megamenu--g-about .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-about .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-about .adrasa-megamenu__item--pos-3 { grid-column: 3; grid-row: 1; }
  .adrasa-megamenu--g-about .adrasa-megamenu__item--featured { grid-column: 4; grid-row: 1; }
}

/* g-contact: 3 simple (112px) + 1 simple featured (one row) */
@media (min-width: 992px) {
  .adrasa-megamenu--g-contact .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-contact .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-contact .adrasa-megamenu__item--pos-3 { grid-column: 3; grid-row: 1; }
  .adrasa-megamenu--g-contact .adrasa-megamenu__item--featured { grid-column: 4; grid-row: 1; }
}

/* g-resources: 2x2 + tall featured (no spacer gap column) */
.adrasa-megamenu--g-resources .adrasa-megamenu__card--stat:not([style*="background-image"]) {
  background-image: url("../img/background-active-image.png");
  background-size: cover;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid #3fb6e2;
}

@media (min-width: 992px) {
  .adrasa-megamenu--g-resources .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-resources .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-resources .adrasa-megamenu__item--pos-3 { grid-column: 1; grid-row: 2; }
  .adrasa-megamenu--g-resources .adrasa-megamenu__item--pos-4 { grid-column: 2; grid-row: 2; }

  .adrasa-megamenu--g-resources .adrasa-megamenu__item--featured {
    grid-column: 3 / 5;
    grid-row: 1 / span 2;
  }
}

/* =========================================================
   UNIFY DARK STATES (desktop mega open + mobile open)
========================================================= */
.adrasa-header--megamenu-open,
.adrasa-header--mobile-open {
  background-color: #132b57;
}

/* Keep ONLY the currently open parent underlined */
.adrasa-header--megamenu-open
  .adrasa-header__menu-item.has-megamenu.is-open
  > .adrasa-header__menu-link::after {
  transform: scaleX(1);
}

/* Menu links turn light */
.adrasa-header--megamenu-open .adrasa-header__menu li a,
.adrasa-header--mobile-open .adrasa-header__menu li a {
  color: #eff7fa;
}

.adrasa-header--megamenu-open .adrasa-header__menu li a::after,
.adrasa-header--mobile-open .adrasa-header__menu li a::after {
  background-color: #3fb6e2;
}

/* CTA becomes light on dark */
.adrasa-header--megamenu-open .adrasa-header__cta,
.adrasa-header--mobile-open .adrasa-header__cta {
  background-color: #eff7fa !important;
  color: #132b57 !important;
}

/* Text/icon should NEVER get their own background */
.adrasa-header--megamenu-open .adrasa-header__cta-text,
.adrasa-header--mobile-open .adrasa-header__cta-text,
.adrasa-header--megamenu-open .adrasa-header__cta-icon,
.adrasa-header--mobile-open .adrasa-header__cta-icon {
  color: inherit !important;
  background: transparent !important;
}

/* Language toggle on dark */
.adrasa-header--megamenu-open .adrasa-header__lang,
.adrasa-header--mobile-open .adrasa-header__lang {
  border-color: #eff7fa;
  background: rgba(15, 33, 70, 0.8);
}

.adrasa-header--megamenu-open .adrasa-header__lang-btn,
.adrasa-header--mobile-open .adrasa-header__lang-btn {
  color: #eff7fa !important;
}

.adrasa-header--megamenu-open .adrasa-header__lang-btn.is-active,
.adrasa-header--mobile-open .adrasa-header__lang-btn.is-active {
  background-color: #eff7fa;
  color: #132b57 !important;
}

/* TEMP inverted logo */
.adrasa-header--megamenu-open .adrasa-header__logo img,
.adrasa-header--mobile-open .adrasa-header__logo img,
.adrasa-header--mobile-open .adrasa-header__mobile-logo img {
  filter: brightness(0) invert(1);
}

/* =========================================================
   BURGER (desktop hidden)
========================================================= */
.adrasa-header__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.adrasa-header__burger img {
  display: block;
  width: 24px;
  height: auto;
}

/* =========================================================
   FULLSCREEN MOBILE PANEL (base)
========================================================= */
.adrasa-header__mobile {
  position: fixed;
  inset: 0;
  background-color: #132b57;
  color: #eff7fa;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 95;
}

.adrasa-header--mobile-open .adrasa-header__mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.adrasa-mobile-open { overflow: hidden; }

/* =========================================================
   DESKTOP HEADER CONTAINER
========================================================= */
@media (min-width: 1200px) {
  .adrasa-header > .container {
    max-width: 83.75rem;
  }

  .adrasa-header {
    --adrasa-logo-max-width: 13.4375rem;
    --adrasa-logo-max-height: 2.875rem;
    --adrasa-menu-font-size: 0.9375rem;
    --adrasa-menu-gap: 1.375rem;
    --adrasa-menu-underline-height: 0.0625rem;
    --adrasa-menu-underline-offset: 0.1875rem;
    --adrasa-nav-left-gap: 2rem;
    --adrasa-nav-right-gap: 2rem;

    padding-top: 1.5556rem;
    padding-bottom: 1.1rem;
  }

  .adrasa-header__container {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: grid !important;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.15rem;
  }

  .adrasa-header__col-left,
  .adrasa-header__col-logo,
  .adrasa-header__col-right {
    padding-inline: 0;
    width: auto !important;
    max-width: none;
    flex: none !important;
  }

  .adrasa-header__col-left {
    display: flex;
    justify-content: flex-start;
  }

  .adrasa-header__col-logo {
    display: flex;
    justify-content: center;
    padding-top: 0.1rem;
  }

  .adrasa-header__col-right {
    display: flex;
    justify-content: flex-end;
  }

  .adrasa-header__logo {
    width: 13.4375rem;
    margin-left: 0.375rem;
    margin-top: 0;
  }

  .adrasa-header__logo img {
    max-width: 13.4375rem !important;
    max-height: 2.875rem;
  }

  .adrasa-header__nav--left {
    margin-right: 2rem;
  }

  .adrasa-header__nav--right {
    margin-left: 2rem;
    margin-right: 0;
  }

  .adrasa-header__menu {
    gap: 1.375rem;
  }

  .adrasa-header__menu li {
    margin: 0;
    padding: 0;
  }

  .adrasa-header__menu li a {
    font-size: 0.9375rem;
    line-height: 1.13;
    padding-bottom: 0.1875rem;
  }

  .adrasa-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .adrasa-header__lang {
    width: 4.5625rem;
    height: 2.4375rem;
    margin: 0;
    border-radius: 1.21875rem;
  }

  .adrasa-header__lang-btn {
    font-size: 0.72rem;
    line-height: 1.13;
  }

  .adrasa-header__lang-btn.is-active {
    border-radius: 1.21875rem;
  }

  .adrasa-header__cta {
    min-width: 11rem;
    height: 2.35rem;
    padding-inline: 1rem;
    gap: 0.33rem;
    font-size: 0.875rem;
    line-height: 1.13;
    justify-content: center;
  }
}

/* =========================================================
   MOBILE (<= 991.98px)
========================================================= */
@media (max-width: 991.98px) {
  .adrasa-header {
    --adrasa-logo-max-width: 10.85rem;
    --adrasa-logo-max-height: 2.5625rem;
    padding: 2.2rem 0 0.88rem;
  }

  .adrasa-header > .container,
  .adrasa-header > .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .adrasa-header__col-left { display: none; }
  .adrasa-header__col-logo { justify-content: flex-start; }
  .adrasa-header__col-logo .adrasa-header__logo { width: 100%; }
  .adrasa-header__logo a { display: inline-flex; align-items: center; }
  .adrasa-header__col-right {
    justify-content: flex-end;
    margin-right: 0;
    padding-right: 0.3125rem !important;
  }

  .adrasa-header__nav--right { display: none; }

  .adrasa-header__right .adrasa-header__lang,
  .adrasa-header__right .adrasa-header__cta { display: none; }

  .adrasa-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-0.375rem);
  }

  .adrasa-header__mobile { z-index: 1005 !important; }
  .adrasa-header--mobile-open { z-index: 90 !important; }

  .adrasa-header--mobile-open > .container,
  .adrasa-header--mobile-open > .adrasa-header__container,
  .adrasa-header--mobile-open .row {
    visibility: hidden !important;
  }

  .adrasa-header--mobile-open .adrasa-header__mobile,
  .adrasa-header--mobile-open .adrasa-header__mobile * {
    visibility: visible !important;
  }

  .adrasa-header__mobile-inner {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 2.2rem 1.5rem 2rem !important;
  }

  .adrasa-header__mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-top: 0;
  }

  .adrasa-header__mobile-logo {
    display: inline-flex;
    align-items: center;
    width: 10.85rem;
  }

  .adrasa-header__mobile-logo img {
    max-width: 10.85rem;
    max-height: 2.5625rem;
    width: 100%;
    height: auto;
    display: block;
  }

  .adrasa-header__mobile-close {
    margin-left: auto;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eff7fa;
    font-size: 28px;
    min-width: 1.75rem;
    min-height: 1.75rem;
  }

  .adrasa-header__mobile-close img {
    width: 28px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
  }

  .adrasa-header__mobile-close:not(:has(img)) {
    color: #eff7fa;
    font-size: 2rem;
    line-height: 1;
  }

  .adrasa-header__mobile-nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-right: 6px;
  }

  .adrasa-header__mobile .adrasa-header__menu {
    display: block !important;
    gap: 0 !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
  }

  .adrasa-header__mobile .adrasa-header__menu > li {
    margin: 0 0 16px;
    padding: 0;
  }

  .adrasa-header__mobile-nav .adrasa-header__menu + .adrasa-header__menu {
    margin-top: 16px !important;
  }

  .adrasa-header__mobile .adrasa-header__menu > li > a {
    display: block;
    width: 100%;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: #eff7fa !important;
    text-decoration: none;
    padding: 4px 0;
  }

  .adrasa-header__mobile .adrasa-header__menu li > a::after { display: none !important; }
  .adrasa-header__mobile-menu > li > a { display: inline-block; }

  .adrasa-header__mobile-menu > li.has-megamenu.is-open > a {
    color: #ffffff !important;
    text-decoration-line: underline;
    text-decoration-color: #3fb6e2;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }

  .adrasa-header__mobile .adrasa-megamenu {
    display: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .adrasa-header__mobile
    .adrasa-header__menu-item.has-megamenu.is-open
    > .adrasa-megamenu {
    display: block !important;
  }

  .adrasa-header__mobile .adrasa-megamenu__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .adrasa-header__mobile .adrasa-megamenu__card {
    padding: 18px 20px;
    border-radius: 17px;
  }

  .adrasa-header__mobile-bottom {
    margin-top: auto;
    padding-top: 24px;
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    visibility: visible !important;
  }

  .adrasa-header__mobile-bottom .adrasa-header__lang { align-self: flex-start; }

  .adrasa-header__mobile-bottom .adrasa-header__cta {
    width: auto !important;
    align-self: flex-start;
    justify-content: center;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* =========================================================
   BACKGROUND-ONLY + STAT (base)
========================================================= */
.adrasa-megamenu__card--background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.81;
}

.adrasa-megamenu__card--stat {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   STAT (Figma typography + sizing)
========================================================= */
.adrasa-megamenu--g-industries .adrasa-megamenu__card--stat:not([style*="background-image"]) {
  background-image: url("../img/background-active-image.png");
  background-size: cover;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid #3fb6e2;
}

.adrasa-megamenu__stat-arrow {
  position: absolute;
  top: 0.99rem;
  right: 0.99rem;
  line-height: 0;
}

.adrasa-megamenu__stat-arrow img {
  width: 3.135rem;
  height: 3.135rem;
  display: block;
}

.adrasa-megamenu__stat-value {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 4.07rem;
  line-height: 0.92;
  color: #ffffff;
  margin: 0 0 0.55rem 0;
}

.adrasa-megamenu__stat-label {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.9939rem;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 0.55rem 0;
}

.adrasa-megamenu__stat-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.99rem;
  line-height: 1;
  color: #c6e3ee;
  margin: 0;
  max-width: 17.6rem;
}

/* =========================================================
   WP ADMIN BAR FIX
========================================================= */
body.admin-bar .adrasa-header__mobile {
  top: var(--wp-admin--admin-bar-height, 32px);
  height: calc(100vh - var(--wp-admin--admin-bar-height, 32px));
  bottom: auto;
}

@media (max-width: 782px) {
  body.admin-bar .adrasa-header__mobile {
    top: var(--wp-admin--admin-bar-height, 46px);
    height: calc(100vh - var(--wp-admin--admin-bar-height, 46px));
  }
}

/* =========================================================
   FIX 1 — SUSTAINABILITY: featured background fills right side + no border
========================================================= */
@media (min-width: 992px) {
  .adrasa-megamenu--g-sustainability .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-sustainability .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-sustainability .adrasa-megamenu__item--pos-3 { grid-column: 1; grid-row: 2; }
  .adrasa-megamenu--g-sustainability .adrasa-megamenu__item--pos-4 { grid-column: 2; grid-row: 2; }

  .adrasa-megamenu--g-sustainability .adrasa-megamenu__item--featured {
    grid-column: 3 / 5;
    grid-row: 1 / span 2;
  }
}

.adrasa-megamenu--g-sustainability .adrasa-megamenu__card--background {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* =========================================================
   FIX 2 — INNOVATION: 3 cards inline (needs grammar g-innovation)
========================================================= */
@media (min-width: 992px) {
  .adrasa-megamenu--g-innovation .adrasa-megamenu__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .adrasa-megamenu--g-innovation .adrasa-megamenu__item--pos-1 { grid-column: 1; grid-row: 1; }
  .adrasa-megamenu--g-innovation .adrasa-megamenu__item--pos-2 { grid-column: 2; grid-row: 1; }
  .adrasa-megamenu--g-innovation .adrasa-megamenu__item--pos-3 { grid-column: 3; grid-row: 1; }
}

/* =========================================================
   FIX 3 — FEATURED HOVER: only Solutions keeps "transparent on hover"
========================================================= */
.adrasa-megamenu--g-solutions
  .adrasa-megamenu__item--featured
  .adrasa-megamenu__card-link:hover
  .adrasa-megamenu__card--featured {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.37);
}

/* =========================================================
   FIX 4 — ABOUT: image full card, no border, stable hover
========================================================= */
.adrasa-megamenu--g-about .adrasa-megamenu__item--featured .adrasa-megamenu__card--featured {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: 15px 17px 25.7px -5px rgba(28, 52, 99, 0.06);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* =========================================================
   IMAGE BACKGROUND CARDS — no border, no padding, no hover effects
========================================================= */
.adrasa-megamenu__card--background,
.adrasa-megamenu__card[style*="background-image"],
.adrasa-megamenu__card--featured[style*="background-image"] {
  padding: 0 !important;
  border: 0 !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  transition: none !important;
}

/* Hover/focus does NOTHING on image-bg cards */
.adrasa-megamenu__card-link:hover .adrasa-megamenu__card--background,
.adrasa-megamenu__card-link:hover .adrasa-megamenu__card[style*="background-image"],
.adrasa-megamenu__card-link:hover .adrasa-megamenu__card--featured[style*="background-image"],
.adrasa-megamenu__card-link:focus-visible .adrasa-megamenu__card--background,
.adrasa-megamenu__card-link:focus-visible .adrasa-megamenu__card[style*="background-image"],
.adrasa-megamenu__card-link:focus-visible .adrasa-megamenu__card--featured[style*="background-image"] {
  border: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transform: none !important;
}

/* =========================================================
   CURSOR FIX — ensure pointer on clickable header items
========================================================= */
.adrasa-header__menu li a,
.adrasa-header__menu li a *,
.adrasa-header__cta,
.adrasa-header__lang-btn,
.adrasa-header__burger,
.adrasa-header__mobile-close,
.adrasa-megamenu__card-link {
  cursor: pointer;
}

.adrasa-theme--green .adrasa-header {
    background: #f4fef9 !important;
}
.adrasa-theme--green .adrasa-header.adrasa-header--megamenu-open {
    background-color: #132b57!important;
}
