/* AKEP Header widget — scoped under .akep-header-root */
.akep-header-root {
  --akep-radius: 0.25rem;
  --akep-background: oklch(0.985 0.004 250);
  --akep-foreground: oklch(0.2 0.03 255);
  --akep-card: oklch(1 0 0);
  --akep-primary: oklch(0.36 0.11 255);
  --akep-primary-foreground: oklch(0.99 0 0);
  --akep-secondary: oklch(0.95 0.012 250);
  --akep-muted-foreground: oklch(0.48 0.03 255);
  --akep-border: oklch(0.9 0.012 250);
  --akep-input: oklch(0.88 0.012 250);
  --akep-ring: oklch(0.5 0.15 255);
  --akep-ink: oklch(0.21 0.05 258);
  --akep-ink-foreground: oklch(0.96 0.01 250);
  --akep-font-sans: "OpenSans-Regular", "Open Sans", system-ui, sans-serif;
  --akep-font-medium: "OpenSans-SemiBold", "Open Sans", system-ui, sans-serif;
  --akep-font-bold: "OpenSans-Bold", "Open Sans", system-ui, sans-serif;
  --akep-max: 1580px;
  font-family: var(--akep-font-sans) !important;
  font-size: 16px;
  color: var(--akep-foreground);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.akep-header-root,
.akep-header-root a,
.akep-header-root p,
.akep-header-root div,
.akep-header-root span,
.akep-header-root button,
.akep-header-root input,
.akep-header-root li,
.elementor-widget-akep-header,
.elementor-widget-akep-header a,
.elementor-widget-akep-header p,
.elementor-widget-akep-header div {
  font-family: var(--akep-font-sans) !important;
}

.akep-header-root .nav-link,
.akep-header-root .btn-primary,
.akep-header-root .util-actions a,
.akep-header-root .util-actions button,
.akep-header-root .search-form button,
.akep-header-root .mobile-details summary,
.akep-header-root .mobile-link,
.akep-header-root .mobile-cta,
.akep-header-root .lang-active {
  font-family: var(--akep-font-medium) !important;
}

.akep-header-root *,
.akep-header-root *::before,
.akep-header-root *::after {
  box-sizing: border-box;
}

.akep-header-root img {
  max-width: 100%;
  display: block;
}

.akep-header-root a {
  color: inherit;
  text-decoration: none;
}

.akep-header-root button,
.akep-header-root input {
  font: inherit;
}

.akep-header-root p {
  margin: 0;
}

.akep-header-root ul,
.akep-header-root ol,
.akep-header-root .nav-list,
.akep-header-root .dropdown ul,
.akep-header-root .mobile-details ul,
.elementor-widget-akep-header .akep-header-root ul,
.elementor-widget-akep-header ul {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.akep-header-root li,
.akep-header-root li::marker,
.elementor-widget-akep-header li::marker {
  list-style: none !important;
  list-style-type: none !important;
}

/* Kill theme / Elementor Additional CSS: li { padding-left: 16px; } */
.akep-header-root li,
.akep-header-root .nav-list > li,
.akep-header-root .dropdown li,
.akep-header-root .mobile-details li,
.elementor-widget-akep-header li,
.elementor-element.elementor-widget-akep-header li {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
}

/* Kill theme / Elementor Additional CSS: li::before { content: "•"; ... } */
.akep-header-root li::before,
.akep-header-root li:before,
.akep-header-root .nav-list > li::before,
.akep-header-root .dropdown li::before,
.akep-header-root .mobile-details li::before,
.elementor-widget-akep-header li::before,
.elementor-widget-akep-header li:before,
.elementor-element.elementor-widget-akep-header li::before {
  content: none !important;
  content: "" !important;
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: transparent !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
}

.akep-header-root:focus-visible,
.akep-header-root *:focus-visible {
  outline: 2px solid var(--akep-ring);
  outline-offset: 2px;
}

.akep-header-root .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.akep-header-root .skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--akep-primary);
  color: var(--akep-primary-foreground);
  padding: 0.5rem 1rem;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
}

/* Utility */
.akep-header-root .util {
  background: var(--akep-ink);
  color: var(--akep-ink-foreground);
  font-size: 0.875rem;
}

.akep-header-root .util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  width: min(100% - 2rem, var(--akep-max));
  margin-inline: auto;
}

.akep-header-root .util-tagline {
  display: none;
  opacity: 0.8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .akep-header-root .util-tagline {
    display: block;
  }
}

.akep-header-root .util-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.akep-header-root .util-actions a,
.akep-header-root .util-actions button,
.akep-header-root .util-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.5rem;
  color: color-mix(in oklab, var(--akep-ink-foreground) 80%, transparent);
  background: transparent;
  border: 0;
  cursor: pointer;
  gap: 0.375rem;
}

.akep-header-root .util-actions a:hover,
.akep-header-root .util-actions button:hover {
  color: var(--akep-ink-foreground);
}

.akep-header-root .util-font-size {
  display: inline-flex;
  align-items: center;
}

