/* ============================================================
   Abadi Guru — Primary Navigation · component v3
   Loaded after style.css. Drives .site-header > .nav-container
   and supersedes every legacy .nav-menu / .nav-drop rule.
   Build: nav-2026.11.28
   ============================================================ */

:root {
  --nav-h: 76px;
  --nav-h-sm: 64px;
  --nav-gutter: 28px;
  --nav-border: #E4E9F0;
  --nav-ink: #0B1220;
  --nav-muted: #5B6A80;
  --nav-hover: #F3F6FA;
  --nav-teal: var(--accent, #0E7C6B);
  --nav-shadow: 0 28px 64px -22px rgba(7, 13, 24, .30), 0 2px 6px rgba(7, 13, 24, .05);
  --nav-ease: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- shell ---------- */
/* backdrop-filter on .site-header would make it the containing block for the
   fixed-position mobile drawer. Paint the blur on a pseudo-element instead so
   the drawer can position against the viewport. */
.site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--nav-border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.site-header.nav-scrolled::before {
  box-shadow: 0 6px 24px rgba(7, 13, 24, .07);
}
.site-header .nav-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--nav-gutter);
  height: var(--header-h, 76px);
}

.site-header .brand-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 4px;
}

.site-header .brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--nav-teal);
  color: #fff;
  font: 600 13px/1 var(--font-body, system-ui, sans-serif);
  border-radius: 8px;
  transition: top .18s var(--nav-ease);
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- primary rail ---------- */
.nav-rail {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-left: 18px;
  min-width: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h, 76px);
}

.nav-trig,
.nav-link-flat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.006em;
  line-height: 1;
  color: var(--nav-ink);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.nav-trig:hover,
.nav-link-flat:hover,
.nav-item.open > .nav-trig {
  color: var(--nav-teal);
  background: var(--nav-hover);
}
.nav-trig:focus-visible,
.nav-link-flat:focus-visible {
  outline: 2px solid var(--nav-teal);
  outline-offset: 1px;
}
.nav-trig[aria-current="page"],
.nav-link-flat[aria-current="page"] {
  color: var(--nav-teal);
}
.nav-item.is-current > .nav-trig::after,
.nav-link-flat[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-teal);
}
/* underline the label, not the caret */
.nav-item.is-current > .nav-trig::after {
  right: 26px;
}

.nav-caret {
  flex: 0 0 auto;
  opacity: .55;
  transition: transform .22s var(--nav-ease), opacity .15s ease;
}
.nav-item.open > .nav-trig .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---------- dropdown panel ---------- */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 140;
  display: none;
  min-width: 360px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  box-shadow: var(--nav-shadow);
  transform: translateX(calc(-50% + var(--shift, 0px)));
}
/* hover bridge so the pointer can cross the gap */
.nav-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.open > .nav-panel {
  display: block;
}
@media (min-width: 1201px) {
  .nav-item.open > .nav-panel {
    animation: navPanelIn .18s var(--nav-ease) both;
  }
}
@keyframes navPanelIn {
  from { opacity: 0; transform: translateX(calc(-50% + var(--shift, 0px))) translateY(-8px); }
  to   { opacity: 1; transform: translateX(calc(-50% + var(--shift, 0px))) translateY(0); }
}
.nav-panel--num {
  min-width: 392px;
}
.nav-panel--wide {
  min-width: 660px;
  display: none;
}
.nav-item.open > .nav-panel--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.nav-panel-eyebrow {
  grid-column: 1 / -1;
  margin: 6px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8494A8;
}
.nav-panel-eyebrow--second {
  margin-top: 10px;
}

.nav-cell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .12s ease;
}
.nav-panel--num .nav-cell {
  grid-template-columns: 30px 1fr;
  padding-left: 10px;
}
.nav-cell::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--nav-teal);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .16s ease, transform .2s var(--nav-ease);
}
.nav-cell:hover::before,
.nav-cell:focus-visible::before,
.nav-cell.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.nav-cell:hover,
.nav-cell:focus-visible {
  background: var(--nav-hover);
  outline: none;
}
.nav-cell:hover .nav-cell-num {
  background: var(--nav-teal);
  color: #fff;
  border-color: var(--nav-teal);
}
.nav-cell-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #7C8CA1;
  background: #FBFCFE;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.nav-cell-num--dot {
  font-size: 0;
}
.nav-cell-num--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nav-cell-body {
  display: block;
  min-width: 0;
}
.nav-cell strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.008em;
  color: var(--nav-ink);
  line-height: 1.35;
}
.nav-cell span.nav-cell-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.42;
  color: var(--nav-muted);
}
.nav-cell:hover strong {
  color: var(--nav-teal);
}
.nav-cell.is-active {
  background: #EEF6F4;
}
.nav-cell.is-active strong {
  color: var(--nav-teal);
}
.nav-cell.is-active .nav-cell-num {
  border-color: var(--nav-teal);
  color: var(--nav-teal);
}

.nav-panel-foot {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--nav-border);
}
.nav-panel-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--nav-teal);
  text-decoration: none;
}
.nav-panel-foot a:hover {
  gap: 9px;
}

