/* =====================================================================
   ALQQAMAR — Header CSS
   Source of truth: Figma "💙 HEADER" page
   Desktop frame:  "Header — Desktop 1440px"  (11:594)  — 1440×173px
   Compact frame:  "Header — Desktop Compact 75px" (360:9555)
   Mobile frame:   "Header — Mobile 390px"   (360:9423) —  390×44px
   All spatial values from absoluteRenderBounds (ARB).
   Loads after: alq-global.css
   Written: 2026-07-05
   Updated: 2026-07-06 — desktop breakpoint lowered to 1024px; hamburger
   gap corrected to 6px per Figma ARB; explicit desktop overrides added.
   Updated: 2026-07-07 — compact nav collision fix at 1024–1361px;
   10px gap each side of wordmark and icons; fluid item gap 6–52px.
   Updated: 2026-07-07 — order-received page excluded from checkout
   reduced-header rules; restores full header on confirmation page.
   Updated: 2026-07-07 — cart removed from reduced-header rules;
   cart uses full Default Header (173px, nav visible) per design spec.
   Updated: 2026-07-08 — logged-in first name (.alq-header__account-name)
   added between search and account icons; desktop only.
   Updated: 2026-07-09 — pixel-perfect review: tagline 14px confirmed;
   nav links corrected to 14px / line-height 13px per Figma spec (11:608–11:611).
   ===================================================================== */

/* ─── CSS VARIABLE REFERENCE ──────────────────────────────────────────
   --color-cobalt:    #0B40B4
   --color-white:     #FFFFFF
   --color-black:     #000000
   --font-primary:    Montserrat
   --color-red-badge: #910813
   ──────────────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════════════
   BASE HEADER — Mobile-first (390×44px)
   ══════════════════════════════════════════════════════════════════════ */
.alq-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(44px, calc(44px + 129 * (100vw - 390px) / 1050), 173px);
  background: var(--color-cobalt);
  z-index: 1000;
  box-sizing: border-box;
  transition: transform 0.35s ease, height 0.35s ease;
}

body.home .alq-header,
body.page-id-5 .alq-header {
  background: var(--color-cobalt) !important;
  display: block !important;
}

.alq-header--hidden {
  transform: translateY(-100%);
}

@media (max-width: 1023px) {
  .alq-header--compact {
    border-bottom: 1px solid var(--color-white);
  }
}


/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT — Reduced header height
   ══════════════════════════════════════════════════════════════════════ */
body.woocommerce-checkout:not(.woocommerce-order-received) .alq-header {
  height: clamp(44px, calc(44px + 76 * (100vw - 390px) / 1050), 120px);
}


/* ══════════════════════════════════════════════════════════════════════
   HAMBURGER — Mobile only
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__hamburger {
  position: absolute;
  left: 16px;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

.alq-header__hamburger-bar {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-white);
  border-radius: 0.5px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════════
   WORDMARK — Fluid (390px → 1440px)
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(12px, calc(12px + 16 * (100vw - 390px) / 1050), 28px);
  display: block;
  line-height: 0;
  width: clamp(222px, calc(222px + 111 * (100vw - 390px) / 1050), 333px);
  height: clamp(20px, calc(20px + 10 * (100vw - 390px) / 1050), 30px);
  z-index: 2;
}

.alq-header__wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ══════════════════════════════════════════════════════════════════════
   TAGLINE — Desktop only (display:none on mobile)
   Figma: 14px / Montserrat Regular / ls 1.25px / lh 16px / #FFFFFF
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__tagline {
  display: none;
}


/* ══════════════════════════════════════════════════════════════════════
   ICONS GROUP
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__icons {
  position: absolute;
  right: clamp(14px, calc(14px + 37 * (100vw - 390px) / 1050), 51px);
  top: clamp(11px, calc(11px + 17 * (100vw - 390px) / 1050), 28px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}

.alq-header__icon-search,
.alq-header__icon-account {
  display: none !important;
}

.alq-header__icons a {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.alq-header__icons a:hover { opacity: 0.7; }

.alq-header__icons a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.alq-header__icons svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.alq-header__cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Cart badge: 12×12px circle, #910813 — decorative, kept at 7px */
.alq-header__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #910813;
  border-radius: 6px;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 7px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.alq-header__cart-badge--hidden { display: none !important; }


