/* Canvas Menu - frontend styles.
   The panel is position:fixed and lives at <body> level when open, so no
   ancestor overflow can clip it. Slides read their size from the CSS vars
   the runtime stamps per breakpoint (--da-slide-width / --da-slide-height). */

[data-da-canvas-menu] {
  display: block;
}

/* Trigger */
.da-canvas-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  border: 0;
  border-radius: 4px;
  background: #0f1e14;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.da-canvas-menu__wrapper {
  display: flex;
}

.da-canvas-menu__wrapper[data-trigger-align="center"] {
  justify-content: center;
}

.da-canvas-menu__wrapper[data-trigger-align="end"] {
  justify-content: flex-end;
}

.da-canvas-menu__trigger-icon {
  display: none;
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

[data-icon="hamburger"] .da-canvas-menu__trigger-icon,
[data-icon="hamburgerClose"] .da-canvas-menu__trigger-icon {
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) left 25% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) left 75% / 100% 2px no-repeat;
}

[data-icon="dots"] .da-canvas-menu__trigger-icon {
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle, currentColor 2px, transparent 2.5px) center 25% / 100% 33% no-repeat,
    radial-gradient(circle, currentColor 2px, transparent 2.5px) center 50% / 100% 33% no-repeat,
    radial-gradient(circle, currentColor 2px, transparent 2.5px) center 75% / 100% 33% no-repeat;
}

/* While the canvas is open the trigger swaps to the slide's Close Icon
   (per breakpoint). Same drawing as the slide's close button, so the
   toggle state reads clearly. */
.da-canvas-menu__trigger[data-close-icon] .da-canvas-menu__trigger-icon {
  background: none;
  position: relative;
}

.da-canvas-menu__trigger[data-close-icon] .da-canvas-menu__trigger-icon::before,
.da-canvas-menu__trigger[data-close-icon] .da-canvas-menu__trigger-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.da-canvas-menu__trigger[data-close-icon] .da-canvas-menu__trigger-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.da-canvas-menu__trigger[data-close-icon="crossThin"] .da-canvas-menu__trigger-icon::before,
.da-canvas-menu__trigger[data-close-icon="crossThin"] .da-canvas-menu__trigger-icon::after {
  width: 80%;
  height: 1px;
}

.da-canvas-menu__trigger[data-close-icon="chevron"] .da-canvas-menu__trigger-icon::before {
  width: 45%;
  height: 45%;
  background: transparent;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-70%, -50%) rotate(45deg);
}

.da-canvas-menu__trigger[data-close-icon="chevron"] .da-canvas-menu__trigger-icon::after {
  display: none;
}

.da-canvas-menu__trigger[data-close-icon="arrow"] .da-canvas-menu__trigger-icon::before {
  width: 40%;
  height: 40%;
  background: transparent;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-85%, -50%) rotate(45deg);
}

.da-canvas-menu__trigger[data-close-icon="arrow"] .da-canvas-menu__trigger-icon::after {
  width: 70%;
  transform: translate(-25%, -50%) rotate(0deg);
}

/* Panel */
.da-canvas-menu__panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
  /* The shell never captures clicks: with Overlay Off the page beneath
     stays fully interactive. The overlay and the slides opt back in. */
  pointer-events: none;
}

.da-canvas-menu__overlay {
  pointer-events: auto;
}

.da-canvas-menu__panel--open .da-canvas-menu__slide {
  pointer-events: auto;
}

/* Overlay */
.da-canvas-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
}

.da-canvas-menu__panel--open .da-canvas-menu__overlay {
  opacity: 1;
  visibility: visible;
}

.da-canvas-menu__panel--no-overlay .da-canvas-menu__overlay {
  display: none;
}

/* Slides - width and height come from the module settings as CSS vars.
   The closed rest state is the no-JS fallback; GSAP animates the same
   offsets with xPercent/yPercent. The anchor decides where a partial-size
   panel sits on its cross axis: Start pins it to the top/left edge, Center
   floats it in the middle, End pins it to the bottom/right edge. */
