/* ============================================================
   navbar.css — Everest Masala Navigation Styles
   ============================================================ */

   :root {
    /* Use global theme vars when available (fallbacks included) */
    --brand-blue:   var(--brand-blue, #023b80);
    --brand-yellow: var(--brand-yellow, #ffcd07);
    --brand-red:    var(--brand-red, #e93f1e);

    --primary:    var(--primary-color, var(--brand-blue));
    --accent:     var(--accent-color, var(--brand-yellow));
    --danger:     var(--danger-color, var(--brand-red));

    --bg-dark:    rgba(2, 26, 55, 1);
    --glass:      rgba(2, 26, 55, 0.92);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* ---- GLOBAL RESET ----------------------------------------- */
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html,
  body {
    overflow-x: hidden;
  }
  
  body {
    font-family: "Montserrat", sans-serif;
    background: #0b1220;
  }
  
  /* ---- ANIMATIONS ------------------------------------------- */
  
  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }
  
  @keyframes fadeIn {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }
  
  /* ---- HEADER WRAPPER --------------------------------------- */
  
  .header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.8s ease forwards;
    transition: var(--transition);
  }
  
  .header-wrapper.scrolled {
    background: rgba(12, 15, 21, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* ---- TOP BAR ---------------------------------------------- */
  
  .top-bar {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 8px 6%;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    height: 35px;
  }
  
  .top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
  }

  .top-left span { margin-right: 20px; }
  .top-right i { margin-left: 15px; cursor: pointer; transition: color 0.3s; }
  .top-right i:hover { color: var(--accent); }
  
  /* ---- MAIN NAVBAR ------------------------------------------ */
  
  .navbar {
    background: rgba(2, 26, 55, 0.85);
    backdrop-filter: blur(15px);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid rgba(255, 205, 7, 0.18);
    transition: var(--transition);
    position: relative;
  }
  
  /* ---- CENTER LOGO ------------------------------------------ */
  
  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: #0b1220;
    border-radius: 50%;
    padding: 6px;
    border: 2px solid var(--primary);
    transition: var(--transition);
    z-index: 1010;
  }
  
  .logo-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  
  /* ---- NAV LINKS -------------------------------------------- */
  
  .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    margin-top: 30px;
  }
  
  .nav-links.right {
    justify-content: flex-end;
  }
  
  /* ---- NAV ITEMS -------------------------------------------- */
  
  .nav-item {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    position: relative;
  }
  
  .nav-item::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
  }
  
  .nav-item:hover::after,
  .nav-item.active::after {
    width: 100%;
  }
  
  .nav-item.active {
    color: var(--primary);
  }
  
  /* ---- RESERVE BUTTON --------------------------------------- */
  
  .btn-reserve {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
    margin-left: 30px;
    animation: fadeIn 0.5s ease forwards 1s;
    opacity: 0;
  }
  
  .btn-reserve:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(255,205,7,0.18), 0 12px 26px rgba(255,205,7,0.20);
    transform: translateY(-2px);
  }
  
  /* ---- LANGUAGE DROPDOWN ------------------------------------ */
  
  .lang-dropdown {
    position: relative;
    margin-left: 20px;
    margin-top: 30px;
  }
  
  .lang-selected {
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
  }
  
  .lang-selected:hover {
    background: var(--primary);
  }
  
  .lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #0b1220;
    border: 1px solid rgba(255, 205, 7, 0.22);
    border-radius: 4px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 140px;
    z-index: 1100;
  }
  
  .lang-menu.open {
    display: flex;
  }
  
  .lang-menu a {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    transition: 0.2s;
  }
  
  .lang-menu a:hover {
    background: rgba(255, 205, 7, 0.14);
  }
  
  /* ---- BRANCHES DROPDOWN ------------------------------------ */
  
  .dropdown {
    position: relative;
    cursor: pointer;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 10, 5, 0.95);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.25s;
  }
  
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #f8edda;
    text-decoration: none;
  }
  
  .dropdown-item:hover {
    background: rgba(255, 205, 7, 0.10);
  }
  
  /* ---- SCROLL SHRINK EFFECT --------------------------------- */
  
  .header-wrapper.scrolled .top-bar {
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
  }
  
  .header-wrapper.scrolled .navbar {
    height: 65px;
  }
  
  .header-wrapper.scrolled .logo-container {
    width: 75px;
    height: 75px;
    transform: translate(-50%, -50%);
  }
  
  .header-wrapper.scrolled .nav-links {
    margin-top: 5px;
  }
  
  /* ---- MOBILE ELEMENTS -------------------------------------- */
  
  .hamburger {
    display: none;
    cursor: pointer;
    color: white;
    z-index: 1010;
    font-size: 1.8rem;
  }
  
  .mobile-logo-wrap {
    display: none;
    align-items: center;
  }
  
  .mobile-logo-wrap img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
  }
  
  /* ---- MOBILE MENU OVERLAY ---------------------------------- */
  
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    background-size: cover;
    background-position: center;
    z-index: 2000;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  
    transform: translateX(100%);
    transition: var(--transition);
  }
  
  .mobile-menu.active {
    transform: translateX(0);
  }
  
  .mobile-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
  }
  
  .mobile-item {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
  }
  
  .mobile-item.active {
    color: var(--primary);
  }
  
  .mobile-menu.active .mobile-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  .mobile-footer {
    margin-top: 30px;
    text-align: center;
    color: #ddd;
    font-size: 0.8rem;
  }
  
  .mobile-socials {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    justify-content: center;
  }
  
  .mobile-socials a {
    color: white;
    text-decoration: none;
  }
  
  /* ---- RESPONSIVE ------------------------------------------- */
  
  @media (max-width: 1024px) {
    .top-bar,
    .nav-links,
    .logo-container,
    .lang-dropdown {
      display: none;
    }
  
    .navbar {
      height: 80px;
      padding: 0 6%;
      justify-content: space-between;
      align-items: center;
    }
  
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px;
    }
  
    .mobile-logo-wrap {
      display: flex;
      margin-left: 10px;
    }
  }

  /* ---- LEGACY NAVBAR SUPPORT (moved from styles.css) ---------- */
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .navbar.scrolled .logo h1 {
    color: var(--primary);
  }

  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
  }

  .nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }

  .navbar.scrolled .nav-menu a {
    color: #1a1a1a;
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
  }

  .nav-menu a:hover {
    color: var(--primary);
  }

  .navbar.scrolled .nav-menu a:hover {
    color: var(--primary);
  }

  .nav-menu a:hover::after {
    width: 100%;
  }

  .btn-reservation {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
  }

  .btn-reservation:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 205, 7, 0.35);
  }

  .lang-switch-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .lang-toggle {
    display: none;
  }

  .lang-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 35px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .navbar.scrolled .lang-switch {
    background: rgba(255, 205, 7, 0.15);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 205, 7, 0.2);
  }

  .lang-switch:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
  }

  .navbar.scrolled .lang-switch:hover {
    background: rgba(255, 205, 7, 0.25);
  }

  .lang-flag {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .lang-flag-cz {
    left: 8px;
    opacity: 1;
  }

  .lang-flag-en {
    right: 8px;
    opacity: 0;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .lang-toggle:checked + .lang-switch .lang-flag-cz {
    opacity: 0;
  }

  .lang-toggle:checked + .lang-switch .lang-flag-en {
    opacity: 1;
  }

  .lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 29px;
    height: 29px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lang-toggle:checked + .lang-switch .lang-slider {
    transform: translateX(35px);
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 205, 7, 0.4);
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 3px;
  }

  .navbar.scrolled .hamburger span {
    background: #1a1a1a;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #1a1a1a;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #1a1a1a;
  }

  .mobile-nav-menu {
    list-style: none;
    margin-bottom: 2rem;
  }

  .mobile-nav-menu li {
    margin-bottom: 1rem;
  }

  .mobile-nav-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
  }

  .mobile-nav-menu a:hover {
    color: var(--primary);
  }

  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
  }

  .btn-reservation-mobile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-reservation-mobile svg {
    width: 20px;
    height: 20px;
  }

  .btn-reservation-mobile:hover {
    background: var(--accent);
    transform: translateY(-2px);
  }

  .mobile-lang-switch {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
  }

  .mobile-lang-switch .lang-switch {
    background: rgba(255, 205, 7, 0.15);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 205, 7, 0.2);
  }