/* === Font === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === Root tokens === */
:root{
  --header-bg: #296F93;
  --header-text: #ffffff;
  --cta-bg: #c7c640;
  --cta-text: #ffffff;
  --container-max: 1200px;
  --header-height: 72px;
  --z-header: 9999;
}

/* === Base === */
*{ box-sizing: border-box; }
html, body{
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  margin: 0;
}


.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}
body.no-scroll{ overflow: hidden; }

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

/* === Header === */
.site-header{
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  color: var(--header-text);
  transition: box-shadow .2s ease;
}
.site-header.scrolled{
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.site-header .container{
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.logo img{
  height: 42px;
  display: block;
}

/* === Nav === */
.nav{
  margin-left: auto;
}
.nav ul{
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav li{
  position: relative;
}
.nav a{
  color: var(--header-text);
  text-decoration: none;
  font-family: 'Poppins';
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  padding: 8px 0;
}
.nav a:hover,
.nav a.active{
  opacity: .9;
}
.nav a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-8px;
  height:2px; background:#fff;
  border-radius:2px;
  margin:auto;
}

/* CTA */
.cta{
  margin-left: 24px;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* === Burger === */
.nav-toggle{
  display: none;
  position: relative;
  z-index: calc(var(--z-header) + 1);
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 6px 2px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-active span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2){
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile === */
@media (max-width: 992px){
  .nav{
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav.open{
    max-height: 80vh;
  }
  .nav ul{
    flex-direction: column;
    gap: 0;
  }
  .nav li{
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav a{
    display: block;
    padding: 14px 20px;
  }

  .cta{
    display: none; /* pindahkan ke dalam nav jika ingin tampil di mobile */
  }

  .nav-toggle{
    display: block;
  }
}