/* ---------- right cluster ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px 0 10px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: #fff;
  color: var(--nav-ink);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-phone:hover {
  border-color: #C9D6E4;
  background: var(--nav-hover);
  box-shadow: 0 2px 8px rgba(7, 13, 24, .06);
}
.nav-phone-ico {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(14, 124, 107, .10);
  color: var(--nav-teal);
}
.nav-phone-num {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .005em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--nav-teal);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(7, 13, 24, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover {
  background: #0B6A5B;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(14, 124, 107, .55);
}
.nav-cta svg {
  transition: transform .18s var(--nav-ease);
}
.nav-cta:hover svg {
  transform: translateX(2px);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--nav-ink);
  outline-offset: 2px;
}

/* language pill — tightened to sit with the phone + CTA */
.site-header .lang-switcher {
  position: relative;
}
.site-header .lang-btn {
  height: 36px;
  padding: 0 10px;
  gap: 6px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nav-ink);
}
.site-header .lang-btn:hover {
  border-color: #C9D6E4;
  background: var(--nav-hover);
}
/* flag emoji don't render on Windows/Android; the language name is the label */
.site-header .lang-flag {
  display: none;
}
.site-header .lang-label {
  display: inline-block;
  font-size: 12.5px;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- burger ---------- */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav-burger span {
  display: block;
  width: 17px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--nav-ink);
  transition: transform .26s var(--nav-ease), opacity .16s ease, width .26s var(--nav-ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }
.nav-burger:focus-visible {
  outline: 2px solid var(--nav-teal);
  outline-offset: 2px;
}

/* ---------- scrim ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(7, 13, 24, .44);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.nav-scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}
body.nav-locked {
  overflow: hidden;
}

/* drawer-only footer block */
.nav-drawer-foot {
  display: none;
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (max-width: 1360px) {
  :root { --nav-gutter: 20px; }
  .site-header .lang-btn { padding: 0 9px; }
}

@media (max-width: 1200px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }

  .nav-rail {
    position: fixed;
    top: var(--header-h, 76px);
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
    border-left: 1px solid var(--nav-border);
    box-shadow: -28px 0 64px -24px rgba(7, 13, 24, .28);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(103%);
    transition: transform .34s var(--nav-ease);
    z-index: 99995;
    will-change: transform;
  }
  .nav-rail.open {
    transform: translateX(0);
  }

  .nav-item {
    display: block;
    height: auto;
    border-bottom: 1px solid #EDF1F6;
  }
  .nav-item:last-of-type {
    border-bottom: 0;
  }

  .nav-trig,
  .nav-link-flat {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 16px 6px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    background: none;
    color: var(--nav-ink);
  }
  .nav-trig:hover,
  .nav-link-flat:hover,
  .nav-item.open > .nav-trig {
    background: none;
  }
  .nav-item.is-current > .nav-trig::after,
  .nav-link-flat[aria-current="page"]::after {
    display: none;
  }
  .nav-item.is-current > .nav-trig,
  .nav-link-flat[aria-current="page"] {
    color: var(--nav-teal);
  }
  .nav-caret {
    width: 14px;
    height: 14px;
    opacity: .75;
  }

  .nav-panel,
  .nav-item.open > .nav-panel--wide {
    position: static;
    left: auto;
    display: none;
    min-width: 0;
    width: 100%;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
    grid-template-columns: 1fr;
  }
  .nav-item.open > .nav-panel {
    display: block;
  }
  .nav-panel::before { display: none; }
  .nav-panel-eyebrow {
    display: none;
  }
  .nav-cell {
    grid-template-columns: 1fr;
    padding: 10px 8px;
  }
  .nav-panel--num .nav-cell {
    grid-template-columns: 26px 1fr;
  }
  .nav-cell-num {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .nav-panel-foot {
    padding: 8px 8px 2px;
  }

  .nav-drawer-foot {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 4px;
    border-top: 1px solid #EDF1F6;
  }
  .nav-drawer-foot .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 13px;
  }
  .nav-drawer-foot .nav-phone {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    height: 44px;
    border-radius: 10px;
    font-size: 13px;
  }
  .nav-drawer-foot .nav-phone-num {
    display: inline;
  }
  .nav-drawer-foot .nav-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--nav-teal);
    color: var(--nav-teal);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 1080px) {
  .nav-phone-num { display: none; }
  .nav-phone { padding: 0; width: 36px; justify-content: center; gap: 0; }
}

@media (max-width: 768px) {
  .site-header .nav-container {
    height: var(--header-h, 64px);
    padding: 0 16px;
    gap: 12px;
  }
  .site-header .brand-logo img { height: 30px; }
  .nav-rail { top: var(--header-h, 64px); width: min(400px, 100vw); }
  .nav-scrim { display: none; }
  .nav-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-rail,
  .nav-panel,
  .nav-cta,
  .nav-burger span,
  .nav-scrim {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ==ABADICRM-CSS-START== */
/* AbadiCRM product entry · nav v3.2 · 2026-11-28 */
.nav-actions .nav-crm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--nav-teal);
  border-radius: 9px;
  background: #fff;
  color: var(--nav-teal);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nav-actions .nav-crm:hover {
  background: rgba(14, 124, 107, .08);
  border-color: #0B6A5B;
  color: #0B6A5B;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(14, 124, 107, .45);
}
.nav-actions .nav-crm:focus-visible {
  outline: 2px solid var(--nav-ink);
  outline-offset: 2px;
}
.nav-actions .nav-crm { margin: 0 2px; }
.nav-crm svg { flex: 0 0 auto; }
.nav-crm-ext { opacity: .55; transition: transform .18s var(--nav-ease), opacity .15s ease; }
.nav-drawer-foot .nav-crm .nav-crm-ext { opacity: .8; }
.nav-crm:hover .nav-crm-ext { opacity: 1; transform: translate(1px, -1px); }

/* drawer variant: full-width row above the enquiry CTA */
.nav-drawer-foot .nav-crm {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--nav-teal);
  border-radius: 10px;
  background: var(--accent-soft, #E6F5F2);
  color: var(--nav-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 1200px) {
  .nav-actions .nav-crm { display: none; }
  .nav-drawer-foot .nav-crm { display: inline-flex; }
}
/* ==ABADICRM-CSS-END== */
