/* Techtra Elements — Header / Footer helpers (Figma home 2026-10) */

.techtra-elements-location {
  width: 100%;
}

/* Seeded header: navy bar matching Figma */
.techtra-elements-header > .elementor {
  width: 100%;
}

.techtra-elements-header {
  background: #0b2e6b;
  color: #fff;
}

.techtra-elements-header .elementor-section.techtra-hf-header-left,
.techtra-elements-header .elementor-section.techtra-hf-header-right,
.techtra-elements-header .elementor-section.techtra-hf-header-bar,
.techtra-elements-header .elementor-top-section {
  background: #0b2e6b !important;
}

/* Full-bleed navy bar; inner row matches FE content width (1320). */
.techtra-elements-header .elementor-section.techtra-hf-header-bar,
.techtra-elements-header .e-con.techtra-hf-header-bar {
  width: 100% !important;
  max-width: none !important;
  --container-max-width: 1320px;
  --content-width: 1320px;
}

.techtra-elements-header .techtra-hf-header-bar > .elementor-container,
.techtra-elements-header .techtra-hf-header-bar > .e-con-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.techtra-elements-header .techtra-hf-header-bar .elementor-widget-wrap {
  align-content: center;
  align-items: center;
}

/* Editor + FE: keep logo / nav / search / icons on one full-width row. */
.techtra-elements-header .techtra-hf-header-bar > .elementor-container,
body.techtra-template-canvas .techtra-hf-header-bar > .elementor-container,
body.elementor-editor-active .techtra-hf-header-bar > .elementor-container {
  flex-wrap: nowrap;
}

.techtra-elements-header .techtra-hf-header-bar .elementor-column,
body.techtra-template-canvas .techtra-hf-header-bar .elementor-column,
body.elementor-editor-active .techtra-hf-header-bar .elementor-column {
  min-width: 0;
}

.techtra-elements-header .techtra-hf-header-bar .elementor-widget-techtra_site_logo,
body.techtra-template-canvas .techtra-hf-header-bar .elementor-widget-techtra_site_logo,
body.elementor-editor-active .techtra-hf-header-bar .elementor-widget-techtra_site_logo {
  max-width: 160px;
}

.techtra-elements-header .techtra-hf-header-bar .elementor-widget-techtra_nav_menu,
body.techtra-template-canvas .techtra-hf-header-bar .elementor-widget-techtra_nav_menu,
body.elementor-editor-active .techtra-hf-header-bar .elementor-widget-techtra_nav_menu {
  flex: 1 1 auto;
  min-width: 220px;
  max-width: none;
}

.techtra-elements-header .techtra-nav-menu--bridge,
body.techtra-template-canvas .techtra-nav-menu--bridge,
body.elementor-editor-active .techtra-nav-menu--bridge {
  width: 100%;
  min-height: 28px;
  overflow: visible;
}

.techtra-elements-header .elementor-container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* Top-level nav only — do NOT paint mega-panel links white (white-on-white).
 * !important beats Elementor global / widget color in the editor canvas. */
