/**
 * CSS File: common-header.css
 * 2026-06-16 | Final checked
 */

.l-hero-hdr {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: var(--z_1-up);
}

.p-hero-hdr__bg,
.p-hero-hdr__overlay {
  position: absolute;
  inset: 0;
}

.p-hero-hdr__img {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-fit: cover;
    position: absolute;
    top: -4px;
    left: 0px;
}

.p-hero-hdr__overlay {
  background: rgba(0, 0, 0, 0.2);
}

.p-hero-hdr__deco {
  position: absolute;
  top: 0;
  left: 0;
  /* z-index: var(--z_10-content); */
  z-index: var(--z_20-content);
  width: 100%;
  height: auto;
  pointer-events: none;
}

.p-hero-hdr__deco-reverse {
  position: absolute;
  bottom: 0;
  right: 0;
  top: auto;
  left: auto;
  z-index: var(--z_10-content);
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: scale(-1);
}

.p-hero-hdr__logo {
  position: absolute;
  top: 10px;
  left: 5px;
  z-index: var(--z_20-content);
  width: 300px;
}

.p-hero-hdr__logo img {
  width: 100%;
}

.p-hero-hdr__cta {
  display: none;
}

.p-int-hero-hdr__visual-bubble {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 200px;
  filter: sepia(100%) saturate(2500%) hue-rotate(320deg) brightness(90%);
  transform-origin: center center;
  animation: bubblePop 2s 3 ease-in-out forwards;
}

@keyframes bubblePop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-8deg);
  }
  50% {
    transform: scale(0.95) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.p-int-hero-hdr__visual-bubble img {
  width: 100%;
  height: auto;
}

.p-hero-hdr__mobile-trigger {
  display: block;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: var(--z_990-tool);
  transition: opacity 0.3s ease;
}

.p-hero-hdr__hamburger {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.p-hero-hdr__hamburger span {
  display: block;
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.p-hero-hdr__hamburger span:nth-child(1) {
  top: 12px;
}

.p-hero-hdr__hamburger span:nth-child(2) {
  top: 21px;
}

.p-hero-hdr__hamburger span:nth-child(3) {
  top: 30px;
}

.p-hero-hdr__hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.p-hero-hdr__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.p-hero-hdr__hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 767px) {
  .p-header .p-header__nav,
  .p-header .p-header__mega-menu {
    display: none;
  }
}

@media (min-width: 768px) {
  .l-hero-hdr {
    min-height: 100vh;
    justify-content: flex-end;
    overflow: visible;
  }

  .p-hero-hdr__img {
    object-position: 30% 50%;
  }

  .p-hero-hdr__deco {
    width: 50%;
  }

  .p-hero-hdr__reverse {
    width: 50%;
  }

  .p-hero-hdr__mobile-trigger {
    display: none;
  }

  .p-hero-hdr__logo {
    width: 30%;
    left: 15px;
  }

  .p-hero-hdr__cta {
    display: flex;
    gap: 12px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: var(--z_20-content);
  }

  .p-hero-hdr__cta-item {
    position: relative;
    width: 162px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    text-decoration: none;
    overflow: hidden;
    border-radius: 26px;
    pointer-events: auto;
  }

  .p-hero-hdr__cta-item:hover {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
  }

  .p-hero-hdr__cta-item:active {
    transform: translateY(2px) scale(0.95);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.1s;
  }

  .p-hero-hdr__cta-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
      transform 0.3s ease,
      filter 0.3s ease;
  }

  .p-hero-hdr__cta-item:hover
    .p-hero-hdr__cta-icon {
    transform: scale(1.1);
    filter: contrast(1.1);
  }

  .p-hero-hdr__cta-text {
    position: relative;
    color: #fff;
    font-weight: bold;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
  }

  .p-hero-hdr__cta-item:hover
    .p-hero-hdr__cta-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
  }

  .p-int-hero-hdr__visual-bubble {
    top: 38%;
    left: calc(67% - 550px);
    width: 300px;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {

  .p-hero-hdr__deco {
    width: 75%;
  }
  
  .p-hero-hdr__deco-reverse {
    width: 75%;
  }

  .p-int-hero-hdr__nav.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;/
  }

  .p-int-hero-hdr__nav-inner,
  .p-int-hero-hdr__grid {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .p-int-hero-hdr__btn {
    width: 45%;
    flex: 0 0 45%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .l-hero-hdr {
    height: 100vh;
    min-height: 100vh;
  }

  .p-int-hero-hdr__visual-bubble {
    left: 50%;

  }
}