/* ==================================================
   1. ROOT VARIABLES AND GENERAL LAYOUT
   ================================================== */

:root {
  --footer-bg: #0b1220;
  --footer-text: #c2d0ea;
  --brand-orange: #ff8800;
}

html,
body {
  background-color: #f9fafb;
}

body {
  padding-top: 72px;
}

[hidden] {
  display: none !important;
}


/* ==================================================
   2. NAVBAR AND LOGO
   ================================================== */

.navbar {
  border-bottom: 1px solid #e5e7eb;
  background-color: #fff;
}

.navbar .dropdown-menu {
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
}

.navbar-brand img {
  max-width: 100%;
  height: auto;
}


/* ==================================================
   3. PAGE HERO AND MAIN CONTAINER
   ================================================== */

.page-hero {
  padding: 48px 0 10px;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin: 0;
}

.main-container {
  background-color: #f1f3f5;
  padding: 20px;
  border-radius: .5rem;
}


/* ==================================================
   4. CARDS AND SIDEBAR
   ================================================== */

.card,
.sidebar,
.promo-box,
.directory-filters,
.industry-intro {
  background-color: #fff;
  border: 1px solid var(--brand-orange);
  border-radius: .75rem;
}

.sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.sticky-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-wrap {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-wrap .list-scroll {
  overflow-y: auto;
  min-height: 100px;
  flex: 1 1 auto;
}

.sidebar-wrap .promo-box {
  flex-shrink: 0;
}

.sidebar-sticky .list-scroll {
  min-height: 0;
}


/* ==================================================
   5. MANUFACTURERS LIST
   ================================================== */

.list-group-item {
  border: none;
  border-bottom: 1px solid #f1f5f9;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item.active {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}


/* ==================================================
   6. COMPANY CARDS
   ================================================== */

.company-card.card {
  box-shadow: inset 0 0 0 1px var(--brand-orange);
  overflow: hidden;
}

.company-card h2,
.company-card .card-title {
  font-size: 1.25rem;
}

.company-card h2 {
  color: #0f172a;
}

.company-meta {
  color: #475569;
}

.company-meta i {
  color: var(--brand-orange);
  margin-right: 6px;
  opacity: .8;
}

.meta-label {
  display: inline-block;
  background-color: #fff4e5;
  color: #9a4c00;
  border-left: 4px solid var(--brand-orange);
  padding: 4px 10px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: .85rem;
}


/* ==================================================
   7. PRODUCT CATEGORIES AND PRODUCT LISTS
   ================================================== */

.product-label {
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.product-label i {
  color: var(--brand-orange);
  margin-right: 5px;
}

.product-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.product-list li {
  margin-bottom: 3px;
}


/* ==================================================
   8. COMPANY LINKS AND HTTPS BADGES
   ================================================== */

.company-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.company-links a:hover {
  text-decoration: underline;
}

.company-links .btn:hover {
  text-decoration: none;
}

.secure-badge {
  font-size: .76rem;
  font-weight: 600;
}


/* ==================================================
   9. ANCHOR TARGETS
   ================================================== */

.anchor-target,
.industry-intro {
  scroll-margin-top: 90px;
}

.product-label,
.company-card h2 {
  scroll-margin-top: 100px;
}


/* ==================================================
   10. CANNED FOOD INDUSTRY SECTION
   ================================================== */

.industry-intro h2 {
  color: #0f172a;
}

.industry-intro h3 {
  color: #9a4c00;
}

.industry-intro li {
  margin-bottom: .45rem;
}


/* ==================================================
   11. PROMOTIONAL BOX
   ================================================== */

.promo-box a.btn-light {
  border: 1px solid var(--brand-orange);
  color: #0f172a;
  background-color: #fff;
  font-size: .9rem;
}

.promo-box a.btn-light:hover {
  background-color: #fff4e5;
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}


/* ==================================================
   12. FEEDBACK BOX
   ================================================== */

.feedback-box {
  border: 1px solid var(--brand-orange);
  border-radius: .5rem;
  background-color: #fff;
  color: #374151;
  font-size: .95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.feedback-box a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: underline;
}

.feedback-box a:hover {
  color: #d66a00;
}


/* ==================================================
   13. FOOTER
   ================================================== */

.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.footer a {
  color: var(--footer-text);
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}


/* ==================================================
   14. BACK TO TOP BUTTON
   ================================================== */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(2,8,23,.09);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
}

.back-to-top.show {
  display: flex;
}


/* ==================================================
   15. DESKTOP LAYOUT
   ================================================== */

@media (min-width: 992px) {

  .row > aside.col-lg-3 {
    position: sticky;
    top: 90px;
    align-self: flex-start;
    height: calc(100vh - 110px);
    min-height: 0;
  }

  #companyList {
    flex: 1 1 auto;
    overflow: auto;
  }

  .sidebar-wrap #companyList {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .sidebar-sticky {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sidebar-sticky h2,
  .sidebar-sticky .promo-box {
    flex-shrink: 0;
  }

  .sidebar-sticky #companyList {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

}


/* ==================================================
   16. TABLET AND MOBILE LAYOUT
   ================================================== */

@media (max-width: 991.98px) {

  body {
    padding-top: 64px;
  }

  .row > aside.col-lg-3 {
    position: static;
    height: auto;
  }

  .sidebar-sticky {
    display: block;
    height: auto;
  }

  .sidebar-sticky #companyList {
    max-height: 350px;
    overflow-y: auto;
  }

  .sidebar-wrap {
    position: static;
    max-height: none;
  }

  .sidebar-wrap .list-scroll {
    max-height: 320px;
  }

}

/* ==================================================
   17. COMPANY LISTING UPGRADE BOX
   ================================================== */

.listing-upgrade-box {
  background-color: #fff9f0;
  border: 1px solid var(--brand-orange);
  border-left: 5px solid var(--brand-orange);
  border-radius: .75rem;
  padding: 20px;
}

.listing-upgrade-box h2 {
  color: #9a4c00;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.listing-upgrade-icon {
  color: var(--brand-orange);
  font-size: 2rem;
  line-height: 1;
  padding-top: 3px;
}

.listing-upgrade-box p {
  color: #374151;
}

.listing-upgrade-box .listing-upgrade-description {
  color: #475569;
  font-size: .9rem;
}

.btn-listing-upgrade {
  background-color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
  color: #212529;
  font-size: .9rem;
  font-weight: 600;
}

.btn-listing-upgrade:hover,
.btn-listing-upgrade:focus-visible {
  background-color: #e67700;
  border-color: #e67700;
  color: #212529;
}

.listing-upgrade-link {
  color: #9a4c00;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
}

.listing-upgrade-link:hover {
  color: #713800;
}

@media (max-width: 575.98px) {

  .listing-upgrade-box {
    padding: 15px;
  }

  .listing-upgrade-icon {
    display: none;
  }

  .btn-listing-upgrade {
    width: 100%;
  }

}
/* ==========================================
   18. FREE COMPANY LISTING BOX
   ========================================== */

.listing-upgrade-box.listing-free-box {
  background-color: #f5fff8;
  border-color: #198754;
  border-left: 5px solid #198754;
}

.listing-free-box h2 {
  color: #146c43;
}

.listing-free-box .listing-upgrade-icon {
  color: #198754;
}

.listing-free-box .btn-success {
  font-size: .9rem;
  font-weight: 600;
}
#noResultsCTA[hidden] {
  display: none !important;
}
