/* Tavelo header/footer on pages that still use the previous design (layout/default.php) */

.header,
.footer-area.ft-bg,
.newsletter-area {
  font-family: var(--body-font);
}

.header h1, .header h2, .header h3, .header h4, .header h5, .header h6,
.footer-area.ft-bg h1, .footer-area.ft-bg h2, .footer-area.ft-bg h3,
.footer-area.ft-bg h4, .footer-area.ft-bg h5, .footer-area.ft-bg h6,
.newsletter-area h2 {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: none;
  line-height: 1.2;
}

.header a,
.footer-area.ft-bg a {
  text-decoration: none;
}

.header ul,
.footer-area.ft-bg ul {
  margin-bottom: 0;
}

/* no hero image behind the header here, so it gets a solid bar */
.header.header-solid {
  position: relative;
  z-index: 999;
  background: var(--color-dark);
}

/* reserve the navbar's height so the page does not jump when it becomes fixed on scroll */
.header.header-solid .main-navigation {
  min-height: 90px;
}

@media all and (max-width: 991px) {
  .header.header-solid .main-navigation {
    min-height: 70px;
  }
}

/* the previous design's generic .footer-area rules */
.footer-area.ft-bg {
  padding-top: 0;
  color: var(--footer-text-color);
}

/* the previous design's normalize.css forces a { color: inherit !important } */
.header-top a,
.header-top .account span,
#scroll-top,
.theme-btn,
.theme-btn:hover {
  color: var(--color-white) !important;
}

.header-top a:hover {
  color: var(--theme-color) !important;
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--color-dark) !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--theme-color) !important;
}

@media all and (min-width: 992px) {
  .navbar .nav-item .nav-link {
    color: var(--color-white) !important;
  }

  .navbar.fixed-top .nav-item .nav-link {
    color: var(--color-dark) !important;
  }

  .navbar .nav-item .nav-link.active,
  .navbar .nav-item:hover .nav-link {
    color: var(--theme-color) !important;
  }
}

@media all and (max-width: 991px) {
  .navbar .nav-item .nav-link {
    color: var(--color-dark) !important;
  }

  .navbar .nav-item .nav-link.active,
  .navbar .nav-item .nav-link:hover {
    color: var(--theme-color) !important;
  }

  .navbar-toggler-btn-icon {
    color: var(--color-white);
  }
}

.footer-list a,
.footer-contact-list a {
  color: var(--footer-text-color) !important;
}

.footer-list a:hover,
.footer-contact-list a:hover,
.copyright-text a,
.footer-follow a {
  color: var(--theme-color) !important;
}

.footer-follow a:hover {
  color: var(--color-white) !important;
}

.footer-logo img {
  height: auto;
}

.newsletter-btn {
  display: inline-block !important;
  background: var(--color-dark) !important;
  color: var(--color-white) !important;
}

.newsletter-btn:hover {
  background: var(--theme-color2) !important;
}

/* pages that open with a photo banner get the transparent header like the home page */
body:has(.breadcrumb-area) .header.header-solid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

/* darken the banner photo like the home hero, so the white menu and title stay readable */
body:has(.breadcrumb-area) .breadcrumb-area {
  position: relative;
  z-index: 0;
}

body:has(.breadcrumb-area) .breadcrumb-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: -1;
}

body:has(.breadcrumb-area) .header.header-solid .main-navigation {
  min-height: 0;
}

body:has(.breadcrumb-area) .breadcrumb-area {
  height: 520px !important;
  padding-top: 120px;
  background-size: cover !important;
  background-position: center !important;
}

@media all and (max-width: 991px) {
  body:has(.breadcrumb-area) .breadcrumb-area {
    height: 380px !important;
    padding-top: 70px;
  }
}

/* match the home page header exactly (Tavelo base body styles + Bootstrap 5.3 layout) */
.header {
  font-size: 16px;
  line-height: 1.8;
}

.header .theme-btn {
  display: inline-block;
}

@media all and (min-width: 992px) {
  .header .navbar-collapse {
    justify-content: flex-end;
  }
}

.top-contact-info ul li a {
  display: inline-block;
}

/* the previous design's Font Awesome 4 kit loads last and remaps fa-facebook-f to the round logo */
.header .fa-facebook-f::before,
.footer-area .fa-facebook-f::before {
  content: "\f39e";
}

/* Bootstrap paints the active dropdown item blue; use the brand style instead */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item:focus {
  background: transparent !important;
  color: var(--theme-color) !important;
}
