/* ==========================================================================
   Á CHÂU ELECTRIC — BRAND DESIGN SYSTEM
   03 · HEADER (§4) + NAVIGATION (§5)
   Dark, sticky, responsive. The logo (LOGO.jpg) is a white wordmark on a
   near-black plate → it is ALWAYS placed on a dark surface (never on white).
   ========================================================================== */

/* 4. HEADER
   ========================================================================== */
.ae-header {
  position: sticky;
  top: 0;
  z-index: var(--ae-z-header);
  background-color: var(--ae-dark);
  border-bottom: 1px solid var(--ae-line);
  transition: box-shadow var(--ae-transition), background-color var(--ae-transition);
}
.admin-bar .ae-header {
  top: 32px;
}
.ae-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--ae-accent-bar);
  background: linear-gradient(90deg, var(--ae-blue) 0%, var(--ae-orange) 62%, var(--ae-gold) 100%);
}
.ae-header.is-scrolled {
  background-color: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--ae-shadow-2);
}
.ae-hdr__inner {
  display: flex;
  align-items: center;
  gap: var(--ae-space-5);
  min-height: var(--ae-header-h);
  width: 100%;
  max-width: var(--ae-container);
  margin-inline: auto;
  padding-inline: var(--ae-gutter);
}
.ae-hdr__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ae-white);
}
/* Brand plate: clear space + the measured plate colour of LOGO.jpg so the JPEG
   plate reads as a deliberate brand nameplate instead of a visible photo edge. */
.ae-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ae-space-2) var(--ae-space-3);
  background: var(--ae-logo-plate);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius-sm);
}
.ae-logo-plate img {
  display: block;
  height: 56px;
  width: auto;
}
.ae-hdr__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-left: var(--ae-space-3);
}
.ae-hdr__brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ae-white);
  white-space: nowrap;
}
.ae-hdr__brand-sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ae-gold);
  white-space: nowrap;
}
.ae-hdr__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.ae-hdr__actions {
  display: flex;
  align-items: center;
  gap: var(--ae-space-3);
  flex: 0 0 auto;
}
.ae-hdr__hotline {
  display: inline-flex;
  align-items: center;
  gap: var(--ae-space-2);
  font-size: var(--ae-fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ae-gold);
  text-decoration: none;
  white-space: nowrap;
}
.ae-hdr__hotline svg {
  width: 18px;
  height: 18px;
}
.ae-hdr__hotline:hover {
  color: var(--ae-white);
}
.ae-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-sm);
  background: var(--ae-dark-2);
  color: var(--ae-white);
  cursor: pointer;
}
.ae-icon-btn svg {
  width: 22px;
  height: 22px;
}
.ae-icon-btn--call {
  background: var(--ae-orange);
  border-color: var(--ae-orange);
  color: var(--ae-on-orange);
}

/* 5. NAVIGATION
   ========================================================================== */
