/* Bottom navigation bar — shared by every page (including the rate calculator). */
:root{
  --nb-navy:#1B3A6B;
  --nb-deep:#122A50;
  --nb-gold:#D4A739;
  --nb-gold-deep:#B88C1D;
  --nb-mute:#52627C;
  --nb-line:#D5DDE9;
}
body.has-bnav{ padding-bottom:calc(92px + env(safe-area-inset-bottom)); }

.bnav{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  display:grid; grid-template-columns:1fr 1fr 1.25fr 1fr 1fr; align-items:end;
  height:calc(64px + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background:#fff; border-top:1px solid var(--nb-line);
  box-shadow:0 -6px 18px rgba(18,42,80,.10);
  font-family:'Noto Sans Devanagari','Roboto',system-ui,sans-serif;
}
.bnav *{ box-sizing:border-box; }
body.nb-hide .bnav{ display:none; }

.bn{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  height:64px; color:var(--nb-mute); text-decoration:none;
  font-size:12px; font-weight:600; line-height:1;
  -webkit-tap-highlight-color:transparent;
}
.bn svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bn[aria-current="page"]{ color:var(--nb-navy); }
.bn[aria-current="page"]::before{
  content:""; position:absolute; top:0; left:26%; right:26%; height:3px; border-radius:0 0 3px 3px; background:var(--nb-gold);
}
.bn:focus-visible, .bn-mid:focus-visible{ outline:3px solid var(--nb-gold-deep); outline-offset:-3px; border-radius:8px; }

/* Centre button: the pickup-cab-in-a-gear logo, raised above the bar */
.bn-mid{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  height:64px; padding-bottom:12px; color:var(--nb-navy); text-decoration:none;
  font-size:12px; font-weight:700; line-height:1; -webkit-tap-highlight-color:transparent;
}
.mid-btn{
  position:absolute; top:-30px; left:50%; width:66px; height:66px; margin-left:-33px;
  display:grid; place-items:center; border-radius:50%;
  background:#fff; border:3px solid var(--nb-gold);
  box-shadow:0 6px 16px rgba(18,42,80,.30);
}
.mid-btn svg{ width:54px; height:54px; display:block; }
.mid-btn::after{
  content:""; position:absolute; inset:-3px; border-radius:50%; border:2px solid var(--nb-gold); opacity:0; pointer-events:none;
}
.gear{ transform-box:view-box; transform-origin:32px 32px; }

@media (prefers-reduced-motion:no-preference){
  .gear{ animation:nb-spin 10s linear infinite; }
  .mid-btn::after{ animation:nb-pulse 2.8s ease-out infinite; }
}
@keyframes nb-spin{ to{ transform:rotate(360deg); } }
@keyframes nb-pulse{
  0%{ transform:scale(1); opacity:.65; }
  70%,100%{ transform:scale(1.32); opacity:0; }
}
