
/* ==========================================================
   VIJAY ENTERPRISES
   NAVBAR & HEADER STYLESHEET

   Domain: https://vijayenterprises1986.in/

   Features:
   - Sticky navigation
   - Centered desktop pill navigation
   - Sliding active menu indicator
   - Desktop outline quotation button
   - Responsive Bootstrap mobile navigation
   - Keyboard accessibility
   - Reduced motion support
========================================================== */


/* ==========================================================
   01. DESIGN VARIABLES
========================================================== */

:root {
  --ve-nav-navy: #112b48;
  --ve-nav-blue: #203f83;
  --ve-nav-gold: #d6a261;

  --ve-nav-text: #34475c;
  --ve-nav-muted: #64748b;

  --ve-nav-pill-bg: #edf1f5;
  --ve-nav-border: #e3e9f0;
  --ve-nav-white: #ffffff;

  --ve-nav-transition:
    450ms cubic-bezier(0.22, 1, 0.36, 1);

  --ve-nav-focus: #b37a32;
}


/* ==========================================================
   02. SCROLL OFFSET
========================================================== */

html {
  scroll-padding-top: 90px;
}

#navbar-container {
  position: sticky;
  top: 0;

  z-index: 1050;

  width: 100%;
}


/* ==========================================================
   03. HEADER
========================================================== */

.site-header {
  position: relative;

  width: 100%;

  background: var(--ve-nav-white);

  transition:
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  box-shadow:
    0 6px 24px rgba(17, 43, 72, 0.1);
}


/* ==========================================================
   04. NAVBAR
========================================================== */

.ve-navbar {
  width: 100%;
  min-height: 76px;

  margin: 0;
  padding: 10px 0;

  background: var(--ve-nav-white);

  border-bottom:
    1px solid var(--ve-nav-border);
}


/* ==========================================================
   05. MAIN NAVBAR CONTAINER
========================================================== */

.ve-navbar .ve-navbar-container {
  width: 100%;
  max-width: 1320px;

  margin-inline: auto;
  padding-inline: 24px;
}


/* ==========================================================
   06. BRAND / LOGO
========================================================== */

.ve-brand {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  margin: 0;
  padding: 0;

  text-decoration: none;
}

.ve-brand:hover {
  text-decoration: none;
}

.ve-logo-circle {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 50px;

  width: 50px;
  height: 50px;

  background: var(--ve-nav-blue);

  border-radius: 50%;

  overflow: hidden;
}

