/* ==========================================================================
   Rang Mitra Painting — Navbar & Bottom Navigation (navbar.css)
   Top sticky navbar (desktop) + mobile-style fixed bottom tab bar with FAB.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* Hamburger (mobile drawer trigger) */
.menu-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--color-text);
  transition: background var(--transition);
}
.menu-toggle:hover { background: rgba(108, 76, 241, 0.08); }
.menu-toggle svg { width: 24px; height: 24px; }

/* Logo */
.nav-logo { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; }
.nav-logo__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF7A45, #4F9CF9 55%, #6C4CF1);
  box-shadow: var(--shadow-sm);
}
.nav-logo__mark svg { width: 24px; height: 24px; color: #fff; }
.nav-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-logo__sub { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 500; }

/* Desktop icon nav (Calculator / Book Visit / Projects / About Us) */
.nav-menu { display: flex; align-items: center; gap: var(--space-6); }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--color-text);                 /* darker, more visible */
  font-size: 0.82rem; font-weight: 700;     /* bolder label */
  transition: color var(--transition), transform var(--transition);
}
/* Bold filled-chip icons */
.nav-item svg {
  width: 22px; height: 22px; stroke-width: 2.4;
  padding: 8px; border-radius: 12px; box-sizing: content-box;
  background: rgba(108, 76, 241, 0.10);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}
.nav-item:hover { transform: translateY(-1px); }
.nav-item:hover svg,
.nav-item.is-active svg { background: var(--color-primary); color: #fff; }
.nav-item:hover,
.nav-item.is-active { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: var(--space-4); }

/* --------------------------------------------------------------------------
   Mobile slide-in drawer
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(31, 41, 55, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 200;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(82vw, 320px);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 210;
  display: flex; flex-direction: column;
  padding: var(--space-5);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.drawer__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--color-text-muted); }
.drawer__close:hover { background: var(--color-bg); }
.drawer__close svg { width: 22px; height: 22px; }
.drawer-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 14px var(--space-3);
  border-radius: 12px;
  font-weight: 600; color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.drawer-link svg { width: 20px; height: 20px; color: var(--color-text-muted); }
.drawer-link:hover { background: rgba(108, 76, 241, 0.08); color: var(--color-primary); }
.drawer-link:hover svg { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   Bottom navigation (mobile app style) with elevated FAB
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  display: none;                 /* shown on mobile via responsive.css */
  align-items: center;
  justify-content: space-around;
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.72rem; font-weight: 700;       /* bolder label */
  color: var(--color-text);                    /* darker, more visible */
  flex: 1; text-align: center;
}
.bottom-nav__item svg {
  width: 22px; height: 22px; stroke-width: 2.4;
  padding: 6px; border-radius: 11px; box-sizing: content-box;
  background: rgba(108, 76, 241, 0.10);
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}
.bottom-nav__item.is-active svg { background: var(--color-primary); color: #fff; }
.bottom-nav__item.is-active { color: var(--color-primary); }

.bottom-nav__fab {
  flex: none;
  width: 60px; height: 60px;
  margin-top: -28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 20px rgba(108, 76, 241, 0.45);
  font-size: 0.64rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-align: center; /* was 9.3px — too small to read */
}
.bottom-nav__fab svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Nav buttons — every navbar item uses the Book Appointment button style.
   Slightly tighter than a normal .btn so six of them fit across the bar.
   -------------------------------------------------------------------------- */
.btn-nav { padding: 10px 16px; font-size: 0.88rem; box-shadow: none; }
.btn-nav:hover { box-shadow: var(--shadow-md); }
.nav-menu { gap: var(--space-3); }
