@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Brava Roof Tile megamenu — desktop header dropdown */

#menu-header-menu > .menu-brava-roof-tile {
  position: static;
  font-family: 'Roboto', sans-serif;
}

/* Reset global header link styles inside the megamenu */
#menu-header-menu > .menu-brava-roof-tile .brava-megamenu a {
  display: flex;
  align-items: center;
  padding: 0;
  color: inherit;
  white-space: normal;
  background: transparent;
  transition: none;
}

#menu-header-menu > .menu-brava-roof-tile .brava-megamenu a:hover {
  background: transparent;
}

.brava-megamenu {
  display: none;
  position: fixed;
  top: 71px;
  left: 50%;
  z-index: 100;
  box-sizing: border-box;
  width: min(1034px, calc(100vw - 48px));
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  text-align: left;
}

.brava-megamenu::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
  height: 18px;
}

#menu-header-menu > .menu-brava-roof-tile:hover > .brava-megamenu,
#menu-header-menu > .menu-brava-roof-tile:focus-within > .brava-megamenu {
  display: grid;
  grid-template-columns: 1fr 360px;
}

.brava-megamenu__main {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 40px;
}

.brava-megamenu__media {
  position: relative;
  width: 306px;
  height: 100%;
  overflow: hidden;
  background: #e8e8e8;
}

.brava-megamenu__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.brava-megamenu__copy {
  max-width: 300px;
}

.brava-megamenu__title {
  margin: 0 0 12px;
  color: #000;
  font-size: 26px;
  font-weight: 800;
  line-height: 130% !important;
  margin-bottom: 9px;
}

.brava-megamenu__desc {
  margin: 0 0 20px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 155% !important;
}

#menu-header-menu .brava-megamenu__main .brava-megamenu__explore {
  display: inline-flex !important;
  gap: 6px;
  color: #0E73BA !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 155%;
}

.brava-megamenu__explore:hover {
  text-decoration: underline !important;
}

.brava-megamenu__explore-icon {
  font-size: 15px;
  line-height: 1;
  position: relative;
  top: -2px;
}

.brava-megamenu__explore-icon::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid #0E73BA;
  border-top: 2px solid #0E73BA;
  transform: rotateZ(45deg);
}

.brava-megamenu__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px;
  background: #f7f7f7;
}

.brava-megamenu__style-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px !important;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
  color: #000 !important;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 155%;
}

.brava-megamenu__style-link:hover {
  border-color: #0e73ba;
  background: #fff !important;
}

.brava-megamenu__chevron {
  color: #666;
  font-size: 14px;
  line-height: 1;
}

.brava-megamenu__chevron::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid #000;
  border-top: 2px solid #000;
  transform: rotateZ(45deg);
}

#menu-header-menu .brava-megamenu__aside > .brava-megamenu__cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-top: 15px;
    padding: 18px 18px !important;
    border-radius: 11px;
    background: #0e73ba !important;
    text-decoration: none !important;
    white-space: normal !important;
    transition: background 0.15s ease !important;
    color: #FFF !important;
    text-align: center !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
}

.brava-megamenu__cta:hover {
  background: #0b5f99 !important;
  color: #fff !important;
}

.brava-megamenu__phone {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 4px 0 !important;
  color: #000 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: underline !important;
  white-space: normal !important;
  background: transparent !important;
}

.brava-megamenu__phone:hover {
  color: #0e73ba !important;
  background: transparent !important;
}

.brava-megamenu__phone-icon {
  flex-shrink: 0;
}

@media (max-width: 1120px) {
  .brava-megamenu {
    top: 70px;
  }
}

@media (max-width: 1100px) {
  #menu-header-menu > .menu-brava-roof-tile:hover > .brava-megamenu,
  #menu-header-menu > .menu-brava-roof-tile:focus-within > .brava-megamenu {
    grid-template-columns: 1fr;
    width: min(420px, calc(100vw - 32px));
  }

  .brava-megamenu__main {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .brava-megamenu__media {
    width: 100%;
    height: 180px;
  }

  .brava-megamenu__copy {
    max-width: none;
  }

  .brava-megamenu__aside {
    padding: 20px;
  }
}

/* Desktop nav is hidden below this breakpoint */
@media (max-width: 1035px) {
  .brava-megamenu {
    display: none !important;
  }
}