.ve-brand-logo {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.ve-brand-content {
  display: flex;
  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.ve-brand-name {
  color: var(--ve-nav-navy);

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: 13px;
  font-weight: 800;

  line-height: 1.35;
  letter-spacing: -0.4px;

  white-space: nowrap;
}

.ve-brand-tagline {
  color: var(--ve-nav-muted);

  font-family: "Inter", sans-serif;

  font-size: 9.5px;
  font-weight: 500;

  line-height: 1.4;

  white-space: nowrap;
}


/* ==========================================================
   07. DESKTOP GRID
   BRAND | PILL NAVIGATION | CTA
========================================================== */

@media (min-width: 1200px) {

  .ve-navbar .ve-navbar-container {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      auto
      minmax(0, 1fr);

    align-items: center;

    column-gap: 14px;
  }

  .ve-navbar .ve-brand {
    grid-column: 1;

    justify-self: start;
  }

  .ve-navbar .ve-navbar-collapse {
    display: flex !important;

    grid-column: 2;

    justify-self: center;
    justify-content: center;

    width: max-content;
    min-width: 0;

    flex-grow: 0;
    flex-basis: auto;

    margin: 0;
  }

  .ve-navbar .ve-desktop-quote {
    grid-column: 3;

    justify-self: end;
  }

}


/* ==========================================================
   08. NAVIGATION PILL
========================================================== */

.ve-navbar-collapse {
  min-width: 0;
}

.ve-nav-links {
  position: relative;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;

  gap: 3px;

  width: max-content;
  max-width: 100%;

  margin: 0;
  padding: 5px;

  background: var(--ve-nav-pill-bg);

  border: 1px solid #e0e7ef;
  border-radius: 999px;

  list-style: none;

  isolation: isolate;
}


/* ==========================================================
   09. ACTIVE INDICATOR
========================================================== */

.ve-nav-indicator {
  position: absolute;

  top: 0;
  left: 0;

  z-index: 0;

  width: 0;
  height: 0;

  background: var(--ve-nav-navy);

  border-radius: 999px;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transform: translate3d(0, 0, 0);

  transition:
    transform var(--ve-nav-transition),
    width var(--ve-nav-transition),
    height var(--ve-nav-transition),
    opacity 180ms ease;
}

.ve-nav-links.ve-nav-indicator-ready
.ve-nav-indicator {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================
   10. NAVIGATION LIST ITEMS
========================================================== */

.ve-nav-links > .nav-item {
  position: relative;
  z-index: 1;

  flex: 0 0 auto;

  margin: 0;
  padding: 0;
}


/* ==========================================================
   11. NAVIGATION LINKS
========================================================== */

.ve-nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;

  padding: 11px 16px !important;

  color: var(--ve-nav-text);

  background: transparent !important;

  border: 0;
  border-radius: 999px;

  font-family: "Inter", sans-serif;

  font-size: 12px;
  font-weight: 600;

  line-height: 1.5;

  text-decoration: none;
  white-space: nowrap;

  transition:
    color 220ms ease;
}


/* Remove older underline navigation */

.ve-nav-links .nav-link::after {
  display: none !important;
}


/* ==========================================================
   12. HOVER STATES
========================================================== */

.ve-nav-links .nav-link:hover {
  color: var(--ve-nav-blue);
}


/* ==========================================================
   13. ACTIVE LINK
========================================================== */

.ve-nav-links .nav-link.active,
.ve-nav-links .nav-link[aria-current="location"],
.ve-nav-links .nav-link[aria-current="page"] {
  color: var(--ve-nav-white) !important;
}


/* ==========================================================
   14. FALLBACK BEFORE JAVASCRIPT LOADS
========================================================== */

.ve-nav-links:not(.ve-nav-indicator-ready)
.nav-link.active,
.ve-nav-links:not(.ve-nav-indicator-ready)
.nav-link[aria-current="page"] {
  color: #ffffff !important;

  background: var(--ve-nav-navy) !important;
}


/* ==========================================================
   15. GET A QUOTE BUTTON
========================================================== */

.ve-desktop-quote {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-shrink: 0;
}

.ve-mobile-quote {
  display: none;
}

.ve-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 155px;
  min-height: 48px;

  padding: 12px 18px;

  color: var(--ve-nav-blue);
  background: transparent;

  border: 1.5px solid var(--ve-nav-blue);
  border-radius: 12px;

  font-family: "Inter", sans-serif;

  font-size: 13px;
  font-weight: 700;

  line-height: 1.4;

  text-align: center;
  text-decoration: none;

  white-space: nowrap;

  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.ve-quote-btn:hover {
  color: #ffffff;
  background: var(--ve-nav-blue);

  border-color: var(--ve-nav-blue);

  box-shadow:
    0 5px 16px rgba(32, 63, 131, 0.12);
}

.ve-quote-btn:active {
  color: #ffffff;
  background: var(--ve-nav-navy);

  border-color: var(--ve-nav-navy);
}


/* ==========================================================
   16. MOBILE MENU TOGGLE
========================================================== */

.ve-toggler {
  display: none;
  align-items: center;
  justify-content: center;

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  margin: 0;
  padding: 0;

  color: var(--ve-nav-navy);
  background: #eef2f7;

  border: 1px solid var(--ve-nav-border);
  border-radius: 50%;

  cursor: pointer;

  box-shadow: none !important;
}

.ve-toggler svg {
  display: block;

  width: 21px;
  height: 21px;

  color: currentColor;

  stroke-width: 2;
}

.ve-toggler:hover {
  background: #e3eaf2;
}

.ve-toggler[aria-expanded="true"] {
  background: #e3eaf2;

  border-color: #bbc8d8;
}


/* ==========================================================
   17. LAPTOP: 992px TO 1199px
========================================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {

  .ve-navbar .ve-navbar-container {
    display: grid !important;

    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto;

    align-items: center;

    column-gap: 10px;

    padding-inline: 18px;
  }

  .ve-navbar .ve-brand {
    grid-column: 1;
    justify-self: start;

    gap: 7px;
  }

  .ve-logo-circle {
    flex-basis: 42px;

    width: 42px;
    height: 42px;
  }

  .ve-brand-name {
    font-size: 10.5px;
  }

  .ve-brand-tagline {
    font-size: 8px;
  }

  .ve-navbar .ve-navbar-collapse {
    display: flex !important;

    grid-column: 2;

    justify-self: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    margin: 0;
  }

  .ve-nav-links {
    gap: 0;
    padding: 4px;
  }

  .ve-nav-links .nav-link {
    min-height: 44px;

    padding-inline: 9px !important;

    font-size: 10.5px;
  }

  .ve-navbar .ve-desktop-quote {
    grid-column: 3;

    justify-self: end;
  }

  .ve-quote-btn {
    width: 135px;
    min-height: 44px;

    padding: 10px 13px;

    font-size: 11.5px;

    border-radius: 10px;
  }

}


/* ==========================================================
   18. TABLET AND MOBILE
========================================================== */

@media (max-width: 991.98px) {

  html {
    scroll-padding-top: 75px;
  }

  .ve-navbar {
    min-height: 68px;

    padding: 8px 0;
  }

  .ve-navbar .ve-navbar-container {
    display: flex !important;

    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    padding-inline: 16px;
  }

  /* Brand */

  .ve-logo-circle {
    flex-basis: 45px;

    width: 45px;
    height: 45px;
  }

  .ve-brand-name {
    font-size: 12.5px;
  }

  .ve-brand-tagline {
    font-size: 9px;
  }

  /* Mobile toggle */

  .ve-toggler {
    display: inline-flex;

    margin-left: auto;
  }

  /* Desktop CTA hidden on mobile */

  .ve-desktop-quote {
    display: none;
  }

  /* Bootstrap collapse container */

  .ve-navbar .ve-navbar-collapse {
    flex-basis: 100%;

    width: 100%;
    min-width: 0;

    order: 5;

    margin-top: 8px;
    padding: 13px 0 10px;

    border-top:
      1px solid var(--ve-nav-border);
  }

  /* Vertical navigation */

  .ve-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    width: 100%;
    max-width: 100%;

    margin: 0 0 15px;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;
  }

  .ve-nav-links > .nav-item {
    width: 100%;
    flex: none;
  }

  .ve-nav-links .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: 46px;

    padding: 12px 15px !important;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;

    border-radius: 9px;
  }

  /* Mobile vertical indicator */

  .ve-nav-indicator {
    border-radius: 9px;

    transition:
      transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
      height 350ms cubic-bezier(0.22, 1, 0.36, 1),
      width 350ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease;
  }

  /* Mobile menu CTA */

  .ve-mobile-quote {
    display: block;

    width: 100%;
  }

  .ve-mobile-quote .ve-quote-btn {
    display: flex;

    width: 100%;
    min-height: 48px;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 14px;
  }

}