.da-canvas-menu__slide {
  position: absolute;
  background: #181818;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Left / Right - travel on X; anchor sets the vertical position. */
.da-canvas-menu__slide[data-direction="left"] {
  width: var(--da-slide-width, 40%);
  height: var(--da-slide-height, 100%);
}

.da-canvas-menu__slide[data-direction="right"] {
  width: var(--da-slide-width, 40%);
  height: var(--da-slide-height, 100%);
}

.da-canvas-menu__slide[data-direction="left"][data-anchor="start"] {
  left: 0;
  top: 0;
  transform: translate(-105%, 0);
}

.da-canvas-menu__slide[data-direction="left"][data-anchor="center"] {
  left: 0;
  top: 50%;
  transform: translate(-105%, -50%);
}

.da-canvas-menu__slide[data-direction="left"][data-anchor="end"] {
  left: 0;
  bottom: 0;
  top: auto;
  transform: translate(-105%, 0);
}

.da-canvas-menu__slide[data-direction="right"][data-anchor="start"] {
  right: 0;
  top: 0;
  transform: translate(105%, 0);
}

.da-canvas-menu__slide[data-direction="right"][data-anchor="center"] {
  right: 0;
  top: 50%;
  transform: translate(105%, -50%);
}

.da-canvas-menu__slide[data-direction="right"][data-anchor="end"] {
  right: 0;
  bottom: 0;
  top: auto;
  transform: translate(105%, 0);
}

/* Top / Bottom - travel on Y; anchor sets the horizontal position. */
.da-canvas-menu__slide[data-direction="top"] {
  width: var(--da-slide-width, 100%);
  height: var(--da-slide-height, 50%);
}

.da-canvas-menu__slide[data-direction="bottom"] {
  width: var(--da-slide-width, 100%);
  height: var(--da-slide-height, 50%);
}

.da-canvas-menu__slide[data-direction="top"][data-anchor="start"] {
  top: 0;
  left: 0;
  transform: translate(0, -105%);
}

.da-canvas-menu__slide[data-direction="top"][data-anchor="center"] {
  top: 0;
  left: 50%;
  transform: translate(-50%, -105%);
}

.da-canvas-menu__slide[data-direction="top"][data-anchor="end"] {
  top: 0;
  left: auto;
  right: 0;
  transform: translate(0, -105%);
}

.da-canvas-menu__slide[data-direction="bottom"][data-anchor="start"] {
  bottom: 0;
  left: 0;
  transform: translate(0, 105%);
}

.da-canvas-menu__slide[data-direction="bottom"][data-anchor="center"] {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 105%);
}

.da-canvas-menu__slide[data-direction="bottom"][data-anchor="end"] {
  bottom: 0;
  left: auto;
  right: 0;
  transform: translate(0, 105%);
}

/* Content vertical alignment. */
.da-canvas-menu__content {
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: var(--da-content-align, center);
  min-height: 100%;
}

.da-canvas-menu__slide[data-align="start"] { --da-content-align: flex-start; }
.da-canvas-menu__slide[data-align="center"] { --da-content-align: center; }
.da-canvas-menu__slide[data-align="end"] { --da-content-align: flex-end; }

/* Open state - each direction+anchor's resting transform (no-JS fallback;
   GSAP writes the same values inline). Travel axis lands at 0, the anchor
   axis keeps its offset only when centered. */
.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="center"][data-direction="left"],
.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="center"][data-direction="right"] {
  transform: translate(0, -50%);
}

.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="center"][data-direction="top"],
.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="center"][data-direction="bottom"] {
  transform: translate(-50%, 0);
}

.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="start"],
.da-canvas-menu__panel--open .da-canvas-menu__slide[data-anchor="end"] {
  transform: translate(0, 0);
}

/* Close button - position and glyph come from the slide's data attributes,
   so each slide can place and style its own button independently. */
.da-canvas-menu__close {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.da-canvas-menu__close span {
  display: none;
}

/* Positions. */
.da-canvas-menu__close {
  top: 24px;
  right: 24px;
}

.da-canvas-menu__slide[data-close-pos="top-left"] .da-canvas-menu__close {
  top: 24px;
  right: auto;
  left: 24px;
}

.da-canvas-menu__slide[data-close-pos="bottom-left"] .da-canvas-menu__close {
  top: auto;
  bottom: 24px;
  right: auto;
  left: 24px;
}

.da-canvas-menu__slide[data-close-pos="bottom-right"] .da-canvas-menu__close {
  top: auto;
  bottom: 24px;
}

/* Glyphs - drawn with pseudo elements from currentColor. */
.da-canvas-menu__close::before,
.da-canvas-menu__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.da-canvas-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Thin cross. */
.da-canvas-menu__slide[data-close-icon="crossThin"] .da-canvas-menu__close::before,
.da-canvas-menu__slide[data-close-icon="crossThin"] .da-canvas-menu__close::after {
  width: 18px;
  height: 1px;
}

/* Chevron - a single angled bar pointing back (left by default). */
.da-canvas-menu__slide[data-close-icon="chevron"] .da-canvas-menu__close::before,
.da-canvas-menu__slide[data-close-icon="chevron"] .da-canvas-menu__close::after {
  width: 10px;
  height: 10px;
  background: transparent;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-70%, -50%) rotate(45deg);
}

.da-canvas-menu__slide[data-close-icon="chevron"] .da-canvas-menu__close::after {
  display: none;
}

