/* Shared header/footer fixes for homepage + brand (#2a2a50 / #e41e27 / Roboto) */

body.hp-page {
  font-family: Roboto, sans-serif;
}

body.hp-page .top-bar {
  background: #2a2a50;
  min-height: auto;
  height: auto !important;
  padding: 0.4rem 0;
}

body.hp-page .hp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

body.hp-page .hp-topbar-social {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
}

body.hp-page .hp-topbar-social a {
  color: #fec201 !important;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
}

body.hp-page .hp-topbar-social a:hover {
  color: #fff !important;
}

body.hp-page .hp-topbar-contacts {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
}

body.hp-page .hp-topbar-item {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: #fff !important;
  font-size: 13px;
  text-decoration: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

body.hp-page .hp-topbar-item i {
  color: #fec201 !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

body.hp-page .hp-topbar-item img {
  display: block;
  width: 18px;
  height: auto;
}

/* Kill legacy top-bar rules that break hp-page */
body.hp-page .top-bar .social,
body.hp-page .top-bar span.social,
body.hp-page .top-bar span.flag,
body.hp-page .top-bar span.whatsapp,
body.hp-page .top-bar span.mail {
  display: none !important;
}

/* Dark header so original white/red site logo reads correctly */
body.hp-page header {
  background: #2a2a50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 1100;
}

body.hp-page header .container-lg > .row {
  align-items: center !important;
  min-height: 64px;
}

body.hp-page header .lgo {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
}

body.hp-page .brand-logo .lgo-lightbg,
body.hp-page .brand-logo .lgo-darkbg {
  display: none;
}

body.hp-page .brand-logo .lgo-site {
  display: block;
}

/* Kill legacy negative margin that mis-aligns toggler/nav */
body.hp-page nav.navbar.navbar-expand-lg {
  margin-top: 0 !important;
  width: 100%;
  justify-content: flex-end;
  padding: 0;
}

body.hp-page header .navbar .container-fluid {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  justify-content: flex-end;
}

@media (min-width: 992px) {
  body.hp-page .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }
}

body.hp-page header .navbar-nav {
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  gap: 0.15rem;
  margin: 0;
}

body.hp-page header .navbar-nav > li {
  display: flex !important;
  align-items: center !important;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 42px;
}

body.hp-page .navbar-expand-lg .navbar-nav .nav-link,
body.hp-page .nav-link,
body.hp-page a.nav-link.active {
  color: #fff !important;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-left: 1.1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 42px !important;
}

body.hp-page a.nav-link.active:hover,
body.hp-page .nav-link:hover {
  color: #fec201 !important;
}

body.hp-page .desk-order-now,
body.hp-page .Mob-order-now {
  background: #e41e27 !important;
  color: #fff !important;
  border-radius: 100px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  text-decoration: none !important;
  padding: 0 1.15rem !important;
  margin: 0 0 0 1.1rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  height: 42px !important;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Desktop dropdowns */
body.hp-page ul.dropdown-menu {
  position: absolute !important;
  display: none;
  visibility: visible;
  opacity: 1;
  transform: none !important;
  top: 100%;
  left: 0;
  margin: 0.35rem 0 0;
  padding: 0.4rem 0;
  background: #fff !important;
  border: 1px solid #e5e5ef;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(42, 42, 80, 0.16);
  min-width: 240px;
  z-index: 1100;
}

body.hp-page .nav-item:hover > .dropdown-menu,
body.hp-page .nav-item.dropdown.show > .dropdown-menu,
body.hp-page .dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

body.hp-page .dropdown-item {
  color: #2a2a50;
  font-weight: 600;
  font-size: 13px;
  padding: 0.55rem 1rem;
}

body.hp-page .dropdown-item:hover {
  background: #e41e27;
  color: #fff;
}

body.hp-page .dropdown-item:hover:before {
  display: none;
}

/* Toggle: override style.css white bg + negative margin (icon was invisible) */
body.hp-page button.navbar-toggler,
body.hp-page .navbar-toggler {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 8px !important;
  margin-top: 0 !important;
  padding: 0.45rem 0.55rem !important;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

@media (max-width: 991.98px) {
  body.hp-page button.navbar-toggler,
  body.hp-page .navbar-toggler {
    display: inline-flex !important;
  }
}

body.hp-page .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(254, 194, 1, 0.35);
}

body.hp-page .navbar-toggler-icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  filter: none !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile overlay — below header/menu stacking context */
body.hp-page .nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 40, 0.45);
  z-index: 1090;
  pointer-events: auto;
}

body.hp-page.nav-open .nav-overlay {
  display: block;
}

body.hp-page.nav-open header {
  z-index: 1100;
}

body.hp-page .show .navbar-nav,
body.hp-page .navbar-collapse.show .navbar-nav {
  z-index: 1110 !important;
  position: fixed;
}

