/* =============================================================
   INK Mega Menu — Pixel-perfect from Figma node 375-3525
   Total header: 110px (35px info bar + 75px main)
   Font: Inter Regular 18px, #000000
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ===================== RESET & BASE ===================== */
.ink-header *,
.ink-header *::before,
.ink-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================== HEADER WRAPPER ===================== */
.ink-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: #FFFFFF;
  font-family: 'Inter', sans-serif;
}

/* Admin bar offset */
.admin-bar .ink-header {
  top: 32px;
}

/* ===================== INFO BAR (35px) ===================== */
.ink-header__infobar {
  height: 35px;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ink-header__infobar-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ink-infobar-scroll 28s linear infinite;
  gap: 0;
}

.ink-header__infobar-msg {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  padding: 0 32px;
}

.ink-header__infobar-sep {
  color: #FFFFFF;
  opacity: 0.5;
  font-size: 10px;
}

@keyframes ink-infobar-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================== MAIN HEADER (75px) ===================== */
.ink-header__main {
  height: 75px;
  background: #FFFFFF;
  border-bottom: 1px solid #000000;
  display: flex;
  align-items: center;
}

.ink-header__inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

/* ===================== LOGO ===================== */
.ink-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ink-header__logo img {
  height: 40px;
  width: auto;
}

.ink-header__logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.ink-header__logo-ink {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1;
  display: block;
}

.ink-header__logo-collectivus {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ===================== NAVIGATION ===================== */
.ink-header__nav {
  display: flex;
  align-items: center;
  height: 75px;
}

.ink-header__nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  height: 75px;
  gap: 0;
}

.ink-header__nav-item {
  position: static;
  height: 75px;
  display: flex;
  align-items: center;
}

.ink-header__nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  padding: 0 20px;
  height: 75px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Hover underline */
.ink-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.ink-header__nav-item:hover .ink-header__nav-link::after,
.ink-header__nav-link:focus-visible::after,
.ink-header__nav-link.is-active::after {
  transform: scaleX(1);
}

/* Chevron */
.ink-header__nav-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ink-header__nav-item--has-mega.is-open .ink-header__nav-chevron {
  transform: rotate(180deg);
}

/* ===================== ICONS ===================== */
.ink-header__icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ink-header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ink-header__icon-btn:hover {
  background: rgba(0,0,0,0.04);
}

.ink-header__icon-btn svg {
  width: 22px;
  height: 22px;
}

.ink-header__icon-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: #000000;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  line-height: 1;
}

/* ===================== MEGA MENU PANEL ===================== */
.ink-mega {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  z-index: 9998;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.ink-mega[hidden] {
  display: block !important; /* Override HTML hidden so animation works */
  visibility: hidden;
}

.ink-header__nav-item--has-mega.is-open .ink-mega {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Admin bar offset */
.admin-bar .ink-mega {
  top: 142px;
}

.ink-mega__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 44px 60px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* ===================== MEGA MENU HEADINGS ===================== */
.ink-mega__heading {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1;
}

/* ===================== MEGA MENU LISTS ===================== */
.ink-mega__list {
  list-style: none;
  display: grid;
  gap: 14px 40px;
}

.ink-mega__list--2col {
  grid-template-columns: repeat(2, 1fr);
}

.ink-mega__list--3col {
  grid-template-columns: repeat(3, 1fr);
}

.ink-mega__list a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ink-mega__list a:hover {
  color: #555555;
}

/* ===================== COLOURS GRID ===================== */
.ink-mega__colours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.ink-mega__colour-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000000;
  font-size: 15px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.ink-mega__colour-item:hover {
  opacity: 0.7;
}

.ink-mega__colour-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ink-mega__colour-name {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #000000;
}

/* ===================== ALPHABET GRID ===================== */
.ink-mega__alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ink-mega__alpha-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ink-mega__alpha-item:hover {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* ===================== PROMO IMAGE ===================== */
.ink-mega__col--promo {
  display: flex;
  flex-direction: column;
}

.ink-mega__promo-img {
  flex: 1;
  background: #F5F5F5;
  border-radius: 4px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ink-mega__promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ink-mega__promo-img--placeholder {
  color: #999999;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.ink-mega__col--promo-2 .ink-mega__promo-img {
  min-height: 160px;
}

/* ===================== OVERLAY ===================== */
.ink-header__overlay {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ink-header--mega-open .ink-header__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Admin bar offset */
.admin-bar .ink-header__overlay {
  top: 142px;
}

/* ===================== SEARCH PANEL ===================== */
.ink-header__search-panel {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid #000000;
  z-index: 9998;
  padding: 24px 60px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.ink-header__search-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ink-header__search-panel[hidden] {
  display: block !important;
  visibility: hidden;
}

.admin-bar .ink-header__search-panel {
  top: 142px;
}

.ink-header__search-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ink-header__search-form {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000000;
  padding-bottom: 8px;
}

.ink-header__search-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

.ink-header__search-input::placeholder {
  color: #AAAAAA;
}

.ink-header__search-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #000000;
}

.ink-header__search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #000000;
  flex-shrink: 0;
}

/* ===================== STICKY SCROLL ===================== */
.ink-header.is-scrolled .ink-header__infobar {
  height: 0;
  overflow: hidden;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .ink-header__inner {
    padding: 0 32px;
  }
  .ink-header__nav-link {
    padding: 0 14px;
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .ink-header__nav,
  .ink-mega {
    display: none;
  }
}


/* ===================== ELEMENTOR CONTAINER ESCAPE ===================== */
/* Ensure the ink-header breaks out of any Elementor container padding */
.elementor-widget-container .ink-header,
.e-con .ink-header,
.e-con-inner .ink-header {
  /* Break out of elementor container padding */
  margin-left: calc(-1 * var(--e-con-gap, 0px));
  margin-right: calc(-1 * var(--e-con-gap, 0px));
  width: calc(100% + 2 * var(--e-con-gap, 0px));
}

/* Force the elementor container holding the header to have no padding */
.elementor-location-header > .e-con,
.elementor-location-header > .e-con > .e-con-inner {
  padding: 0 !important;
  margin: 0 !important;
}

/* The ink-header needs to be 100vw wide */
.ink-header {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}


/* ===================== ALPHABET FILTER — ACTIVE STATE ===================== */

/* Active (selected) letter: filled black */
.ink-mega__alpha-item.is-active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  font-weight: 600;
}

/* "All" clear button — slightly different look */
.ink-mega__alpha-clear {
  min-width: 36px;
  width: auto;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Artist item hidden when filtered out */
.ink-mega__artist-item {
  /* visible by default; JS toggles display */
}

/* No-results message */
.ink-mega__artist-noresult {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #999999;
  margin-top: 12px;
  grid-column: 1 / -1;
}


/* ===== ARTIST LETTER FILTER NOTICE ===== */
#ink-artist-filter-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 10px 16px;
  background: #F7F7F7;
  border-left: 3px solid #000;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #000;
}

#ink-artist-filter-notice strong {
  font-weight: 600;
}

#ink-artist-filter-notice a {
  font-size: 12px;
  color: #000;
  text-decoration: underline;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#ink-artist-filter-notice a:hover {
  opacity: 1;
}

/* Active letter in header alphabet when on artists page */
.ink-mega__alpha-item.is-active {
  background: #000;
  color: #FFF;
  border-color: #000;
}
