/* ═══════════════════════════════════════════════════════════
   EKPA Network shared header
   Self-contained — does not inherit from page CSS.
   Mounted by ekpa-header.js into <header id="ekpa-header"></header>.
   ═══════════════════════════════════════════════════════════ */

#ekpa-header,
#ekpa-header *,
#ekpa-header *::before,
#ekpa-header *::after { box-sizing: border-box; }

#ekpa-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s;
  border-bottom: 1px solid rgba(201, 168, 76, 0);
}
#ekpa-header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom-color: rgba(201, 168, 76, 0.18);
}

#ekpa-header .ekpa-nav {
  max-width: 1700px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: padding 0.4s ease;
}
#ekpa-header.scrolled .ekpa-nav { padding: 14px 48px; }

#ekpa-header .ekpa-brand {
  font-family: 'Newsreader', serif;
  font-size: 19px; font-weight: 400; letter-spacing: -0.005em;
  color: #f9f9f9; text-decoration: none; line-height: 1.1;
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  white-space: nowrap;
}
#ekpa-header .ekpa-logo {
  height: 42px; width: auto; flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.3s ease, height 0.3s ease;
}
#ekpa-header.scrolled .ekpa-logo { height: 36px; opacity: 0.85; }
#ekpa-header .ekpa-brand:hover .ekpa-logo { opacity: 1; }

#ekpa-header .ekpa-network-icon {
  height: 44px; width: auto; flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: opacity 0.3s ease, height 0.3s ease;
}
#ekpa-header.scrolled .ekpa-network-icon { height: 38px; opacity: 0.78; }
#ekpa-header .ekpa-brand:hover .ekpa-network-icon { opacity: 1; }
#ekpa-header .ekpa-brand-text {
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(201, 168, 76, 0.3);
  padding-left: 12px;
  line-height: 1.05;
}
#ekpa-header .ekpa-brand-text .bl {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
  color: #f9f9f9;
  white-space: nowrap;
}
#ekpa-header .ekpa-brand-text .bl:nth-child(3) {
  letter-spacing: 0.18em; font-weight: 500;
}
#ekpa-header .ekpa-brand small {
  font-family: 'Inter', sans-serif; font-size: 9px;
  letter-spacing: 0.32em; text-transform: uppercase; color: #8a7d6b;
}

#ekpa-header .ekpa-links {
  display: flex; align-items: center; gap: 36px;
  font-family: 'Newsreader', serif; font-size: 16px;
}
#ekpa-header .ekpa-links a,
#ekpa-header .ekpa-links button.ekpa-trigger {
  color: rgba(249, 249, 249, 0.8);
  text-decoration: none;
  font-style: italic;
  background: none; border: none; cursor: pointer;
  padding: 6px 0;
  font: inherit;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
#ekpa-header .ekpa-links a::after,
#ekpa-header .ekpa-links button.ekpa-trigger::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: #c9a84c;
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#ekpa-header .ekpa-links a:hover,
#ekpa-header .ekpa-links button.ekpa-trigger:hover,
#ekpa-header .ekpa-links a.current,
#ekpa-header .ekpa-links button.ekpa-trigger.open { color: #c9a84c; }
#ekpa-header .ekpa-links a:hover::after,
#ekpa-header .ekpa-links a.current::after,
#ekpa-header .ekpa-links button.ekpa-trigger:hover::after,
#ekpa-header .ekpa-links button.ekpa-trigger.open::after { right: 0; }

#ekpa-header .ekpa-trigger .caret {
  display: inline-block; margin-left: 4px;
  font-size: 0.7em; transition: transform 0.3s;
}
#ekpa-header .ekpa-trigger.open .caret { transform: rotate(180deg); }

/* Discovery wrap: a link + a caret-only trigger that share the underline */
#ekpa-header .ekpa-discovery-wrap {
  display: inline-flex; align-items: baseline; gap: 2px;
  position: relative;
}
#ekpa-header .ekpa-discovery-caret {
  padding: 6px 0 6px 2px;
}
#ekpa-header .ekpa-discovery-caret::after { display: none; }  /* underline lives on the link */
#ekpa-header .ekpa-discovery-link.open { color: #c9a84c; }
#ekpa-header .ekpa-discovery-link.open::after { right: 0; }

