/*
************************
    MEDIA BREAKPOINTS
************************
*/

/* 
xxs media breakpoint
*/
@media screen and (min-width: 0) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .header__logo-dropdown {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 24px;
  }

  .header__logo-dropdown > div {
    display: none;
    position: relative;
    width: 250px;
  }

  .header__logo-dropdown img {
    width: 120px;
    height: auto;
    object-fit: contain;
  }

  .header__logo-dropdown .calendar-widget {
    position: absolute;
    width: 100%;
    height: inherit;
    top: -24px;
    left: 0;
    background: white;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    z-index: var(--z-dropdown);
  }

  .header__logo-dropdown .calendar-widget .nav-select-trigger span {
    color: var(--primary-blue);
    font-size: var(--sm-size);
    letter-spacing: 12%;
  }

  .header__logo-dropdown .calendar-widget .nav-select-trigger svg {
    stroke: var(--primary-blue);
  }

  .header__logo-dropdown
    .calendar-widget:has(.nav-select-trigger[aria-expanded="true"]) {
    border-color: white;
    background: var(--primary-blue);
  }

  .header__logo-dropdown
    .calendar-widget
    .nav-select-trigger[aria-expanded="true"]
    span {
    color: white;
  }

  .header__logo-dropdown
    .calendar-widget
    .nav-select-trigger[aria-expanded="true"]
    svg {
    stroke: white;
  }

  .menu-main-menu-container {
    display: none;
  }

  #menu-main-menu > .menu-item {
    display: inline-block;
    margin: 0;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin: 0 24px 0 0;
  }

  #menu-main-menu > .menu-item > a {
    padding: 0;
    color: var(--text-dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
  }

  .menu-btn {
    display: block;
  }

  .menu-btn svg {
    color: var(--primary-blue);
  }

  #mobile-drawer.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--lighter-gray);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #mobile-drawer.drawer.is-open {
    transform: translateX(0);
  }

  #mobile-drawer .drawer-content {
    position: relative;
    padding: 72px 36px 36px;
  }

  #mobile-drawer .close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-dark-gray);
  }

  #mobile-drawer .drawer-content > nav > .drawer-content__section:not(:last-child) {
    margin-bottom: 36px;
  }

  #mobile-drawer .drawer-content > nav {
    display: grid;
    grid-template-columns: auto;
    margin-bottom: 36px;
  }

  .drawer-content__section h3 {
    color: var(--text-black);
    font-size: var(--lg-size);
    font-weight: 600;
  }

  .drawer-content__section ul {
    margin: 0;
    list-style: none;
  }

  .drawer-content__section ul > li:not(:last-child) {
    margin-bottom: 12px;
  }


  .drawer-content__section a {
    color: var(--text-black);
  }

  .drawer-content__section a:hover {
    text-decoration: underline;
  }

  .menu-btn:focus-visible,
  .close-btn:focus-visible,
  .nav-links a:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* 
narrow media breakpoint
*/
@media screen and (min-width: 320px) {
}

/* 
ns media breakpoint
*/
@media screen and (min-width: 475px) {

  #mobile-drawer .drawer-content > nav {
    grid-template-columns: repeat(2,1fr);
  }
}

/* 
media media breakpoint
*/
@media screen and (min-width: 640px) {
  .header__logo-dropdown img {
    width: 140px;
  }
}

/* 
medium_to_large media breakpoint
*/
@media screen and (min-width: 768px) {
  .header__logo-dropdown img {
    width: 180px;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 18px;
  }
}

/* 
large media breakpoint
*/
@media screen and (min-width: 1024px) {
  .header__logo-dropdown img {
    width: 200px;
  }

  .menu-main-menu-container {
    display: block;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 24px;
  }

  .menu-btn {
    display: none;
  }
}

/* 
xlarge media breakpoint
*/
@media screen and (min-width: 1200px) {
  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 30px;
  }
}

/* 
xxlarge media breakpoint
*/
@media screen and (min-width: 1440px) {
  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 36px;
  }
}



/*
************************
    MEDIA BREAKPOINTS
************************
*/