.akep-header-root .util-font-size button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.akep-header-root .util-font-size button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Mobile: util spacing + A− / A+ on the left as compact control */
@media (max-width: 767px) {
  .akep-header-root .util-inner {
    justify-content: flex-start;
    min-height: 0;
  }

  .akep-header-root .util-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
    padding-block: 0.45rem;
  }

  .akep-header-root .util-font-size {
    order: -1;
    margin-right: auto;
    gap: 0;
    border: 1px solid color-mix(in oklab, var(--akep-ink-foreground) 28%, transparent);
    border-radius: 0.375rem;
    overflow: hidden;
    background: color-mix(in oklab, var(--akep-ink-foreground) 8%, transparent);
  }

  .akep-header-root .util-font-size button {
    /* Apple HIG ~44px tap target; visual stays compact via padding */
    min-height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 0.55rem;
    font-size: 0.8125rem;
    line-height: 1;
    font-weight: 600;
    color: color-mix(in oklab, var(--akep-ink-foreground) 88%, transparent);
    border-radius: 0;
  }

  .akep-header-root .util-font-size button + button {
    border-left: 1px solid color-mix(in oklab, var(--akep-ink-foreground) 22%, transparent);
  }

  .akep-header-root .util-font-size button:hover,
  .akep-header-root .util-font-size button:active,
  .akep-header-root .util-font-size button:focus-visible {
    color: var(--akep-ink-foreground);
    background: color-mix(in oklab, var(--akep-ink-foreground) 12%, transparent);
  }

  .akep-header-root .util-font-size [data-akep-font-down] span {
    font-size: 0.75rem;
  }

  .akep-header-root .util-font-size [data-akep-font-up] span {
    font-size: 0.875rem;
  }
}

.akep-header-root .util-link {
  display: none !important;
}

@media (min-width: 640px) {
  .akep-header-root .util-link--sm {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) {
  .akep-header-root .util-link--lg {
    display: inline-flex !important;
  }
}

.akep-header-root .util-link--always {
  display: inline-flex !important;
}

.akep-header-root .util-sep {
  width: 1px;
  height: 1rem;
  background: color-mix(in oklab, var(--akep-ink-foreground) 30%, transparent);
  margin: 0 0.5rem;
}

.akep-header-root .lang-active {
  font-weight: 600;
  color: var(--akep-ink-foreground) !important;
}

/* Elementor Theme Builder header is short; sticky can't survive past it.
   Pin the outer Theme Builder <header> so the AKEP bar stays in view. */
body header:has(.akep-header-root),
body .elementor:has(.akep-header-root) {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

.elementor-widget-akep-header,
.elementor-widget-akep-header > .elementor-widget-container,
body header:has(.akep-header-root),
body header:has(.akep-header-root) .e-con,
body header:has(.akep-header-root) .elementor-element {
  overflow: visible !important;
}

/* Sentinel sits in document flow (not inside sticky) so height changes don't vibrate */
.akep-header-sentinel {
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Header */
.akep-header-root .header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--akep-border);
  background: color-mix(in oklab, var(--akep-card) 95%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}

.akep-header-root .header.is-scrolled {
  box-shadow: 0 8px 24px -16px oklch(0.2 0.05 255 / 0.35);
}

.akep-header-root .header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
  padding-block: 0.75rem;
  width: min(100% - 2rem, var(--akep-max));
  margin-inline: auto;
  transition: min-height 0.2s ease, padding-block 0.2s ease;
}

.akep-header-root .header.is-scrolled .header-inner {
  min-height: 3.1rem;
  padding-block: 0.35rem;
}

.akep-header-root .logo {
  display: inline-flex;
  align-items: center;
}

.akep-header-root .logo img {
  height: 3.75rem;
  width: auto;
  transition: height 0.2s ease;
}

.akep-header-root .header.is-scrolled .logo img {
  height: 2.5rem;
}

/* Also tighten util bar slightly while compact */
.akep-header-root.is-scrolled .util-inner {
  min-height: 0;
  padding-block: 0.2rem;
}

/* Mobile: smaller logo, same height sticky + normal (no shrink glitch) */
@media (max-width: 1023px) {
  .akep-header-root .logo img,
  .akep-header-root .header.is-scrolled .logo img {
    height: 3rem;
    transition: none;
  }

  .akep-header-root .header-inner,
  .akep-header-root .header.is-scrolled .header-inner {
    min-height: 3.25rem;
    padding-block: 0.5rem;
  }

  .akep-header-root.is-scrolled .util-inner {
    min-height: 2.5rem;
    padding-block: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .akep-header-root .header,
  .akep-header-root .header-inner,
  .akep-header-root .logo img {
    transition: none;
  }
}

.akep-header-root .nav {
  display: none;
  flex: 1;
}

@media (min-width: 1024px) {
  .akep-header-root .nav {
    display: block;
  }
}

.akep-header-root .nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.akep-header-root .nav-item {
  position: relative;
}

.akep-header-root .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--akep-radius) - 4px);
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.akep-header-root .nav-link:hover {
  background: var(--akep-secondary);
}