/* ── DROPDOWN — museums tiles ───────────────────── */
#ekpa-dropdown {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  padding: 110px 48px 40px;
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: 86vh; overflow-y: auto;
}
#ekpa-dropdown.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
#ekpa-dropdown .ekpa-dropdown-inner {
  max-width: 1700px; margin: 0 auto;
}
#ekpa-dropdown .ekpa-dropdown-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
#ekpa-dropdown .ekpa-dropdown-head h3 {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: 28px; color: #f9f9f9; margin: 0;
}
#ekpa-dropdown .ekpa-dropdown-head h3 em { color: #c9a84c; font-style: italic; }
#ekpa-dropdown .ekpa-dropdown-head .all-link {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #c9a84c; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
#ekpa-dropdown .ekpa-tiles {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
#ekpa-dropdown .ekpa-tile {
  position: relative; aspect-ratio: 1.45 / 1;
  border-radius: 2px; overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.04);
  isolation: isolate;
  background-color: var(--tile-bg, #1c1917);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#ekpa-dropdown .ekpa-tile::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}
#ekpa-dropdown .ekpa-tile:hover { transform: translateY(-3px); border-color: rgba(201, 168, 76, 0.5); }
#ekpa-dropdown .ekpa-tile-cat {
  position: relative; z-index: 1;
  font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); margin-bottom: 3px;
}
#ekpa-dropdown .ekpa-tile-name {
  position: relative; z-index: 1;
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 13px; line-height: 1.18; color: #fff;
}
#ekpa-dropdown .ekpa-tile-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* offset upward so it doesn't fight the bottom cat+name labels */
  margin-top: -10px;
  max-width: 42%;
  max-height: 48%;
  width: auto; height: auto;
  object-fit: contain;
  z-index: 1;
  filter: invert(1) brightness(1.08) drop-shadow(0 2px 6px rgba(0,0,0,.45));
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.3s, transform 0.4s;
}
#ekpa-dropdown .ekpa-tile-logo.is-fallback {
  max-width: 27%;
  opacity: 0.55;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
/* Wide-aspect logo (Odontiatrikis ~8.7:1) needs more width to be readable in
   the near-square tile, otherwise object-fit:contain renders it tiny. */
#ekpa-dropdown .ekpa-tile-logo[data-slug="mouseio-odontiatrikis"] {
  max-width: 85%;
  max-height: 28%;
}
#ekpa-dropdown .ekpa-tile:hover .ekpa-tile-logo { opacity: 1; transform: translate(-50%, calc(-50% - 3px)); }
#ekpa-dropdown .ekpa-tile-soon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(112, 91, 51, 0.88);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  pointer-events: none;
}

/* ── DISCOVERY PATHS DROPDOWN ───────────────────── */
.ekpa-pathdrop {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  padding: 110px 48px 40px;
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-height: 86vh; overflow-y: auto;
}
.ekpa-pathdrop.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.ekpa-pathdrop .ekpa-dropdown-inner { max-width: 1700px; margin: 0 auto; }
.ekpa-pathdrop .ekpa-dropdown-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.ekpa-pathdrop .ekpa-dropdown-head h3 {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: 28px; color: #f9f9f9; margin: 0;
}
.ekpa-pathdrop .ekpa-dropdown-head h3 em { color: #c9a84c; font-style: italic; }
.ekpa-pathdrop .ekpa-dropdown-head .all-link {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #c9a84c; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.ekpa-pathdrop .ekpa-path-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ekpa-pathdrop .ekpa-path-tiles.is-twocol {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.ekpa-pathdrop .ekpa-path-tile {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border-radius: 3px;
  text-decoration: none;
  background-color: var(--tile-bg, #1c1917);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, background 0.35s;
  overflow: hidden;
}
.ekpa-pathdrop .ekpa-path-tile::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.ekpa-pathdrop .ekpa-path-tile > * { position: relative; z-index: 1; }
.ekpa-pathdrop .ekpa-path-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.55);
}
.ekpa-pathdrop .ekpa-path-tile:hover .ekpa-path-arrow { transform: translateX(4px); color: #c9a84c; }
.ekpa-pathdrop .ekpa-path-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
  color: #c9a84c;
}
.ekpa-pathdrop .ekpa-path-icon svg { width: 28px; height: 28px; }
.ekpa-pathdrop .ekpa-path-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ekpa-pathdrop .ekpa-path-name {
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 19px; line-height: 1.15; color: #f9f9f9;
}
.ekpa-pathdrop .ekpa-path-desc {
  font-family: 'Inter', sans-serif; font-size: 11px; line-height: 1.45;
  color: rgba(245, 239, 230, 0.62);
}
.ekpa-pathdrop .ekpa-path-arrow {
  font-family: 'Inter', sans-serif; font-size: 18px;
  color: rgba(201, 168, 76, 0.55);
  transition: transform 0.3s, color 0.3s;
}