/* 
xxs media breakpoint
*/
@media screen and (min-width: 0) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .header__logo-dropdown {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 24px;
  }

  .header__logo-dropdown > div {
    display: none;
    position: relative;
    width: 250px;
  }

  .header__logo-dropdown img {
    width: 120px;
    height: auto;
    object-fit: contain;
  }

  /* .header__logo-dropdown .calendar-widget {
    position: absolute;
    width: 100%;
    height: inherit;
    top: -24px;
    left: 0;
    background: white;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    z-index: var(--z-sticky);
  } */

  .header__logo-dropdown .calendar-widget .nav-select-trigger span {
    color: var(--primary-blue);
    font-size: var(--sm-size);
    letter-spacing: 12%;
  }

  .header__logo-dropdown .calendar-widget .nav-select-trigger svg {
    stroke: var(--primary-blue);
  }

  .header__logo-dropdown
    .calendar-widget:has(.nav-select-trigger[aria-expanded="true"]) {
    border-color: white;
    background: var(--primary-blue);
  }

  .header__logo-dropdown
    .calendar-widget
    .nav-select-trigger[aria-expanded="true"]
    span {
    color: white;
  }

  .header__logo-dropdown
    .calendar-widget
    .nav-select-trigger[aria-expanded="true"]
    svg {
    stroke: white;
  }

  .menu-main-menu-container {
    display: none;
  }

  #menu-main-menu > .menu-item {
    display: inline-block;
    margin: 0;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin: 0 24px 0 0;
  }

  #menu-main-menu > .menu-item > a {
    padding: 0;
    color: var(--text-dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    background: transparent;
  }

  .menu-btn {
    display: block;
  }

  .menu-btn svg {
    color: var(--primary-blue);
  }

  #mobile-drawer.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--lighter-gray);
    z-index: 1000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #mobile-drawer.drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  #mobile-drawer .drawer-content {
    position: relative;
    padding: 72px 36px 36px;
  }

  #mobile-drawer .close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-dark-gray);
  }

  #mobile-drawer .drawer-content > nav > .drawer-content__section:not(:last-child) {
    margin-bottom: 36px;
  }

  #mobile-drawer .drawer-content > nav {
    display: grid;
    grid-template-columns: auto;
    margin-bottom: 36px;
  }

  .drawer-content__section h3 {
    color: var(--text-black);
    font-size: var(--lg-size);
    font-weight: 600;
  }

  .drawer-content__section ul {
    margin: 0;
    list-style: none;
  }

  .drawer-content__section ul > li:not(:last-child) {
    margin-bottom: 12px;
  }


  .drawer-content__section a {
    color: var(--text-black);
  }

  .drawer-content__section a:hover {
    text-decoration: underline;
  }

  .menu-btn:focus-visible,
  .close-btn:focus-visible,
  .nav-links a:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    .drawer {
      transition: none;
    }
  }
}

/* 
narrow media breakpoint
*/
@media screen and (min-width: 320px) {
}

/* 
ns media breakpoint
*/
@media screen and (min-width: 475px) {

  #mobile-drawer .drawer-content > nav {
    grid-template-columns: repeat(2,1fr);
  }
}

/* 
media media breakpoint
*/
@media screen and (min-width: 640px) {
  .header__logo-dropdown img {
    width: 140px;
  }
}

/* 
medium_to_large media breakpoint
*/
@media screen and (min-width: 768px) {
  .header__logo-dropdown img {
    width: 180px;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 18px;
  }
}

/* 
large media breakpoint
*/
@media screen and (min-width: 1024px) {
  .header__logo-dropdown img {
    width: 200px;
  }

  .menu-main-menu-container {
    display: block;
  }

  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 24px;
  }

  .menu-btn {
    display: none;
  }
}

/* 
xlarge media breakpoint
*/
@media screen and (min-width: 1200px) {
  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 30px;
  }
}

/* 
xxlarge media breakpoint
*/
@media screen and (min-width: 1440px) {
  #menu-main-menu > .menu-item:not(:last-child) {
    margin-right: 36px;
  }
}




/*
==================
  REDUCED MOTION
================== */
@media (prefers-reduced-motion: reduce) {
    #mobile-drawer.drawer,
    .drawer {
        transition: none !important;
    }

    .header__logo-dropdown .calendar-widget {
        transition: none !important;
    }
}