.techtra-elements-header .techtra-nav-menu .menu-parent > a,
.techtra-elements-header .techtra-nav-menu--bridge #headerNavMount > .menu-parent > a,
.techtra-elements-header .techtra-nav-menu--horizontal > .techtra-nav-menu__list > li > a,
body.techtra-template-canvas .techtra-elements-header .menu-parent > a,
body.elementor-editor-active .techtra-elements-header .menu-parent > a {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.techtra-elements-header .techtra-nav-menu .menu-parent > a:hover,
.techtra-elements-header .techtra-nav-menu--bridge #headerNavMount > .menu-parent > a:hover,
.techtra-elements-header .techtra-nav-menu--horizontal > .techtra-nav-menu__list > li > a:hover,
body.techtra-template-canvas .techtra-elements-header .menu-parent > a:hover,
body.elementor-editor-active .techtra-elements-header .menu-parent > a:hover {
  color: #f5c518 !important;
}

/*
 * Portaled mega panels are appended to .techtra-elements-header so
 * position:absolute; top:100% sits flush under the navy bar (no gap).
 */
.techtra-elements-header {
  position: sticky;
  overflow: visible;
}

.techtra-elements-header > .site-header__main,
.techtra-elements-header > .drop-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 1200;
  box-sizing: border-box;
  background: #fff;
  border-top: 2px solid #0b2e6b;
  box-shadow: 0 14px 36px rgba(7, 36, 86, 0.16);
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.techtra-elements-header > .site-header__main.is-open,
.techtra-elements-header > .drop-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Invisible hover bridge so the cursor can travel from trigger → panel. */
.techtra-elements-header > .site-header__main::before,
.techtra-elements-header > .drop-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.techtra-elements-header .menu-type-2 a,
.techtra-elements-header .menu-type-1 a,
.techtra-elements-header .menu-type-3 a,
.techtra-elements-header .drop-menu a {
  text-transform: none;
  letter-spacing: normal;
}

.techtra-elements-header .menu-type-2__list-menu--item__title,
.techtra-elements-header .menu-type-new__title {
  color: #0b2e6b !important;
}

.techtra-elements-header .menu-type-2__list-menu--item__title:hover,
.techtra-elements-header .menu-type-new__title:hover {
  color: #2563eb !important;
}

.techtra-elements-header .menu-type-2__list-menu--item ul li a {
  color: #5b6575 !important;
}

.techtra-elements-header .menu-type-2__list-menu--item ul li a:hover {
  color: #2563eb !important;
}

.techtra-elements-header .menu-type-2__more {
  color: #0b2e6b !important;
  border-color: #0b2e6b;
  background: #fff;
}

.techtra-elements-header .menu-type-2__more:hover {
  background: #0b2e6b;
  color: #fff !important;
}

.techtra-elements-header .menu-parent.is-mega-open > a {
  color: #f5c518;
}

/* Fit long labels beside search at mid widths. */
.techtra-elements-header .menu-parent > a {
  padding: 0 10px;
  white-space: nowrap;
}

.techtra-elements-header .v2-header-menu-top > ul,
.techtra-elements-header .techtra-nav-menu--bridge > ul,
.techtra-elements-header #headerNavMount {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Editor: keep mega panels collapsed so the canvas stays usable. */
body.elementor-editor-active .techtra-elements-header .menu-type-2,
body.techtra-template-canvas .techtra-elements-header .menu-type-2,
body.elementor-editor-active .techtra-nav-menu--bridge .menu-type-2,
body.techtra-template-canvas .techtra-nav-menu--bridge .menu-type-2 {
  display: none !important;
}

@media (max-width: 1280px) {
  .techtra-elements-header .menu-parent > a {
    padding: 0 7px;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 1100px) {
  .techtra-elements-header .menu-parent > a {
    padding: 0 5px;
    font-size: 0.7rem;
  }
}

/* Desktop-only mega; mobile keeps accordion. */
@media (max-width: 992px) {
  .techtra-elements-header > .site-header__main,
  .techtra-elements-header > .drop-menu {
    display: none !important;
  }
}

.techtra-elements-header .header-search__field {
  background: #fff;
  border-radius: 9999px;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px 0 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.techtra-elements-header .header-search__field input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  color: #334155;
  font-size: 0.9rem;
}

.techtra-elements-header .header-search__button {
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.techtra-elements-header .techtra-account a,
.techtra-elements-header .techtra-cart a {
  color: #fff;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.techtra-elements-header .techtra-site-logo img {
  filter: brightness(0) invert(1);
}

.techtra-elements-header .techtra-site-logo--light img,
.techtra-elements-header .techtra-site-logo[data-variant="light"] img {
  filter: none;
}

.techtra-elements-footer {
  background: #f0f1f3;
  color: #3a4556;
}

.techtra-elements-footer .techtra-hf-footer-top > .elementor-container,
.techtra-elements-footer .techtra-hf-footer-mid > .elementor-container {
  max-width: 1240px;
  padding-top: 36px;
  padding-bottom: 12px;
}

.techtra-elements-footer .footer-certs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  max-width: 100%;
}

.techtra-elements-footer .footer-cert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.techtra-elements-footer .footer-cert > span {
  white-space: nowrap;
}

.techtra-elements-footer .footer-cert--bct {
  background: #0b2e6b;
  color: #fff;
  width: auto;
  min-width: 0;
}

.techtra-elements-footer .footer-cert--dmca {
  background: #2f3542;
  color: #fff;
  border: 1px solid #9aa3b2;
}

@media (max-width: 560px) {
  .techtra-elements-footer .footer-certs {
    flex-wrap: wrap;
  }

  .techtra-elements-footer .footer-cert {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.68rem;
    max-width: 100%;
  }
}

.techtra-elements-footer .techtra-hf-footer-main > .elementor-container,
.techtra-elements-footer .techtra-hf-footer-bottom > .elementor-container {
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.techtra-elements-footer .techtra-hf-footer-bottom > .elementor-container {
  min-height: 44px;
  align-items: center;
}

/* Copyright bar: light text on navy — also for editor canvas / Elementor CSS. */
.techtra-elements-footer .techtra-hf-footer-bottom,
.techtra-elements-footer .techtra-hf-footer-bottom .copyright,
.techtra-elements-footer .techtra-hf-footer-bottom .techtra-copyright,
.techtra-hf-footer-bottom .copyright,
.techtra-hf-footer-bottom .techtra-copyright {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Editor canvas: avoid clipping newsletter / right columns; match FE width. */
body.techtra-template-canvas .techtra-elements-footer,
body.techtra-template-canvas .techtra-elements-header,
body.elementor-editor-active .techtra-elements-footer,
body.elementor-editor-active .techtra-elements-header,
body.techtra-template-canvas .elementor,
body.elementor-editor-active .techtra-elements-header > .elementor {
  overflow: visible;
  width: 100% !important;
  max-width: none !important;
}

body.techtra-template-canvas .elementor-section,
body.techtra-template-canvas .e-con,
body.elementor-editor-active .techtra-elements-header .elementor-section,
body.elementor-editor-active .techtra-elements-header .e-con {
  overflow: visible;
}

/* Editor: kill Elementor boxed content-width squeeze on the header bar. */
body.techtra-template-canvas .techtra-hf-header-bar.elementor-section-boxed > .elementor-container,
body.elementor-editor-active .techtra-hf-header-bar.elementor-section-boxed > .elementor-container,
.techtra-elements-header .techtra-hf-header-bar.elementor-section-boxed > .elementor-container {
  max-width: 1320px !important;
  width: 100% !important;
}

body.techtra-template-canvas .techtra-hf-footer-main > .elementor-container,
body.techtra-template-canvas .techtra-hf-footer-bottom > .elementor-container,
body.elementor-editor-active .techtra-hf-footer-main > .elementor-container,
body.elementor-editor-active .techtra-hf-footer-bottom > .elementor-container {
  max-width: 1240px !important;
  width: 100% !important;
}

/* Sticky header: respect WP admin bar */
.techtra-elements-sticky.is-sticky,
.techtra-elements-sticky .site-header.is-sticky,
body.admin-bar .techtra-elements-sticky.is-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.admin-bar .techtra-elements-sticky.is-sticky,
body.admin-bar .techtra-elements-sticky.techtra-is-stuck {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .techtra-elements-sticky.is-sticky,
  body.admin-bar .techtra-elements-sticky.techtra-is-stuck {
    top: 46px;
  }
}

.techtra-elements-sticky.techtra-is-stuck,
.techtra-elements-sticky.techtra-is-stuck .site-header {
  box-shadow: 0 2px 12px rgba(7, 36, 86, 0.28);
  background: rgba(11, 46, 107, 0.98);
  transition: background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.techtra-elements-sticky.techtra-is-stuck.techtra-shrink .techtra-site-logo img,
.techtra-elements-sticky.techtra-is-stuck.techtra-shrink .header-logo img {
  max-height: 36px;
  width: auto;
}

/* Nav menu */
.techtra-nav-menu {
  position: relative;
}

.techtra-nav-menu--horizontal .techtra-nav-menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.techtra-nav-menu--vertical .techtra-nav-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.techtra-nav-menu__list ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.5rem 1rem;
}

.techtra-nav-menu__list .sub-menu {
  display: none;
}

.techtra-nav-menu__list li:hover > .sub-menu,
.techtra-nav-menu__list li:focus-within > .sub-menu {
  display: block;
}

.techtra-nav-menu__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.techtra-nav-menu__burger,
.techtra-nav-menu__burger::before,
.techtra-nav-menu__burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  position: relative;
}

.techtra-nav-menu__burger::before,
.techtra-nav-menu__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.techtra-nav-menu__burger::before { top: -7px; }
.techtra-nav-menu__burger::after { top: 7px; }

.techtra-nav-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1090;
}

.techtra-nav-menu[data-mobile-mode="offcanvas"] .techtra-nav-menu__panel.is-open {
  transform: translateX(0);
}

.techtra-nav-menu[data-mobile-mode="offcanvas"] .techtra-nav-menu__panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  z-index: 1100;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  overflow: auto;
  padding: 1.25rem;
}

.techtra-nav-menu[data-mobile-mode="offcanvas"] .techtra-nav-menu__panel a {
  color: #0b2e6b;
}

@media (max-width: 992px) {
  .techtra-nav-menu__toggle {
    display: inline-flex;
    color: #fff;
  }

  .techtra-nav-menu--horizontal .techtra-nav-menu__list {
    display: none;
  }
}

.techtra-account a,
.techtra-cart a {
  text-decoration: none;
}

.techtra-cart {
  position: relative;
}

.header-cart__count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #f5c518;
  color: #072456;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
