/*
 * Off-canvas menu — rebuilt layout.
 *
 * The captured Bricks HTML inside #brxe-mwywwh.brx-offcanvas-inner is
 * rewritten at build time (scripts/transform.cjs → rebuildOffcanvasMenu).
 * This file styles the new structure. We use `body` as a specificity bump
 * and target `.pa-menu__*` classes that only exist inside the rebuilt menu.
 */

/* ---- drawer container ---- */
/* >=600px: side drawer up to 380px. <600px: full-width sheet. */
@media (min-width: 600px) {
  body #brxe-wkcgus[data-direction] .brx-offcanvas-inner {
    width: min(380px, 60vw);
  }
}

body #brxe-mwywwh.brx-offcanvas-inner {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: #b8174a;
  color: #fff;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "Red Hat Text", system-ui, -apple-system, sans-serif;
}

/* Hide any leftover Bricks <section> wrappers that snuck through the rewrite */
body #brxe-mwywwh.brx-offcanvas-inner > section { display: none; }

/* ---- top bar: logo + close ---- */
body .pa-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

body .pa-menu__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body .pa-menu__logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

body .pa-menu__close {
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}
body .pa-menu__close:hover,
body .pa-menu__close:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  outline: none;
}

/* ---- phone CTA strip ---- */
body .pa-menu__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

body .pa-menu__phone-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 14px;
}

body .pa-menu__phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

body .pa-menu__phone-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
}

body .pa-menu__phone-num {
  font-size: 19px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- products section ---- */
body .pa-menu__products {
  padding: 14px 18px 6px;
  flex-shrink: 0;
}

body .pa-menu__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}

body .pa-menu__products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body .pa-menu__product {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 8px 10px;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
body .pa-menu__product:hover,
body .pa-menu__product:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

body .pa-menu__product img {
  width: auto;
  height: 60px;
  max-width: 80px;
  object-fit: contain;
  filter: none;
}

body .pa-menu__product span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 8px;
}

/* ---- nav links list ---- */
body .pa-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

body .pa-menu__nav a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}

body .pa-menu__nav a::after {
  content: "→";
  margin-left: auto;
  opacity: 0.55;
  font-size: 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body .pa-menu__nav a:hover,
body .pa-menu__nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

body .pa-menu__nav a:hover::after,
body .pa-menu__nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px);
}

/* ---- request callback CTA ---- */
body .pa-menu__cta {
  display: block;
  margin: 16px 18px 8px;
  padding: 13px 16px;
  background: #fff;
  color: #b8174a !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
body .pa-menu__cta:hover,
body .pa-menu__cta:focus-visible {
  background: #f3f3f3;
  outline: none;
}

/* ---- footer with social, padded for chat widget ---- */
body .pa-menu__footer {
  display: flex;
  gap: 12px;
  padding: 16px 18px 96px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

body .pa-menu__footer a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

body .pa-menu__footer a:hover,
body .pa-menu__footer a:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

body .pa-menu__footer i {
  font-size: 17px;
}