.ae-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 10px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ae-nav > li {
  position: relative;
  margin: 0;
  list-style: none;
}
.ae-nav > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px clamp(6px, 0.7vw, 12px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ae-gray-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ae-transition);
}
.ae-nav > li > a::after {
  content: '';
  position: absolute;
  left: clamp(6px, 0.7vw, 12px);
  right: clamp(6px, 0.7vw, 12px);
  bottom: 4px;
  height: 2px;
  background: var(--ae-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ae-transition);
}
.ae-nav > li > a:hover,
.ae-nav > li > a:focus-visible,
.ae-nav > li.is-current > a,
.ae-nav__parent > a[aria-expanded='true'] {
  color: var(--ae-white);
}
.ae-nav > li > a:hover::after,
.ae-nav > li > a:focus-visible::after,
.ae-nav > li.is-current > a::after,
.ae-nav__parent > a[aria-expanded='true']::after {
  transform: scaleX(1);
}
.ae-nav__parent > a {
  cursor: pointer;
}
.ae-nav__caret {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform var(--ae-transition);
}
.ae-nav__parent > a[aria-expanded='true'] .ae-nav__caret {
  transform: rotate(180deg);
}
.ae-nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 460px;
  padding: var(--ae-space-4);
  background: var(--ae-dark-2);
  border: 1px solid var(--ae-line);
  border-top: 2px solid var(--ae-orange);
  border-radius: 0 0 var(--ae-radius) var(--ae-radius);
  box-shadow: var(--ae-shadow-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--ae-transition), transform var(--ae-transition), visibility var(--ae-transition);
}
.ae-nav__parent[data-open='true'] > .ae-nav__panel,
.ae-nav__parent:hover > .ae-nav__panel,
.ae-nav__parent:focus-within > .ae-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ae-nav__panel a {
  display: block;
  padding: 9px var(--ae-space-3);
  font-size: var(--ae-fs-small);
  font-weight: 500;
  color: var(--ae-gray-2);
  text-decoration: none;
  border-radius: var(--ae-radius-sm);
  border-left: 2px solid transparent;
}
.ae-nav__panel a:hover,
.ae-nav__panel a:focus-visible {
  background: var(--ae-dark-3);
  border-left-color: var(--ae-blue);
  color: var(--ae-white);
}
.ae-nav__panel-title {
  grid-column: 1 / -1;
  padding: 0 var(--ae-space-3) var(--ae-space-2);
  font-size: var(--ae-fs-caption);
  font-weight: 700;
  letter-spacing: var(--ae-ls-wide);
  text-transform: uppercase;
  color: var(--ae-gold);
}

/* Mobile drawer — same navigation component, rendered as an accessible
   details/summary accordion (no JavaScript dependency for the sub-menu). */
.ae-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 92vw);
  background: var(--ae-dark-1);
  border-left: 1px solid var(--ae-line-strong);
  z-index: var(--ae-z-drawer);
  transform: translateX(102%);
  transition: transform 220ms ease, visibility 220ms ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
.ae-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.ae-drawer__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ae-space-4);
  padding: var(--ae-space-4) var(--ae-space-5);
  border-bottom: 1px solid var(--ae-line);
  background: var(--ae-dark-1);
}
.ae-drawer__title {
  font-size: var(--ae-fs-caption);
  font-weight: 700;
  letter-spacing: var(--ae-ls-wide);
  text-transform: uppercase;
  color: var(--ae-gold);
  margin: 0;
}
.ae-drawer__body {
  padding: var(--ae-space-4) var(--ae-space-5) var(--ae-space-7);
}
.ae-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ae-drawer__list > li {
  border-bottom: 1px solid var(--ae-line);
}
.ae-drawer__list > li > a,
.ae-drawer__list > li > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ae-space-3);
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ae-gray-3);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.ae-drawer__list > li > details > summary::-webkit-details-marker {
  display: none;
}
.ae-drawer__list > li > a:hover,
.ae-drawer__list > li > details > summary:hover {
  color: var(--ae-gold);
}
.ae-drawer__sub {
  list-style: none;
  margin: 0 0 var(--ae-space-3);
  padding: 0 0 0 var(--ae-space-4);
  border-left: 1px solid var(--ae-line-strong);
}
.ae-drawer__sub a {
  display: block;
  padding: 9px 0;
  font-size: var(--ae-fs-small);
  color: var(--ae-text-muted);
  text-decoration: none;
}
.ae-drawer__sub a:hover {
  color: var(--ae-white);
}
.ae-drawer__contact {
  margin-top: var(--ae-space-5);
  padding-top: var(--ae-space-5);
  border-top: 1px solid var(--ae-line);
  display: grid;
  gap: var(--ae-space-3);
}
.ae-drawer__scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: calc(var(--ae-z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ae-transition), visibility var(--ae-transition);
}
.ae-drawer__scrim.is-open {
  opacity: 1;
  visibility: visible;
}
body.ae-drawer-open {
  overflow: hidden;
}

