/* 
 * Compiled CSS for Navigation Component
 * Generated from SCSS files in assets/styles/
 */

/* ========================================
 * SITE HEADER STYLES
 * ======================================== */
.cb-site-header {
  position: sticky;
  z-index: 7;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
}

.cb-site-header:hover {
  z-index: 8;
}

@media (max-width: 1023px) {
  .is-fullscreen .cb-site-header {
    height: calc(100vh + 5rem);
  }
}

.cb-site-header__wrap {
  /* wrap mixin */
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
  
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .cb-site-header__wrap {
    grid-template-columns: auto 1fr;
  }
}

.cb-site-header__trust {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0;
}

.cb-site-header__trust span {
  font-size: 0.7rem;
  white-space: nowrap;
}

.cb-site-header__trust ul {
  /* clean-list mixin */
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cb-site-header__trust img {
  width: 3rem;
}

/* ========================================
 * SITE BANNER STYLES
 * ======================================== */
.cb-site-banner {
  position: relative;
  z-index: 6;
  background: #fff;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.cb-site-banner ul {
  /* clean-list mixin */
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  
  /* wrap mixin */
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
  
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.65rem;
  padding: 0.25rem 0;
}

@media (min-width: 768px) {
  .cb-site-banner ul {
    justify-content: space-between;
  }
}

.cb-banner-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.cb-banner-item__image {
  width: 5rem;
  padding: 0.5rem 0;
}

.cb-banner-item__icon {
  width: 1.5rem;
}

.cb-banner-item__title {
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .cb-banner-item__icon {
    width: 2.25rem;
  }
  
  .cb-banner-item__title {
    font-size: 1.2rem;
  }
}

@media (max-width: 1023px) {
  .cb-banner-item--rating {
    transform: scale(0.8);
  }
}

/* ========================================
 * SITE BRANDING STYLES
 * ======================================== */
.cb-site-branding {
  display: block;
  padding: 0.4rem 0.5rem 0.25rem;
  line-height: 1.09;
  white-space: nowrap;
}

.cb-site-branding__text {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  text-align: right;
}

@media (max-width: 1023px) {
  .cb-site-branding__text {
    display: none;
  }
}

/* ========================================
 * SITE NAVIGATION STYLES
 * ======================================== */
.cb-site-navigation {
  grid-column: 1 / 3;
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  background: var(--e-global-color-primary);
  color: #fff;
}

.cb-site-navigation::after {
  content: '';
  position: absolute;
  top: 0;
  right: 2rem;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    var(--e-global-color-primary)
  );
}

@media (min-width: 1024px) {
  .cb-site-navigation {
    position: static;
    grid-column: initial;
    justify-content: flex-end;
    background: none;
    color: var(--e-global-color-text);
    overflow: visible;
  }
  
  .cb-site-navigation::after {
    content: none;
  }
}

.cb-site-navigation.is-expanded {
  position: absolute;
  z-index: 7;
  top: 3rem;
  left: 0;
  height: 100%;
  width: 100%;
  background: #fff;
  color: var(--e-global-color-text);
}

.cb-site-navigation.is-expanded::after {
  content: none;
}

