/* ================================================
   MANARE RESIDENCE — Hero Section Styles
   ================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 125vh;
  overflow: hidden;
  color: var(--color-white); /* Text overlay in hero is white */
}

/* Shared base for image layers */
.hero__bg,
.hero__fg {
  position: absolute;
  top: -400px;
  left: 0;
  width: 100%;
  height: calc(100% + 500px);
  object-fit: cover;
  object-position: bottom center;
}

.hero__bg {
  z-index: 1;
}

.hero__fg {
  z-index: 4;
  pointer-events: none;
}

/* ---------- SVG Logo Container ---------- */
.hero__text {
  position: absolute;
  top: -255px; /* Moved 25px up from -230px */
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform; /* Important for performance on scroll parallax */
}

.hero__logo {
  width: 25%; /* Reduced logo size */
  max-width: min(22vw, 320px); /* Proportional decrease */
  height: auto;
  user-select: none;
}

/* ---------- Overlay Content ---------- */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2.5rem;
  pointer-events: none;
}

.hero__overlay * {
  pointer-events: auto; /* Enable clicks internally */
}

/* ---------- Navigation Minimalist (No Rounded Corners) ---------- */
.hero__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero__nav-left,
.hero__nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* More spacing for minimalist look */
}

.hero__nav-link {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 300; /* As light as possible */
  padding: 0.5rem 0;
  color: var(--color-white);
  border-bottom: 1px solid transparent; /* Bottom line hover effect */
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Increased letter spacing */
}

.hero__nav-link:hover {
  border-bottom-color: var(--color-white);
}

/* CTA Navigation Button - Sharp Edges */
.hero__nav-cta {
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--color-white);
  background-color: transparent;
  color: var(--color-white);
  font-weight: 400; /* Adjusted to be lighter than previous 600, but structured */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.hero__nav-cta:hover {
  background-color: var(--color-white);
  color: var(--color-blue-dark);
}

.hero__bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 6;
  pointer-events: none;
}

/* ---------- Minimal Hamburger Menu ---------- */
.hero__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 50;
  padding: 0;
}

.hero__hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
  margin: -3px;
}

.hero__hamburger:hover .bar {
  opacity: 0.6;
}

/* Menu Overlay */
.hero__menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-blue-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.hero__menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Close Button Details */
.hero__menu-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__menu-close .bar {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
  transition: transform var(--transition-fast);
}

.hero__menu-close .cross-1 {
  transform: rotate(45deg);
}
.hero__menu-close .cross-2 {
  transform: rotate(-45deg);
}

.hero__menu-close:hover .bar {
  transform: rotate(135deg); /* Spin on hover */
}
.hero__menu-close:hover .cross-2 {
  transform: rotate(45deg);
}

/* Overlay Navigation Links */
.hero__overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.hero__overlay-link {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.hero__menu-overlay.is-open .hero__overlay-link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggering entries */
.hero__menu-overlay.is-open .hero__overlay-link:nth-child(1) {
  transition-delay: 0.2s;
}
.hero__menu-overlay.is-open .hero__overlay-link:nth-child(2) {
  transition-delay: 0.3s;
}
.hero__menu-overlay.is-open .hero__overlay-link:nth-child(3) {
  transition-delay: 0.4s;
}
.hero__menu-overlay.is-open .hero__overlay-link:nth-child(4) {
  transition-delay: 0.5s;
}

.hero__overlay-link:hover {
  color: var(--color-grey-light);
  letter-spacing: 0.15em;
}

/* ================================================
   LARGE SCREEN ADJUSTMENTS (2K / 4K / Ultra-wide)
   Only targets screens wider than 2560px.
   Normal/Full-HD screens are NOT affected.
   ================================================ */

/* 2K+ screens (2560px and above) */
@media (min-width: 2560px) {
  .hero__text {
    top: -14vw;
  }

  .hero__logo {
    width: 32vw;
    max-width: 900px;
  }
}

/* 4K screens (3840px and above) */
@media (min-width: 3840px) {
  .hero__text {
    top: -10vw;
  }

  .hero__logo {
    width: 28vw;
    max-width: 1100px;
  }
}
