/* BTE — project overrides. Theme files are never edited; all overrides live here. */

/* Spacing utilities used by the gallery block */
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* CTA strip wrapper (theme used inline padding on the section) */
.cta-section { padding: 72px 0; }

/* Hero background modes (admin-driven) */
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-bg-plain { background: var(--bte-deep); }
.hero .hero-bg.carousel .carousel-inner,
.hero .hero-bg.carousel .carousel-item { height: 100%; }
.hero .hero-bg.carousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Hero video background (YouTube IFrame API) */
.hero .hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero .hero-video-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity .6s;
}

.hero .hero-video-cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero .hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* Editor (CKEditor) content inside detail pages */
.detail-content img { max-width: 100%; height: auto; }

.detail-content ul:not(.check-list):not(.side-nav) {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.detail-content ul:not(.check-list):not(.side-nav) li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #333;
  line-height: 1.6;
}

.detail-content ul:not(.check-list):not(.side-nav) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: .8em;
  height: .45em;
  border-left: 3px solid var(--bte-eco);
  border-bottom: 3px solid var(--bte-eco);
  transform: rotate(-45deg);
}

/* Project detail date row */
.detail-date {
  color: var(--bte-deep);
  opacity: .7;
  font-weight: 600;
  font-size: 14px;
  margin: -8px 0 20px;
}

.detail-date i { margin-right: 6px; }

/* Advantage icon rings render font icons too */
.adv-icon i { font-size: 34px; line-height: 1; }

/* ============================================================
   Mobile menu — "ghost nav" pattern (ProSound reference spec):
   burger (3 bars -> X), 290px dark panel slides in from the LEFT,
   page pushes RIGHT + dim backdrop, submenus via Bootstrap Collapse.
   Breakpoint: < 992px.
   ============================================================ */

:root {
  --mm-width: 290px;
  --mm-accent: var(--bte-lime, #b8dd1b);
  --mm-panel-bg: var(--bte-deep, #024452);
  --mm-speed: .2s;
}

body { overflow-x: hidden; }

.mm-site {
  transition: transform var(--mm-speed);
  position: relative;
}

body.mm-open .mm-site {
  transform: translateX(var(--mm-width));
}

.mm-site::after {
  content: ""; position: absolute; inset: 0; z-index: 1050;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity var(--mm-speed);
}

body.mm-open .mm-site::after { opacity: .3; pointer-events: all; }
body.mm-open { overflow: hidden; }

/* Burger button (3 bars -> X) */
.mm-burger {
  width: 42px; height: 38px; padding: 10px 11px;
  background: transparent; border: 1px solid #fff; border-radius: 4px;
  cursor: pointer; display: inline-block;
}

.mm-burger span {
  display: block; width: 100%; height: 2px; background: #fff;
  transition: transform .4s, opacity .4s;
  transform-origin: 8.33% 50%;
}

.mm-burger span + span { margin-top: 5px; }
.mm-burger:hover, .mm-burger:focus { opacity: .6; outline: none; }
.mm-burger.active .mm-b-top { transform: rotate(45deg) scaleX(1.13); }
.mm-burger.active .mm-b-mid { transform: scaleX(0); }
.mm-burger.active .mm-b-bot { transform: rotate(-45deg) scaleX(1.13); }

/* BTE: header is white, so the header burger is dark */
.mm-burger.mm-burger-header { border-color: var(--bte-deep); }
.mm-burger.mm-burger-header span { background: var(--bte-deep); }

@media (min-width: 992px) {
  .mm-burger.mm-burger-header { display: none; }
}

/* Slide-in panel */
.mm-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1060;
  width: var(--mm-width);
  background: var(--mm-panel-bg);
  transform: translateX(calc(-1 * var(--mm-width)));
  transition: transform var(--mm-speed);
  overflow-y: auto;
  padding: 60px 20px 20px 15px;
}

body.mm-open .mm-panel { transform: translateX(0); }

.mm-panel .mm-burger-close { position: absolute; top: 20px; right: 20px; z-index: 9; }

/* Menu list */
.mm-menu { list-style: none; margin: 0; padding: 0; }
.mm-menu li { position: relative; display: block; }

.mm-menu a {
  display: block; color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 400;
  padding: 10px 0; min-height: 40px;
  transition: color .15s;
}

.mm-menu a:hover, .mm-menu a:focus,
.mm-menu li.active > a { color: var(--mm-accent); }

/* Submenu expand toggle (angle icon) */
.mm-showchildren {
  position: absolute; right: 0; top: 0; z-index: 10;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 10px 15px; line-height: 1;
}

.mm-showchildren:hover, .mm-showchildren:active { color: var(--mm-accent); }

.mm-showchildren .mm-angle {
  display: inline-block; width: .6em; height: .6em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s;
  vertical-align: .15em;
}

.mm-showchildren[aria-expanded="true"] .mm-angle {
  transform: rotate(225deg);
  vertical-align: -.1em;
}

/* Submenu */
.mm-submenu { list-style: none; margin: 0; padding-left: 15px; }
.mm-submenu a { font-size: 13px; font-weight: 700; padding: 8px 0; min-height: auto; }

.mm-submenu a::before {
  content: ""; display: inline-block; width: .45em; height: .45em;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 10px; vertical-align: .05em;
}

/* Filled CTA item */
.mm-menu li.mm-nav-button { margin-top: 15px; }

.mm-menu li.mm-nav-button > a {
  display: inline-block; min-height: auto;
  font-size: 17px; font-weight: 700; line-height: 20px;
  padding: 6px 18px;
  border: 3px solid var(--mm-accent);
  background: var(--mm-accent); color: var(--bte-deep);
  text-transform: capitalize;
}

.mm-menu li.mm-nav-button > a:hover {
  background: transparent; color: var(--mm-accent);
}

/* Language switcher row */
.mm-menu li.mm-lang { margin-top: 20px; color: rgba(255, 255, 255, .5); }
.mm-menu li.mm-lang a { display: inline-block; min-height: auto; padding: 4px 6px; }
.mm-menu li.mm-lang a.active { color: var(--mm-accent); }
