
/* ============================================================================
   ALIANZA CUSTOM CSS
   Paste this entire file into Theme Options -> Custom CSS

   PART A  Existing site CSS (unchanged)
   PART B  Products mega menu - tabbed fabric (replaces the previous PART B)
   ============================================================================ */


/* ==========================================================================
   PART A - EXISTING SITE CSS
   ========================================================================== */

.btArticleMedia {
  display: none;
}

.topBar { 
    display: none !important; 
}

/* Main header responsive sizing */

@media screen and (min-width: 1024px) {
  h1 {
    font-size: 4em;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  h1 {
    font-size: 3.5em;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 2.75em;
  }
}


/* Theme CSS clean-up */

.btHeadingWeight_default h1,
.btHeadingWeight_default h2,
.btHeadingWeight_default h3,
.btHeadingWeight_default h4,
.btHeadingWeight_default h5,
.btHeadingWeight_default h6 {
  font-weight: 400;
}

.bt_bb_size_large.bt_bb_headline h2 {
  font-size: 2.75rem;
}

.bt_bb_text,
.bt_bb_card_icon_text {
  font-weight: 300;
}

.btSubtitleWeight_default
.bt_bb_headline.bt_bb_subheadline
.bt_bb_headline_subheadline {
  font-weight: 300;
}

.btHeadingWeight_default
.bt_bb_latest_posts
.bt_bb_latest_posts_item
.bt_bb_latest_posts_item_content
.bt_bb_latest_posts_item_title {
  font-weight: 500;
}

.bt_bb_card_image
.bt_bb_card_image_content
.bt_bb_card_image_text {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 0.9em;
  line-height: 1.5;
  z-index: 1;
  padding-top: 0.8em;
  opacity: 1;
  font-weight: 300;
}


/* HubSpot pop-up CSS overwrite */

.leadinModal-v3.leadinModal.leadinEmbedded-theme-default .dyno-image,
.leadinModal-v3.leadinModal.leadinModal-theme-bottom-left-corner .dyno-image,
.leadinModal-v3.leadinModal.leadinModal-theme-bottom-right-corner .dyno-image {
  vertical-align: top !important;
  float: right !important;
  width: 150px !important;
  margin-left: 22px !important;
}

.leadin-preview-wrapper ul,
.leadinModal-description-body p {
  margin-left: 0 !important;
  font-size: 1em !important;
  font-weight: 400 !important;
}

.leadin-preview-wrapper h4 {
  font-size: 18px !important;
  margin-left: 0 !important;
  margin-top: 20px !important;
}

.leadinModal .leadinModal-content li {
  line-height: 1.2 !important;
}

.advance-wrapper {
  margin-left: 0 !important;
}

.leadinModal-form h4 {
  font-size: 18px !important;
  margin-left: 0 !important;
  margin-top: 20px !important;
}


/* Adjust Who We Serve navigation */

.btMenuRight.btMenuHorizontal:not(.btMenuLeft)
.menuPort > nav > ul > li:nth-last-child(2):not(.btMenuWideDropdown) > ul {
  right: 0;
  left: -72%;
}


/* Adjust What We Offer navigation */

#menu-item-3311 > ul:nth-child(3) {
  right: -3% !important;
}


/* Footer logo spacing */

.logo-bottom {
  margin-bottom: -100px;
}

@media (max-width: 1024px) {
  .logo-bottom {
    margin-bottom: -70px;
  }
}

@media (max-width: 700px) {
  .logo-bottom {
    margin-bottom: -30px;
  }

  .logo-bottom a img {
    max-width: 50%;
  }
}


/* Disable category click-through */

.btArticleCategory {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: black !important;
}


/* Disable author URL click-through */

.btArticleAuthorURL {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: black !important;
}


/* ==========================================================================
   PART B - PRODUCTS MEGA MENU (TABBED FABRIC)
   ========================================================================== */

:root {
  --az-blue: #0072bc;
  --az-blue-dark: #005a95;
  --az-ink: #111111;
  --az-body: #28323b;
  --az-muted: #5b6670;
  --az-panel: #f4f7f9;
  --az-rule: #e6eaee;
  --az-navy: #0E2841;

  /* Total panel width. It never changes when you switch tabs. */
  /* 3 cards (306) + 2 gaps (16) + panel padding (2x32) + border (2x1). */
  --az-mega-width: 1016px;

  /* Optional manual nudge; use a negative value to move the panel left. */
  --az-mega-shift: 0px;
}

