/* Nirwana Residence branding v7 — native smooth animation, no ring decoration */
.nirwana-animated-logo,
.nirwana-native-animated-logo {
  object-fit: contain !important;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: auto;
}

/* Public Beranda: logo is the focus, centered, close to next content */
.nirwana-home-logo-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: clamp(8px, 1.5vw, 18px) 12px clamp(6px, 1vw, 12px);
  overflow: hidden;
  background:
    linear-gradient(180deg, #efe3d3 0%, #f3e7d9 52%, #efe3d3 100%);
  border: 0;
}

.nirwana-home-logo-stage {
  position: relative;
  width: min(96vw, 880px);
  height: min(calc(100vh - 132px), 720px);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.nirwana-home-logo-main {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(61, 40, 21, .18));
}

/* Pull the next section visually closer to the logo */
.nirwana-home-logo-hero + .pkk-public-pillars {
  margin-top: 10px !important;
}

/* Dashboard: no circles/card gimmick, just centered logo */
.nirwana-dashboard-logo-hero {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 8px 8px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.nirwana-dashboard-logo-stage {
  width: min(100%, 900px);
  height: clamp(500px, 64vh, 670px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.nirwana-dashboard-logo-main {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(61, 40, 21, .17));
}

/* Keep dashboard card aligned immediately after logo */
.simpkk-dashboard-page .nirwana-dashboard-logo-hero + .row,
.simpkk-dashboard-page .nirwana-dashboard-logo-hero + .card {
  margin-top: 0 !important;
}

/* Small animated logos */
.nirwana-brand__logo.nirwana-animated-logo,
.nirwana-public-logo.nirwana-animated-logo,
.pwa-install-icon img.nirwana-animated-logo {
  filter: drop-shadow(0 7px 12px rgba(61, 40, 21, .12));
}

@media (max-width: 1024px) {
  .nirwana-home-logo-hero {
    padding: 6px 8px 4px;
  }

  .nirwana-home-logo-stage {
    width: min(98vw, 760px);
    height: min(calc(100dvh - 150px), 650px);
    min-height: 460px;
  }

  .nirwana-dashboard-logo-hero {
    margin-bottom: 8px;
    padding: 6px 4px 2px;
  }

  .nirwana-dashboard-logo-stage {
    width: min(100%, 760px);
    height: clamp(430px, 58vh, 590px);
  }
}

@media (max-width: 767.98px) {
  .nirwana-home-logo-hero {
    padding: 2px 4px 0;
  }

  .nirwana-home-logo-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: 62dvh;
  }

  .nirwana-home-logo-main {
    width: 100%;
    height: 100%;
    max-height: 62dvh;
  }

  .nirwana-home-logo-hero + .pkk-public-pillars {
    margin-top: 4px !important;
  }

  .nirwana-dashboard-logo-hero {
    margin: 0 0 6px;
    padding: 0 2px;
  }

  .nirwana-dashboard-logo-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 58dvh;
  }

  .nirwana-dashboard-logo-main {
    width: 100%;
    height: 100%;
    max-height: 58dvh;
  }
}

@media (max-width: 420px) {
  .nirwana-home-logo-stage {
    max-height: 58dvh;
  }
  .nirwana-home-logo-main {
    max-height: 58dvh;
  }
  .nirwana-dashboard-logo-stage,
  .nirwana-dashboard-logo-main {
    max-height: 54dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nirwana-native-animated-logo,
  .nirwana-animated-logo {
    animation: none !important;
    transition: none !important;
  }
}

/* v8.5 — public hero photo is intentionally visible behind the logo */
.nirwana-home-logo-hero {
  min-height: clamp(540px, 76vh, 760px);
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(239,227,211,.72) 0%, rgba(255,248,241,.34) 42%, rgba(255,248,241,.34) 58%, rgba(239,227,211,.72) 100%),
    linear-gradient(180deg, rgba(255,248,241,.10) 0%, rgba(239,227,211,.34) 100%),
    var(--nirwana-hero-photo) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.nirwana-home-logo-hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(circle at 50% 48%, rgba(255,255,255,.42) 0%, rgba(255,248,241,.16) 34%, rgba(83,49,24,.10) 100%);
  pointer-events:none;
}
.nirwana-home-logo-stage {
  z-index:1;
  width:min(88vw, 760px);
  height:clamp(460px, 64vh, 650px);
  min-height:0;
}
.nirwana-home-logo-main {
  filter:drop-shadow(0 20px 34px rgba(38,25,13,.32));
}
@media (max-width: 767.98px) {
  .nirwana-home-logo-hero {
    min-height:clamp(420px, 66dvh, 590px);
    background-position:center center !important;
    padding:8px 6px 4px;
  }
  .nirwana-home-logo-stage {
    width:min(96vw, 560px);
    height:auto;
    aspect-ratio:1/1;
    max-height:56dvh;
  }
}

/* v8.6 — vivid community background, visually fused with the main logo */
.nirwana-home-logo-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 80vh, 790px);
  background: #3e2a1c !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.22), inset 0 -36px 64px rgba(34,22,14,.14);
}
.nirwana-home-logo-hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  background-image: var(--nirwana-hero-photo) !important;
  background-size: cover !important;
  background-position: center 46% !important;
  background-repeat: no-repeat !important;
  filter: saturate(1.16) contrast(1.07) brightness(.90);
  transform: scale(1.01);
  pointer-events: none;
}
.nirwana-home-logo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,245,224,.10) 0%, rgba(255,238,211,.06) 30%, rgba(50,31,18,.08) 68%, rgba(33,21,13,.25) 100%),
    linear-gradient(180deg, rgba(33,22,14,.05) 0%, rgba(33,22,14,.02) 56%, rgba(52,32,18,.24) 100%);
  pointer-events: none;
}
.nirwana-home-logo-stage {
  position: relative;
  z-index: 2;
  width: min(90vw, 790px);
  height: clamp(470px, 66vh, 675px);
}
.nirwana-home-logo-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 88%;
  height: 76%;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,248,231,.16) 0%, rgba(255,228,183,.07) 48%, rgba(255,255,255,0) 74%);
  filter: blur(5px);
  pointer-events: none;
}
.nirwana-home-logo-main {
  filter:
    drop-shadow(0 5px 8px rgba(25,16,10,.33))
    drop-shadow(0 22px 35px rgba(25,16,10,.32)) !important;
}
@media (max-width: 767.98px) {
  .nirwana-home-logo-hero {
    min-height: clamp(440px, 70dvh, 610px);
  }
  .nirwana-home-logo-hero::before {
    background-position: 50% 45% !important;
    filter: saturate(1.13) contrast(1.05) brightness(.88);
  }
  .nirwana-home-logo-hero::after {
    background:
      radial-gradient(circle at 50% 51%, rgba(255,245,224,.09) 0%, rgba(255,255,255,0) 55%),
      linear-gradient(180deg, rgba(32,21,13,.05), rgba(32,21,13,.19));
  }
  .nirwana-home-logo-stage {
    width: min(96vw, 570px);
    max-height: 58dvh;
  }
}
