/* 1. Brand values and header states */
.naqsh-header {
  --ivory: #f7f4ef;
  --espresso: #34251d;
  --champagne: #d8c0aa;
  --roll: 350ms cubic-bezier(0.22, 1, 0.36, 1);
  position: sticky;
  top: var(--naqsh-admin-offset, 0px);
  z-index: 1000;
  width: 100%;
  color: var(--espresso);
  background: var(--ivory);
  transition:
    background-color var(--roll),
    color var(--roll);
}
.naqsh-header,
.naqsh-header *,
.naqsh-header *::before,
.naqsh-header *::after {
  box-sizing: border-box;
}
.naqsh-header--overlay {
  position: absolute;
  top: auto;
  inset-inline: 0;
  background: transparent;
  color: var(--ivory);
}
.naqsh-header--scrolled {
  position: fixed;
  inset-inline: 0;
  top: var(--naqsh-admin-offset, 0px);
  background: var(--ivory);
  color: var(--espresso);
  border-bottom: 1px solid var(--champagne);
}

/* 2. Layout and original logo */
.naqsh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  max-width: 1440px;
  min-height: 88px;
  margin-inline: auto;
  padding: 12px clamp(24px, 3.5vw, 72px);
  transition:
    min-height var(--roll),
    padding var(--roll);
}
.naqsh-header__logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.naqsh-header__logo img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  transition: width var(--roll);
}
.naqsh-header__nav {
  margin-left: auto;
}
.naqsh-header__menu,
.naqsh-header__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.naqsh-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.naqsh-header__item {
  position: relative;
  margin: 0;
}
.naqsh-header--scrolled .naqsh-header__logo img { width: 96px; }
.naqsh-header--scrolled .naqsh-header__inner {
  min-height: 72px;
  padding-block: 6px;
}

/* 3. Unified links and controls: Raleway 500, no underline or box */
.naqsh-header a,
.naqsh-header a:is(:visited, :hover, :focus, :active),
.naqsh-header button,
.naqsh-header button:is(:hover, :focus, :active) {
  color: inherit;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
}
.naqsh-header button {
  margin: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}
.naqsh-header__link,
.naqsh-header .naqsh-header__products,
.naqsh-header__sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.naqsh-header__sample {
  flex-shrink: 0;
}
.naqsh-header__chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--roll);
}
.naqsh-header__products[aria-expanded="true"] .naqsh-header__chevron {
  transform: rotate(180deg);
}

/* 4. Shared text rollover: main links, Sample and submenu */
.naqsh-header__label,
.naqsh-header__sample-label {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.naqsh-header__text,
.naqsh-header__sample-text,
.naqsh-header__copy,
.naqsh-header__sample-copy {
  display: block;
  transition: transform var(--roll);
}
.naqsh-header__copy,
.naqsh-header__sample-copy {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}
@media (hover: hover) and (pointer: fine) {
  .naqsh-header
    :is(a, button):hover
    > :is(.naqsh-header__label, .naqsh-header__sample-label)
    > :is(.naqsh-header__text, .naqsh-header__sample-text) {
    transform: translateY(-100%);
  }
  .naqsh-header
    :is(a, button):hover
    > :is(.naqsh-header__label, .naqsh-header__sample-label)
    > :is(.naqsh-header__copy, .naqsh-header__sample-copy) {
    transform: translateY(0);
  }
}
/* Request Sample arrow deliberately has no motion rule. */

/* 5. Products submenu */
.naqsh-header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  padding: 10px 0;
  border: 1px solid var(--champagne);
  background: var(--ivory);
  color: var(--espresso);
}
.naqsh-header .naqsh-header__submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.naqsh-header [hidden] {
  display: none !important;
}

/* 6. Mobile header and scrollable menu panel */
.naqsh-header .naqsh-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.naqsh-header__toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}
@media (max-width: 1024px) {
  .naqsh-header__inner {
    flex-wrap: wrap;
    gap: 0;
    min-height: 72px;
    padding: 8px 20px;
  }
  .naqsh-header__logo {
    margin-right: auto;
  }
  .naqsh-header__logo img {
    width: 88px;
  }
  .naqsh-header .naqsh-header__toggle {
    display: inline-flex;
  }
  .naqsh-header__inner > .naqsh-header__sample {
    display: none;
  }
  .naqsh-header__nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 8px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--champagne);
    background: var(--ivory);
    color: var(--espresso);
    max-height: calc(100dvh - 88px - var(--naqsh-admin-offset, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .naqsh-header__menu {
    display: block;
  }
  .naqsh-header__link,
  .naqsh-header .naqsh-header__products {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
  }
  .naqsh-header__submenu {
    position: static;
    width: 100%;
    padding: 0 0 8px 16px;
    border: 0;
  }
  .naqsh-header .naqsh-header__submenu a {
    padding: 12px 0;
  }
  .naqsh-header__nav > .naqsh-header__sample {
    margin-top: 12px;
  }
  .naqsh-header--open {
    background: var(--ivory);
    color: var(--espresso);
  }
  .naqsh-header--scrolled .naqsh-header__inner {
    min-height: 64px;
    padding-block: 4px;
  }
  .naqsh-header--scrolled .naqsh-header__logo img {
    width: 76px;
  }
}
@media (hover: none), (pointer: coarse) {
  .naqsh-header :is(a, button):active {
    opacity: 0.75;
  }
}

/* 7. Keyboard focus and reduced motion */
.naqsh-header :is(a, button):focus:not(:focus-visible) {
  outline: none;
}
.naqsh-header :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .naqsh-header,
  .naqsh-header *,
  .naqsh-header *::before,
  .naqsh-header *::after {
    transition: none;
  }
  .naqsh-header .naqsh-header__text,
  .naqsh-header .naqsh-header__sample-text {
    transform: none;
  }
  .naqsh-header__copy,
  .naqsh-header__sample-copy {
    display: none;
  }
}
