/* APC Header for Elementor – desktop styles.
   Mobile/drawer styles are printed per-widget so the breakpoint is editable. */
.apc-header, .apc-header *, .apc-header *::before, .apc-header *::after { box-sizing: border-box; }

.apc-header {
  --apc-accent: #4F6B57;
  --apc-accent-dark: #3d5545;
  --apc-ink: #1f2a24;
  --apc-ink-soft: #55635a;
  --apc-line: #dfe6e1;
  --apc-tint: #eef3ef;
  --apc-bg: rgba(255,255,255,.96);
  --apc-drawer-bg: #ffffff;
  --apc-link: var(--apc-ink);
  --apc-link-hover: var(--apc-accent);
  --apc-link-active: var(--apc-accent);
  --apc-cta-bg: var(--apc-accent);
  --apc-cta-color: #ffffff;
  --apc-cta-hover-bg: var(--apc-accent-dark);
  --apc-cta-hover-color: #ffffff;
  --apc-lang-color: var(--apc-ink-soft);
  --apc-lang-active: var(--apc-accent);
  --apc-toggle-color: var(--apc-ink);

  position: relative;
  z-index: 9990;
  width: 100%;
  line-height: 1.5;
  color: var(--apc-ink);
  background: var(--apc-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .25s ease;
}
/* Wrapper holds the default header height (editable in Style > Header) */
.apc-wrap { --apc-header-h: 76px; position: relative; width: 100%; }

/* Sticky = fixed to the top of the screen; the spacer keeps page content from sliding underneath */
.apc-header.apc-sticky { position: fixed; top: 0; left: 0; right: 0; }
.apc-spacer { display: block; width: 100%; height: var(--apc-header-h); }
body.admin-bar .apc-header.apc-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .apc-header.apc-sticky { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .apc-header.apc-sticky { top: 0; } }
.apc-header.apc-shadow.is-scrolled { box-shadow: 0 4px 18px rgba(31,42,36,.08); }
.apc-header ul { list-style: none; margin: 0; padding: 0; }
.apc-header li { margin: 0; padding: 0; }
.apc-header a { text-decoration: none; box-shadow: none; }

.apc-inner {
  max-width: 1140px; margin: 0 auto;
  min-height: var(--apc-header-h);
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.apc-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.apc-brand img { height: 34px; width: auto; max-width: 100%; display: block; }

/* Nav */
.apc-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.apc-list { display: flex; align-items: center; gap: .45rem; flex-wrap: nowrap; }
.apc-list a {
  display: block; position: relative; padding: .5rem; border-radius: 8px;
  color: var(--apc-link); font-weight: 500; font-size: .9rem; white-space: nowrap;
  transition: color .2s, background .2s;
}
.apc-list a:hover, .apc-list a:focus-visible { color: var(--apc-link-hover); background: var(--apc-tint); }
.apc-list a[aria-current="page"],
.apc-list .current-menu-item > a,
.apc-list .current_page_item > a { color: var(--apc-link-active); }
.apc-list a[aria-current="page"]::after,
.apc-list .current-menu-item > a::after,
.apc-list .current_page_item > a::after {
  content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .1rem;
  height: 2px; background: var(--apc-link-active); border-radius: 2px;
}
.apc-list a.has-sub { line-height: 1.15; }
.apc-link-sub { display: block; font-size: .72em; font-weight: 400; color: var(--apc-ink-soft); white-space: nowrap; }

.apc-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Language */
.apc-lang { display: flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .85rem; color: var(--apc-lang-color); }
.apc-lang a { color: var(--apc-lang-color); font-weight: 500; padding: .15rem .25rem; border-radius: 4px; }
.apc-lang a:hover { color: var(--apc-lang-active); }
.apc-lang a[aria-current="true"], .apc-lang .is-active > a, .apc-lang .current-lang > a { color: var(--apc-lang-active); font-weight: 700; }
.apc-lang ul { display: flex; align-items: center; gap: .35rem; }

/* CTA */
.apc-header .apc-call {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--apc-cta-bg); color: var(--apc-cta-color);
  padding: .6rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .85rem; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.apc-header .apc-call:hover { background: var(--apc-cta-hover-bg); color: var(--apc-cta-hover-color); transform: translateY(-1px); }
.apc-call i, .apc-call svg { width: 1em; height: 1em; font-size: 1em; fill: currentColor; }

.apc-header a:focus-visible, .apc-header .apc-toggle:focus-visible { outline: 3px solid #9cc3a9; outline-offset: 2px; }

/* Hamburger (hidden on desktop) */
.apc-header .apc-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin: 0;
  background: transparent; border: 1px solid var(--apc-line); border-radius: 10px;
  cursor: pointer; position: relative; box-shadow: none; color: inherit;
}
.apc-header .apc-toggle:hover, .apc-header .apc-toggle:focus { background: transparent; border-color: var(--apc-accent); }
.apc-bar { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--apc-toggle-color); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.apc-bar:nth-child(1) { top: 14px; } .apc-bar:nth-child(2) { top: 21px; } .apc-bar:nth-child(3) { top: 28px; }
.apc-toggle[aria-expanded="true"] .apc-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.apc-toggle[aria-expanded="true"] .apc-bar:nth-child(2) { opacity: 0; }
.apc-toggle[aria-expanded="true"] .apc-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Sub-menus (dropdowns) */
.apc-list li { position: relative; }
.apc-list li.menu-item-has-children { display: flex; align-items: center; }
.apc-header .apc-list .apc-sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 28px; padding: 0; margin: 0 0 0 -.3rem; flex: 0 0 auto;
  min-width: 0; min-height: 0; line-height: 1; font-size: 0; text-transform: none; letter-spacing: 0;
  background: transparent !important; border: 0 !important; border-radius: 6px; cursor: pointer; color: var(--apc-link); box-shadow: none !important;
}
.apc-header .apc-list .apc-sub-toggle:hover, .apc-header .apc-list .apc-sub-toggle:focus { background: transparent !important; color: var(--apc-link-hover); }
.apc-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
li.is-sub-open > .apc-sub-toggle .apc-caret { transform: translateY(1px) rotate(-135deg); }
.apc-list .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 20; min-width: 210px;
  display: block; padding: .4rem; margin: 0;
  background: var(--apc-drawer-bg); border: 1px solid var(--apc-line); border-radius: 10px;
  box-shadow: 0 14px 30px rgba(31,42,36,.14);
  visibility: hidden; opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.apc-list .sub-menu .sub-menu { top: 0; left: 100%; }
.apc-list li:hover > .sub-menu,
.apc-list li:focus-within > .sub-menu,
.apc-list li.is-sub-open > .sub-menu {
  visibility: visible; opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.apc-list .sub-menu li { display: block; }
.apc-list .sub-menu a { padding: .55rem .75rem; font-size: .88rem; white-space: nowrap; }

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

/* ---- Language / translator widget (e.g. GTranslate) styled like the menu links ---- */
.apc-header .apc-lang--match,
.apc-header .menu-item-gtranslate,
.apc-match {display:inline-flex;align-items:center;font-family:inherit;font-size:.9rem;font-weight:500;line-height:1.5;color:var(--apc-link,#1f2a24);}
.apc-header .apc-lang--match .gtranslate_wrapper,
.apc-header .apc-lang--match .gt_switcher_wrapper,
.apc-header .apc-lang--match .gt_switcher,
.apc-header .menu-item-gtranslate .gtranslate_wrapper,
.apc-header .menu-item-gtranslate .gt_switcher_wrapper,
.apc-header .menu-item-gtranslate .gt_switcher,
.apc-match .gtranslate_wrapper,
.apc-match .gt_switcher_wrapper,
.apc-match .gt_switcher {position:relative !important;display:inline-block;width:auto !important;max-width:none !important;margin:0 !important;font-family:inherit !important;font-size:inherit !important;line-height:inherit !important;background:transparent !important;border:0 !important;box-shadow:none !important;}
.apc-header .apc-lang--match .gt_switcher .gt_selected,
.apc-header .apc-lang--match .gt_switcher .gt_selected a,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a,
.apc-match .gt_switcher .gt_selected,
.apc-match .gt_switcher .gt_selected a {background:transparent !important;border:0 !important;box-shadow:none !important;}
.apc-header .apc-lang--match .gt_switcher a,
.apc-header .apc-lang--match a.glink,
.apc-header .apc-lang--match .gt_selected a,
.apc-header .menu-item-gtranslate .gt_switcher a,
.apc-header .menu-item-gtranslate a.glink,
.apc-header .menu-item-gtranslate .gt_selected a,
.apc-match .gt_switcher a,
.apc-match a.glink,
.apc-match .gt_selected a {display:flex !important;align-items:center;gap:.4rem;padding:.5rem !important;border:0 !important;border-radius:8px;background:transparent;box-shadow:none !important;color:var(--apc-link,#1f2a24) !important;font-family:inherit !important;font-size:inherit !important;font-weight:inherit !important;line-height:1.5 !important;text-decoration:none !important;white-space:nowrap;transition:color .2s,background .2s;}
.apc-header .apc-lang--match .gt_switcher a:hover,
.apc-header .apc-lang--match a.glink:hover,
.apc-header .apc-lang--match .gt_selected a:hover,
.apc-header .apc-lang--match .gt_selected a.open,
.apc-header .menu-item-gtranslate .gt_switcher a:hover,
.apc-header .menu-item-gtranslate a.glink:hover,
.apc-header .menu-item-gtranslate .gt_selected a:hover,
.apc-header .menu-item-gtranslate .gt_selected a.open,
.apc-match .gt_switcher a:hover,
.apc-match a.glink:hover,
.apc-match .gt_selected a:hover,
.apc-match .gt_selected a.open {color:var(--apc-link-hover,#4F6B57) !important;background:var(--apc-tint,#eef3ef) !important;}
.apc-header .apc-lang--match .gt_switcher img,
.apc-header .apc-lang--match a.glink img,
.apc-header .menu-item-gtranslate .gt_switcher img,
.apc-header .menu-item-gtranslate a.glink img,
.apc-match .gt_switcher img,
.apc-match a.glink img {width:auto !important;height:16px !important;margin:0 !important;border-radius:2px;vertical-align:middle;opacity:1 !important;}
.apc-header .apc-lang--match .gt_switcher .gt_option,
.apc-header .menu-item-gtranslate .gt_switcher .gt_option,
.apc-match .gt_switcher .gt_option {position:absolute !important;top:100% !important;left:0 !important;z-index:99999;min-width:190px;width:auto !important;max-height:320px !important;overflow-y:auto;margin:0 !important;padding:.4rem !important;background:var(--apc-drawer-bg,#fff) !important;border:1px solid var(--apc-line,#dfe6e1) !important;border-radius:10px !important;box-shadow:0 14px 30px rgba(31,42,36,.14) !important;}
.apc-header .apc-lang--match .gt_switcher .gt_option a,
.apc-header .menu-item-gtranslate .gt_switcher .gt_option a,
.apc-match .gt_switcher .gt_option a {font-size:.88rem !important;padding:.55rem .75rem !important;}
.apc-header .apc-lang--match select.gt_selector,
.apc-header .apc-lang--match select.notranslate,
.apc-header .menu-item-gtranslate select.gt_selector,
.apc-header .menu-item-gtranslate select.notranslate,
.apc-match select.gt_selector,
.apc-match select.notranslate {appearance:auto;font-family:inherit !important;font-size:inherit !important;font-weight:inherit !important;color:var(--apc-link,#1f2a24) !important;background:transparent !important;border:0 !important;padding:.5rem !important;border-radius:8px;cursor:pointer;box-shadow:none !important;}

/* ---- Translator button: bordered box (editable in widget > Style > Language switcher) ---- */
.apc-header .apc-lang--match .gt_switcher .gt_selected a,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink,
.apc-header .apc-lang--match select.gt_selector,
.apc-header .apc-lang--match select.notranslate,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink,
.apc-header .menu-item-gtranslate select.gt_selector,
.apc-header .menu-item-gtranslate select.notranslate,
.apc-match .gt_switcher .gt_selected a,
.apc-match .gtranslate_wrapper > a.glink,
.apc-match select.gt_selector,
.apc-match select.notranslate {
  box-sizing: border-box;
  border-style: var(--apc-lang-bs, solid) !important;
  border-width: var(--apc-lang-bw, 1.5px) !important;
  border-color: var(--apc-lang-bc, var(--apc-ink, #1f2a24)) !important;
  border-radius: var(--apc-lang-br, 10px) !important;
  padding: var(--apc-lang-pt, 9px) var(--apc-lang-pr, 14px) var(--apc-lang-pb, 9px) var(--apc-lang-pl, 14px) !important;
  background-color: var(--apc-lang-bg, transparent) !important;
  min-width: var(--apc-lang-minw, 0);
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
/* Hover only. Selecting / focusing / opening never changes the design. */
.apc-header .apc-lang--match .gt_switcher .gt_selected a:hover,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink:hover,
.apc-header .apc-lang--match select.gt_selector:hover,
.apc-header .apc-lang--match select.notranslate:hover,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a:hover,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink:hover,
.apc-header .menu-item-gtranslate select.gt_selector:hover,
.apc-header .menu-item-gtranslate select.notranslate:hover,
.apc-match .gt_switcher .gt_selected a:hover,
.apc-match .gtranslate_wrapper > a.glink:hover,
.apc-match select.gt_selector:hover,
.apc-match select.notranslate:hover {
  border-color: var(--apc-lang-bch, var(--apc-lang-bc, var(--apc-ink, #1f2a24))) !important;
  background-color: var(--apc-lang-bgh, var(--apc-lang-bg, transparent)) !important;
}
.apc-header .apc-lang--match .gt_switcher .gt_selected a:focus,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink:focus,
.apc-header .apc-lang--match select.gt_selector:focus,
.apc-header .apc-lang--match select.notranslate:focus,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a:focus,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink:focus,
.apc-header .menu-item-gtranslate select.gt_selector:focus,
.apc-header .menu-item-gtranslate select.notranslate:focus,
.apc-match .gt_switcher .gt_selected a:focus,
.apc-match .gtranslate_wrapper > a.glink:focus,
.apc-match select.gt_selector:focus,
.apc-match select.notranslate:focus,
.apc-header .apc-lang--match .gt_switcher .gt_selected a:focus-visible,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink:focus-visible,
.apc-header .apc-lang--match select.gt_selector:focus-visible,
.apc-header .apc-lang--match select.notranslate:focus-visible,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a:focus-visible,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink:focus-visible,
.apc-header .menu-item-gtranslate select.gt_selector:focus-visible,
.apc-header .menu-item-gtranslate select.notranslate:focus-visible,
.apc-match .gt_switcher .gt_selected a:focus-visible,
.apc-match .gtranslate_wrapper > a.glink:focus-visible,
.apc-match select.gt_selector:focus-visible,
.apc-match select.notranslate:focus-visible,
.apc-header .apc-lang--match .gt_switcher .gt_selected a:active,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink:active,
.apc-header .apc-lang--match select.gt_selector:active,
.apc-header .apc-lang--match select.notranslate:active,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a:active,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink:active,
.apc-header .menu-item-gtranslate select.gt_selector:active,
.apc-header .menu-item-gtranslate select.notranslate:active,
.apc-match .gt_switcher .gt_selected a:active,
.apc-match .gtranslate_wrapper > a.glink:active,
.apc-match select.gt_selector:active,
.apc-match select.notranslate:active,
.apc-header .apc-lang--match .gt_switcher .gt_selected a.open,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink.open,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a.open,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink.open,
.apc-match .gt_switcher .gt_selected a.open,
.apc-match .gtranslate_wrapper > a.glink.open {
  outline: 0 !important;
  box-shadow: none !important;
  border-color: var(--apc-lang-bc, var(--apc-ink, #1f2a24)) !important;
  background-color: var(--apc-lang-bg, transparent) !important;
}
/* hover while focused keeps hover colours (same as plain hover) */
.apc-header .apc-lang--match .gt_switcher .gt_selected a:focus:hover,
.apc-header .apc-lang--match .gtranslate_wrapper > a.glink:focus:hover,
.apc-header .apc-lang--match select.gt_selector:focus:hover,
.apc-header .apc-lang--match select.notranslate:focus:hover,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a:focus:hover,
.apc-header .menu-item-gtranslate .gtranslate_wrapper > a.glink:focus:hover,
.apc-header .menu-item-gtranslate select.gt_selector:focus:hover,
.apc-header .menu-item-gtranslate select.notranslate:focus:hover,
.apc-match .gt_switcher .gt_selected a:focus:hover,
.apc-match .gtranslate_wrapper > a.glink:focus:hover,
.apc-match select.gt_selector:focus:hover,
.apc-match select.notranslate:focus:hover {
  border-color: var(--apc-lang-bch, var(--apc-lang-bc, var(--apc-ink, #1f2a24))) !important;
  background-color: var(--apc-lang-bgh, var(--apc-lang-bg, transparent)) !important;
}

/* <select> type: custom caret so the distance from the text is editable */
.apc-header .apc-lang--match select.gt_selector,
.apc-header .apc-lang--match select.notranslate,
.apc-header .menu-item-gtranslate select.gt_selector,
.apc-header .menu-item-gtranslate select.notranslate,
.apc-match select.gt_selector,
.apc-match select.notranslate {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  field-sizing: content;
  padding-right: calc(var(--apc-lang-pr, 14px) + 10px + var(--apc-lang-agap, 6px)) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--apc-lang-arrowc, currentColor) 50%),
    linear-gradient(135deg, var(--apc-lang-arrowc, currentColor) 50%, transparent 50%) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  background-position: right calc(var(--apc-lang-pr, 14px) + 5px) center, right var(--apc-lang-pr, 14px) center !important;
  text-overflow: clip;
}
/* GTranslate custom dropdown arrow: keep it next to the text */
.apc-header .apc-lang--match .gt_switcher .gt_selected a::after,
.apc-header .menu-item-gtranslate .gt_switcher .gt_selected a::after,
.apc-match .gt_switcher .gt_selected a::after {
  position: static !important; float: none !important; flex: 0 0 auto;
  margin: 0 0 0 var(--apc-lang-agap, 6px) !important;
}
@media (max-width: 1150px) {
.apc-header .apc-lang--match .gt_switcher .gt_option { left:50% !important; transform:translateX(-50%); }
}

/* Placeholder shown for the translator until its own script has built the real one */
.apc-lang--match .apc-lang-ph {
  display: inline-flex; align-items: center; box-sizing: border-box; pointer-events: none;
  font: inherit; line-height: normal; white-space: nowrap; color: var(--apc-link, #1f2a24);
  border-style: var(--apc-lang-bs, solid);
  border-width: var(--apc-lang-bw, 1.5px);
  border-color: var(--apc-lang-bc, var(--apc-ink, #1f2a24));
  border-radius: var(--apc-lang-br, 10px);
  padding: var(--apc-lang-pt, 9px) calc(var(--apc-lang-pr, 14px) + 10px + var(--apc-lang-agap, 6px)) var(--apc-lang-pb, 9px) var(--apc-lang-pl, 14px);
  background-color: var(--apc-lang-bg, transparent);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--apc-lang-arrowc, currentColor) 50%),
    linear-gradient(135deg, var(--apc-lang-arrowc, currentColor) 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-position: right calc(var(--apc-lang-pr, 14px) + 5px) center, right var(--apc-lang-pr, 14px) center;
  min-width: var(--apc-lang-minw, 0);
}