/* ==========================================================
   19. SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .ve-navbar .ve-navbar-container {
    padding-inline: 13px;
  }

  .ve-logo-circle {
    flex-basis: 43px;

    width: 43px;
    height: 43px;
  }

  .ve-brand {
    gap: 8px;
  }

  .ve-brand-name {
    font-size: 11.5px;
  }

  .ve-brand-tagline {
    font-size: 8.5px;
  }

}


/* ==========================================================
   20. EXTRA SMALL VIEWPORT
========================================================== */

@media (max-width: 360px) {

  .ve-navbar .ve-navbar-container {
    gap: 6px;

    padding-inline: 11px;
  }

  .ve-brand {
    gap: 7px;
  }

  .ve-brand-name {
    font-size: 10.8px;
  }

  .ve-brand-tagline {
    font-size: 8px;
  }

  .ve-logo-circle {
    flex-basis: 40px;

    width: 40px;
    height: 40px;
  }

  .ve-toggler {
    flex-basis: 44px;

    width: 44px;
    height: 44px;
  }

}


/* ==========================================================
   21. KEYBOARD ACCESSIBILITY
========================================================== */

.ve-navbar a:focus-visible,
.ve-navbar button:focus-visible {
  outline: 3px solid var(--ve-nav-focus);

  outline-offset: 3px;
}

/*
  Navigation focus should remain visually clear
  even when the active link background is dark.
*/

.ve-nav-links .nav-link:focus-visible {
  outline: 3px solid var(--ve-nav-focus);

  outline-offset: 2px;
}

.ve-nav-links .nav-link.active:focus-visible {
  outline-color: #e5bc83;
}

.ve-quote-btn:focus-visible {
  outline: 3px solid var(--ve-nav-focus);

  outline-offset: 3px;
}


/* ==========================================================
   22. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .site-header,
  .ve-nav-indicator,
  .ve-nav-links .nav-link,
  .ve-quote-btn,
  .ve-toggler {
    transition: none !important;
  }

  .ve-nav-indicator {
    will-change: auto;
  }

}


/* ==========================================================
   23. NO-JS AND PRE-INITIALIZATION FALLBACK
========================================================== */

/*
  Before the JS indicator is initialized, keep the
  selected navigation item visibly highlighted.
*/

@media (max-width: 991.98px) {

  .ve-nav-links:not(.ve-nav-indicator-ready)
  .nav-link.active {
    color: #ffffff !important;

    background: var(--ve-nav-navy) !important;
  }

}


/* ==========================================================
   END OF NAVBAR STYLESHEET
========================================================== */
