/*
 * Corvette Lottery global header presentation layer.
 * Structure and content live in the native Divi 5 Theme Builder layout.
 */

:root {
  --cl-header-brand-height: 134px;
  --cl-header-navigation-height: 54px;
  --cl-header-brand-height-compact: 134px;
  --cl-header-navigation-height-compact: 54px;
  --cl-header-starburst-blue: #001550;
  --cl-header-navigation-blue: #073d94;
  --cl-header-accent-yellow: var(--gcid-cl-yellow, #ffd400);
  --cl-header-inline-space: clamp(18px, 4vw, 64px);
  --cl-header-shadow: 0 14px 38px rgb(8 23 46 / 16%);
}

.cl-global-header.et_pb_section {
  position: sticky;
  inset-block-start: 0;
  z-index: 99990;
  width: 100%;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--corvette-white) !important;
  box-shadow: 0 1px 0 rgb(23 69 143 / 12%);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

body.admin-bar .cl-global-header.et_pb_section {
  inset-block-start: 32px;
}

.home .cl-global-header.et_pb_section:not(.is-scrolled) {
  position: absolute;
  inset: 0 0 auto;
  background: var(--cl-header-starburst-blue) !important;
  box-shadow: none;
}

.cl-global-header.is-scrolled.et_pb_section {
  position: fixed;
  inset: 0 0 auto;
  background: rgb(255 255 255 / 97%) !important;
  box-shadow: var(--cl-header-shadow);
  backdrop-filter: blur(16px);
}

body.admin-bar .cl-global-header.is-scrolled.et_pb_section {
  inset-block-start: 32px;
}

.cl-header-brand-row.et_pb_row,
.cl-header-navigation-row.et_pb_row {
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
}

.cl-header-brand-row.et_pb_row {
  display: grid !important;
  grid-template-columns: minmax(170px, 1fr) minmax(420px, 606px) minmax(230px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  min-height: var(--cl-header-brand-height);
  padding: 18px var(--cl-header-inline-space) !important;
  transition: min-height 220ms ease, padding 220ms ease;
}

.cl-global-header.is-scrolled .cl-header-brand-row.et_pb_row {
  min-height: var(--cl-header-brand-height-compact);
  padding-block: 18px !important;
}

.cl-header-brand-row > .et_pb_column {
  width: auto !important;
  margin: 0 !important;
}

.cl-header-social-column,
.cl-header-email-column,
.cl-header-logo-column {
  display: flex !important;
  align-items: center;
}

.cl-header-social-column {
  justify-content: flex-start;
}

.cl-header-logo-column {
  position: relative;
  justify-content: center;
  min-width: 0;
}

.cl-header-email-column {
  justify-content: flex-end;
}

.cl-header-social.et_pb_social_media_follow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.cl-header-social.et_pb_social_media_follow li {
  margin: 0 !important;
}

.cl-header-social.et_pb_social_media_follow li a.icon {
  display: flex !important;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgb(6 25 55 / 12%);
  transition: transform 180ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.cl-header-social.et_pb_social_media_follow li a.icon::before {
  position: static !important;
  display: flex !important;
  width: 1em !important;
  height: 1em !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--corvette-white) !important;
  font-size: 18px;
  line-height: 1 !important;
  transform: none !important;
}

.cl-header-social .et-social-facebook a.icon {
  background: #1877f2 !important;
}

.cl-header-social .et-social-twitter a.icon {
  background: #111111 !important;
}

.cl-header-social .et-social-instagram a.icon {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcb045) !important;
}

.cl-header-social .et-social-youtube a.icon {
  background: #ff0000 !important;
}

.home .cl-global-header:not(.is-scrolled) .cl-header-social li a.icon {
  border-color: rgb(255 255 255 / 68%);
  background: rgb(255 255 255 / 9%) !important;
  box-shadow: none;
}

.cl-global-header.is-scrolled .cl-header-social li a.icon {
  border-color: var(--cl-header-starburst-blue) !important;
  background: transparent !important;
  box-shadow: none;
}

.cl-global-header.is-scrolled .cl-header-social li a.icon::before {
  color: var(--cl-header-starburst-blue) !important;
}

.cl-global-header.is-scrolled .cl-header-social li a.icon:hover {
  background: var(--cl-header-starburst-blue) !important;
}

.cl-global-header.is-scrolled .cl-header-social li a.icon:hover::before {
  color: var(--corvette-white) !important;
}

.cl-header-social li a.icon:hover {
  transform: translateY(-2px);
}

.cl-header-social .et_pb_social_media_follow_network_name {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.cl-header-logo.et_pb_image {
  width: min(48vw, 606px);
  max-width: 606px;
  margin: 0 !important;
  transition: width 220ms ease, opacity 180ms ease;
}

.cl-header-logo.et_pb_image .et_pb_image_wrap,
.cl-header-logo.et_pb_image a,
.cl-header-logo.et_pb_image img {
  display: block;
  width: 100%;
}

.cl-header-logo.et_pb_image img {
  max-height: 86px;
  object-fit: contain;
}

.cl-header-logo-colour.et_pb_image {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.home .cl-global-header:not(.is-scrolled) .cl-header-logo-colour,
.cl-header-logo-white {
  opacity: 0;
  pointer-events: none;
}

.home .cl-global-header:not(.is-scrolled) .cl-header-logo-white {
  opacity: 1;
  pointer-events: auto;
}

.cl-global-header.is-scrolled .cl-header-logo.et_pb_image {
  width: min(48vw, 606px);
}

.cl-global-header.is-scrolled .cl-header-logo.et_pb_image img {
  max-height: 86px;
}

.cl-header-email.et_pb_text {
  margin: 0 !important;
  text-align: right;
}

.cl-header-email p {
  padding: 0;
}

.cl-header-email a {
  color: var(--rotary-royal-blue) !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 180ms ease;
}

.home .cl-global-header:not(.is-scrolled) .cl-header-email a {
  color: var(--corvette-white) !important;
  text-shadow: 0 2px 12px rgb(0 0 0 / 38%);
}

.cl-header-email a:hover {
  color: var(--cl-header-accent-yellow) !important;
}

.cl-header-navigation-row.et_pb_row {
  min-height: var(--cl-header-navigation-height);
  padding: 0 var(--cl-header-inline-space) !important;
  transition: min-height 220ms ease;
}

.cl-global-header::after {
  position: absolute;
  inset: var(--cl-header-brand-height) 0 auto;
  z-index: -1;
  height: var(--cl-header-navigation-height);
  background: linear-gradient(90deg, var(--cl-header-starburst-blue) 0%, #04266f 52%, var(--cl-header-navigation-blue) 100%);
  content: "";
  transition: inset-block-start 220ms ease, height 220ms ease;
}

.home .cl-global-header:not(.is-scrolled)::after {
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 0;
  background: var(--cl-header-starburst-blue);
  backdrop-filter: none;
}

.cl-global-header.is-scrolled::after {
  inset-block-start: var(--cl-header-brand-height-compact);
  height: var(--cl-header-navigation-height-compact);
}

.cl-global-header.is-scrolled .cl-header-navigation-row.et_pb_row {
  min-height: var(--cl-header-navigation-height-compact);
}

.cl-header-column.et_pb_column,
.cl-header-menu.et_pb_menu,
.cl-header-menu .et_pb_menu_inner_container {
  width: 100%;
}

.cl-header-menu.et_pb_menu {
  margin: 0 !important;
  background: transparent !important;
}

.cl-header-menu .et_pb_menu_inner_container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-header-menu .et_pb_menu__logo-wrap {
  display: none !important;
}

.cl-header-menu .et_pb_menu__wrap {
  width: 100%;
  justify-content: center;
}

.cl-header-menu .et_pb_menu__menu,
.cl-header-menu .et_pb_menu__menu > nav {
  display: flex;
  width: 100%;
  justify-content: center;
}

.cl-header-menu .et_pb_menu__menu > nav > ul {
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.75vw, 14px);
}

.cl-header-menu .et_pb_menu__menu > nav > ul > li {
  margin: 0;
  padding: 0;
}

.cl-header-menu .et_pb_menu__menu > nav > ul > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  min-height: 46px;
  padding: 10px clamp(7px, 0.7vw, 12px) !important;
  color: var(--corvette-white) !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(13px, 0.82vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgb(0 0 0 / 20%);
  transition: color 180ms ease, transform 180ms ease;
}

.cl-header-menu .et_pb_menu__menu > nav > ul > li.menu-item-has-children > a::after {
  position: static !important;
  inset: auto !important;
  display: inline-block !important;
  margin: 1px 0 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: none !important;
}

.cl-header-menu .et_pb_menu__menu > nav > ul > li > a:hover,
.cl-header-menu .et_pb_menu__menu > nav > ul > li.current-menu-item > a,
.cl-header-menu .et_pb_menu__menu > nav > ul > li.current-menu-ancestor > a {
  color: var(--cl-header-accent-yellow) !important;
}

.cl-header-menu .sub-menu {
  border-top: 3px solid var(--cl-header-accent-yellow) !important;
  border-radius: 0 0 8px 8px;
  background: var(--corvette-white) !important;
  box-shadow: var(--cl-header-shadow);
}

.cl-header-menu .sub-menu a {
  min-height: 44px;
  color: var(--rotary-royal-blue) !important;
  font-weight: 650;
  text-shadow: none;
}

.cl-header-menu .mobile_menu_bar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}

.cl-header-menu .mobile_menu_bar::before {
  color: var(--corvette-white) !important;
  font-size: 36px;
}

.cl-header-menu .et_mobile_menu {
  inset-inline: 0;
  width: 100%;
  max-height: calc(100dvh - var(--cl-header-navigation-height-compact));
  overflow-y: auto;
  border-top: 3px solid var(--cl-header-accent-yellow) !important;
  border-radius: 0 0 10px 10px;
  background: var(--corvette-white) !important;
  box-shadow: var(--cl-header-shadow);
}

.cl-header-menu .et_mobile_menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--rotary-royal-blue) !important;
  font-size: 16px;
  font-weight: 700;
  text-shadow: none;
}

