body {
  margin: 0;
}

.container_img {
  width: 100%;
  height: 100%;
  position: relative;
  padding-top: 70px;
  box-sizing: border-box;
}

.bg_mobile {
  width: 100%;
  height: auto;
}

body.inactive {
  background-image: url("/assets/images/MobileDuo-inactive.png");
}

/* Header + mobile/desktop menu */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #512f2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}
.site-logo img {
  width: auto;
  height: 44px;
  display: block;
}

.menu-toggle,
.menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.menu-toggle {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 72vw);
  height: 100vh;
  background-color: #512f2e;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 28px 40px;
  box-sizing: border-box;
}

.side-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.side-menu-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.menu-close {
  font-size: 38px;
  line-height: 1;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-menu-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

body.menu-open .side-menu {
  transform: translateX(0);
}

/* Desktop splits hidden on mobile */
.overlay-split.overlay-desktop {
  display: none;
}

/* Mobile splits: top / bottom */
.overlay-split.overlay-mobile {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 3;
  cursor: pointer;
}
.overlay-split.overlay-mobile.overlay-split-0 {
  top: 70px;
  height: calc(49% - 35px);
}
.overlay-split.overlay-mobile.overlay-split-1 {
  bottom: 0;
  height: calc(50% - 35px);
}

/* Legacy class names kept for reference; new markup uses overlay-split */
.topPosition {
  position: absolute;
  top: 0;
  left: 0;
  height: 50%;
  width: 100%;
}

.bottomPosition {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50%;
  width: 100%;
}

.bgDesktop {
  display: none;
}

@media (min-width: 1000px) {
  .topPosition,
  .bottomPosition,
  .overlay-split.overlay-mobile {
    display: none;
  }
  body {
    background-color: #512f2e;
  }
  .bg_mobile {
    display: none;
  }

  .bgDesktop {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    z-index: 2;
  }

  /* Desktop splits: left / right – sub header (z-index mic) */
  .overlay-split.overlay-desktop {
    display: block;
    position: absolute;
    top: 70px;
    height: calc(100% - 70px);
    z-index: 2;
    cursor: pointer;
  }
  .overlay-split.overlay-desktop.overlay-split-0 {
    left: 0;
    width: 50%;
  }
  .overlay-split.overlay-desktop.overlay-split-1 {
    right: 0;
    width: 50%;
  }

  /* Legacy desktop click areas */
  .left-section {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: #dc3545;
    z-index: 1;
  }

  .right-section {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    background-image: url("./assets/images/bg_right.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
  }

  .topPositionDesktop,
  .bottomPositionDesktop {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 3;
    cursor: pointer;
  }
  .topPositionDesktop {
    left: 0;
  }
  .bottomPositionDesktop {
    right: 0;
  }

  .side-menu {
    width: 460px;
  }

  .side-menu-title {
    font-size: 32px;
  }

  .side-menu-nav a {
    font-size: 15px;
  }
}

@media (max-width: 999px) {
  .site-header {
    padding: 0 16px;
  }

  .site-logo img {
    height: 36px;
  }

  .side-menu {
    width: min(460px, 78vw);
    padding: 24px 24px 30px;
  }

  .side-menu-title {
    font-size: 24px;
  }

  .menu-close {
    font-size: 40px;
  }

  .side-menu-nav {
    gap: 26px;
    margin-top: 30px;
  }

  .side-menu-nav a {
    font-size: 15px;
    line-height: 1.05;
  }
}
