/* =========================================================
   FEAST Navbar — Polished, Modern, Pretty Version ✨
   ========================================================= */
:root {
  --feast-blue: #1c6882;
  --feast-hover: rgba(28, 104, 130, 0.12);
  --feast-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --dropdown-shadow: 0 12px 30px rgba(0,0,0,.12);
  --nav-gap: 20px;
}

/* =========================================================
   Base Navbar
   ========================================================= */

.navbar {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #fff;
  transition: box-shadow .25s ease;
}

.navbar-shadow {
  box-shadow: var(--feast-shadow);
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar .container {
  display: flex;
  align-items: center;
}

/* =========================================================
   Branding
   ========================================================= */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  padding: 0;
  height: 52px;
  text-decoration: none;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  /*transition: transform .2s ease;*/
}

/*.navbar-brand:hover img {
  transform: scale(1.03);
}*/

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--feast-blue);
}

.brand-line-1 {
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 20px);
  letter-spacing: .015em;
}


.brand-line-2 {
  font-weight: 600;
  font-size: clamp(11px, 1vw, 14px);
  opacity: 0.85;
}

.brand-title-short {
  color: var(--feast-blue);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
}

/* =========================================================
   Nav Tiles (Top Level)
   ========================================================= */

.navbar-nav.nav-tiles {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--nav-gap);
  row-gap: .25rem;
}

.nav-tiles .nav-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  border-radius: .75rem;
  font-weight: 500;
  color: var(--feast-blue);
  text-decoration: none;
  /*transition:
    background-color .18s ease,
    transform .18s ease,
    color .18s ease;*/
}

.nav-tiles .nav-link:hover {
  background-color: var(--feast-hover);
  /*transform: translateY(-1px);*/
  box-shadow: inset 0 -2px 0 rgba(28, 104, 130, 0.45);
}

.nav-tiles .nav-link.active {
  background-color: var(--feast-hover);
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--feast-blue);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.2em;
}

.icon svg {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2;
  opacity: 0.9;
}

.navbar svg.lucide {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2;
  opacity: 0.9;
}

/* =========================================================
   Dropdown Menu (EXCEEDANCE)
   ========================================================= */

/* Make the parent <li> the positioning context */
.navbar .nav-item.dropdown {
  position: relative !important;
}

.navbar .dropdown-menu.feast-dropdown {
  border-radius: .75rem;
  border: 1px solid rgba(15,23,42,0.08);
  padding: 0.35rem 0.35rem;
  background: #fff;
  min-width: 260px;

  /* Pretty shadow */
  box-shadow: var(--dropdown-shadow);

  animation: fadeSlideDown .18s ease-out;
  transform-origin: top;
}

/* Only force positioning for our FEAST dropdown, not all dropdowns */
.navbar .nav-item.dropdown > .dropdown-menu.feast-dropdown {
  position: absolute !important;
  top: 100% !important;          /* Place directly below the toggle */
  left: 0 !important;            /* Align left with the tile */
  transform: none !important;    /* Disable Popper.js offsets */
  margin-top: .35rem !important; /* Small pretty spacing */
  z-index: 2000 !important;      /* Ensure it appears above all content */
}

/* Fade + Slide animation */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header "PM2.5", "Ozone" */
.navbar .dropdown-header {
  font-size: .80rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.5rem 1rem 0.25rem;
  letter-spacing: .02em;
}

/* Menu items */
.navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: .55rem;
  color: #111827;
  transition: background .15s ease, transform .18s ease;
}

.navbar .dropdown-item:hover {
  background: #f3f4f6;
  transform: none;
}

/* Active state inside dropdown */
.navbar .dropdown-item.active {
  background: rgba(28,104,130,.14);
  color: var(--feast-blue);
  font-weight: 500;
}

/* Caret icon */
.nav-tiles .nav-link.dropdown-toggle::after {
  margin-left: 0.35rem;
  vertical-align: 0.18em;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 992px) {
  .brand-title {
    display: none !important;
  }
  .brand-title-short {
    display: inline !important;
  }
  .navbar-brand img {
    height: 44px;
  }

  /* On small screens, let dropdown stretch full width if needed */
  .navbar .nav-item.dropdown > .dropdown-menu.feast-dropdown {
    left: 0 !important;
    right: auto;
    min-width: 100%;
  }
}

@media (max-width: 1200px) {
  .nav-tiles .label {
    display: none;
  }
  .icon svg {
    width: 1.3em;
    height: 1.3em;
  }
}

