/* ==========================================================
   Prime Nav Header — Global Styles
   ========================================================== */

/* ── Reset & Base ── */
.pnh-nav *,
.pnh-nav *::before,
.pnh-nav *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Nav Wrapper ── */
.pnh-nav {
  width: 100%;
  background-color: #353535;
  border-bottom: none;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  position: relative;
  z-index: 9999;
}

.pnh-nav.pnh-sticky {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ── Main Bar ── */
.pnh-bar {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 32px;
  gap: 0;
}

/* ── Logo ── */
.pnh-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.pnh-logo-img {
  width: 225px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.pnh-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4a843;
  line-height: 1.2;
}

.pnh-logo-tagline {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(212, 168, 67, 0.6);
  margin-top: 2px;
}

/* ── Desktop Nav List ── */
.pnh-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.pnh-link {
  display: inline-block;
  color: #cccccc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.pnh-link:hover {
  color: #d4a843;
  background-color: rgba(212, 168, 67, 0.1);
}

/* ── Right Side Buttons Container ── */
.pnh-right-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Shared Button Base ── */
.pnh-call,
.pnh-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  /* Equal sizing: both buttons use same padding/height by default */
  padding: 9px 18px;
  min-height: 38px;
}

.pnh-call:hover,
.pnh-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ── Call Button ── */
.pnh-call {
  background-color: #d4a843;
  color: #000000;
  border-radius: 9px;
  border: 2px solid #d4a843;
}

.pnh-call:hover {
  background-color: #e8c060;
  border-color: #e8c060;
}

.pnh-call svg {
  flex-shrink: 0;
}

/* ── CTA Button ── */
.pnh-cta {
  background-color: #ffffff;
  color: #353535;
  border-radius: 4px;
  border: 2px solid transparent;
}

.pnh-cta:hover {
  background-color: #e8e8e8;
}

/* ── Hamburger ── */
.pnh-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.pnh-burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.pnh-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.pnh-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pnh-burger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.pnh-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Dropdown ── */
.pnh-mob-menu {
  display: none;
  flex-direction: column;
  background-color: #2a2a2a;
  border-top: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.pnh-mob-menu.open {
  display: flex;
  max-height: 600px;
}

.pnh-mob-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-bottom: none;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.pnh-mob-link:hover {
  color: #d4a843;
  background-color: rgba(212, 168, 67, 0.07);
  padding-left: 32px;
}

.pnh-mob-call-row,
.pnh-mob-cta-row {
  padding: 12px 24px;
}

.pnh-mob-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4a843;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.pnh-mob-cta {
  display: inline-flex;
  border-radius: 6px;
}

/* ── Tablet (≤ 900px): single row — logo | call | burger ── */
@media (max-width: 900px) {
  .pnh-bar {
    padding: 0 20px;
    height: 68px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .pnh-right-side {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  /* Tablet call button sizing */
  .pnh-call-m {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 36px;
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════════════════════
   MOBILE (≤ 768px)
   Layout:
     Row 1 → [Logo]  ................  [Burger]
     Row 2 → [Call Button]
   Call button: logo ke NEECHE, left aligned, BAHAR burger se
   Burger: top-right, logo ke samne
   No overflow, no clipping
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Kill horizontal scroll globally */
  html, body { overflow-x: hidden; }

  .pnh-nav {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Bar becomes 2-row grid:
        [logo]  [burger]   ← row 1
        [call]             ← row 2
  ── */
  .pnh-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo  burger"
      "call  call";
    height: auto !important;
    padding: 12px 18px 12px 18px;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
  }

  /* Logo → grid area "logo" */
  .pnh-logo-wrap {
    grid-area: logo;
    margin-right: 0;
    align-self: center;
  }

  .pnh-logo-img {
    width: auto;
    max-width: 175px;
    height: 50px;
    object-fit: contain;
  }

  /* Right side → grid area "burger" — only burger visible here */
  .pnh-right-side {
    grid-area: burger;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  /* Desktop call + CTA: already hidden via JS/widget CSS at ≤900px */
  .pnh-call-d,
  .pnh-cta-d { display: none !important; }

  /* ── Call button → grid area "call", below logo, left aligned ── */
  .pnh-call-m {
    grid-area: call;
    display: inline-flex !important;
    align-self: flex-start;
    justify-self: start;          /* stick to left */
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    background-color: #d4a843;
    border: 2px solid #d4a843;
    border-radius: 9px;
    margin-top: 10px;             /* gap from logo row */
    white-space: nowrap;
    min-height: 38px;
  }

  /* Margin move control — override via Elementor margin utility classes */
  .pnh-call-m-move-right  { justify-self: end; }
  .pnh-call-m-move-center { justify-self: center; }

  /* Burger — top right, large tap area */
  .pnh-burger {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px;
    flex-shrink: 0;
  }

  /* Nav list stays hidden */
  .pnh-nav-list { display: none !important; }
}

/* ── Small Mobile (≤ 420px) ── */
@media (max-width: 420px) {
  .pnh-bar {
    padding: 10px 14px 12px 14px;
  }

  .pnh-logo-img {
    max-width: 155px;
    height: 44px;
  }

  .pnh-call-m {
    font-size: 12px;
    padding: 8px 14px;
    margin-top: 8px;
  }
}

/* ── Extra Small (≤ 360px) ── */
@media (max-width: 360px) {
  .pnh-bar {
    padding: 10px 12px 10px 12px;
  }

  .pnh-logo-img {
    max-width: 140px;
    height: 40px;
  }

  .pnh-call-m {
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* ── Elementor editor: prevent position: sticky conflicts ── */
.elementor-editor-active .pnh-sticky {
  position: relative;
}