.cl-header-menu a:focus-visible,
.cl-header-menu .mobile_menu_bar:focus-visible,
.cl-header-social a:focus-visible,
.cl-header-email a:focus-visible,
.cl-header-logo a:focus-visible {
  outline: 3px solid var(--cl-header-accent-yellow);
  outline-offset: 3px;
}

@media (max-width: 1320px) {
  .cl-header-menu .et_pb_menu__menu {
    display: none !important;
  }

  .cl-header-menu .et_mobile_nav_menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .cl-header-menu .et_pb_menu__wrap {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  :root {
    --cl-header-brand-height: 112px;
    --cl-header-navigation-height: 0px;
    --cl-header-brand-height-compact: 112px;
    --cl-header-navigation-height-compact: 0px;
  }

  body.admin-bar .cl-global-header.et_pb_section,
  body.admin-bar .cl-global-header.is-scrolled.et_pb_section {
    inset-block-start: 32px;
  }

  .cl-header-brand-row.et_pb_row {
    grid-template-columns: auto 1fr;
    grid-template-rows: 30px 70px;
    gap: 0 10px;
    min-height: var(--cl-header-brand-height);
    padding: 6px 16px !important;
  }

  .cl-global-header.is-scrolled .cl-header-brand-row.et_pb_row {
    grid-template-rows: 30px 70px;
    min-height: var(--cl-header-brand-height-compact);
    padding-block: 6px !important;
  }

  .cl-header-social-column {
    grid-column: 1;
    grid-row: 1;
  }

  .cl-header-email-column {
    grid-column: 2;
    grid-row: 1;
  }

  .cl-header-logo-column {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cl-header-social.et_pb_social_media_follow {
    gap: 4px;
  }

  .cl-header-social.et_pb_social_media_follow li a.icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
  }

  .cl-header-social.et_pb_social_media_follow li a.icon::before {
    font-size: 13px;
  }

  .cl-header-email a {
    font-size: clamp(10.5px, 3vw, 13px);
  }

  .cl-header-logo.et_pb_image,
  .cl-global-header.is-scrolled .cl-header-logo.et_pb_image {
    width: min(66vw, 270px);
  }

  .cl-header-logo.et_pb_image img,
  .cl-global-header.is-scrolled .cl-header-logo.et_pb_image img {
    max-height: 56px;
  }

  .cl-header-navigation-row.et_pb_row,
  .cl-global-header.is-scrolled .cl-header-navigation-row.et_pb_row {
    position: relative;
    min-height: 0;
    padding: 0 !important;
  }

  .cl-global-header::after {
    display: none;
  }

  .cl-header-menu.et_pb_menu,
  .cl-header-menu .et_pb_menu_inner_container,
  .cl-header-menu .et_pb_menu__wrap,
  .cl-header-menu .et_mobile_nav_menu,
  .cl-header-menu .mobile_nav {
    position: static;
  }

  .cl-header-menu .mobile_menu_bar {
    position: absolute;
    inset: auto 16px 12px auto;
    z-index: 3;
    background: rgb(23 69 143 / 92%);
    box-shadow: 0 7px 20px rgb(5 22 52 / 18%);
  }

  .home .cl-global-header:not(.is-scrolled) .cl-header-menu .mobile_menu_bar {
    background: rgb(255 255 255 / 12%);
    box-shadow: none;
  }

  .cl-header-menu .et_mobile_menu {
    position: absolute;
    inset: 0 14px auto;
    width: auto;
    max-height: calc(100dvh - var(--cl-header-brand-height-compact));
  }
}

@media (max-width: 782px) {
  body.admin-bar .cl-global-header.et_pb_section,
  body.admin-bar .cl-global-header.is-scrolled.et_pb_section {
    inset-block-start: 46px;
  }
}

@media (max-width: 420px) {
  .cl-header-email a {
    font-size: 10.5px;
  }

  .cl-header-logo.et_pb_image,
  .cl-global-header.is-scrolled .cl-header-logo.et_pb_image {
    width: min(64vw, 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-global-header.et_pb_section,
  .cl-header-brand-row.et_pb_row,
  .cl-header-navigation-row.et_pb_row,
  .cl-header-logo.et_pb_image,
  .cl-header-social a.icon,
  .cl-header-menu .et_pb_menu__menu > nav > ul > li > a {
    transition: none !important;
  }
}