/* Tablet + mobile */
@media (max-width: 991px) {
  body.hp-page header .container-lg > .row {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  body.hp-page header .container-lg > .row > [class*="col"] {
    display: flex;
    align-items: center;
    float: none;
  }

  body.hp-page header .container-lg > .row > :first-child {
    flex: 1 1 auto;
    width: auto !important;
    max-width: calc(100% - 56px);
    padding-right: 0.5rem;
  }

  body.hp-page header .container-lg > .row > :last-child {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    justify-content: flex-end;
    padding-left: 0;
  }

  body.hp-page header .navbar .container-fluid {
    justify-content: flex-end;
  }

  body.hp-page header .navbar-collapse {
    display: block;
    align-items: stretch;
  }

  body.hp-page header .navbar-collapse.collapsing,
  body.hp-page header .navbar-collapse.show {
    display: block;
  }

  body.hp-page .show .navbar-nav,
  body.hp-page .navbar-collapse.show .navbar-nav {
    background: #fff !important;
    box-shadow: -8px 0 24px rgba(42, 42, 80, 0.18);
    padding: 4.5rem 1.25rem 2rem;
    align-items: flex-start !important;
    flex-direction: column !important;
    overflow-y: auto;
    height: 100vh !important;
  }

  body.hp-page .show .navbar-nav .nav-link,
  body.hp-page .navbar-collapse.show .nav-link {
    color: #2a2a50 !important;
    margin-left: 0 !important;
    height: auto !important;
    width: 100%;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #eee;
  }

  body.hp-page header .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.hp-page header .navbar-nav > li {
    width: 100%;
    display: block !important;
    height: auto;
  }

  body.hp-page .blog_menu_close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
    cursor: pointer;
    z-index: 10001;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  body.hp-page .blog_menu_close::before {
    content: "\00d7";
    font-size: 34px;
    font-weight: 400;
    color: #2a2a50;
    font-family: Arial, sans-serif;
    line-height: 1;
    position: static;
    top: auto;
    left: auto;
  }

  body.hp-page ul.dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    display: none;
    margin: 0.15rem 0 0.65rem;
    box-shadow: none;
    border: 1px solid #e8e8f0;
    background: #f7f7fb !important;
    border-radius: 8px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.hp-page .nav-item.dropdown.show > .dropdown-menu,
  body.hp-page .dropdown-menu.show {
    display: block !important;
  }

  body.hp-page .dropdown-toggle::after {
    float: right;
    margin-top: 0.45rem;
  }

  body.hp-page .Mob-order-now {
    display: inline-flex !important;
    margin: 1rem 0 0 !important;
    width: fit-content;
  }

  body.hp-page .desk-order-now {
    display: none !important;
  }

  body.hp-page .hp-topbar-inner {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
  }

  body.hp-page .hp-topbar-contacts {
    justify-content: center;
    gap: 0.3rem 0.65rem;
  }

  body.hp-page .hp-topbar-item {
    font-size: 12px;
  }
}

@media (min-width: 992px) {
  body.hp-page .Mob-order-now {
    display: none !important;
  }

  body.hp-page .blog_menu_close {
    display: none !important;
  }

  body.hp-page .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 575px) {
  body.hp-page header .lgo {
    width: 132px;
  }

  body.hp-page .top-bar {
    padding: 0.35rem 0;
  }

  body.hp-page .hp-topbar-item span {
    font-size: 11px;
  }

  body.hp-page .hp-topbar-item.hp-topbar-mail span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.hp-page .hp-topbar-item[href^="https://wa.me"] span {
    display: none;
  }
}

/* Footer responsive polish */
body.hp-page .footer-section {
  background-color: #2a2a50;
  padding: 3rem 0 2rem;
  font-family: Roboto, sans-serif;
}

body.hp-page .footer-section h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

body.hp-page .footer-section ul a {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.8;
}

body.hp-page .footer-section .lgo1 {
  width: 180px;
  max-width: 100%;
  margin-left: 0;
  height: auto;
}

body.hp-page .footer-section .ftt {
  margin-left: 0;
  max-width: 180px;
}

body.hp-page .footer-section .cnt {
  padding-top: 1.25rem;
  color: #fec201;
  font-size: 1rem;
}

body.hp-page .copy {
  background: #e41e27;
}

body.hp-page .copy p {
  color: #fff;
  font-family: Roboto, sans-serif;
  margin: 0.55rem 0;
  text-align: center;
}

@media (max-width: 991px) {
  body.hp-page .footer-section .row > [class*="col-"] {
    margin-bottom: 1.75rem;
  }

  body.hp-page .footer-section .lgo1,
  body.hp-page .footer-section .ftt {
    display: block;
    margin: 0 auto;
  }

  body.hp-page .footer-section .cnt {
    text-align: center;
  }

  body.hp-page .footer-section h4 {
    margin-top: 0.25rem;
  }
}

@media (max-width: 575px) {
  body.hp-page .footer-section {
    text-align: center;
  }

  body.hp-page .footer-section ul {
    margin-bottom: 0;
  }

  body.hp-page .footer-section .s-icons {
    justify-content: center;
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0;
  }
}