.akep-header-root .nav-toggle svg {
  transition: transform 0.2s ease;
}

.akep-header-root .nav-item.is-open .nav-toggle svg {
  transform: rotate(180deg);
}

.akep-header-root .dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  padding-top: 0.5rem;
}

.akep-header-root .nav-item.is-open .dropdown {
  display: block;
}

.akep-header-root .dropdown ul {
  display: grid;
  gap: 0 0.25rem;
  width: 18rem;
  border: 1px solid var(--akep-border);
  background: var(--akep-card);
  border-radius: var(--akep-radius);
  padding: 0.5rem;
  box-shadow: 0 12px 32px -12px oklch(0.2 0.05 255 / 0.35);
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
}

.akep-header-root .dropdown--wide ul {
  width: 32rem;
  grid-template-columns: 1fr 1fr;
}

.akep-header-root .dropdown a {
  display: block;
  border-radius: calc(var(--akep-radius) - 4px);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
}

.akep-header-root .dropdown a:hover {
  background: var(--akep-secondary);
  color: var(--akep-primary);
}

.akep-header-root .header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.akep-header-root .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  border: 0;
  border-radius: calc(var(--akep-radius) - 4px);
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.akep-header-root .icon-btn:hover {
  background: var(--akep-secondary);
}

.akep-header-root .btn-primary {
  display: none;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: var(--akep-primary);
  color: var(--akep-primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.akep-header-root .btn-primary:hover {
  filter: brightness(1.05);
}

@media (min-width: 640px) {
  .akep-header-root .btn-primary {
    display: inline-flex;
  }
}

.akep-header-root .menu-btn {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .akep-header-root .menu-btn {
    display: none;
  }
}

.akep-header-root .search-panel {
  display: none;
  border-top: 1px solid var(--akep-border);
  background: var(--akep-card);
}

.akep-header-root .search-panel.is-open {
  display: block;
}

.akep-header-root .search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
}

.akep-header-root .search-form input {
  flex: 1;
  height: 2.75rem;
  border: 1px solid var(--akep-input);
  border-radius: calc(var(--akep-radius) - 4px);
  padding: 0 1rem;
  background: var(--akep-background);
}

.akep-header-root .search-form button {
  min-height: 2.75rem;
  border: 0;
  border-radius: calc(var(--akep-radius) - 4px);
  background: var(--akep-primary);
  color: var(--akep-primary-foreground);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* Mobile menu — above sticky header; opaque panel covers logo (no hide/show chrome) */
.akep-header-root .mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow-y: auto;
  background: var(--akep-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(12%, 0, 0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
}

.akep-header-root .mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Keep in layout for animation; only fully remove when [hidden] after close */
.akep-header-root .mobile-menu:not([hidden]) {
  display: block;
}

.akep-header-root .mobile-menu[hidden] {
  display: none !important;
}

body.akep-mobile-menu-open header:has(.akep-header-root),
body.akep-mobile-menu-open .elementor:has(.akep-header-root) {
  z-index: 1100 !important;
}

@media (min-width: 1024px) {
  .akep-header-root .mobile-menu,
  .akep-header-root .mobile-menu.is-open,
  .akep-header-root .mobile-menu:not([hidden]) {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .akep-header-root .mobile-menu,
  .akep-header-root .mobile-menu.is-open {
    transition: none;
    transform: none;
  }
}

.akep-header-root .mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--akep-border);
  padding: 0.75rem 1rem;
}

.akep-header-root .mobile-top img {
  height: 2.5rem;
  width: auto;
}

.akep-header-root .mobile-nav {
  padding: 0.5rem 1rem 1.5rem;
}

.akep-header-root .mobile-details {
  border-bottom: 1px solid var(--akep-border);
  padding: 0.25rem 0;
}

.akep-header-root .mobile-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 500;
  list-style: none;
}

.akep-header-root .mobile-details summary::-webkit-details-marker,
.akep-header-root .mobile-details summary::marker {
  display: none;
  content: none;
}

.akep-header-root .mobile-details-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--akep-muted-foreground);
  transition: transform 0.2s ease;
}

.akep-header-root .mobile-details[open] .mobile-details-arrow {
  transform: rotate(180deg);
}

.akep-header-root .mobile-details-label {
  min-width: 0;
}

.akep-header-root .mobile-details ul {
  padding: 0 0 0.75rem 0.75rem;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
}

.akep-header-root .mobile-details a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--akep-muted-foreground);
}

.akep-header-root .mobile-details a:hover {
  color: var(--akep-primary);
}

.akep-header-root .mobile-link {
  display: block;
  border-bottom: 1px solid var(--akep-border);
  padding: 1rem 0;
  font-weight: 500;
}

.akep-header-root .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 1rem 0 1.5rem;
  border-radius: calc(var(--akep-radius) - 4px);
  background: var(--akep-primary);
  color: var(--akep-primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