.cb-site-navigation__list {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.is-expanded .cb-site-navigation__list {
  padding-bottom: 10rem;
}

@media (min-width: 1024px) {
  .cb-site-navigation__list {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
  }
  
  .cb-site-navigation__list > * {
    height: 100%;
  }
}

.cb-site-navigation__cta {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  align-self: center;
  margin: 0.4rem 0.4rem !important;
  color: var(--e-global-color-text);
}

.is-expanded .cb-site-navigation__cta {
  display: none;
}

/* ========================================
 * MAIN MENU STYLES
 * ======================================== */
.cb-main-menu {
  /* clean-list mixin */
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  align-items: stretch;
  display: flex;
}

.is-expanded .cb-main-menu {
  flex-flow: column;
}

@media (min-width: 767px) and (max-width: 1023px) {
  .cb-main-menu {
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .cb-main-menu {
    justify-content: flex-end;
    align-items: center;
  }
}

.cb-main-menu__title {
  /* nav-title mixin */
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  
  position: relative;
  display: flex;
  width: min-content;
  margin: 0.75rem 0.5rem;
  align-items: center;
}

.cb-main-menu__item {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .cb-main-menu__title { font-size: 1rem; }
  .cb-main-menu__item { display: block; }
}

@media (min-width: 1024px) {
  .cb-main-menu__title {
    margin: 0;
    padding: 1rem 0.75rem;
    height: 100%;
    border: none;
  }

  .cb-main-menu__title:hover { text-decoration: none; }
  
  .cb-main-menu__item:hover .cb-main-menu__title {
    background: var(--e-global-color-primary);
    color: #fff;
  }
}

.is-expanded .cb-main-menu__title {
  margin: 1rem;
  font-size: 1.2rem;
}

.cb-main-menu__wrap {
  background: #fff;
  width: 100%;
}

@media (min-width: 1024px) {
  .cb-main-menu__wrap {
    position: absolute;
    left: 0;
  }
}

/* ========================================
 * MAIN SUBMENU STYLES
 * ======================================== */
.cb-main-submenu {
  /* clean-list mixin */
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  
  /* paragraph--cb-small mixin */
  font-size: 15px;
  line-height: 1.38;
  
  display: none;
  flex-flow: column;
  justify-content: flex-end;
  width: 1280px;
  max-width: 100%;
  margin: auto;
}

.is-expanded .cb-main-submenu {
  display: flex;
}

@media (min-width: 767px) {
  .cb-main-submenu {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .cb-main-submenu {
    white-space: normal;
    flex-flow: wrap;
  }
  
  .cb-main-menu__item:hover .cb-main-submenu {
    display: flex;
  }
}

.cb-main-submenu__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 1024px) {
  .cb-main-submenu__item {
    flex: 0 0 25%;
    padding: 2rem 1rem;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.cb-main-submenu__title {
  /* nav-subtitle mixin */
  font-size: 1rem;
  font-weight: 500;
}

.cb-main-submenu__title:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .cb-main-submenu__title {
    font-size: 1.2rem;
  }
}

.cb-main-submenu__hero {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 100%;
}

.cb-main-submenu__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .cb-main-submenu__hero {
    order: -1;
    width: 3rem;
    height: 3rem;
  }
}

.cb-main-submenu__list {
  margin: 1rem 0;
  padding-left: 1rem;
  list-style-type: disc;
}

@media (min-width: 1024px) {
  .cb-main-submenu__list {
    flex: 0 0 33.333%;
    min-width: initial;
  }
}

.cb-main-submenu__list > li {
  margin-bottom: 0.25rem;
}

.cb-main-submenu__list li + li {
  margin-top: 0.5rem;
}

.cb-main-submenu__link {
  /* nav-link mixin */
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--e-global-color-primary);
  
  display: flex;
  align-items: center;
  padding-left: 0.25rem;
}

.cb-main-submenu__link svg {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.25rem;
}

/* ========================================
 * MENU TOGGLE STYLES
 * ======================================== */
.cb-menu-toggle {
  /* reset-input mixin */
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 0 1px 2px transparent;
  transition: box-shadow 250ms;
  line-height: 1;
  position: relative;
  z-index: 7;
  flex-basis: 2.45rem;
  width: 2.45rem;
  padding: 0.6rem 0.4rem 0.4rem;
}

.cb-menu-toggle:focus {
  outline: none;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .cb-menu-toggle {
    display: none;
  }
}

.cb-menu-toggle__title {
  font-weight: 600;
  font-size: 0.55rem;
  text-transform: uppercase;
}

.is-toggled .cb-menu-toggle__title {
  display: none;
}

.cb-menu-toggle__icon {
  margin-bottom: -0.3rem;
}

.cb-menu-toggle__icon span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 5px;
  transform-origin: 0 0;
  background: currentColor;
  transition: all 150ms;
}

.cb-menu-toggle__icon span:first-child {
  transform-origin: 0% 0%;
}

.cb-menu-toggle__icon span:nth-child(3) {
  transform-origin: 0% 100%;
}

.cb-menu-toggle.is-toggled {
  position: absolute;
  top: 0.5rem;
  right: 0;
  border-radius: 1rem;
}

.cb-menu-toggle.is-toggled span {
  opacity: 1;
  transform: translate(0.4rem, -0.25rem) rotate(45deg);
}

.cb-menu-toggle.is-toggled span:nth-child(3) {
  transform: translate(0.4rem, 0.1rem) rotate(-45deg);
}

.cb-menu-toggle.is-toggled span:nth-child(2) {
  opacity: 0;
  transform: rotate(0deg) scale(0.1, 0.1);
}

/* ========================================
 * BUTTON STYLES
 * ======================================== */
.cb-button {
  --cb-background: var(--e-global-color-secondary);
  --cb-border: var(--e-global-color-secondary);
  --cb-hover: #f9be33;
  --cb-active: #c68b00;
  --cb-button-color: var(--e-global-color-text);

  /* text-button mixin */
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 1px;
  text-align: center;

  display: inline-block;
  margin: 0;
  padding: 0.8rem 1.5rem;
  appearance: none;
  background: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 1.5rem;
  color: var(--e-global-color-text);
  cursor: pointer;
  transition: all 150ms;
  line-break: strict;
}

.cb-button:hover {
  text-decoration: none;
  --cb-background: #f9be33;
}

.cb-button:active {
  --cb-background: #c68b00;
}

.cb-button:disabled,
.cb-button.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.cb-button a {
  display: inline-block;
}

.cb-button span {
  /* text-button--tiny mixin */
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: normal;
  
  display: block;
  margin: 0.25rem auto 0;
}

.cb-button--tiny {
  font-weight: bold;
  font-size: 14px;
  padding: 0.5rem 0.75rem;
}

.cb-button-neutral {
  --cb-background: #e6e6e6;
  --cb-hover: #ebebeb;
  --cb-active: hsl(0, 0%, 72%);
}

.cb-button--cb-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.cb-button--cb-icon svg, 
.cb-button--cb-icon .svg {
  flex-shrink: 0;
}

/* ========================================
 * RESPONSIVE UTILITIES
 * ======================================== */
@media (max-width: 1023px) {
  .cb-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .cb-hide-desktop {
    display: none !important;
  }
}

/* Screen reader only text */
.cb-screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
