/* =========================================================
   FULLSCREEN RESPONSIVE HERO + ADAPTIVE UI
   DUTA PELAJAR SMANPA
========================================================= */

:root{
  --hero-nav-height:82px;
}

/* Keep header above full hero */
.unified-header{
  position:relative;
  z-index:2000;
}

/* Full viewport hero */
.hero-fullscreen{
  position:relative;
  min-height:calc(100svh - var(--hero-nav-height));
  width:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  isolation:isolate;
  background:#071d49;
}

.hero-fullscreen-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  z-index:-4;
}

.hero-fullscreen-overlay{
  position:absolute;
  inset:0;
  z-index:-3;
  background:
    linear-gradient(90deg,
      rgba(4,20,54,.93) 0%,
      rgba(4,20,54,.82) 34%,
      rgba(4,20,54,.34) 63%,
      rgba(4,20,54,.18) 100%),
    linear-gradient(180deg,
      rgba(4,20,54,.08) 45%,
      rgba(4,20,54,.68) 100%);
}

.hero-songket-overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.10;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(219,177,83,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 12% 18%, rgba(219,177,83,.25) 0 1px, transparent 2px);
  background-size:38px 38px;
  mask-image:linear-gradient(90deg,#000,transparent 28%);
}

.hero-fullscreen-content{
  width:min(1480px, calc(100% - clamp(32px,8vw,120px)));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:clamp(38px,7vw,110px);
  align-items:end;
  padding:clamp(52px,8vh,110px) 0 clamp(70px,9vh,120px);
}

.hero-main-copy{
  max-width:790px;
}

.hero-main-copy .eyebrow{
  color:#e0b55c;
}

.hero-main-copy h1{
  margin:10px 0 18px;
  color:#fff;
  font-size:clamp(4rem,8.8vw,9rem);
  line-height:.82;
  letter-spacing:-.065em;
  text-wrap:balance;
}

.hero-main-copy h1 span{
  color:#dfb355;
}

.hero-lead{
  max-width:640px;
  margin:0 0 26px;
  color:rgba(255,255,255,.82);
  font-size:clamp(1rem,1.25vw,1.22rem);
  line-height:1.75;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.hero-primary{
  background:#ddb256 !important;
  color:#10213d !important;
  border-color:#ddb256 !important;
}

.hero-primary:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
}

.hero-secondary{
  background:rgba(255,255,255,.06) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.26) !important;
  backdrop-filter:blur(10px);
}

.hero-meta{
  margin-top:16px;
}

.hero-meta span{
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  color:rgba(255,255,255,.88) !important;
}

.hero-floating-info{
  justify-self:end;
  width:min(520px,100%);
  padding:26px 28px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:24px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 30px 70px rgba(0,0,0,.16);
}

.hero-floating-info .eyebrow{
  color:#ecc565;
}

.hero-floating-info h2{
  margin:8px 0 16px;
  color:#fff;
  font-size:clamp(1.6rem,2.4vw,2.8rem);
  line-height:1.1;
}

.hero-floating-info .qualities{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.hero-floating-info .qualities span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.08);
  font-size:.65rem;
  font-weight:800;
}

.hero-scroll-cue{
  position:absolute;
  left:50%;
  bottom:18px;
  z-index:4;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.74);
  text-decoration:none;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.hero-scroll-cue b{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
}

/* Large desktop / interactive display */
@media(min-width:1600px){
  :root{--hero-nav-height:92px}
  .unified-header{
    min-height:92px;
    padding-inline:clamp(50px,6vw,110px);
  }
  .hero-fullscreen-content{
    width:min(1700px,calc(100% - 12vw));
  }
}

/* Laptop and tablet landscape */
@media(max-width:1100px){
  :root{--hero-nav-height:74px}
  .hero-fullscreen{
    min-height:auto;
  }

  .hero-fullscreen-content{
    grid-template-columns:1fr;
    align-items:center;
    padding:70px 0 90px;
  }

  .hero-main-copy{
    max-width:720px;
  }

  .hero-main-copy h1{
    font-size:clamp(4rem,12vw,7rem);
  }

  .hero-floating-info{
    justify-self:start;
    width:min(620px,100%);
  }

  .hero-fullscreen-overlay{
    background:
      linear-gradient(90deg,
        rgba(4,20,54,.93) 0%,
        rgba(4,20,54,.72) 58%,
        rgba(4,20,54,.38) 100%),
      linear-gradient(180deg,
        rgba(4,20,54,.04) 42%,
        rgba(4,20,54,.76) 100%);
  }
}

/* Tablet portrait / phone */
@media(max-width:720px){
  :root{--hero-nav-height:70px}

  .hero-fullscreen{
    min-height:calc(100svh - var(--hero-nav-height));
    align-items:flex-end;
  }

  .hero-fullscreen-image{
    object-position:62% center;
  }

  .hero-fullscreen-overlay{
    background:
      linear-gradient(180deg,
        rgba(4,20,54,.26) 0%,
        rgba(4,20,54,.48) 38%,
        rgba(4,20,54,.93) 78%,
        rgba(4,20,54,.98) 100%);
  }

  .hero-fullscreen-content{
    width:calc(100% - 36px);
    padding:42vh 0 66px;
    gap:20px;
  }

  .hero-main-copy h1{
    font-size:clamp(3.35rem,18vw,5.5rem);
    line-height:.84;
  }

  .hero-lead{
    font-size:.96rem;
    line-height:1.62;
  }

  .hero-floating-info{
    display:none;
  }

  .hero-actions{
    width:100%;
  }

  .hero-actions .btn{
    flex:1 1 150px;
    text-align:center;
  }

  .hero-scroll-cue{
    display:none;
  }
}

/* Narrow smartphone */
@media(max-width:430px){
  .hero-fullscreen-content{
    width:calc(100% - 28px);
    padding-top:40vh;
  }

  .hero-main-copy h1{
    font-size:clamp(3rem,19vw,4.6rem);
  }

  .hero-main-copy .eyebrow{
    font-size:.62rem;
  }

  .hero-meta{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
  }
}

/* Ultra-wide boards / interactive panels */
@media(min-aspect-ratio:16/7) and (min-width:1200px){
  .hero-fullscreen{
    min-height:720px;
    height:calc(100vh - var(--hero-nav-height));
  }

  .hero-fullscreen-image{
    object-position:center 42%;
  }

  .hero-fullscreen-content{
    align-items:center;
    padding-top:40px;
    padding-bottom:40px;
  }
}

/* Accessibility */
@media(prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
