/* ================================
   NAVBAR LAYOUT & STYLES
================================ */

/* Overall navbar */
.navbar {
  /* min-height: var(--nav-height); */
  height: auto;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative; z-index: 9999;
}

/* Logo size */
.navbar-brand-logo {
  height: 40px;
  width: auto;
}

/* Nav links */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-body);
  padding: 0.3rem 0.75rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover / focus */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-brand-primary);
  transform: translateY(-1px);
}

/* Active link (optional, if you add .active in HTML) */
.navbar-nav .nav-link.active {
  color: var(--color-brand-primary);
  font-weight: 600;
}

/* Tablet screens (MD: 768px to LG: 991px) */
@media (max-width: 991px){
  .navbar-nav .nav-link {
    font-size: 0.9rem; /* slightly smaller */
    padding: 0.5rem 0.5rem; /* narrower spacing */
  }
  
}






/* ===== Chevron icon animation for "Our Products" ===== */
/* Fix chevron size + vertical alignment */
/* Auto-center chevron icon next to text */
.navbar .bi-chevron-down {
  font-size: 0.7rem;           /* small icon */
  line-height: 0;              /* removes built-in tall baseline */
  display: inline-flex;        /* allows perfect centering */
  align-items: center;         /* vertically centers content */
  justify-content: center;     /* centers horizontally */
  transform-origin: center;    /* rotation stays centered */
  font-weight: 500;
}

/* Base icon style */
.navbar .nav-item .bi-chevron-down {
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
}


@media (min-width:992px) {
  .navbar .nav-item.dropdown:hover > a .bi-chevron-down,
  .navbar .nav-item.dropdown:focus-within > a .bi-chevron-down {
    transform: rotate(180deg);
    color: var(--color-brand-primary);
  }
}



/* CTA button on the right */
.btn-cta {
  padding-inline: 1.25rem;
  padding-block: 0.55rem;
  font-weight: 600;
  background-color: var(--color-brand-primary);
  color: #ffffff;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--color-brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Mobile menu background */
.navbar-collapse {
  background-color: var(--color-surface);
  padding: 1rem 0;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  border: 1px solid var(--color-border-subtle);
  padding: 0.6rem 0;
  margin-top: 0;              /* ❗ remove the gap */
  display: none;              /* start hidden on desktop */
}

/* Dropdown items */
.dropdown-item {
  padding: 0.45rem 1.1rem;
  color: var(--color-text-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--surface-muted);
  color: var(--color-brand-primary);
}

/* Desktop: show dropdown on hover / focus */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown {
    position: relative; /* ensures menu is positioned relative to li */
  }

  .navbar .nav-item.dropdown:hover > .dropdown-menu,
  .navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
  }
}



/* ================================
   FOOTER
================================ */

.site-footer {
  background-color: var(--color-surface-muted); /* #EEF4E2 */
  color: var(--color-text-muted);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.footer-text {
  color: var(--color-text-muted);
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-body);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-brand-primary);
  transform: translateY(-1px);
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.footer-divider {
  border-color: var(--color-border-subtle);
  opacity: 1;
}

.footer-bottom {
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-brand-primary);
}

.footer-separator {
  color: var(--color-text-muted);
}