@media (max-width: 1100px) {
  .ekpa-pathdrop { padding: 90px 24px 30px; }
  .ekpa-pathdrop .ekpa-path-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ekpa-pathdrop .ekpa-path-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ekpa-pathdrop,
  .ekpa-pathdrop * { transition: none !important; }
}

/* ── LANG SWITCH ─────────────────────────────────── */
#ekpa-header .ekpa-controls { display: flex; align-items: center; gap: 16px; }
#ekpa-header .ekpa-langs {
  display: flex; gap: 0; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.06em;
}
#ekpa-header .ekpa-langs button {
  background: none; border: none; cursor: pointer;
  color: rgba(249, 249, 249, 0.4);
  padding: 6px 7px; font: inherit; transition: color 0.2s;
}
#ekpa-header .ekpa-langs button:hover { color: rgba(249, 249, 249, 0.9); }
#ekpa-header .ekpa-langs button.active { color: #c9a84c; font-weight: 500; }
#ekpa-header .ekpa-langs span { color: rgba(249, 249, 249, 0.18); user-select: none; }

#ekpa-header .ekpa-burger {
  display: none; background: none; border: 1px solid rgba(249, 249, 249, 0.18);
  padding: 8px 10px; cursor: pointer; border-radius: 2px;
  color: #c9a84c;
}

/* spacer below fixed header so page content doesn't slide under */
body.ekpa-has-header { padding-top: 0; }
body.ekpa-has-header.ekpa-page-needs-spacer { padding-top: 78px; }

/* Backdrop for dropdown */
#ekpa-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  z-index: 9997; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#ekpa-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 1100px) {
  #ekpa-header .ekpa-links { display: none !important; }
  #ekpa-header .ekpa-burger { display: block; }
  /* On mobile/tablet, the floating dropdowns are replaced by the full-screen
     mobile menu (#ekpa-mobile-menu) — hide them entirely. */
  #ekpa-dropdown, #ekpa-discovery-dropdown,
  #ekpa-collections-dropdown, #ekpa-visit-dropdown { display: none !important; }
  /* Lock padding for BOTH base and .scrolled states so scroll doesn't
     trigger the desktop 14px/48px shift (overlap bug at 901–1100px). */
  #ekpa-header .ekpa-nav,
  #ekpa-header.scrolled .ekpa-nav { padding: 16px 20px !important; }
  #ekpa-header.scrolled .ekpa-logo,
  #ekpa-header .ekpa-logo { height: 42px !important; opacity: 1 !important; }
  #ekpa-header.scrolled .ekpa-network-icon,
  #ekpa-header .ekpa-network-icon { height: 44px !important; opacity: 1 !important; }
  /* Kill all header transitions in this range too */
  #ekpa-header,
  #ekpa-header *,
  #ekpa-header .ekpa-nav,
  #ekpa-header .ekpa-logo,
  #ekpa-header .ekpa-network-icon,
  #ekpa-header .ekpa-brand,
  #ekpa-header .ekpa-brand-text { transition: none !important; }
}

/* Mobile header (≤900px): logos moved to hero section. Header keeps only the
   hamburger as a floating top-right icon. No background, no border. */
