/* =========================================================
   navbar.css — Pertamina Foundation inspired
   ========================================================= */

.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar.is-scrolled{
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.navbar.navbar--solid{
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.navbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--gray-900);
}
.navbar__brand img{ height: 40px; width: auto; }
.navbar__brand span{ display: none; }
@media (min-width: 480px){ .navbar__brand span{ display: inline; } }

.navbar__links{
  display: none;
  align-items: center;
  gap: 32px;
}
.navbar__links a{
  position: relative;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  padding: 8px 2px;
  transition: color .2s var(--ease);
}
.navbar--on-dark:not(.is-scrolled) .navbar__links a{ color: var(--white); }
.navbar__links a::after{
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--pf-red);
  transition: width .25s var(--ease);
}
.navbar__links a:hover,
.navbar__links a.is-active{ color: var(--pf-red); }
.navbar--on-dark:not(.is-scrolled) .navbar__links a:hover,
.navbar--on-dark:not(.is-scrolled) .navbar__links a.is-active{ color: var(--pf-red); }
.navbar__links a:hover::after,
.navbar__links a.is-active::after{ width: 100%; }

.navbar__cta{ display: none; }

@media (min-width: 900px){
  .navbar__links{ display: flex; }
  .navbar__cta{ display: inline-flex; }
}

/* ---------- Mobile toggle ---------- */
.navbar__toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
@media (min-width: 900px){ .navbar__toggle{ display: none; } }

.navbar__toggle span{
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.navbar--on-dark:not(.is-scrolled) .navbar__toggle span{ background: var(--white); }
.navbar__toggle.is-open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2){ opacity: 0; }
.navbar__toggle.is-open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
.navbar__toggle.is-open span{ background: var(--gray-900); }

/* ---------- Mobile menu panel ---------- */
.navbar__mobile{
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 16px 30px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  padding: 10px 24px 26px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.navbar__mobile.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.navbar__mobile a{
  padding: 14px 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.navbar__mobile .btn{ margin-top: 16px; justify-content: center; }
@media (min-width: 900px){ .navbar__mobile{ display: none; } }
