/*
===================================================
PROJECT: Nehal Machinery Ltd
LAYOUT & NAVIGATION STYLES
DEVELOPER: IBNA AQUAR SAHOS (AQUAR) | Dhaka Solutions
===================================================
*/

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-fluid {
  width: 100%;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Header & Navbar */
.navbar {
  background-color: var(--color-surface-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.companyNameAndLogo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.companyNameAndLogo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
}

.companyNameAndLogo h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--color-surface-base);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 17px;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-tertiary);
}

/* Dropdown Menu */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1050;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--color-text-tertiary);
}

/* Mobile Navbar Toggler */
.navbar-toggler {
  display: none;
  padding: 8px 12px;
  font-size: 20px;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
}

.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333333;
  position: relative;
  transition: background-color 0.2s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #333333;
  left: 0;
  transition: transform 0.2s ease;
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }

/* Banner Containers with Fixed Parallax Background & Overlay */
.aboutUsBannerContainer,
.machineryBannerContainer,
.moldsBannerContainer,
.rawMaterialsBannerContainer,
.shopBannerContainer,
.blogBannerContainer,
.affiliateBannerContainer,
.contactUsBannerContainer {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 70vh;
  position: relative;
}

.aboutUsBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/AboutBg.jpg');
}

.machineryBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/machineryBg.jpg');
}

.moldsBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/moldBg.jpg');
}

.rawMaterialsBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/rawBg.jpg');
}

.shopBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/ShopBg.jpg');
}

.blogBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/blogBg.jpg');
}

.affiliateBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/AgentsBg.jpeg');
}

.contactUsBannerContainer {
  background-image: linear-gradient(#6e6e6eb3, #00000080), url('../images/backgrounds/contactBg.jpg');
}

/* Footer */
.footer {
  background-color: var(--color-surface-nav);
  min-height: calc(50vh - 40px);
  padding-top: 50px;
  padding-bottom: 20px;
  margin-top: 60px;
  border-top: 1px solid #e2e2e2;
}

.footer h2 {
  font-family: var(--font-family-primary);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-surface-base);
}

.footer span {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.footer a {
  color: #212529;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

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

.footer p {
  margin-bottom: 12px;
}
