/* =========================================================
   JP INFRA DEVELOPERS – HEADER STYLES
   Ultra-Minimal Black & Gold
   ========================================================= */

/* ================= SITE HEADER ================= */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background: var(--brand);
  border-bottom:1px solid var(--accent);
}

/* ================= TOP BAR ================= */
.top-bar{
  background: var(--brand);
  color: var(--muted);
  font-size:13px;
}

.top-bar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:36px;
}

.top-social{
  display:flex;
  gap:12px;
}

.top-social a{
  color: var(--text-on-dark);
  opacity:.85;
}
.top-social a:hover{
  opacity:1;
}

.top-select{
  background:none;
  border:none;
  color: var(--text-on-dark);
  font-size:13px;
  cursor:pointer;
}

/* ================= MAIN HEADER ================= */
.main-header{
  background: var(--bg);
}

.main-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
}

/* Logo */
.logo-block{
  display:flex;
  align-items:center;
}

.logo-img{
  height:56px;
  transition:transform .25s ease;
}

.logo-block:hover .logo-img{
  transform:scale(1.03);
}

/* ================= HEADER INFO ================= */
.header-info-wrap{
  display:flex;
  align-items:center;
  gap:24px;
}

.header-info-block{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  white-space:nowrap;
}

.info-icon{
  width:36px;
  height:36px;
  background: var(--bg-light);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--accent);
}

.info-main{
  font-size:14px;
  font-weight:500;
  max-width:260px;
}

/* ================= HEADER SEARCH ================= */
.header-search-btn{
  width:42px;
  height:42px;
  background: var(--brand-dark);
  border:1px solid var(--accent);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.header-search-btn i{
  color:var(--accent);
  font-size:20px;
}

.header-search-btn:hover{
  background:var(--accent);
}

.header-search-btn:hover i{
  color: var(--brand-dark);
}

/* ================= NAV BAR ================= */
.nav-bar{
  background: var(--brand-dark);
  border-top:1px solid var(--accent);
}

.nav-menu{
  display:flex;
  list-style:none;
  gap:26px;
  padding:12px 0;
}

.nav-menu li a{
  position:relative;
  font-size:12px;
  font-weight:500;
  color:#e5e5e5;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding-bottom:4px;
  transition:color .25s ease;
}

/* 🔥 CLEAR HOVER FEEDBACK */
.nav-menu li a:hover{
  color: var(--accent);
}

.nav-menu li a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background: var(--accent);
  transition: .25s ease;
}

.nav-menu li a:hover::after,
.nav-item.active a::after{
  width:100%;
}

.nav-item.active a{
  color:var(--accent);
}

/* ================= MOBILE MENU BUTTON ================= */
.mobile-menu-btn{
  display:none;
}

/* ================= MOBILE HEADER ================= */
.mobile-header{
  display:none;
}

/* ================= MOBILE DRAWER ================= */
.mobile-drawer{
  position:fixed;
  top:0;
  left:-100%;
  width:78%;
  max-width:300px;
  height:100%;
  background: var(--brand-dark);
  z-index:1200;
  transition:left .35s ease;
  display:flex;
  flex-direction:column;
}

.mobile-drawer.open{
  left:0;
}

.drawer-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  border-bottom:1px solid rgba(var(--accent-rgb), 0.3);
}

.drawer-logo{
  height:38px;
}

.drawer-header button{
  background:none;
  border:none;
  color:var(--accent);
  font-size:22px;
  cursor:pointer;
}

.drawer-nav{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.drawer-nav a{
  color: var(--text-on-dark);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.15em;
  border-bottom:1px solid rgba(var(--brand-rgb), 0.1);
  padding-bottom:6px;
}

.drawer-nav a:hover{
  color:var(--accent);
}

/* Overlay */
.drawer-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.6);
  display:none;
}
.drawer-overlay.show{
  display:block;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .nav-menu{
    overflow-x:auto;
  }
}

@media(max-width:768px){

  .top-bar{
    display:none;
  }

  .header-info-wrap{
    display:none;
  }

  .logo-img{
    height:42px;
  }

  .mobile-header{
    display:flex;
    justify-content:flex-end;
    align-items:center;
  }

  .mobile-menu-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    background: var(--brand);
    color: var(--accent);
    border:1px solid var(--accent);
    font-size:22px;
    cursor:pointer;
  }
}

.header-info-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color: var(--text);
}

.header-info-item i{
  color:var(--accent);
  font-size:18px;
}

/* ================= HEADER SEARCH DROPDOWN ================= */
.header-search-wrap{
  position:absolute;
  top:100%;
  right:0;
  width:320px;
  background: var(--card);
  border-radius:10px;
  box-shadow:0 18px 40px rgba(0,0,0,0.25);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.3s ease;
  z-index:2000;
}

.header-search-wrap form{
  display:flex;
  align-items:center;
  padding:10px;
  gap:8px;
}

.header-search-wrap input{
  flex:1;
  border:none;
  outline:none;
  font-size:14px;
  padding:10px;
}

.header-search-wrap button{
  width:40px;
  height:40px;
  background:var(--accent);
  border:none;
  border-radius:8px;
  cursor:pointer;
}

.header-search-wrap button i{
  color: var(--brand-dark);
  font-size:18px;
}

.header-search-btn:hover + .header-search-wrap,
.header-search-wrap:hover{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* =========================================================
   INNER HERO – COMMON (All Pages)
========================================================= */

.inner-hero{
  background:
    linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url("../images/hero-pattern.png");
  background-size:cover;
  background-position:center;
  color: var(--text-on-dark);
}

.inner-hero-inner{
  min-height:160px;
  padding:36px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* ================= TITLE ================= */
.inner-hero-title{
  font-size:34px;
  font-weight:900;
  letter-spacing:-0.02em;
  margin:0;
}

.inner-hero-sub{
  margin-top:6px;
  font-size:14px;
  font-weight:500;
  color:rgba(255,255,255,.85);
}

/* ================= BREADCRUMB ================= */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,.8);
}

.breadcrumb a{
  color: var(--accent);
  text-decoration:none;
}

.breadcrumb a:hover{
  text-decoration:underline;
}

.breadcrumb span{
  opacity:.8;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
  .inner-hero-inner{
    flex-direction:column;
    align-items:flex-start;
    padding:28px 0;
  }

  .inner-hero-title{
    font-size:26px;
  }

  .breadcrumb{
    margin-top:10px;
  }
}