#ekpa-header .ekpa-network-full-mobile { display: none; }
@media (max-width: 900px) {
  #ekpa-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  #ekpa-header.scrolled {
    background: rgba(8, 8, 8, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  /* Brand on left, hamburger on right — mirrors the Open Hamburger top bar
     so the visual is identical across header and open menu. */
  #ekpa-header .ekpa-langs { display: none !important; }
  #ekpa-header .ekpa-network-full-mobile { display: none !important; }
  #ekpa-header .ekpa-links { display: none !important; }
  #ekpa-header .ekpa-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0;
    text-decoration: none;
  }
  #ekpa-header .ekpa-logo {
    height: 36px !important;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
  }
  #ekpa-header .ekpa-network-icon {
    display: inline-block !important;
    height: 38px !important;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.88;
  }
  #ekpa-header .ekpa-brand-text {
    display: flex !important;
    flex-direction: column;
    line-height: 1.05;
    border-left: 1px solid rgba(201, 168, 76, 0.3);
    padding-left: 10px;
  }
  #ekpa-header .ekpa-brand-text .bl {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #f9f9f9;
    white-space: nowrap;
  }
  #ekpa-header .ekpa-brand-text .bl:nth-child(3) {
    letter-spacing: 0.18em;
    font-weight: 500;
  }
  /* Homepage hero already shows the big brand — hide the compact header
     version to avoid duplication, and keep hamburger pinned to the right */
  #ekpa-header[data-page="home"] .ekpa-brand { display: none !important; }
  #ekpa-header[data-page="home"] .ekpa-nav { justify-content: flex-end !important; }
  #ekpa-header .ekpa-nav,
  #ekpa-header.scrolled .ekpa-nav {
    padding: 14px 16px !important;
    justify-content: space-between;
    align-items: center;
  }
  /* Don't shrink logos on scroll either — keep the header static on mobile */
  #ekpa-header.scrolled .ekpa-logo { height: 36px !important; opacity: 0.92 !important; }
  #ekpa-header.scrolled .ekpa-network-icon { height: 38px !important; opacity: 0.88 !important; }

  /* Kill all transitions on mobile header — no shrink/fade animation on scroll */
  #ekpa-header,
  #ekpa-header *,
  #ekpa-header .ekpa-nav,
  #ekpa-header .ekpa-logo,
  #ekpa-header .ekpa-network-icon,
  #ekpa-header .ekpa-brand,
  #ekpa-header .ekpa-brand-text { transition: none !important; }
  #ekpa-header .ekpa-burger {
    background: transparent;
    border: none;
    color: #f9f9f9;
    font-size: 30px; line-height: 1;
    padding: 4px 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  }
}

/* ── Mobile bottom tab bar (app-style, fixed) ───────────────────── */
#ekpa-mobile-tabbar { display: none; }
@media (max-width: 900px) {
  #ekpa-mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 168, 76, 0.22);
    z-index: 9990;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #ekpa-mobile-tabbar a {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    color: rgba(249, 249, 249, 0.62);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    padding: 8px 4px 6px;
    transition: color 0.2s ease;
  }
  #ekpa-mobile-tabbar a:hover { color: rgba(249, 249, 249, 0.92); }
  #ekpa-mobile-tabbar a.active { color: #c9a84c; }
  #ekpa-mobile-tabbar a.active .tab-icon svg { stroke: #c9a84c; }
  #ekpa-mobile-tabbar .tab-icon { display: block; }
  #ekpa-mobile-tabbar .tab-icon svg { width: 22px; height: 22px; display: block; }
  #ekpa-mobile-tabbar .tab-label {
    font-size: 9.5px; font-weight: 500; letter-spacing: 0.04em;
    line-height: 1; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
  }
  /* Reserve bottom space so page content + footer aren't hidden under the bar */
  body.ekpa-has-header { padding-bottom: 64px !important; }
}
@media (max-width: 600px) {
  #ekpa-header .ekpa-brand { font-size: 16px; gap: 10px; }
  #ekpa-header .ekpa-brand small { display: none; }
  #ekpa-header .ekpa-brand-text { padding-left: 10px; }
  #ekpa-header .ekpa-logo { height: 34px; }
  #ekpa-header .ekpa-network-icon { height: 36px; }
  #ekpa-dropdown .ekpa-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ── Floating language FAB (mobile only — left edge, mirror of a11y) ── */
#ekpa-lang-fab-host { display: block; }
#ekpa-lang-fab { display: none; }
#ekpa-lang-fab-menu { display: none; }

/* Show floating language FAB whenever inline langs would be too cramped
   (≤1100px covers small phones, landscape phones, and tablets). */
@media (max-width: 1100px) {
  #ekpa-header .ekpa-langs { display: none; }
  #ekpa-lang-fab { display: flex; }
  #ekpa-lang-fab-menu.open { display: flex; }
}

/* Hide FAB + menu while hamburger menu is open */
body.ekpa-mobile-menu-open #ekpa-lang-fab,
body.ekpa-mobile-menu-open #ekpa-lang-fab-menu { display: none !important; }

#ekpa-lang-fab {
  position: fixed;
  right: 0; left: auto;
  top: 100px; transform: none;
  width: 36px; height: 36px;
  background: transparent; color: #f9f9f9;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 4px 0 0 4px;
  box-shadow: none;
  cursor: pointer; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, top 0.3s ease;
}
/* On mobile, FAB sits at the top-right next to the hamburger (to its left) */
@media (max-width: 900px) {
  #ekpa-lang-fab {
    top: 16px; right: 58px;
    width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  }
  #ekpa-lang-fab-menu {
    top: 56px; right: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
}
#ekpa-lang-fab:hover, #ekpa-lang-fab[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #c9a84c;
}
#ekpa-lang-fab:focus-visible { outline: 1px solid #c9a84c; outline-offset: -3px; }
#ekpa-lang-fab-menu {
  position: fixed;
  right: 0; left: auto;
  top: 140px;
  background: rgba(15, 15, 13, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 4px 0;
  flex-direction: column;
  min-width: 48px;
  z-index: 10001;
  box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.45);
  transition: top 0.3s ease;
}
#ekpa-lang-fab-menu button {
  background: transparent; border: none;
  color: rgba(249, 249, 249, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  padding: 7px 14px; cursor: pointer; text-align: center;
  transition: color 0.15s ease, background 0.15s ease;
}
#ekpa-lang-fab-menu button:hover { color: #c9a84c; background: rgba(201, 168, 76, 0.10); }
#ekpa-lang-fab-menu button.active { color: #c9a84c; font-weight: 700; }

