/* Navigation — clean white bar with solar accent */
.navbar {
  background: #ffffff !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(14, 23, 38, 0.08);
  border-bottom: 1px solid rgba(247, 169, 0, 0.18);
  padding: 0.45rem 0;
  transition: padding .3s ease, box-shadow .3s ease;
}

.navbar.navbar-dark .navbar-brand,
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
  letter-spacing: .3px;
}

.navbar-brand i { color: var(--primary-color); }

/* bigger, clearly visible logo */
.navbar-logo {
  height: 86px;
  width: auto;
  margin-left: 12px;
}

.navbar.navbar-dark .nav-link,
.nav-link {
  font-weight: 600;
  margin: 0 0.55rem;
  color: var(--ink) !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: -2px;
  right: 0;
  border-radius: 4px;
  background: var(--grad-solar);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border-color: rgba(247, 169, 0, 0.45);
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(247,169,0,.25); }

/* white navbar uses dark hamburger icon */
.navbar-dark .navbar-toggler-icon,
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230e1726' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-logo { height: 50px; }
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 169, 0, 0.14), rgba(232, 115, 10, 0.08));
  border: 1px solid rgba(247, 169, 0, 0.25);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION (app-style)
   On phones the top bar shows only the compact logo, and the
   links move to a slick fixed bottom bar with icons — takes
   far less space and feels like a native app.
   ============================================================ */
.bottom-nav { display: none; }   /* hidden on desktop */
.mobile-lang-fab { display: none; margin-bottom:20px; } /* hidden on desktop */

@media (max-width: 991px) {
  /* slim the top bar: just the logo, no hamburger */
  .navbar { padding: 0.3rem 0; }
  .navbar-toggler { display: none !important; }
  .navbar-collapse { display: none !important; }      /* kill the old dropdown */
  .navbar .container { justify-content: center; }
  .navbar-brand { font-size: 1.15rem; }
  .lang-switcher { margin-top: 0.4rem; }

  /* hide the old floating pill switcher — replaced by bottom-nav dropdown */
  .lang-switcher-mobile { display: none !important; }

  /* the bottom bar */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 10px; right: 10px;
    bottom: 10px;
    z-index: 1040;
    justify-content: space-between;
    align-items: stretch;
    padding: 7px 5px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 34px rgba(14, 23, 38, 0.18);
    border: 1px solid rgba(247, 169, 0, 0.18);
  }

  .bottom-nav a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 15px;
    color: #6b7480;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, transform .2s ease;
  }
  .bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav a i { font-size: 1.12rem; transition: transform .25s ease; }

  /* active tab gets a soft gold pill + gradient icon */
  .bottom-nav a.active {
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(247,169,0,.16), rgba(232,115,10,.12));
  }
  .bottom-nav a.active i { transform: translateY(-1px) scale(1.08); }
  .bottom-nav a:active { transform: scale(.94); }

  /* lift page content so the floating bar never covers the footer */
  body { padding-bottom: 84px; }

  /* ── Standalone fixed language button (outside bottom-nav) ── */
  .mobile-lang-fab {
    display: flex;
    position: fixed;
    bottom: 80px;
    right: 18px;
    z-index: 1050;
  }

  .mobile-lang-fab .lang-dropdown {
    position: relative;
  }

  .mobile-lang-fab .lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(247, 169, 0, 0.35);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(14, 23, 38, 0.14);
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-lang-fab .lang-dropdown-toggle i {
    font-size: 0.9rem;
    color: var(--primary-dark);
    transition: transform .25s ease;
  }

  .mobile-lang-fab .lang-dropdown-toggle.open {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(247, 169, 0, 0.35);
  }

  .mobile-lang-fab .lang-dropdown-toggle.open i { color: #fff; transform: rotate(20deg); }
  .mobile-lang-fab .lang-dropdown-toggle:active { transform: scale(.93); }

  /* pop-up menu — opens upward */
  .mobile-lang-fab .lang-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    transform: translateY(6px) scale(0.95);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(247, 169, 0, 0.25);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(14, 23, 38, 0.16), 0 3px 10px rgba(247, 169, 0, 0.1);
    padding: 5px;
    z-index: 1060;
    transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-lang-fab .lang-dropdown-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-lang-fab .lang-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    transition: background .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-lang-fab .lang-dropdown-menu button:hover,
  .mobile-lang-fab .lang-dropdown-menu button:focus {
    background: rgba(247, 169, 0, 0.1);
    color: var(--primary-dark);
    outline: none;
  }

  .mobile-lang-fab .lang-dropdown-menu button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
  }
}

/* very small phones: tighten spacing */
@media (max-width: 360px) {
  .bottom-nav a { font-size: 0.66rem; }
  .bottom-nav a i { font-size: 1.05rem; }
}