/* ══════════════════════════════════════════════════════════════════════
   NAV — Desktop only
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__nav {
  display: none;
}


/* ══════════════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-cobalt);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.alq-header__mobile-drawer--open {
  transform: translateX(0);
}

.alq-header__drawer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.alq-header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alq-header__mobile-nav li { list-style: none; }

/* Mobile nav links — 16px per mobile drawer design */
.alq-header__mobile-nav li a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 2px;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.alq-header__mobile-nav li a:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════════════════════
   ≥ 1024px DESKTOP BREAKPOINT
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  .alq-header { height: 173px; }

  body.woocommerce-checkout:not(.woocommerce-order-received) .alq-header { height: 120px; }

  .alq-header__wordmark {
    top: 28px;
    width: 333px;
    height: 30px;
  }

  .alq-header__icons {
    top: 28px;
    right: 51px;
  }

  .alq-header__hamburger     { display: none !important; }
  .alq-header__mobile-drawer { display: none !important; }

  .alq-header__icon-search,
  .alq-header__icon-account { display: flex !important; }

  /* Tagline — Figma: 14px / ls 1.25px / lh 16px (node 11:635) */
  .alq-header__tagline {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1.25px;
    line-height: 16px;
    color: var(--color-white);
    margin: 0;
    padding: 0;
    pointer-events: none;
    z-index: 2;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) .alq-header__tagline { display: none !important; }

  .alq-header__nav {
    display: flex;
    position: absolute;
    top: 112px;
    left: 0;
    right: 0;
    height: 61px;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .alq-header__nav .menu,
  .alq-header__nav-list {
    display: flex;
    align-items: center;
    gap: 52px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .alq-header__nav .menu li,
  .alq-header__nav-list li { list-style: none; }

  /* Nav links — Figma: 14px / ls 2.5px / lh 13px (nodes 11:608–11:611) */
  .alq-header__nav .menu li a,
  .alq-header__nav-list li a {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2.5px;
    line-height: 13px;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
  }

  .alq-header__nav .menu li a:hover,
  .alq-header__nav-list li a:hover { opacity: 0.7; }

  .alq-header__nav .menu li a:focus-visible,
  .alq-header__nav-list li a:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
  }

  .alq-header__nav .menu li.current-menu-item > a,
  .alq-header__nav-list li.current-menu-item > a { opacity: 0.6; }

  /* COMPACT STATE */
  .alq-header--compact {
    height: 75px !important;
    border-bottom: none;
  }

  .alq-header--compact .alq-header__tagline { display: none !important; }

  .alq-header--compact .alq-header__wordmark {
    width: 222px;
    height: 20px;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
  }

  .alq-header--compact .alq-header__icons {
    top: 50%;
    transform: translateY(-50%);
  }

  .alq-header--compact .alq-header__nav {
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    left: 0;
    right: 0;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   COMPACT — collision fix at 1024–1361px
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) and (max-width: 1361px) {
  .alq-header--compact .alq-header__nav {
    padding-left: 272px;
    padding-right: 161px;
    box-sizing: border-box;
  }
}

@media (min-width: 1024px) and (max-width: 1250px) {
  .alq-header--compact .alq-header__nav .menu,
  .alq-header--compact .alq-header__nav-list {
    gap: clamp(6px, calc(6px + 46 * (100vw - 1024px) / 226), 52px);
  }
}


/* ─────────────────────────────────────────────────────────────
   WOOCOMMERCE — Nav suppressed on checkout page only.
   ───────────────────────────────────────────────────────────── */
body.woocommerce-checkout:not(.woocommerce-order-received) .alq-header__nav { display: none !important; }


/* ══════════════════════════════════════════════════════════════════════
   LOGGED-IN FIRST NAME — 13px fixed (label scale)
   ══════════════════════════════════════════════════════════════════════ */
.alq-header__account-name {
  display: none;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 1024px) {
  .alq-header__account-name {
    display: block;
  }
}