@media (min-width: 1200px) {

  li.products-mega { position: relative !important; }

  .az-mega, .az-mega * { box-sizing: border-box !important; }

  /* Hide the theme's own dropdown; the JS panel replaces it. */
  li.products-mega > ul.sub-menu { display: none !important; }

  .az-mega {
    position: fixed !important;
    top: 0; left: 0;
    display: block !important;
    width: var(--az-mega-width) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(var(--az-mega-shift));
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: 0 24px 48px -18px rgba(9, 30, 50, 0.35);
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    text-align: left !important;
    z-index: 99999 !important;
    overflow: hidden auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.14s ease, visibility 0s linear 0.14s;
  }

  .az-mega.az-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.14s ease, visibility 0s;
  }

  /* ---------- Dark ICF band + tabs ---------- */

  .az-mega .az-hero {
    background: var(--az-navy) !important;
    padding: 22px 32px 0 !important;
    margin: 0 !important;
  }

  .az-mega .az-hero-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
  }

  .az-mega .az-hero-label {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
  }

  .az-mega .az-hero-arrow {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.7;
    transform: translateX(0);
    transition: transform 0.12s ease, opacity 0.12s ease;
  }

  .az-mega .az-hero-title:hover .az-hero-arrow,
  .az-mega .az-hero-title:focus .az-hero-arrow { opacity: 1; transform: translateX(3px); }

  .az-mega .az-hero-title:hover,
  .az-mega .az-hero-title:focus { color: #9fc0d8 !important; }

  .az-mega .az-hero-desc {
    margin: 7px 0 18px !important;
    padding: 0 !important;
    max-width: 640px;
    color: #9fc0d8 !important;
    font-size: 0.875rem !important;
    font-weight: 300 !important;
    line-height: 1.45 !important;
  }

  .az-mega .az-tabs {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .az-mega .az-tabs > li {
    list-style: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .az-mega .az-tab {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: #03457F !important;
    color: #dce8f2 !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .az-mega .az-tab-label { text-decoration: underline !important; text-underline-offset: 3px !important; }

  .az-mega .az-tab-arrow {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.65;
    transform: translateX(0);
    transition: transform 0.12s ease, opacity 0.12s ease;
  }

  .az-mega .az-tab:hover {
    background: #04559c !important;
    color: #ffffff !important;
  }

  .az-mega .az-tab:hover .az-tab-arrow { opacity: 1; transform: translateX(2px); }

  /* Keyboard focus ring, since these are real links. */
  .az-mega .az-tab:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: -3px;
  }

  .az-mega .az-tabs > li.az-active .az-tab {
    background: var(--az-panel) !important;
    color: var(--az-navy) !important;
  }

  .az-mega .az-tabs > li.az-active .az-tab .az-tab-arrow { opacity: 1; }

  /* ---------- Panels ---------- */

  .az-mega .az-panels {
    background: var(--az-panel) !important;
    padding: 26px 32px 34px !important;
    min-height: 420px;
  }

  .az-mega .az-panel { display: none !important; }
  .az-mega .az-panel.az-active { display: block !important; }

  .az-mega .az-cards {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    gap: 16px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto;
  }

  .az-mega .az-cards > li.az-card {
    flex: 0 0 306px !important;
    list-style: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 20px 22px 24px !important;
    background: #ffffff !important;
    border: 1px solid var(--az-rule) !important;
    border-radius: 10px !important;
    transition: border-color 0.12s ease;
  }

  .az-mega .az-cards > li.az-card:hover { border-color: var(--az-blue) !important; }

  .az-mega .az-card-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--az-blue) !important;
    font-size: 1.1875rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
  }

  .az-mega .az-card-title:hover,
  .az-mega .az-card-title:focus { color: var(--az-blue-dark) !important; }

  /* Product wordmark in place of a text title. */
  .az-mega .az-card-title--logo {
    line-height: 0 !important;
  }

  .az-mega .az-card-logo {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .az-mega .az-card-desc {
    margin: 9px 0 16px !important;
    padding: 0 !important;
    color: var(--az-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 300 !important;
    line-height: 1.45 !important;
  }

  .az-mega .az-products {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #eceff2 !important;
  }

  /* A card with no description keeps the divider tight to the title. */
  .az-mega .az-card-title + .az-products { margin-top: 16px !important; }

  .az-mega .az-products > li {
    display: block !important;
    float: none !important;
    clear: both !important;
    list-style: none !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .az-mega .az-products > li:last-child { margin-bottom: 0 !important; }

  .az-mega .az-products > li > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--az-body) !important;
    font-size: 0.90625rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: color 0.12s ease;
  }

  .az-mega .az-products > li > a:hover,
  .az-mega .az-products > li > a:focus { color: var(--az-blue) !important; }
}

/* ==========================================================================
   MOBILE AND TABLET - the custom panel is hidden, the theme menu remains.
   ========================================================================== */

@media (max-width: 1199.98px) {
  .az-mega { display: none !important; }
}