/* Arrow - a chevron with a tail line. */
.da-canvas-menu__slide[data-close-icon="arrow"] .da-canvas-menu__close::before {
  width: 9px;
  height: 9px;
  background: transparent;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-85%, -50%) rotate(45deg);
}

.da-canvas-menu__slide[data-close-icon="arrow"] .da-canvas-menu__close::after {
  width: 16px;
  height: 2px;
  transform: translate(-30%, -50%) rotate(0deg);
}

.da-canvas-menu__slide--no-close .da-canvas-menu__close {
  display: none;
}

/* Double mode: one close button for the pair (see buildClose()). */
.da-canvas-menu__slide--shared-close > .da-canvas-menu__close {
  display: none;
}

/* Menu */
.da-canvas-menu__menu,
.da-canvas-menu__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.da-canvas-menu__item {
  position: relative;
}

/* Large display links by default; Design > Menu font settings override. */
.da-canvas-menu__menu > .da-canvas-menu__item > a {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .da-canvas-menu__menu > .da-canvas-menu__item > a { font-size: 28px; }
}

@media (max-width: 767px) {
  .da-canvas-menu__menu > .da-canvas-menu__item > a { font-size: 22px; }
}

.da-canvas-menu__item > a {
  display: block;
  padding: 0.55em 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.da-canvas-menu__item > a {
  transition: color 0.25s ease, padding-left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.da-canvas-menu__item > a:hover {
  color: #f4c14d;
  padding-left: 0.4em;
}

/* The trigger icon turns as it changes into the close icon and back. */
.da-canvas-menu__trigger-icon {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.da-canvas-menu__trigger[data-close-icon="cross"] .da-canvas-menu__trigger-icon,
.da-canvas-menu__trigger[data-close-icon="crossThin"] .da-canvas-menu__trigger-icon {
  transform: rotate(180deg);
}

.da-canvas-menu__close {
  /* Background only: GSAP owns the button's transform while it spins in,
     and a CSS transform transition would fight it and replay afterwards. */
  transition: background-color 0.25s ease;
}

.da-canvas-menu__close:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ff7043;
}

@media (prefers-reduced-motion: reduce) {
  .da-canvas-menu__item > a,
  .da-canvas-menu__trigger-icon,
  .da-canvas-menu__close {
    transition: none;
  }
}

.da-canvas-menu__submenu {
  display: none;
  padding-left: 1em;
}

.da-canvas-menu__item--open > .da-canvas-menu__submenu {
  display: block;
}

/* Expand button */
/* A parent item is one row: the link fills it and the expand button sits
   centred beside it at any font size. The submenu wraps below. */
.da-canvas-menu__item--parent {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.da-canvas-menu__item--parent > a {
  flex: 1 1 0;
  min-width: 0;
}

.da-canvas-menu__item--parent > .da-canvas-menu__submenu {
  flex: 0 0 100%;
}

.da-canvas-menu__expand {
  position: static;
  flex: none;
  align-self: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.da-canvas-menu__expand-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
}

[data-expand-icon="plus"] .da-canvas-menu__expand-icon::before,
[data-expand-icon="plus"] .da-canvas-menu__expand-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease;
}

[data-expand-icon="plus"] .da-canvas-menu__expand-icon::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
}

[data-expand-icon="plus"] .da-canvas-menu__expand-icon::after {
  left: 5px;
  top: 0;
  width: 2px;
  height: 12px;
}

/* Open state - always a clean horizontal MINUS, whichever icon style is
   selected (plus/arrow/caret all collapse to a single bar). */
.da-canvas-menu__item--open > .da-canvas-menu__expand .da-canvas-menu__expand-icon::before,
.da-canvas-menu__item--open > .da-canvas-menu__expand .da-canvas-menu__expand-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
  background: currentColor;
  border: 0;
  border-radius: 0;
  transform: none;
  transition: none;
}

.da-canvas-menu__item--open > .da-canvas-menu__expand .da-canvas-menu__expand-icon::after {
  display: none;
}

[data-expand-icon="arrow"] .da-canvas-menu__expand-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.da-canvas-menu__item--open > .da-canvas-menu__expand .da-canvas-menu__expand-icon::before {
}

[data-expand-icon="caret"] .da-canvas-menu__expand-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.da-canvas-menu__item--open > .da-canvas-menu__expand .da-canvas-menu__expand-icon::before {
}

/* Current page highlight (WP state classes). */
.da-canvas-menu__item.current-menu-item > a {
  color: #f4c14d;
}

.da-canvas-menu__text {
  color: #fff;
}

/* ── Builder Preview screen ──
   Only the Visual Builder renders .da-canvas-menu__stage: a small browser
   window under the trigger. The panel opens inside it - absolute instead of
   fixed - with the real slides, menu and animation. */