/* ── Full-screen mobile/tablet menu ─────────────────────────── */
#ekpa-mobile-menu {
  position: fixed; inset: 0;
  background: #0a0a0a;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #f9f9f9;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
body.ekpa-mobile-menu-open #ekpa-mobile-menu { transform: translateY(0); }
body.ekpa-mobile-menu-open { overflow: hidden; }
@media (min-width: 1101px) {
  #ekpa-mobile-menu { display: none !important; }
}

#ekpa-mobile-menu .ekpa-mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 18px 24px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(8, 8, 8, 0.95);
  position: sticky; top: 0; z-index: 2;
}
#ekpa-mobile-menu .ekpa-mobile-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
#ekpa-mobile-menu .ekpa-mobile-uoa { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
#ekpa-mobile-menu .ekpa-mobile-icon { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.88; }
#ekpa-mobile-menu .ekpa-mobile-brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
  border-left: 1px solid rgba(201, 168, 76, 0.3);
  padding-left: 10px;
}
#ekpa-mobile-menu .ekpa-mobile-brand-text .bl {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.04em; color: #f9f9f9; white-space: nowrap;
}
#ekpa-mobile-menu .ekpa-mobile-brand-text .bl:nth-child(3) {
  letter-spacing: 0.18em; font-weight: 500;
}
#ekpa-mobile-menu .ekpa-mobile-close {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #f9f9f9; font-size: 26px; line-height: 1;
  cursor: pointer; border-radius: 4px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
#ekpa-mobile-menu .ekpa-mobile-close:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: #c9a84c;
}

#ekpa-mobile-menu .ekpa-mobile-nav {
  flex: 1;
  padding: 12px 24px 60px;
  display: flex; flex-direction: column;
}
#ekpa-mobile-menu .ekpa-mobile-nav > a,
#ekpa-mobile-menu .ekpa-mobile-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  color: #f9f9f9;
  font-family: 'Newsreader', serif;
  font-size: 22px; font-weight: 300; font-style: italic;
  letter-spacing: -0.005em;
  background: transparent; border: none; cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
#ekpa-mobile-menu .ekpa-mobile-trigger.open,
#ekpa-mobile-menu .ekpa-mobile-nav > a:hover,
#ekpa-mobile-menu .ekpa-mobile-trigger:hover { color: #c9a84c; }
#ekpa-mobile-menu .ekpa-mobile-trigger.open .ekpa-mobile-caret { transform: rotate(180deg); color: #c9a84c; }
#ekpa-mobile-menu .ekpa-mobile-caret {
  font-size: 16px;
  transition: transform 0.25s ease, color 0.2s ease;
  color: rgba(201, 168, 76, 0.55);
  font-style: normal;
}

#ekpa-mobile-menu .ekpa-mobile-sub {
  display: none;
  flex-direction: column;
  padding: 4px 0 14px 24px;
  margin-bottom: 4px;
  border-left: 1px solid rgba(201, 168, 76, 0.22);
}
#ekpa-mobile-menu .ekpa-mobile-sub.open { display: flex; }
#ekpa-mobile-menu .ekpa-mobile-sub a {
  padding: 10px 0 10px 14px;
  color: rgba(249, 249, 249, 0.72);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease;
}
#ekpa-mobile-menu .ekpa-mobile-sub a:hover { color: #c9a84c; }
#ekpa-mobile-menu .ekpa-mobile-sub a.ekpa-mobile-see-all {
  color: #c9a84c;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  padding-top: 16px;
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  #ekpa-header,
  #ekpa-header *,
  #ekpa-dropdown,
  #ekpa-dropdown * { transition: none !important; }
}
