/* NAVBAR */
.navbar {
  background: #fff;
  padding: 0.25rem 0; /* smaller vertical padding */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  height: 80px; /* fix navbar height */
  display: flex;
  align-items: center;
}

/* Container with equal left & right spacing */
.navbar .container-fluid {
  padding-left: 0;
  padding-right: 40px; /* add spacing on the right */
  height: 100%;
  display: flex;
  align-items: center;
}

/* Yellow block behind logo */
.logo-block {
  background: #fabe23;
  padding: 0 25px;
  height: 80px;
  display: flex;
  align-items: center;
}

/* Logo */
.logo-block img {
  height: 120px; /* smaller, balanced logo */
  width: auto;
  display: block;
}

/* Navbar links */
.navbar-nav {
  margin-left: auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

.navbar-nav .nav-link {
  color: #000 !important;
  font-weight: 900;
  font-size: 20px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 0; /* remove extra padding */
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-nav .nav-link:hover {
  color: #fabe23 !important;
  border-bottom: 2px solid #fabe23;
}

/* Language switcher dropdown styling */
.navbar select.form-select {
  font-size: 0.9rem;
  padding: 3px 6px;
  border-radius: 6px;
}

.navbar select.form-select:focus {
  box-shadow: none;
  border-color: #fabe23; /* same yellow accent */
}

/* ===== Smart navbar (fixed + hide-on-scroll + background) ===== */
.smart-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: transform 0.36s cubic-bezier(.22,.9,.25,1), background-color 0.32s ease, box-shadow 0.32s ease;
  will-change: transform;
}

/* slide up to hide */
.navbar-hidden {
  transform: translateY(-110%);
}

/* background after passing hero */
.scrolled-nav {
  background-color: rgba(255,255,255,0.96) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(3px);
}

/* If you want the navbar to be exactly the height of your current bar, you can override here.
   Example:
.smart-navbar { height: 88px; }
*/

/* MOBILE NAVBAR FIXES - BIGGER LOGO LIKE FIRST IMAGE */
@media (max-width: 992px) {
  .navbar {
    height: 70px;
  }

  .logo-block {
    height: 70px;
    padding: 0 20px;
  }

  .logo-block img {
    height: 60px; /* Much bigger than current 42px */
  }

  .navbar-nav {
    gap: 1.5rem;
  }

  .navbar-nav .nav-link {
    font-size: 18px;
  }
}

@media (max-width: 768px) {

  .navbar-collapse {
    background: #fabe23 !important;
    padding: 15px 20px !important;
    /* center the yellow card */
    margin: 10px auto 0 auto !important;
    width: calc(100% - 30px) !important;   /* 15px gap left/right */
    max-width: 420px !important;           /* nice centered card width */
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  .navbar-collapse .navbar-nav .nav-link {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    text-align: left !important;
    width: 100% !important;
  }

  /* Style the brown language button */
  .navbar-collapse .form-select {
    background: rgba(101, 67, 33, 0.9) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    width: 100% !important;
    margin-top: 15px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    position: relative !important; /* Add this */
  }

  /* Fix dropdown positioning to stay at bottom */
  .navbar-collapse .form-select option {
    background: rgba(101, 67, 33, 0.9) !important;
    color: #fff !important;
  }

  /* Make sure language switcher container stays at bottom */
  .navbar-collapse li:last-child {
    margin-top: auto !important;
    position: relative !important;
  }

  /* Remove fake elements */
  .navbar-collapse::before,
  .navbar-collapse::after {
    display: none !important;
  }


  .navbar {
    height: 65px !important;
    padding: 0 !important;
    align-items: center !important;
    display: flex !important;
  }

  .navbar .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    align-items: center !important;
    height: 100% !important;
    display: flex !important;
  }

  .logo-block {
    height: 65px !important;
    align-self: center !important;
    margin-top: 0px !important;
    align-items: center !important;
    display: flex !important;
  }

  .logo-block img {
    height: 55px !important;
  }

  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
    margin-left: auto;
  }

  .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 800;
  }
}

@media (max-width: 576px) {
  .navbar {
    height: 60px;
  }

  .logo-block {
    height: 60px;
  }

  .logo-block img {
    height: 50px; /* Still prominent */
  }

  .navbar-nav .nav-link {
    font-size: 14px;
  }
}

/* responsive tweak */
@media (max-width: 768px) {
  .smart-navbar { transition: transform 0.28s ease; }
}