.da-canvas-menu__wrapper--builder {
  flex-wrap: wrap;
  row-gap: 16px;
}

.da-canvas-menu__stage {
  flex: 0 0 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

.da-canvas-menu__stage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  background: #1e1e2a;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.da-canvas-menu__stage-dots {
  display: inline-flex;
  gap: 5px;
}

.da-canvas-menu__stage-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.da-canvas-menu__stage-dots i:nth-child(2) { background: #febc2e; }
.da-canvas-menu__stage-dots i:nth-child(3) { background: #28c840; }

.da-canvas-menu__stage-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.da-canvas-menu__stage-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.6;
}

.da-canvas-menu__stage-replay {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: #6c2eb9;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.da-canvas-menu__stage-replay:hover {
  background: #7e3bd6;
}

.da-canvas-menu__stage-replay span {
  font-size: 9px;
}

.da-canvas-menu__stage-screen {
  position: relative;
  height: 540px;
  overflow: hidden;
  isolation: isolate;
  background: #f4f5f8;
}

/* A sketch of a page behind the canvas, so the overlay and the slide's
   travel read against something. */
.da-canvas-menu__stage-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 48px 8%;
}

.da-canvas-menu__stage-line {
  display: block;
  height: 12px;
  width: 78%;
  border-radius: 6px;
  background: #dfe2ea;
}

.da-canvas-menu__stage-line--title {
  height: 26px;
  width: 52%;
  margin-bottom: 10px;
  background: #cfd3de;
}

.da-canvas-menu__stage-line--short {
  width: 46%;
}

.da-canvas-menu__stage-block {
  display: block;
  height: 170px;
  margin-top: 18px;
  border-radius: 10px;
  background: #e6e8ef;
}

.da-canvas-menu__stage .da-canvas-menu__panel {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Inside the builder the panel sits in the page content, where Divi's own
   list styles (bullets, indents) would reach the menu. On the live page the
   panel lives at <body> level, out of their reach. */
.da-canvas-menu__stage .da-canvas-menu__menu,
.da-canvas-menu__stage .da-canvas-menu__submenu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.da-canvas-menu__stage .da-canvas-menu__submenu {
  padding-left: 1em !important;
}

.da-canvas-menu__stage .da-canvas-menu__item {
  list-style: none !important;
}

.da-canvas-menu__stage-empty {
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
  .da-canvas-menu__stage-screen {
    height: 620px;
  }

  .da-canvas-menu__stage-hint {
    display: none;
  }
}

/* ── Info slide (child modules wrapper) ── */
.da-canvas-menu__info {
	display: flex;
	/* Gaps come from Design > Info Container (Divi emits them as CSS vars).
	   flex-direction is NOT set here on purpose — Divi's emitted rule must
	   always control it. */
	column-gap: var(--horizontal-gap, 24px);
	row-gap: var(--vertical-gap, 24px);
	min-height: 100%;
	/* Generous studio padding: the content breathes on a large screen and
	   still fits a phone. */
	padding: clamp(28px, 4.5vw, 90px);
}

/* Two slides read as two surfaces: the second a shade lighter. */
.da-canvas-menu__slide--two {
	background: #202020;
}

/* Default arrangement: whatever comes first (a logo) at the top, the contact
   details in the middle, the social icons along the bottom. The runtime
   groups the blocks; Info Container settings still control the gaps. */
.da-canvas-menu__info-contacts {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-block: auto;
}

.da-canvas-menu__info-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: auto;
}

.da-canvas-menu__info-contacts:first-child {
	margin-top: auto;
}

.da-canvas-menu__info-social .da-canvas-social-icon a,
.da-canvas-menu__info-social a.da-canvas-social-icon {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.da-canvas-menu__info-social a.da-canvas-social-icon:hover {
	opacity: 0.7;
	transform: translateY(-2px);
}

/* ── Contact Block child module base ── */
.da-canvas-contact-block[data-align='start'] { text-align: left; }
.da-canvas-contact-block[data-align='center'] { text-align: center; }
.da-canvas-contact-block[data-align='end'] { text-align: right; }

.da-canvas-contact-block__label {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.da-canvas-contact-block__value {
	font-size: 17px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.da-canvas-contact-block__value a {
	color: inherit;
	text-decoration: none;
}

.da-canvas-contact-block__value p {
	margin: 0;
}

/* ── Social Icon child module base ── */
.da-canvas-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	text-decoration: none;
}

.da-canvas-social-icon__glyph {
	font-size: 18px;
	color: #fff;
}

.da-canvas-social-icon__glyph::before {
	content: attr(data-icon);
	font-family: ETmodules !important;
	font-weight: 400;
	font-style: normal;
	line-height: 1;
}
